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

#include <fei3dlinelin.h>

Inheritance diagram for oofem::FEI3dLineLin:
Collaboration diagram for oofem::FEI3dLineLin:

Public Member Functions

 FEI3dLineLin ()
integrationDomain giveIntegrationDomain (const Element_Geometry_Type) 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.
double giveVolume (const FEICellGeometry &cellgeo) const override
double giveLength (const FEICellGeometry &cellgeo) const
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 evald2Ndx2 (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 &gcoords, const FEICellGeometry &cellgeo) const override
double giveTransformationJacobian (const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
void edgeEvalN (FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
void edgeEvaldNdx (FloatMatrix &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
void edgeLocal2global (FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
double edgeGiveTransformationJacobian (int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
IntArray computeLocalEdgeMapping (int iedge) const override
void surfaceEvalN (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
double surfaceEvalNormal (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
void surfaceLocal2global (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
double surfaceGiveTransformationJacobian (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
IntArray computeLocalSurfaceMapping (int isurf) const override
void giveJacobianMatrixAt (FloatMatrix &jacobianMatrix, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const override
int giveNumberOfNodes (const Element_Geometry_Type) const override
std::unique_ptr< IntegrationRulegiveIntegrationRule (int order, const Element_Geometry_Type) const override
std::unique_ptr< IntegrationRulegiveBoundaryIntegrationRule (int order, int boundary, const Element_Geometry_Type) const override
Public Member Functions inherited from oofem::FEInterpolation3d
 FEInterpolation3d (int o)
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
FloatMatrixF< 3, 3 > surfaceGiveJacobianMatrixAt (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
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
virtual double edgeEvalNormal (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
virtual void edgeEvaldNdxi (FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
IntArray computeEdgeMapping (const IntArray &elemNodes, int iedge) const
virtual void surfaceEvaldNdx (FloatMatrix &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
void surfaceEvaldNdxi (FloatMatrix &answer, const FloatArray &lcoords) const override
void surfaceEvald2Ndxi2 (FloatMatrix &answer, const FloatArray &lcoords) const override
virtual std::tuple< FloatArrayF< 3 >, FloatArrayF< 3 > > surfaceEvalBaseVectorsAt (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
virtual std::tuple< double, FloatArrayF< 3 > > surfaceEvalUnitNormal (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
IntArray computeSurfaceMapping (const IntArray &elemNodes, int isurf) const
std::unique_ptr< IntegrationRulegiveBoundaryEdgeIntegrationRule (int order, int boundary, const Element_Geometry_Type) const override
std::unique_ptr< IntegrationRulegiveBoundaryIntegrationRule (int _order, int boundary, const Element_Geometry_Type) const override
IntArray boundarySurfaceGiveNodes (int boundary, Element_Geometry_Type, bool includeHierarchical=false) const override
Public Member Functions inherited from oofem::FEInterpolation
 FEInterpolation (int o)
virtual ~FEInterpolation ()=default
virtual void initializeFrom (InputRecord &ir, ParameterManager &pm, int elnum, int priority)
 Initializes receiver according to object description stored in input record.
virtual void postInitialize (ParameterManager &pm, int elnum)
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 evaldNdxi (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo) const
virtual void giveLocalNodeCoords (FloatMatrix &answer, const Element_Geometry_Type) 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 int giveKnotSpanBasisFuncMask (const IntArray &knotSpan, IntArray &mask) const
virtual int giveNumberOfKnotSpanBasisFunctions (const IntArray &knotSpan) const
virtual bool hasSubPatchFormulation () const
virtual const FloatArraygiveKnotVector () const
virtual int giveNumberOfKnotSpans (int dim) const
virtual const FloatArraygiveKnotValues (int dim) const
virtual const IntArraygiveKnotMultiplicity (int dim) const
virtual int giveNumberOfEdges (const Element_Geometry_Type) const
virtual void initializeCell (Element *e) const
std::string errorInfo (const char *func) const

Additional Inherited Members

Protected Attributes inherited from oofem::FEInterpolation
int order = 0

Detailed Description

Class representing a linear line interpolation in 3D.

Definition at line 44 of file fei3dlinelin.h.

Constructor & Destructor Documentation

◆ FEI3dLineLin()

oofem::FEI3dLineLin::FEI3dLineLin ( )
inline

Definition at line 47 of file fei3dlinelin.h.

References oofem::FEInterpolation3d::FEInterpolation3d().

Member Function Documentation

◆ computeLocalEdgeMapping()

IntArray oofem::FEI3dLineLin::computeLocalEdgeMapping ( int iedge) const
overridevirtual

Implements oofem::FEInterpolation3d.

Definition at line 151 of file fei3dlinelin.C.

References OOFEM_ERROR.

◆ computeLocalSurfaceMapping()

IntArray oofem::FEI3dLineLin::computeLocalSurfaceMapping ( int isurf) const
overridevirtual

Implements oofem::FEInterpolation3d.

Definition at line 188 of file fei3dlinelin.C.

References OOFEM_ERROR.

◆ edgeEvaldNdx()

void oofem::FEI3dLineLin::edgeEvaldNdx ( FloatMatrix & answer,
int iedge,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the matrix of derivatives of edge 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 dNj/dxi.
iedgeDetermines the edge number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation3d.

Definition at line 125 of file fei3dlinelin.C.

References oofem::FloatMatrix::at(), giveLength(), and oofem::FloatMatrix::resize().

◆ edgeEvalN()

void oofem::FEI3dLineLin::edgeEvalN ( FloatArray & answer,
int iedge,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

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

Parameters
answerContains resulting array of evaluated interpolation functions.
iedgeEdge number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation3d.

Definition at line 119 of file fei3dlinelin.C.

References evalN().

◆ edgeGiveTransformationJacobian()

double oofem::FEI3dLineLin::edgeGiveTransformationJacobian ( int iedge,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the edge jacobian of transformation between local and global coordinates.

Parameters
iedgeDetermines edge number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.
Returns
Determinant of the transformation.

Implements oofem::FEInterpolation3d.

Definition at line 144 of file fei3dlinelin.C.

References giveTransformationJacobian().

◆ edgeLocal2global()

void oofem::FEI3dLineLin::edgeLocal2global ( FloatArray & answer,
int iedge,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates edge global coordinates from given local ones. These derivatives are in global coordinate system (where the nodal coordinates are defined).

Parameters
answerContains resulting global coordinates.
iedgeDetermines edge number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation3d.

Definition at line 136 of file fei3dlinelin.C.

References local2global().

◆ evald2Ndx2()

void oofem::FEI3dLineLin::evald2Ndx2 ( FloatMatrix & answer,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the matrix of second 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.
Todo
Check this part

Reimplemented from oofem::FEInterpolation.

Definition at line 80 of file fei3dlinelin.C.

References oofem::FloatMatrix::resize(), and oofem::FloatMatrix::zero().

◆ evaldNdx()

double oofem::FEI3dLineLin::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.
Todo
Not clear what this function should return. Just dNds would make sense if the caller defines a local coordinate system.

Implements oofem::FEInterpolation.

Definition at line 59 of file fei3dlinelin.C.

References oofem::FloatArray::at(), oofem::FloatMatrix::at(), oofem::FloatArray::beDifferenceOf(), oofem::FloatArray::computeSquaredNorm(), oofem::FEICellGeometry::giveVertexCoordinates(), and oofem::FloatMatrix::resize().

◆ evalN()

void oofem::FEI3dLineLin::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.

Implements oofem::FEInterpolation.

Definition at line 49 of file fei3dlinelin.C.

References oofem::FloatArray::at(), and oofem::FloatArray::resize().

Referenced by edgeEvalN().

◆ giveBoundaryEdgeIntegrationDomain()

integrationDomain oofem::FEI3dLineLin::giveBoundaryEdgeIntegrationDomain ( int boundary,
const Element_Geometry_Type  ) const
inlineoverridevirtual

Returns boundary integration domain.

Implements oofem::FEInterpolation.

Definition at line 54 of file fei3dlinelin.h.

References oofem::_UnknownIntegrationDomain.

◆ giveBoundaryGeometryType()

const Element_Geometry_Type oofem::FEI3dLineLin::giveBoundaryGeometryType ( int boundary) const
inlineoverridevirtual

Returns boundary geometry type

Implements oofem::FEInterpolation.

Definition at line 51 of file fei3dlinelin.h.

◆ giveBoundaryIntegrationDomain()

integrationDomain oofem::FEI3dLineLin::giveBoundaryIntegrationDomain ( int boundary,
const Element_Geometry_Type  ) const
inlineoverridevirtual

Returns boundary integration domain.

Implements oofem::FEInterpolation.

Definition at line 52 of file fei3dlinelin.h.

References oofem::_Point.

◆ giveBoundaryIntegrationRule()

std::unique_ptr< IntegrationRule > oofem::FEI3dLineLin::giveBoundaryIntegrationRule ( int order,
int boundary,
const Element_Geometry_Type egt ) const
overridevirtual

Sets up a suitable integration rule for integrating over the requested boundary. The required polynomial order for the determinant of the jacobian is added automatically.

Parameters
orderPolynomial order of the integrand (should NOT including determinant of jacobian).
boundaryBoundary number.
Todo
Not sure about this.

Reimplemented from oofem::FEInterpolation.

Definition at line 214 of file fei3dlinelin.C.

References OOFEM_ERROR, and oofem::FEInterpolation::order.

◆ giveBoundarySurfaceIntegrationDomain()

integrationDomain oofem::FEI3dLineLin::giveBoundarySurfaceIntegrationDomain ( int boundary,
const Element_Geometry_Type  ) const
inlineoverridevirtual

Returns boundary integration domain.

Implements oofem::FEInterpolation.

Definition at line 53 of file fei3dlinelin.h.

References oofem::_UnknownIntegrationDomain.

◆ giveGeometryType()

const Element_Geometry_Type oofem::FEI3dLineLin::giveGeometryType ( ) const
inlineoverridevirtual

Returns the geometry type fo the interpolator.

Implements oofem::FEInterpolation.

Definition at line 50 of file fei3dlinelin.h.

◆ giveIntegrationDomain()

integrationDomain oofem::FEI3dLineLin::giveIntegrationDomain ( const Element_Geometry_Type ) const
inlineoverridevirtual

Returns the integration domain of the interpolator.

Implements oofem::FEInterpolation.

Definition at line 49 of file fei3dlinelin.h.

References oofem::_Line.

◆ giveIntegrationRule()

std::unique_ptr< IntegrationRule > oofem::FEI3dLineLin::giveIntegrationRule ( int order,
const Element_Geometry_Type egt ) const
overridevirtual

Sets up a suitable integration rule for numerical integrating over volume. The required polynomial order for the determinant of the jacobian is added automatically.

Parameters
orderPolynomial order of integrand (should NOT including determinant of jacobian).

Reimplemented from oofem::FEInterpolation.

Definition at line 205 of file fei3dlinelin.C.

References oofem::_Line, and oofem::FEInterpolation::order.

◆ giveJacobianMatrixAt()

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

Gives the jacobian matrix at the local coordinates.

Parameters
jacobianMatrixThe requested matrix.
lcoordsLocal coordinates.
cellgeoElement geometry.
Todo
Not sure about this matrix

Reimplemented from oofem::FEInterpolation.

Definition at line 196 of file fei3dlinelin.C.

◆ giveLength()

double oofem::FEI3dLineLin::giveLength ( const FEICellGeometry & cellgeo) const

◆ giveNumberOfNodes()

int oofem::FEI3dLineLin::giveNumberOfNodes ( const Element_Geometry_Type ) const
inlineoverridevirtual

Returns the number of geometric nodes of the receiver.

Reimplemented from oofem::FEInterpolation.

Definition at line 80 of file fei3dlinelin.h.

◆ giveTransformationJacobian()

double oofem::FEI3dLineLin::giveTransformationJacobian ( const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the determinant of the transformation.

Parameters
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.
Returns
Determinant of the transformation.

Reimplemented from oofem::FEInterpolation.

Definition at line 112 of file fei3dlinelin.C.

References giveLength().

Referenced by edgeGiveTransformationJacobian().

◆ giveVolume()

double oofem::FEI3dLineLin::giveVolume ( const FEICellGeometry & cellgeo) const
inlineoverridevirtual

Computes the exact volume.

Parameters
cellgeoCell geometry for the element.
Returns
Volume of geometry.

Reimplemented from oofem::FEInterpolation3d.

Definition at line 56 of file fei3dlinelin.h.

◆ global2local()

int oofem::FEI3dLineLin::global2local ( FloatArray & answer,
const FloatArray & gcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

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.

Implements oofem::FEInterpolation.

Definition at line 97 of file fei3dlinelin.C.

References oofem::FloatArray::at(), oofem::FloatArray::beDifferenceOf(), oofem::clamp(), oofem::FloatArray::computeSquaredNorm(), oofem::FloatArray::dotProduct(), oofem::FEICellGeometry::giveVertexCoordinates(), and oofem::Vec1().

◆ local2global()

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

Evaluates global coordinates from given local ones.

Parameters
answerContains resulting global coordinates.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation.

Definition at line 87 of file fei3dlinelin.C.

References oofem::FloatArray::add(), oofem::FloatArray::at(), oofem::FloatArray::beScaled(), and oofem::FEICellGeometry::giveVertexCoordinates().

Referenced by edgeLocal2global().

◆ surfaceEvalN()

void oofem::FEI3dLineLin::surfaceEvalN ( FloatArray & answer,
int isurf,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

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

Parameters
answerContains resulting array of evaluated interpolation functions.
isurfSurface number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation3d.

Definition at line 160 of file fei3dlinelin.C.

References OOFEM_ERROR.

◆ surfaceEvalNormal()

double oofem::FEI3dLineLin::surfaceEvalNormal ( FloatArray & answer,
int isurf,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the normal out of the surface at given point.

Parameters
answerContains resulting normal vector.
isurfDetermines the surface number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.
Returns
Surface mapping jacobian.

Reimplemented from oofem::FEInterpolation3d.

Definition at line 166 of file fei3dlinelin.C.

References OOFEM_ERROR.

◆ surfaceGiveTransformationJacobian()

double oofem::FEI3dLineLin::surfaceGiveTransformationJacobian ( int isurf,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates the edge jacobian of transformation between local and global coordinates.

Parameters
isurfDetermines the surface number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.
Returns
Determinant of the transformation.

Implements oofem::FEInterpolation3d.

Definition at line 180 of file fei3dlinelin.C.

References OOFEM_ERROR.

◆ surfaceLocal2global()

void oofem::FEI3dLineLin::surfaceLocal2global ( FloatArray & answer,
int isurf,
const FloatArray & lcoords,
const FEICellGeometry & cellgeo ) const
overridevirtual

Evaluates edge global coordinates from given local ones. These derivatives are in global coordinate system (where the nodal coordinates are defined).

Parameters
answerContains resulting global coordinates.
isurfDetermines the surface number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation3d.

Definition at line 173 of file fei3dlinelin.C.

References OOFEM_ERROR.


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