v0.13.1
Public Member Functions | Public Attributes | List of all members
MoFEM::FlatPrismPolynomialBaseCtx Struct Reference

Class used to pass element data to calculate base functions on flat prism. More...

#include <src/approximation/FlatPrismPolynomialBase.hpp>

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

Public Member Functions

MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 FlatPrismPolynomialBaseCtx (EntitiesFieldData &data, moab::Interface &moab, const NumeredEntFiniteElement *fe_ptr, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
 ~FlatPrismPolynomialBaseCtx ()
 
- Public Member Functions inherited from MoFEM::EntPolynomialBaseCtx
MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 EntPolynomialBaseCtx (EntitiesFieldData &data, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
 EntPolynomialBaseCtx (EntitiesFieldData &data, const std::string field_name, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const =0
 
virtual ~BaseFunctionUnknownInterface ()=default
 
- Public Member Functions inherited from MoFEM::UnknownInterface
virtual MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const =0
 
template<class IFACE >
MoFEMErrorCode registerInterface (bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface refernce to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface. More...
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface. More...
 
virtual ~UnknownInterface ()=default
 

Public Attributes

moab::Interface & mOab
 
const NumeredEntFiniteElementfePtr
 
- Public Attributes inherited from MoFEM::EntPolynomialBaseCtx
PetscErrorCode(* basePolynomialsType0 )(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
 
PetscErrorCode(* basePolynomialsType1 )(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
 
EntitiesFieldDatadAta
 
const FieldSpace sPace
 
const FieldApproximationBase bAse
 
const std::string fieldName
 
const FieldApproximationBase copyNodeBase
 

Additional Inherited Members

- Static Public Member Functions inherited from MoFEM::UnknownInterface
static MoFEMErrorCode getLibVersion (Version &version)
 Get library version. More...
 
static MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version)
 Get database major version. More...
 
static MoFEMErrorCode setFileVersion (moab::Interface &moab, Version version=Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD))
 Get database major version. More...
 
static MoFEMErrorCode getInterfaceVersion (Version &version)
 Get database major version. More...
 
- Protected Member Functions inherited from MoFEM::EntPolynomialBaseCtx
MoFEMErrorCode setBase ()
 

Detailed Description

Class used to pass element data to calculate base functions on flat prism.

FIXME: Need moab and mofem finite element structure to work (that not perfect)

Definition at line 21 of file FlatPrismPolynomialBase.hpp.

Constructor & Destructor Documentation

◆ FlatPrismPolynomialBaseCtx()

FlatPrismPolynomialBaseCtx::FlatPrismPolynomialBaseCtx ( EntitiesFieldData data,
moab::Interface &  moab,
const NumeredEntFiniteElement fe_ptr,
const FieldSpace  space,
const FieldApproximationBase  base,
const FieldApproximationBase  copy_node_base = LASTBASE 
)

Definition at line 15 of file FlatPrismPolynomialBase.cpp.

20 : EntPolynomialBaseCtx(data, space, base, copy_node_base), mOab(moab),
21 fePtr(fe_ptr) {
23 CHKERRABORT(PETSC_COMM_WORLD, ierr);
24}
#define CHKERR
Inline error check.
Definition: definitions.h:535
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76
EntPolynomialBaseCtx(EntitiesFieldData &data, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
const NumeredEntFiniteElement * fePtr

◆ ~FlatPrismPolynomialBaseCtx()

FlatPrismPolynomialBaseCtx::~FlatPrismPolynomialBaseCtx ( )

Definition at line 25 of file FlatPrismPolynomialBase.cpp.

25{}

Member Function Documentation

◆ query_interface()

MoFEMErrorCode FlatPrismPolynomialBaseCtx::query_interface ( boost::typeindex::type_index  type_index,
UnknownInterface **  iface 
) const
virtual

Reimplemented from MoFEM::EntPolynomialBaseCtx.

Definition at line 9 of file FlatPrismPolynomialBase.cpp.

10 {
11 *iface = const_cast<FlatPrismPolynomialBaseCtx *>(this);
12 return 0;
13}
Class used to pass element data to calculate base functions on flat prism.

Member Data Documentation

◆ fePtr

const NumeredEntFiniteElement* MoFEM::FlatPrismPolynomialBaseCtx::fePtr

Definition at line 27 of file FlatPrismPolynomialBase.hpp.

◆ mOab

moab::Interface& MoFEM::FlatPrismPolynomialBaseCtx::mOab

Definition at line 26 of file FlatPrismPolynomialBase.hpp.


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