v0.9.0
Public Member Functions | List of all members
MoFEM::BaseFunction Struct Reference

Base class if inherited used to calculate base functions. More...

#include <src/approximation/BaseFunction.hpp>

Inheritance diagram for MoFEM::BaseFunction:
[legend]
Collaboration diagram for MoFEM::BaseFunction:
[legend]

Public Member Functions

MoFEMErrorCode query_interface (const MOFEMuuid &uuid, MoFEM::BaseFunctionUnknownInterface **iface) const
 
 BaseFunction ()
 
virtual MoFEMErrorCode getValue (MatrixDouble &pts, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
 
virtual MoFEMErrorCode getValue (MatrixDouble &pts_x, MatrixDouble &pts_t, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=default
 

Detailed Description

Base class if inherited used to calculate base functions.

Examples
EshelbianPlasticity.cpp, and forces_and_sources_testing_users_base.cpp.

Definition at line 53 of file BaseFunction.hpp.

Constructor & Destructor Documentation

◆ BaseFunction()

MoFEM::BaseFunction::BaseFunction ( )

Definition at line 59 of file BaseFunction.hpp.

59 {}

Member Function Documentation

◆ getValue() [1/2]

MoFEMErrorCode MoFEM::BaseFunction::getValue ( MatrixDouble pts,
boost::shared_ptr< BaseFunctionCtx ctx_ptr 
)
virtual

Reimplemented in MoFEM::KernelLobattoPolynomial, MoFEM::FatPrismPolynomialBase, MoFEM::LegendrePolynomial, MoFEM::FlatPrismPolynomialBase, MoFEM::LobattoPolynomial, MoFEM::EdgePolynomialBase, MoFEM::QuadPolynomialBase, MoFEM::TetPolynomialBase, and MoFEM::TriPolynomialBase.

Definition at line 49 of file BaseFunction.cpp.

50  {
52  SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
53  "BaseFunction has not valid implementation of any shape function");
55 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

◆ getValue() [2/2]

MoFEMErrorCode MoFEM::BaseFunction::getValue ( MatrixDouble pts_x,
MatrixDouble pts_t,
boost::shared_ptr< BaseFunctionCtx ctx_ptr 
)
virtual

Reimplemented in MoFEM::IntegratedJacobiPolynomial, and MoFEM::JacobiPolynomial.

Definition at line 58 of file BaseFunction.cpp.

59  {
61  SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
62  "BaseFunction has not valid implementation of any shape function");
64 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

◆ query_interface()

MoFEMErrorCode MoFEM::BaseFunction::query_interface ( const MOFEMuuid uuid,
MoFEM::BaseFunctionUnknownInterface **  iface 
) const
virtual

Implements MoFEM::BaseFunctionUnknownInterface.

Reimplemented in EshelbianPlasticity::CGGUserPolynomialBase, MoFEM::IntegratedJacobiPolynomial, MoFEM::KernelLobattoPolynomial, MoFEM::FatPrismPolynomialBase, MoFEM::JacobiPolynomial, MoFEM::LegendrePolynomial, MoFEM::FlatPrismPolynomialBase, MoFEM::LobattoPolynomial, MoFEM::EdgePolynomialBase, MoFEM::QuadPolynomialBase, MoFEM::TetPolynomialBase, and MoFEM::TriPolynomialBase.

Examples
EshelbianPlasticity.cpp, and forces_and_sources_testing_users_base.cpp.

Definition at line 35 of file BaseFunction.cpp.

36  {
38  *iface = NULL;
39  if (uuid == IDD_UNKNOWN_BASE_FUNCTION) {
40  *iface = const_cast<BaseFunction *>(this);
42  } else {
43  SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "wrong interference");
44  }
46 }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508
static const MOFEMuuid IDD_UNKNOWN_BASE_FUNCTION

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