|
OOFEM 3.0
|
#include <feinurbs.h>
Public Member Functions | |
| NURBSInterpolation (int nsd) | |
| void | initializeFrom (InputRecord &ir, ParameterManager &pm, int elnum, int priority) override |
| Initializes receiver according to object description stored in input record. | |
| void | postInitialize (ParameterManager &pm, int elnum) override |
| void | evalN (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | evaldNdx (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | local2global (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| int | global2local (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | giveJacobianMatrixAt (FloatMatrix &jacobianMatrix, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| const char * | giveClassName () const |
| Public Member Functions inherited from oofem::BSplineInterpolation | |
| BSplineInterpolation (int nsd) | |
| integrationDomain | giveIntegrationDomain (const Element_Geometry_Type egt) const override |
| const Element_Geometry_Type | giveGeometryType () const override |
| const Element_Geometry_Type | giveBoundaryGeometryType (int boundary) const override |
| integrationDomain | giveBoundaryIntegrationDomain (int ib, const Element_Geometry_Type) const override |
| Returns boundary integration domain. | |
| integrationDomain | giveBoundarySurfaceIntegrationDomain (int isurf, const Element_Geometry_Type) const override |
| Returns boundary integration domain. | |
| integrationDomain | giveBoundaryEdgeIntegrationDomain (int iedge, const Element_Geometry_Type) const override |
| Returns boundary integration domain. | |
| int | giveNsd (const Element_Geometry_Type) const override |
| IntArray | boundaryEdgeGiveNodes (int boundary, const Element_Geometry_Type, bool includeHierarchical=false) const override |
| void | boundaryEdgeEvalN (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | boundaryEdgeGiveTransformationJacobian (int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | boundaryEdgeLocal2Global (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | boundaryEdgeEvalNormal (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | boundarySurfaceEvalN (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | boundarySurfaceEvaldNdx (FloatMatrix &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | boundarySurfaceEvalNormal (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | boundarySurfaceLocal2global (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | boundarySurfaceGiveTransformationJacobian (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| IntArray | boundarySurfaceGiveNodes (int boundary, const Element_Geometry_Type, bool includeHierarchical=false) const override |
| IntArray | boundaryGiveNodes (int boundary, const Element_Geometry_Type) const override |
| void | boundaryEvalN (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | boundaryEvalNormal (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| double | boundaryGiveTransformationJacobian (int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| void | boundaryLocal2Global (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override |
| int | giveNumberOfKnotSpans (int dim) const override |
| virtual int | giveNumberOfControlPoints (int dim) const |
| const FloatArray * | giveKnotVector () const override |
| const IntArray * | giveKnotMultiplicity (int dim) const override |
| const FloatArray * | giveKnotValues (int dim) const override |
| int | giveKnotSpanBasisFuncMask (const IntArray &knotSpan, IntArray &mask) const override |
| int | giveNumberOfKnotSpanBasisFunctions (const IntArray &knotSpan) const override |
| const char * | giveClassName () const |
| bool | hasSubPatchFormulation () const override |
| std::unique_ptr< IntegrationRule > | giveIntegrationRule (int order, const Element_Geometry_Type) const override |
| std::unique_ptr< IntegrationRule > | giveBoundaryIntegrationRule (int order, int boundary, Element_Geometry_Type) const override |
| std::unique_ptr< IntegrationRule > | giveBoundaryEdgeIntegrationRule (int order, int boundary, Element_Geometry_Type) const override |
| Public Member Functions inherited from oofem::FEInterpolation | |
| FEInterpolation (int o) | |
| virtual | ~FEInterpolation ()=default |
| int | giveInterpolationOrder () const |
| virtual void | giveCellDofMans (IntArray &nodes, IntArray &internalDofMans, Element *elem) const |
| Returns list of element nodes (and list of internal dof managers) (including on edges and surfaces) defining the approximation. | |
| virtual void | evald2Ndx2 (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const |
| virtual void | evaldNdxi (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const |
| virtual void | giveLocalNodeCoords (FloatMatrix &answer, const Element_Geometry_Type) const |
| virtual double | giveTransformationJacobian (const FloatArray &lcoords, const FEICellGeometry &cellgeo) const |
| virtual std::unique_ptr< IntegrationRule > | giveBoundarySurfaceIntegrationRule (int order, int boundary, const Element_Geometry_Type) const |
| virtual double | evalNXIntegral (int boundary, const FEICellGeometry &cellgeo) const |
| virtual void | surfaceEvaldNdxi (FloatMatrix &answer, const FloatArray &lcoords) const |
| virtual void | surfaceEvald2Ndxi2 (FloatMatrix &answer, const FloatArray &lcoords) const |
| virtual int | giveNumberOfEdges (const Element_Geometry_Type) const |
| virtual int | giveNumberOfNodes (const Element_Geometry_Type) const |
| virtual void | initializeCell (Element *e) const |
| std::string | errorInfo (const char *func) const |
Protected Attributes | |
| FloatArray | weights |
| Protected Attributes inherited from oofem::BSplineInterpolation | |
| int | nsd |
| Number of spatial directions. | |
| std::array< int, 3 > | degree |
| Degree in each direction. | |
| std::array< FloatArray, 3 > | knotValues |
| Knot values [nsd]. | |
| std::array< IntArray, 3 > | knotMultiplicity |
| Knot multiplicity [nsd]. | |
| std::array< int, 3 > | numberOfControlPoints |
| numberOfControlPoints[nsd] | |
| std::array< FloatArray, 3 > | knotVector |
| Knot vectors [nsd][knot_vector_size]. | |
| std::array< int, 3 > | numberOfKnotSpans |
| Nonzero spans in each directions [nsd]. | |
| Protected Attributes inherited from oofem::FEInterpolation | |
| int | order = 0 |
Static Protected Attributes | |
| static ParamKey | IPK_NURBSInterpolation_weights |
| Static Protected Attributes inherited from oofem::BSplineInterpolation | |
| static ParamKey | IPK_BSplineInterpolation_degree |
| static ParamKey | IPK_BSplineInterpolation_knotVectorU |
| static ParamKey | IPK_BSplineInterpolation_knotVectorV |
| static ParamKey | IPK_BSplineInterpolation_knotVectorW |
| static ParamKey | IPK_BSplineInterpolation_knotMultiplicityU |
| static ParamKey | IPK_BSplineInterpolation_knotMultiplicityV |
| static ParamKey | IPK_BSplineInterpolation_knotMultiplicityW |
Additional Inherited Members | |
| void | basisFuns (FloatArray &N, int span, double u, int p, const FloatArray &U) const |
| void | dersBasisFuns (int n, double u, int span, int p, const FloatArray &U, FloatMatrix &ders) const |
| int | findSpan (int n, int p, double u, const FloatArray &U) const |
| void | giveNonzeroBasisFuncInterval (int span, int deg, int &s, int &e) const |
Interpolation class for NURBS.
Definition at line 53 of file feinurbs.h.
|
inline |
Definition at line 60 of file feinurbs.h.
References oofem::BSplineInterpolation::BSplineInterpolation(), and oofem::BSplineInterpolation::nsd.
|
overridevirtual |
Evaluates the matrix of derivatives of interpolation functions (shape functions) at given point. These derivatives are in global coordinate system (where the nodal coordinates are defined)
| answer | Contains resulting matrix of derivatives, the member at i,j position contains value of dNi/dxj. |
| lcoords | Array containing (local) coordinates. |
| cellgeo | Underlying cell geometry. |
Reimplemented from oofem::BSplineInterpolation.
Definition at line 130 of file feinurbs.C.
References oofem::BSplineInterpolation::degree, oofem::BSplineInterpolation::dersBasisFuns(), oofem::BSplineInterpolation::findSpan(), oofem::FloatMatrix::giveDeterminant(), oofem::BSplineInterpolation::giveNumberOfKnotSpanBasisFunctions(), oofem::FEICellGeometry::giveVertexCoordinates(), oofem::FEIIGAElementGeometryWrapper::knotSpan, oofem::BSplineInterpolation::knotVector, N, oofem::BSplineInterpolation::nsd, oofem::BSplineInterpolation::numberOfControlPoints, OOFEM_ERROR, oofem::product(), oofem::FloatArray::resize(), oofem::FloatMatrix::resize(), weights, oofem::FloatArray::zero(), and oofem::FloatMatrix::zero().
|
overridevirtual |
Evaluates the array of interpolation functions (shape functions) at given point.
| answer | Contains resulting array of evaluated interpolation functions. |
| lcoords | Array containing (local) coordinates. |
| cellgeo | Underlying cell geometry. |
Reimplemented from oofem::BSplineInterpolation.
Definition at line 62 of file feinurbs.C.
References oofem::FloatArray::at(), oofem::BSplineInterpolation::basisFuns(), oofem::BSplineInterpolation::degree, oofem::BSplineInterpolation::findSpan(), oofem::BSplineInterpolation::giveNumberOfKnotSpanBasisFunctions(), oofem::FEIIGAElementGeometryWrapper::knotSpan, oofem::BSplineInterpolation::knotVector, N, oofem::BSplineInterpolation::nsd, oofem::BSplineInterpolation::numberOfControlPoints, OOFEM_ERROR, oofem::FloatArray::resize(), oofem::sum(), oofem::FloatArray::times(), and weights.
|
inline |
Definition at line 73 of file feinurbs.h.
|
overridevirtual |
Gives the jacobian matrix at the local coordinates.
| jacobianMatrix | The requested matrix. |
| lcoords | Local coordinates. |
| cellgeo | Element geometry. |
Reimplemented from oofem::BSplineInterpolation.
Definition at line 656 of file feinurbs.C.
References oofem::BSplineInterpolation::degree, oofem::BSplineInterpolation::dersBasisFuns(), oofem::BSplineInterpolation::findSpan(), oofem::FEICellGeometry::giveVertexCoordinates(), oofem::FEIIGAElementGeometryWrapper::knotSpan, oofem::BSplineInterpolation::knotVector, oofem::BSplineInterpolation::nsd, oofem::BSplineInterpolation::numberOfControlPoints, OOFEM_ERROR, oofem::FloatArray::resize(), oofem::FloatMatrix::resize(), weights, oofem::FloatArray::zero(), and oofem::FloatMatrix::zero().
|
inlineoverridevirtual |
Evaluates local coordinates from given global ones. If local coordinates cannot be found (generate elements, or point far outside geometry, then the center coordinate will be used as a last resort, and the return value will be zero.
| answer | Contains evaluated local coordinates. |
| gcoords | Array containing global coordinates. |
| cellgeo | Underlying cell geometry. |
Reimplemented from oofem::BSplineInterpolation.
Definition at line 68 of file feinurbs.h.
References OOFEM_ERROR.
|
overridevirtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::BSplineInterpolation.
Definition at line 49 of file feinurbs.C.
References IPK_NURBSInterpolation_weights, PM_UPDATE_PARAMETER, and weights.
|
overridevirtual |
Evaluates global coordinates from given local ones.
| answer | Contains resulting global coordinates. |
| lcoords | Array containing (local) coordinates. |
| cellgeo | Underlying cell geometry. |
Reimplemented from oofem::BSplineInterpolation.
Definition at line 559 of file feinurbs.C.
References oofem::BSplineInterpolation::basisFuns(), oofem::BSplineInterpolation::degree, oofem::BSplineInterpolation::findSpan(), oofem::FEICellGeometry::giveVertexCoordinates(), oofem::FEIIGAElementGeometryWrapper::knotSpan, oofem::BSplineInterpolation::knotVector, N, oofem::BSplineInterpolation::nsd, oofem::BSplineInterpolation::numberOfControlPoints, OOFEM_ERROR, oofem::FloatArray::resize(), oofem::FloatArray::times(), weights, and oofem::FloatArray::zero().
|
overridevirtual |
Reimplemented from oofem::BSplineInterpolation.
Definition at line 56 of file feinurbs.C.
References IPK_NURBSInterpolation_weights, and PM_ELEMENT_ERROR_IFNOTSET.
|
staticprotected |
Definition at line 57 of file feinurbs.h.
Referenced by initializeFrom(), and postInitialize().
|
protected |
Definition at line 56 of file feinurbs.h.
Referenced by evaldNdx(), evalN(), giveJacobianMatrixAt(), initializeFrom(), and local2global().