v0.14.0
Public Member Functions | Public Attributes | List of all members
MoFEM::PostProcGenerateRefMeshBase Struct Referenceabstract

#include <src/post_proc/PostProcBrokenMeshInMoabBase.hpp>

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

Public Member Functions

 PostProcGenerateRefMeshBase ()
 
virtual ~PostProcGenerateRefMeshBase ()=default
 
virtual MoFEMErrorCode getOptions (std::string prefix)
 
virtual MoFEMErrorCode generateReferenceElementMesh ()=0
 

Public Attributes

std::vector< MatrixDoublelevelShapeFunctions
 
std::vector< MatrixDoublelevelGaussPtsOnRefMesh
 
std::vector< ublas::matrix< int > > levelRef
 
EntityHandle startingVertEleHandle
 
std::vector< double * > verticesOnEleArrays
 
EntityHandle startingEleHandle
 
EntityHandleeleConn
 
int countEle
 
int countVertEle
 
int nbVertices
 
int nbEles
 
PetscBool hoNodes
 
int defMaxLevel
 

Detailed Description

Each element is subdivided on smaller elements, i.e. a reference mesh on single element is created. Nodes of such reference mesh are used as integration points at which field values are calculated and to each node a "moab" tag is attached to store those values.

Definition at line 23 of file PostProcBrokenMeshInMoabBase.hpp.

Constructor & Destructor Documentation

◆ PostProcGenerateRefMeshBase()

MoFEM::PostProcGenerateRefMeshBase::PostProcGenerateRefMeshBase ( )

Definition at line 13 of file PostProcBrokenMeshInMoabBase.cpp.

14  : hoNodes(PETSC_TRUE), defMaxLevel(0), countEle(0), countVertEle(0),
15  nbVertices(0) {}

◆ ~PostProcGenerateRefMeshBase()

virtual MoFEM::PostProcGenerateRefMeshBase::~PostProcGenerateRefMeshBase ( )
virtualdefault

Member Function Documentation

◆ generateReferenceElementMesh()

virtual MoFEMErrorCode MoFEM::PostProcGenerateRefMeshBase::generateReferenceElementMesh ( )
pure virtual

◆ getOptions()

MoFEMErrorCode MoFEM::PostProcGenerateRefMeshBase::getOptions ( std::string  prefix)
virtual

Definition at line 17 of file PostProcBrokenMeshInMoabBase.cpp.

17  {
19 
20  std::string opt1 = prefix.size() ? "-" + prefix + "_max_post_proc_ref_level"
21  : "-max_post_proc_ref_level";
22  CHKERR PetscOptionsGetInt(PETSC_NULL, opt1.c_str(), &defMaxLevel, PETSC_NULL);
23 
24  std::string opt2 = prefix.size() ? "-" + prefix + "_max_post_ho_nodes"
25  : "-max_post_ho_nodes";
26  CHKERR PetscOptionsGetBool(PETSC_NULL, opt2.c_str(), &hoNodes, PETSC_NULL);
27 
28  if (defMaxLevel < 0)
29  SETERRQ(PETSC_COMM_WORLD, MOFEM_INVALID_DATA,
30  "Wrong parameter -max_post_proc_ref_level "
31  "should be positive number");
32 
34 };

Member Data Documentation

◆ countEle

int MoFEM::PostProcGenerateRefMeshBase::countEle

Definition at line 37 of file PostProcBrokenMeshInMoabBase.hpp.

◆ countVertEle

int MoFEM::PostProcGenerateRefMeshBase::countVertEle

Definition at line 38 of file PostProcBrokenMeshInMoabBase.hpp.

◆ defMaxLevel

int MoFEM::PostProcGenerateRefMeshBase::defMaxLevel

Definition at line 50 of file PostProcBrokenMeshInMoabBase.hpp.

◆ eleConn

EntityHandle* MoFEM::PostProcGenerateRefMeshBase::eleConn

Definition at line 35 of file PostProcBrokenMeshInMoabBase.hpp.

◆ hoNodes

PetscBool MoFEM::PostProcGenerateRefMeshBase::hoNodes

Definition at line 49 of file PostProcBrokenMeshInMoabBase.hpp.

◆ levelGaussPtsOnRefMesh

std::vector<MatrixDouble> MoFEM::PostProcGenerateRefMeshBase::levelGaussPtsOnRefMesh

Definition at line 29 of file PostProcBrokenMeshInMoabBase.hpp.

◆ levelRef

std::vector<ublas::matrix<int> > MoFEM::PostProcGenerateRefMeshBase::levelRef

Definition at line 30 of file PostProcBrokenMeshInMoabBase.hpp.

◆ levelShapeFunctions

std::vector<MatrixDouble> MoFEM::PostProcGenerateRefMeshBase::levelShapeFunctions

Definition at line 26 of file PostProcBrokenMeshInMoabBase.hpp.

◆ nbEles

int MoFEM::PostProcGenerateRefMeshBase::nbEles

Definition at line 41 of file PostProcBrokenMeshInMoabBase.hpp.

◆ nbVertices

int MoFEM::PostProcGenerateRefMeshBase::nbVertices

Definition at line 40 of file PostProcBrokenMeshInMoabBase.hpp.

◆ startingEleHandle

EntityHandle MoFEM::PostProcGenerateRefMeshBase::startingEleHandle

Definition at line 34 of file PostProcBrokenMeshInMoabBase.hpp.

◆ startingVertEleHandle

EntityHandle MoFEM::PostProcGenerateRefMeshBase::startingVertEleHandle

Definition at line 32 of file PostProcBrokenMeshInMoabBase.hpp.

◆ verticesOnEleArrays

std::vector<double *> MoFEM::PostProcGenerateRefMeshBase::verticesOnEleArrays

Definition at line 33 of file PostProcBrokenMeshInMoabBase.hpp.


The documentation for this struct was generated from the following files:
MoFEM::PostProcGenerateRefMeshBase::nbVertices
int nbVertices
Definition: PostProcBrokenMeshInMoabBase.hpp:40
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::PostProcGenerateRefMeshBase::hoNodes
PetscBool hoNodes
Definition: PostProcBrokenMeshInMoabBase.hpp:49
MoFEM::PostProcGenerateRefMeshBase::countVertEle
int countVertEle
Definition: PostProcBrokenMeshInMoabBase.hpp:38
MoFEM::PostProcGenerateRefMeshBase::defMaxLevel
int defMaxLevel
Definition: PostProcBrokenMeshInMoabBase.hpp:50
MoFEM::PostProcGenerateRefMeshBase::countEle
int countEle
Definition: PostProcBrokenMeshInMoabBase.hpp:37
MoFEM::PetscOptionsGetInt
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
Definition: DeprecatedPetsc.hpp:142
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
MOFEM_INVALID_DATA
@ MOFEM_INVALID_DATA
Definition: definitions.h:36
MoFEM::PetscOptionsGetBool
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)
Definition: DeprecatedPetsc.hpp:182