Interface class for scalar fields.
More...
#include <Field.h>
|
|
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.
|
| |
| virtual double | valueFE (const ItgPoint &x) const =0 |
| | Computes the value at a given local coordinate.
|
| |
| virtual double | valueCoor (const Vec4 &x) const |
| | Computes the value at a given global coordinate.
|
| |
| virtual bool | valueGrid (RealArray &val, const int *npe) const |
| | Computes the value at a grid of visualization points.
|
| |
| virtual bool | gradFE (const ItgPoint &x, Vector &grad) const =0 |
| | Computes the gradient for a given local coordinate.
|
| |
| virtual bool | gradCoor (const Vec4 &x, Vector &grad) const |
| | Computes the gradient for a given global/physical coordinate.
|
| |
| virtual bool | hessianFE (const ItgPoint &x, Matrix &H) const |
| | Computes the hessian for a given local coordinate.
|
| |
|
| 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.
|
| |
|
| | Field (const char *name=nullptr) |
| | The constructor sets the field name.
|
| |
|
|
std::string | fname |
| | Name of the field.
|
| |
Interface class for scalar fields.
◆ Field()
| Field::Field |
( |
const char * |
name = nullptr | ) |
|
|
inlineexplicitprotected |
The constructor sets the field name.
- Parameters
-
| [in] | name | Optional name of field |
References fname.
◆ create()
| Field * Field::create |
( |
const ASMbase * |
pch, |
|
|
const RealArray & |
v, |
|
|
char |
basis = 1, |
|
|
char |
cmp = 1, |
|
|
const char * |
name = nullptr |
|
) |
| |
|
static |
◆ gradCoor()
| virtual bool Field::gradCoor |
( |
const Vec4 & |
x, |
|
|
Vector & |
grad |
|
) |
| const |
|
inlinevirtual |
Computes the gradient for a given global/physical coordinate.
- Parameters
-
| [in] | x | Global/physical coordinate for point |
| [out] | grad | Gradient of solution in a given global coordinate |
◆ gradFE()
| virtual bool Field::gradFE |
( |
const ItgPoint & |
x, |
|
|
Vector & |
grad |
|
) |
| const |
|
pure virtual |
◆ hessianFE()
| virtual bool Field::hessianFE |
( |
const ItgPoint & |
x, |
|
|
Matrix & |
H |
|
) |
| const |
|
inlinevirtual |
◆ valueCoor()
| virtual double Field::valueCoor |
( |
const Vec4 & |
x | ) |
const |
|
inlinevirtual |
◆ valueFE()
| virtual double Field::valueFE |
( |
const ItgPoint & |
x | ) |
const |
|
pure virtual |
◆ valueGrid()
| virtual bool Field::valueGrid |
( |
RealArray & |
val, |
|
|
const int * |
npe |
|
) |
| const |
|
inlinevirtual |
Computes the value at a grid of visualization points.
- Parameters
-
| [out] | val | Field values at the visualization points |
| [in] | npe | Number of visualization nodes over each knot span |
Reimplemented in SplineField2D, and SplineField3D.
◆ valueNode()
| virtual double Field::valueNode |
( |
size_t |
node | ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files:
- /home/runner/work/IFEM-2/IFEM-2/src/ASM/Field.h
- /home/runner/work/IFEM-2/IFEM-2/src/ASM/Field.C