|
IFEM
90A354
|
Class for spline-based finite element vector fields in 3D. More...
#include <SplineFields3D.h>


Public Member Functions | |
| SplineFields3D (const ASMs3D *patch, const RealArray &v, char basis=1, int nf=0, const char *name=nullptr) | |
| The constructor sets the number of space dimensions and fields. More... | |
| SplineFields3D (const Go::SplineVolume *srf, const RealArray &v, int ncmp, const char *name=nullptr) | |
| Construct directly from volume. More... | |
| virtual | ~SplineFields3D () |
| Empty destructor. | |
| virtual bool | valueNode (size_t node, Vector &vals) const |
| Computes the value in a given node/control point. More... | |
| virtual bool | valueFE (const ItgPoint &x, Vector &vals) const |
| Computes the value at a given local coordinate. More... | |
| virtual bool | valueCoor (const Vec4 &x, Vector &vals) const |
| Computes the value at a given global coordinate. More... | |
| virtual bool | gradFE (const ItgPoint &x, Matrix &grad) const |
| Computes the gradient for a given local coordinate. More... | |
| virtual bool | hessianFE (const ItgPoint &x, Matrix3D &H) const |
| Computes the hessian for a given local coordinate. More... | |
Public Member Functions inherited from Fields | |
| virtual | ~Fields () |
| Empty destructor. | |
| unsigned char | getNoFields () const |
| Returns the number of field components. | |
| size_t | getNoElm () const |
| Returns the number of elements. | |
| size_t | getNoNodes () const |
| Returns the number of nodal/control points. | |
| const char * | getFieldName () const |
| Returns the name of field. | |
| virtual bool | gradCoor (const Vec4 &x, Matrix &grad) const |
| Computes the gradient for a given global coordinate. More... | |
Protected Attributes | |
| const Go::SplineVolume * | basis |
| Spline basis description. | |
| const Go::SplineVolume * | vol |
| Spline geometry description. | |
Protected Attributes inherited from Fields | |
| unsigned char | nf |
| Number of field components. | |
| size_t | nelm |
| Number of elements/knot-spans. | |
| size_t | nno |
| Number of nodes/control points. | |
| std::string | fname |
| Name of the field. | |
| Vector | values |
| Field values. | |
Private Attributes | |
| unsigned char | nsd |
| Number of space dimensions. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Fields | |
| static Fields * | create (const ASMbase *pch, const RealArray &v, char basis=1, int nf=0, const char *name=nullptr) |
| Creates a dynamically allocated field object. More... | |
Protected Member Functions inherited from Fields | |
| Fields (const char *name=nullptr) | |
| The constructor sets the field name. More... | |
Class for spline-based finite element vector fields in 3D.
This class implements the methods required to evaluate a 3D spline vector field at a given point in parametrical or physical coordinates.
| SplineFields3D::SplineFields3D | ( | const ASMs3D * | patch, |
| const RealArray & | v, | ||
| char | basis = 1, |
||
| int | nf = 0, |
||
| const char * | name = nullptr |
||
| ) |
The constructor sets the number of space dimensions and fields.
| [in] | patch | The spline patch on which the field is to be defined |
| [in] | v | Array of control point field values |
| [in] | basis | Basis to use from patch |
| [in] | nf | Number of components in field |
| [in] | name | Name of spline field |
References basis, utl::vector< T >::begin(), ASMbase::getNoFields(), ASMs3D::getNoNodes(), ASMbase::getNoSpaceDim(), Fields::nelm, Fields::nf, Fields::nno, nsd, utl::vector< T >::resize(), and Fields::values.
| SplineFields3D::SplineFields3D | ( | const Go::SplineVolume * | srf, |
| const RealArray & | v, | ||
| int | ncmp, | ||
| const char * | name = nullptr |
||
| ) |
Construct directly from volume.
| [in] | srf | The spline volume to use |
| [in] | v | Array of control point field values |
| [in] | ncmp | Number of field components |
| [in] | name | Name of spline field |
References Fields::nf, nsd, and Fields::values.
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 |
Implements Fields.
References basis, utl::matrixBase< T >::empty(), SplineField::evalBasis(), SplineField::evalMapping(), utl::gather(), utl::matrix< T >::multiply(), Fields::nf, Fields::values, and vol.
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 from Fields.
References basis, SplineField::evalBasis(), SplineField::evalMapping(), utl::gather(), utl::matrix3d< T >::multiply(), Fields::nf, Fields::values, and vol.
Computes the value at a given local coordinate.
| [in] | x | Local coordinate of evaluation point |
| [out] | vals | Values in local point in given element |
Implements Fields.
References basis, utl::gather(), utl::matrix< T >::multiply(), Fields::nf, ASMs3D::scatterInd(), ItgPoint::u, ItgPoint::v, Fields::values, and ItgPoint::w.
Referenced by valueCoor().
|
virtual |
Computes the value in a given node/control point.
| [in] | node | Node number |
| [out] | vals | Node values |
Reimplemented from Fields.
References utl::vector< T >::fill(), Fields::nf, Fields::nno, utl::vector< T >::ptr(), utl::vector< T >::resize(), and Fields::values.