v0.15.0
Loading...
Searching...
No Matches
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
 EntPolynomialBaseCtx (EntitiesFieldData &data, const FieldSpace space, const FieldContinuity continuity, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
 EntPolynomialBaseCtx (EntitiesFieldData &data, const std::string field_name, const FieldSpace space, const FieldContinuity continuity, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
- Public Member Functions inherited from MoFEM::BaseFunctionCtx
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=default
 
- Public Member Functions inherited from MoFEM::UnknownInterface
template<class IFACE >
MoFEMErrorCode registerInterface (bool error_if_registration_failed=true)
 Register interface.
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface reference to pointer of interface.
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface.
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface.
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface.
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface.
 
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 FieldContinuity spaceContinuity
 
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.
 
static MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version)
 Get database major version.
 
static MoFEMErrorCode setFileVersion (moab::Interface &moab, Version version=Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD))
 Get database major version.
 
static MoFEMErrorCode getInterfaceVersion (Version &version)
 Get database major version.
 
- 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, CONTINUOUS, base, copy_node_base),
21 mOab(moab), fePtr(fe_ptr) {
23 CHKERRABORT(PETSC_COMM_WORLD, ierr);
24}
@ CONTINUOUS
Regular field.
#define CHKERR
Inline error check.
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
EntPolynomialBaseCtx(EntitiesFieldData &data, const FieldSpace space, const FieldContinuity continuity, 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: