v0.9.0
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 (const MOFEMuuid &uuid, BaseFunctionUnknownInterface **iface) const
 
 FlatPrismPolynomialBaseCtx (DataForcesAndSourcesCore &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 (DataForcesAndSourcesCore &data, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
 EntPolynomialBaseCtx (DataForcesAndSourcesCore &data, const std::string field_name, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
 
- Public Member Functions inherited from MoFEM::BaseFunctionCtx
 BaseFunctionCtx ()
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=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)
 
DataForcesAndSourcesCoredAta
 
const FieldSpace sPace
 
const FieldApproximationBase bAse
 
const std::string fieldName
 
const FieldApproximationBase copyNodeBase
 

Additional Inherited Members

- 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 36 of file FlatPrismPolynomialBase.hpp.

Constructor & Destructor Documentation

◆ FlatPrismPolynomialBaseCtx()

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

Definition at line 37 of file FlatPrismPolynomialBase.cpp.

42  : EntPolynomialBaseCtx(data, space, base, copy_node_base), mOab(moab),
43  fePtr(fe_ptr) {
44  CHKERR setBase();
45  CHKERRABORT(PETSC_COMM_WORLD, ierr);
46 }
EntPolynomialBaseCtx(DataForcesAndSourcesCore &data, const FieldSpace space, const FieldApproximationBase base, const FieldApproximationBase copy_node_base=LASTBASE)
const NumeredEntFiniteElement * fePtr
#define CHKERR
Inline error check.
Definition: definitions.h:596

◆ ~FlatPrismPolynomialBaseCtx()

FlatPrismPolynomialBaseCtx::~FlatPrismPolynomialBaseCtx ( )

Definition at line 47 of file FlatPrismPolynomialBase.cpp.

47 {}

Member Function Documentation

◆ query_interface()

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

Reimplemented from MoFEM::EntPolynomialBaseCtx.

Definition at line 22 of file FlatPrismPolynomialBase.cpp.

23  {
24 
26  *iface = NULL;
27  if (uuid == IDD_FLATPRISM_BASE_FUNCTION) {
28  *iface = const_cast<FlatPrismPolynomialBaseCtx *>(this);
30  } else {
31  SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "wrong interference");
32  }
35 }
MoFEMErrorCode query_interface(const MOFEMuuid &uuid, BaseFunctionUnknownInterface **iface) const
static const MOFEMuuid IDD_FLATPRISM_BASE_FUNCTION
#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
#define CHKERR
Inline error check.
Definition: definitions.h:596

Member Data Documentation

◆ fePtr

const NumeredEntFiniteElement* MoFEM::FlatPrismPolynomialBaseCtx::fePtr

Definition at line 42 of file FlatPrismPolynomialBase.hpp.

◆ mOab

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

Definition at line 41 of file FlatPrismPolynomialBase.hpp.


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