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

Class representing implementation of tri-quadratic hexahedra interpolation class. More...

#include <fei3dhexatriquad.h>

+ Inheritance diagram for oofem::FEI3dHexaTriQuad:
+ Collaboration diagram for oofem::FEI3dHexaTriQuad:

Public Member Functions

 FEI3dHexaTriQuad ()
 
virtual integrationDomain giveIntegrationDomain () const
 Returns the integration domain of the interpolator. More...
 
virtual Element_Geometry_Type giveGeometryType () const
 Returns the geometry type fo the interpolator. More...
 
virtual integrationDomain giveBoundaryIntegrationDomain (int ib) const
 Returns boundary integration domain. More...
 
virtual integrationDomain giveBoundarySurfaceIntegrationDomain (int isurf) const
 Returns boundary integration domain. More...
 
virtual integrationDomain giveBoundaryEdgeIntegrationDomain (int iedge) const
 Returns boundary integration domain. More...
 
virtual void evalN (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the array of interpolation functions (shape functions) at given point. More...
 
virtual int giveNumberOfNodes () const
 Returns the number of geometric nodes of the receiver. More...
 
virtual void surfaceEvalN (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the array of edge interpolation functions (shape functions) at given point. More...
 
virtual double surfaceEvalNormal (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the normal out of the surface at given point. More...
 
virtual void computeLocalSurfaceMapping (IntArray &nodes, int iSurf)
 
virtual double evalNXIntegral (int iSurf, const FEICellGeometry &cellgeo)
 Computes the integral $ \int_S n \cdot x \mathrm{d}s $. 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...
 
- Public Member Functions inherited from oofem::FEI3dHexaQuad
 FEI3dHexaQuad ()
 
virtual double giveCharacteristicLength (const FEICellGeometry &cellgeo) const
 
virtual double evaldNdx (FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the matrix of derivatives of interpolation functions (shape functions) at given point. More...
 
virtual void local2global (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates global coordinates from given local ones. More...
 
virtual int global2local (FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates local coordinates from given global ones. More...
 
virtual void edgeEvalN (FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the array of edge interpolation functions (shape functions) at given point. More...
 
virtual void edgeEvaldNdx (FloatMatrix &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the matrix of derivatives of edge interpolation functions (shape functions) at given point. More...
 
virtual void edgeLocal2global (FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates edge global coordinates from given local ones. More...
 
virtual double edgeGiveTransformationJacobian (int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the edge jacobian of transformation between local and global coordinates. More...
 
virtual void computeLocalEdgeMapping (IntArray &edgeNodes, int iedge)
 
virtual void surfaceEvaldNdx (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 void surfaceLocal2global (FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates edge global coordinates from given local ones. More...
 
virtual double surfaceGiveTransformationJacobian (int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the edge jacobian of transformation between local and global coordinates. More...
 
virtual void giveJacobianMatrixAt (FloatMatrix &jacobianMatrix, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Gives the jacobian matrix at the local coordinates. More...
 
- Public Member Functions inherited from oofem::FEInterpolation3d
 FEInterpolation3d (int o)
 
virtual int giveNsd ()
 Returns number of spatial dimensions. More...
 
virtual double giveVolume (const FEICellGeometry &cellgeo) const
 Computes the exact volume. More...
 
virtual void boundaryEdgeGiveNodes (IntArray &answer, int boundary)
 Gives the boundary nodes for requested boundary number. More...
 
virtual void boundaryEdgeEvalN (FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the basis functions on the requested boundary. More...
 
virtual double boundaryEdgeGiveTransformationJacobian (int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 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)
 Maps the local boundary coordinates to global. More...
 
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 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 IntegrationRulegiveBoundaryEdgeIntegrationRule (int order, int boundary)
 Sets up a suitable integration rule for integrating over the requested boundary. More...
 
virtual void boundarySurfaceGiveNodes (IntArray &answer, int boundary)
 Gives the boundary nodes for requested boundary number. More...
 
virtual void edgeEvaldNdxi (FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the matrix of derivatives of edge interpolation functions (shape functions) at given point. More...
 
void computeEdgeMapping (IntArray &edgeNodes, IntArray &elemNodes, int iedge)
 
void computeSurfaceMapping (IntArray &surfNodes, IntArray &elemNodes, int isurf)
 
- 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...
 
std::string errorInfo (const char *func) const
 
int giveInterpolationOrder ()
 Returns the interpolation order. 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 double giveTransformationJacobian (const FloatArray &lcoords, const FEICellGeometry &cellgeo)
 Evaluates the determinant of the transformation. More...
 
virtual IntegrationRulegiveBoundarySurfaceIntegrationRule (int order, int boundary)
 Sets up a suitable integration rule for integrating over the requested boundary. 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...
 

Protected Member Functions

virtual void giveLocalDerivative (FloatMatrix &dN, const FloatArray &lcoords)
 

Additional Inherited Members

- Protected Attributes inherited from oofem::FEInterpolation
int order
 

Detailed Description

Class representing implementation of tri-quadratic hexahedra interpolation class.

Author
Mikael Öhman

Definition at line 45 of file fei3dhexatriquad.h.

Constructor & Destructor Documentation

oofem::FEI3dHexaTriQuad::FEI3dHexaTriQuad ( )
inline

Definition at line 48 of file fei3dhexatriquad.h.

Member Function Documentation

void oofem::FEI3dHexaTriQuad::computeLocalSurfaceMapping ( IntArray nodes,
int  iSurf 
)
virtual
void oofem::FEI3dHexaTriQuad::evalN ( FloatArray answer,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

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

Definition at line 43 of file fei3dhexatriquad.C.

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

Referenced by oofem::Hexa21Stokes::computeField(), and oofem::Hexa21Stokes::computeLoadVector().

double oofem::FEI3dHexaTriQuad::evalNXIntegral ( int  boundary,
const FEICellGeometry cellgeo 
)
virtual

Computes the integral $ \int_S n \cdot x \mathrm{d}s $.

Parameters
boundaryBoundary number.
cellgeoUnderlying cell geometry.
Returns
Evaluated integral.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 354 of file fei3dhexatriquad.C.

References oofem::IntArray::at(), computeLocalSurfaceMapping(), and oofem::FEICellGeometry::giveVertexCoordinates().

virtual integrationDomain oofem::FEI3dHexaTriQuad::giveBoundaryEdgeIntegrationDomain ( int  boundary) const
inlinevirtual

Returns boundary integration domain.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 54 of file fei3dhexatriquad.h.

References oofem::_Line.

virtual integrationDomain oofem::FEI3dHexaTriQuad::giveBoundaryIntegrationDomain ( int  boundary) const
inlinevirtual

Returns boundary integration domain.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 52 of file fei3dhexatriquad.h.

References oofem::_Square.

IntegrationRule * oofem::FEI3dHexaTriQuad::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.
Todo:
Verify: Is +6 correct for dealing with "detJ" on this surface?

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 474 of file fei3dhexatriquad.C.

References oofem::_Square, oofem::IntegrationRule::getRequiredNumberOfIntegrationPoints(), and oofem::IntegrationRule::SetUpPointsOnSquare().

virtual integrationDomain oofem::FEI3dHexaTriQuad::giveBoundarySurfaceIntegrationDomain ( int  boundary) const
inlinevirtual

Returns boundary integration domain.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 53 of file fei3dhexatriquad.h.

References oofem::_Square.

virtual Element_Geometry_Type oofem::FEI3dHexaTriQuad::giveGeometryType ( ) const
inlinevirtual

Returns the geometry type fo the interpolator.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 51 of file fei3dhexatriquad.h.

virtual integrationDomain oofem::FEI3dHexaTriQuad::giveIntegrationDomain ( ) const
inlinevirtual

Returns the integration domain of the interpolator.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 50 of file fei3dhexatriquad.h.

References oofem::_Cube.

IntegrationRule * oofem::FEI3dHexaTriQuad::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).
Todo:
Verify: Is +15 correct for dealing with "detJ"? If it is, perhaps we shouldn't go for exact integration since it is likely overkill.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 464 of file fei3dhexatriquad.C.

References oofem::_Cube, oofem::IntegrationRule::getRequiredNumberOfIntegrationPoints(), and oofem::IntegrationRule::SetUpPointsOnCube().

void oofem::FEI3dHexaTriQuad::giveLocalDerivative ( FloatMatrix dN,
const FloatArray lcoords 
)
protectedvirtual
virtual int oofem::FEI3dHexaTriQuad::giveNumberOfNodes ( ) const
inlinevirtual

Returns the number of geometric nodes of the receiver.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 58 of file fei3dhexatriquad.h.

void oofem::FEI3dHexaTriQuad::surfaceEvalN ( FloatArray answer,
int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

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.

Reimplemented from oofem::FEI3dHexaQuad.

Definition at line 100 of file fei3dhexatriquad.C.

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

Referenced by oofem::Hexa21Stokes::computeBoundarySurfaceLoadVector().

double oofem::FEI3dHexaTriQuad::surfaceEvalNormal ( FloatArray answer,
int  isurf,
const FloatArray lcoords,
const FEICellGeometry cellgeo 
)
virtual

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

Definition at line 129 of file fei3dhexatriquad.C.

References oofem::FloatArray::add(), oofem::IntArray::at(), oofem::FloatArray::at(), oofem::FloatArray::beVectorProductOf(), computeLocalSurfaceMapping(), oofem::FEICellGeometry::giveVertexCoordinates(), and oofem::FloatArray::normalize().


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