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


Public Member Functions | |
| SplineFields1D (const Go::SplineCurve *crv, const RealArray &v, int ncmp, const char *name=nullptr) | |
| Construct directly from curve. More... | |
| virtual | ~SplineFields1D () |
| Empty destructor. | |
| virtual bool | valueFE (const ItgPoint &x, Vector &vals) const |
| Computes the value for a given local 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 | valueNode (size_t node, Vector &vals) const |
| Computes the value at a given node/control point. More... | |
| virtual bool | valueCoor (const Vec4 &x, Vector &vals) const |
| Computes the value for a given global coordinate. More... | |
| virtual bool | gradCoor (const Vec4 &x, Matrix &grad) const |
| Computes the gradient for a given global coordinate. More... | |
Protected Attributes | |
| const Go::SplineCurve * | curv |
| 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 1D.
This class implements the methods required to evaluate a 1D spline vector field at a given point in parametrical or physical coordinates.
| SplineFields1D::SplineFields1D | ( | const Go::SplineCurve * | crv, |
| const RealArray & | v, | ||
| int | ncmp, | ||
| const char * | name = nullptr |
||
| ) |
Construct directly from curve.
| [in] | crv | The spline curve 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 at local point in given element |
Implements Fields.
References curv, utl::matrixBase< T >::empty(), utl::matrix< T >::fillColumn(), utl::gather(), utl::Jacobian(), utl::matrix< T >::multiply(), Fields::nf, nsd, ItgPoint::u, and Fields::values.
Computes the hessian for a given local coordinate.
| [in] | x | Local coordinate of evaluation point |
| [out] | H | Hessian at local point in given element |
Reimplemented from Fields.
References curv, utl::matrix< T >::fillColumn(), utl::matrix3d< T >::fillColumn(), utl::gather(), utl::Hessian(), utl::Jacobian(), utl::matrix3d< T >::multiply(), Fields::nf, nsd, ItgPoint::u, and Fields::values.
Computes the value for a given local coordinate.
| [in] | x | Local coordinate of evaluation point |
| [out] | vals | Values at local point in given element |
Implements Fields.
References utl::vector< T >::add(), utl::matrix< T >::cols(), curv, utl::vector< T >::fill(), utl::gather(), utl::matrix< T >::getColumn(), Fields::nf, utl::vector< T >::ptr(), utl::vector< T >::resize(), ItgPoint::u, and Fields::values.