OOFEM 3.0
Loading...
Searching...
No Matches
oofem::NURBSInterpolation Class Reference

#include <feinurbs.h>

Inheritance diagram for oofem::NURBSInterpolation:
Collaboration diagram for oofem::NURBSInterpolation:

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 FloatArraygiveKnotVector () const override
const IntArraygiveKnotMultiplicity (int dim) const override
const FloatArraygiveKnotValues (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< IntegrationRulegiveIntegrationRule (int order, const Element_Geometry_Type) const override
std::unique_ptr< IntegrationRulegiveBoundaryIntegrationRule (int order, int boundary, Element_Geometry_Type) const override
std::unique_ptr< IntegrationRulegiveBoundaryEdgeIntegrationRule (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< IntegrationRulegiveBoundarySurfaceIntegrationRule (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

Detailed Description

Interpolation class for NURBS.

Definition at line 53 of file feinurbs.h.

Constructor & Destructor Documentation

◆ NURBSInterpolation()

oofem::NURBSInterpolation::NURBSInterpolation ( int nsd)
inline

Member Function Documentation

◆ evaldNdx()

double oofem::NURBSInterpolation::evaldNdx ( FloatMatrix & answer,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
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)

Parameters
answerContains resulting matrix of derivatives, the member at i,j position contains value of dNi/dxj.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.
Returns
Determinant of the Jacobian.

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().

◆ evalN()

void oofem::NURBSInterpolation::evalN ( FloatArray & answer,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the array of interpolation functions (shape functions) at given point.

Parameters
answerContains resulting array of evaluated interpolation functions.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying 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.

◆ giveClassName()

const char * oofem::NURBSInterpolation::giveClassName ( ) const
inline

Definition at line 73 of file feinurbs.h.

◆ giveJacobianMatrixAt()

void oofem::NURBSInterpolation::giveJacobianMatrixAt ( FloatMatrix & jacobianMatrix,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

◆ global2local()

int oofem::NURBSInterpolation::global2local ( FloatArray & answer,
const FloatArray & gcoords,
const FEICellGeometry & cellgeo ) const
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.

Parameters
answerContains evaluated local coordinates.
gcoordsArray containing global coordinates.
cellgeoUnderlying cell geometry.
Returns
Nonzero is returned if point is within the element geometry, zero otherwise.

Reimplemented from oofem::BSplineInterpolation.

Definition at line 68 of file feinurbs.h.

References OOFEM_ERROR.

◆ initializeFrom()

void oofem::NURBSInterpolation::initializeFrom ( InputRecord & ir,
ParameterManager & pm,
int elnum,
int priority )
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.

◆ local2global()

void oofem::NURBSInterpolation::local2global ( FloatArray & answer,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

◆ postInitialize()

void oofem::NURBSInterpolation::postInitialize ( ParameterManager & pm,
int elnum )
overridevirtual

Reimplemented from oofem::BSplineInterpolation.

Definition at line 56 of file feinurbs.C.

References IPK_NURBSInterpolation_weights, and PM_ELEMENT_ERROR_IFNOTSET.

Member Data Documentation

◆ IPK_NURBSInterpolation_weights

ParamKey oofem::NURBSInterpolation::IPK_NURBSInterpolation_weights
staticprotected

Definition at line 57 of file feinurbs.h.

Referenced by initializeFrom(), and postInitialize().

◆ weights

FloatArray oofem::NURBSInterpolation::weights
protected

Definition at line 56 of file feinurbs.h.

Referenced by evaldNdx(), evalN(), giveJacobianMatrixAt(), initializeFrom(), and local2global().


The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011