OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::FEInterpolation1d Class Reference

Class representing a general abstraction for finite element interpolation class. More...

#include <feinterpol1d.h>

+ Inheritance diagram for oofem::FEInterpolation1d:
+ Collaboration diagram for oofem::FEInterpolation1d:

Public Member Functions

 FEInterpolation1d (int o)
 
virtual int giveNsd ()
 Returns number of spatial dimensions. More...
 
virtual void boundaryGiveNodes (IntArray &answer, int boundary)
 Gives the boundary nodes for requested boundary number. More...
 
virtual void boundaryEvalN (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the basis functions on the requested boundary. More...
 
virtual double boundaryEvalNormal (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the normal on the requested boundary. More...
 
virtual double boundaryGiveTransformationJacobian (int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the determinant of the transformation Jacobian on the requested boundary. More...
 
virtual void boundaryLocal2Global (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Maps the local boundary coordinates to global. More...
 
virtual double giveLength (const FEICellGeometry &cellgeo) const
 Computes the exact length. More...
 
virtual IntegrationRulegiveIntegrationRule (int order)
 Sets up a suitable integration rule for numerical integrating over volume. More...
 
virtual IntegrationRulegiveBoundaryIntegrationRule (int order, int boundary)
 Sets up a suitable integration rule for integrating over the requested boundary. More...
 
virtual IntegrationRulegiveBoundaryEdgeIntegrationRule (int order, int boundary)
 Sets up a suitable integration rule for integrating over the requested boundary. More...
 
Surface interpolation services
virtual void boundarySurfaceEvalN (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the array of edge interpolation functions (shape functions) at given point. More...
 
virtual void boundarySurfaceEvaldNdx (FloatMatrix &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the matrix of derivatives of edge interpolation functions (shape functions) at given point. More...
 
virtual double boundarySurfaceEvalNormal (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the normal out of the surface at given point. More...
 
virtual void boundarySurfaceLocal2global (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates edge global coordinates from given local ones. More...
 
virtual double boundarySurfaceGiveTransformationJacobian (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the edge jacobian of transformation between local and global coordinates. More...
 
virtual void boundarySurfaceGiveNodes (IntArray &answer, int boundary)
 Gives the boundary nodes for requested boundary number. More...
 
- Public Member Functions inherited from oofem::FEInterpolation
 FEInterpolation (int o)
 
virtual ~FEInterpolation ()
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
virtual int giveNumberOfNodes () const
 Returns the number of geometric nodes of the receiver. More...
 
std::string errorInfo (const char *func) const
 
virtual integrationDomain giveIntegrationDomain () const =0
 Returns the integration domain of the interpolator. More...
 
virtual Element_Geometry_Type giveGeometryType () const =0
 Returns the geometry type fo the interpolator. More...
 
int giveInterpolationOrder ()
 Returns the interpolation order. More...
 
virtual void evalN (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
 Evaluates the array of interpolation functions (shape functions) at given point. More...
 
virtual double evaldNdx (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
 Evaluates the matrix of derivatives of interpolation functions (shape functions) at given point. More...
 
virtual void evald2Ndx2 (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the matrix of second derivatives of interpolation functions (shape functions) at given point. More...
 
virtual void evaldNdxi (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the matrix of derivatives of interpolation functions (shape functions) at given point. More...
 
virtual void giveLocalNodeCoords (FloatMatrix &answer)
 Returns a matrix containing the local coordinates for each node corresponding to the interpolation. More...
 
virtual void local2global (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
 Evaluates global coordinates from given local ones. More...
 
virtual int global2local (FloatArray &answer, const FloatArray &gcoords, const FEICellGeometry &cellgeo)=0
 Evaluates local coordinates from given global ones. More...
 
virtual double giveTransformationJacobian (const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the determinant of the transformation. More...
 
virtual void giveJacobianMatrixAt (FloatMatrix &jacobianMatrix, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Gives the jacobian matrix at the local coordinates. More...
 
virtual void boundaryEdgeEvalN (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
 Evaluates the basis functions on the requested boundary. More...
 
virtual double boundaryEdgeGiveTransformationJacobian (int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
 Evaluates the determinant of the transformation Jacobian on the requested boundary. More...
 
virtual void boundaryEdgeLocal2Global (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
 Maps the local boundary coordinates to global. More...
 
virtual integrationDomain giveBoundaryEdgeIntegrationDomain (int boundary) const =0
 Returns boundary integration domain. More...
 
virtual void boundaryEdgeGiveNodes (IntArray &answer, int boundary)=0
 Gives the boundary nodes for requested boundary number. More...
 
virtual integrationDomain giveBoundarySurfaceIntegrationDomain (int boundary) const =0
 Returns boundary integration domain. More...
 
virtual IntegrationRulegiveBoundarySurfaceIntegrationRule (int order, int boundary)
 Sets up a suitable integration rule for integrating over the requested boundary. More...
 
virtual double evalNXIntegral (int boundary, const FEICellGeometry &cellgeo)
 Computes the integral $ \int_S n \cdot x \mathrm{d}s $. More...
 
virtual integrationDomain giveBoundaryIntegrationDomain (int boundary) const =0
 Returns boundary integration domain. More...
 
virtual int giveKnotSpanBasisFuncMask (const IntArray &knotSpan, IntArray &mask)
 Returns indices (zero based) of nonzero basis functions for given knot span. More...
 
virtual int giveNumberOfKnotSpanBasisFunctions (const IntArray &knotSpan)
 Returns the number of nonzero basis functions at individual knot span,. More...
 
virtual bool hasSubPatchFormulation ()
 Returns true, if receiver is formulated on sub-patch basis. More...
 
virtual const double *const * giveKnotVector ()
 Returns the subdivision of patch parametric space. More...
 
virtual int giveNumberOfKnotSpans (int dim)
 Returns the number of knot spans of the receiver. More...
 
virtual const FloatArraygiveKnotValues (int dim)
 Returns the knot values of the receiver. More...
 
virtual const IntArraygiveKnotMultiplicity (int dim)
 Returns the knot multiplicity of the receiver. More...
 
virtual int giveNumberOfEdges () const
 Returns number of edges. More...
 

Additional Inherited Members

- Protected Attributes inherited from oofem::FEInterpolation
int order
 

Detailed Description

Class representing a general abstraction for finite element interpolation class.

Definition at line 44 of file feinterpol1d.h.

Constructor & Destructor Documentation

oofem::FEInterpolation1d::FEInterpolation1d ( int  o)
inline

Definition at line 47 of file feinterpol1d.h.

Member Function Documentation

void oofem::FEInterpolation1d::boundaryEvalN ( FloatArray answer,
int  boundary,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

Evaluates the basis functions on the requested boundary.

Only basis functions that are nonzero anywhere on the boundary are given. Ordering can be obtained from giveBoundaryNodes. Boundaries are defined as the corner nodes for 1D geometries, edges for 2D geometries and surfaces for 3D geometries.

Parameters
answerBasis functions Array to be filled with the boundary nodes.
boundaryBoundary number.
lcoordsThe local coordinates (on the boundary local coordinate system).
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation.

Definition at line 42 of file feinterpol1d.C.

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

double oofem::FEInterpolation1d::boundaryEvalNormal ( FloatArray answer,
int  boundary,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

Evaluates the normal on the requested boundary.

Parameters
answerThe evaluated normal.
boundaryBoundary number.
lcoordsThe local coordinates (on the boundary local coordinate system).
cellgeoUnderlying cell geometry.
Returns
The boundary transformation Jacobian.

Implements oofem::FEInterpolation.

Definition at line 53 of file feinterpol1d.C.

References OOFEM_ERROR.

void oofem::FEInterpolation1d::boundaryGiveNodes ( IntArray answer,
int  boundary 
)
virtual

Gives the boundary nodes for requested boundary number.

Boundaries are defined as the corner nodes for 1D geometries, edges for 2D geometries and surfaces for 3D geometries.

Parameters
answerArray to be filled with the boundary nodes.
boundaryBoundary number.

Implements oofem::FEInterpolation.

Definition at line 48 of file feinterpol1d.C.

References OOFEM_ERROR.

double oofem::FEInterpolation1d::boundaryGiveTransformationJacobian ( int  boundary,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

Evaluates the determinant of the transformation Jacobian on the requested boundary.

Boundaries are defined as the corner nodes for 1D geometries, edges for 2D geometries and surfaces for 3D geometries.

Parameters
boundaryBoundary number.
lcoordsThe local coordinates (on the boundary local coordinate system).
cellgeoUnderlying cell geometry.
Returns
The determinant of the boundary transformation Jacobian.

Implements oofem::FEInterpolation.

Definition at line 59 of file feinterpol1d.C.

void oofem::FEInterpolation1d::boundaryLocal2Global ( FloatArray answer,
int  boundary,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

Maps the local boundary coordinates to global.

Boundaries are defined as the corner nodes for 1D geometries, edges for 2D geometries and surfaces for 3D geometries.

Parameters
answerGlobal coordinates.
boundaryBoundary number.
lcoordsThe local coordinates (on the boundary local coordinate system).
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation.

Definition at line 64 of file feinterpol1d.C.

References oofem::FEICellGeometry::giveVertexCoordinates().

virtual void oofem::FEInterpolation1d::boundarySurfaceEvaldNdx ( FloatMatrix answer,
int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
inlinevirtual

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.
isurfDetermines the surface number.
lcoordsArray containing (local) coordinates.
cellgeoUnderlying cell geometry.

Implements oofem::FEInterpolation.

Definition at line 61 of file feinterpol1d.h.

References OOFEM_ERROR.

virtual void oofem::FEInterpolation1d::boundarySurfaceEvalN ( FloatArray answer,
int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
inlinevirtual

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::FEInterpolation.

Definition at line 60 of file feinterpol1d.h.

References OOFEM_ERROR.

virtual double oofem::FEInterpolation1d::boundarySurfaceEvalNormal ( FloatArray answer,
int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
inlinevirtual

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.

Implements oofem::FEInterpolation.

Definition at line 64 of file feinterpol1d.h.

References OOFEM_ERROR.

virtual void oofem::FEInterpolation1d::boundarySurfaceGiveNodes ( IntArray answer,
int  boundary 
)
inlinevirtual

Gives the boundary nodes for requested boundary number.

Parameters
answerArray to be filled with the boundary nodes.
boundaryBoundary number.

Implements oofem::FEInterpolation.

Definition at line 73 of file feinterpol1d.h.

References OOFEM_ERROR.

virtual double oofem::FEInterpolation1d::boundarySurfaceGiveTransformationJacobian ( int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
inlinevirtual

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::FEInterpolation.

Definition at line 70 of file feinterpol1d.h.

References OOFEM_ERROR.

virtual void oofem::FEInterpolation1d::boundarySurfaceLocal2global ( FloatArray answer,
int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
inlinevirtual

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::FEInterpolation.

Definition at line 67 of file feinterpol1d.h.

References OOFEM_ERROR.

IntegrationRule * oofem::FEInterpolation1d::giveBoundaryEdgeIntegrationRule ( int  order,
int  boundary 
)
virtual

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.

Reimplemented from oofem::FEInterpolation.

Definition at line 84 of file feinterpol1d.C.

References giveIntegrationRule().

IntegrationRule * oofem::FEInterpolation1d::giveBoundaryIntegrationRule ( int  order,
int  boundary 
)
virtual

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.

Reimplemented from oofem::FEInterpolation.

Definition at line 77 of file feinterpol1d.C.

References oofem::IntegrationRule::SetUpPoint().

IntegrationRule * oofem::FEInterpolation1d::giveIntegrationRule ( int  order)
virtual

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 69 of file feinterpol1d.C.

References oofem::_Line, oofem::IntegrationRule::getRequiredNumberOfIntegrationPoints(), and oofem::IntegrationRule::SetUpPointsOnLine().

Referenced by giveBoundaryEdgeIntegrationRule().

virtual double oofem::FEInterpolation1d::giveLength ( const FEICellGeometry cellgeo) const
inlinevirtual

Computes the exact length.

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

Reimplemented in oofem::FEI1dLin, oofem::FEI1dQuad, and oofem::FEI1dHermite.

Definition at line 85 of file feinterpol1d.h.

References OOFEM_ERROR.

Referenced by oofem::Element::computeLength().

virtual int oofem::FEInterpolation1d::giveNsd ( )
inlinevirtual

Returns number of spatial dimensions.

Implements oofem::FEInterpolation.

Definition at line 48 of file feinterpol1d.h.


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:35 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011