|
IFEM
90A354
|
Interface class for scalar fields. More...
#include <Field.h>


Public Member Functions | |
| virtual | ~Field () |
| Empty destructor. | |
| const char * | getFieldName () const |
| Returns the name of field. | |
| virtual double | valueNode (size_t node) const =0 |
| Computes the value in a given node/control point. More... | |
| virtual double | valueFE (const ItgPoint &x) const =0 |
| Computes the value at a given local coordinate. More... | |
| virtual double | valueCoor (const Vec4 &x) const |
| Computes the value at a given global coordinate. More... | |
| virtual bool | valueGrid (RealArray &val, const int *npe) const |
| Computes the value at a grid of visualization points. More... | |
| virtual bool | gradFE (const ItgPoint &x, Vector &grad) const =0 |
| Computes the gradient for a given local coordinate. More... | |
| virtual bool | gradCoor (const Vec4 &x, Vector &grad) const |
| Computes the gradient for a given global/physical coordinate. More... | |
| virtual bool | hessianFE (const ItgPoint &x, Matrix &H) const |
| Computes the hessian for a given local coordinate. More... | |
Static Public Member Functions | |
| static Field * | create (const ASMbase *pch, const RealArray &v, char basis=1, char cmp=1, const char *name=nullptr) |
| Creates a dynamically allocated field object. More... | |
Protected Member Functions | |
| Field (const char *name=nullptr) | |
| The constructor sets the field name. More... | |
Protected Attributes | |
| std::string | fname |
| Name of the field. | |
Interface class for scalar fields.
|
inlineexplicitprotected |
|
static |
Creates a dynamically allocated field object.
| [in] | pch | The spline patch on which the field is to be defined on |
| [in] | v | Array of nodal/control point field values |
| [in] | basis | Basis to use from patch |
| [in] | cmp | Component to use for field |
| [in] | name | Name of field |
Referenced by FieldFuncScalarBase::addPatchField(), SIMdependency::extractPatchDependencies(), and FieldFuncStream::FieldFuncStream().
Computes the gradient for a given global/physical coordinate.
| [in] | x | Global/physical coordinate for point |
| [out] | grad | Gradient of solution in a given global coordinate |
Computes the gradient for a given local coordinate.
| [in] | x | Local coordinate of evaluation point |
| [out] | grad | Gradient of solution in a given local coordinate |
Implemented in LagrangeField2D, SplineField3D, SplineField2D, LRSplineField3D, LRSplineField2D, and LagrangeField3D.
Computes the hessian for a given local coordinate.
| [in] | x | Local coordinate of evaluation point |
| [out] | H | Hessian of solution in a given local coordinate |
Reimplemented in SplineField3D, SplineField2D, LRSplineField3D, and LRSplineField2D.
|
inlinevirtual |
Computes the value at a given global coordinate.
| [in] | x | Global/physical coordinate for point |
Reimplemented in SplineField3D, SplineField2D, LRSplineField3D, and LRSplineField2D.
|
pure virtual |
Computes the value at a given local coordinate.
| [in] | x | Local coordinate of evaluation point |
Implemented in LagrangeField2D, SplineField3D, SplineField2D, LRSplineField3D, LRSplineField2D, and LagrangeField3D.
Referenced by ASMs2D::evaluate(), and ASMs3D::evaluate().
|
inlinevirtual |
Computes the value at a grid of visualization points.
| [out] | val | Field values at the visualization points |
| [in] | npe | Number of visualization nodes over each knot span |
Reimplemented in SplineField3D, and SplineField2D.
|
pure virtual |
Computes the value in a given node/control point.
| [in] | node | 1-based node/control point index |
Implemented in LagrangeField2D, SplineField3D, SplineField2D, LRSplineField3D, LRSplineField2D, and LagrangeField3D.