v0.14.0
Public Member Functions | Public Attributes | List of all members
PostProcTemplateOnRefineMesh< ELEMENT > Struct Template Reference

Generic post-processing class. More...

#include <users_modules/basic_finite_elements/src/PostProcOnRefMesh.hpp>

Inheritance diagram for PostProcTemplateOnRefineMesh< ELEMENT >:
[legend]
Collaboration diagram for PostProcTemplateOnRefineMesh< ELEMENT >:
[legend]

Public Member Functions

 PostProcTemplateOnRefineMesh (MoFEM::Interface &m_field)
 
virtual ~PostProcTemplateOnRefineMesh ()
 
virtual PostProcCommonOnRefMesh::CommonDatagetCommonData ()
 
MoFEMErrorCode addFieldValuesPostProc (const std::string field_name, Vec v=PETSC_NULL)
 Add operator to post-process L2, H1, Hdiv, Hcurl field value. More...
 
MoFEMErrorCode addFieldValuesPostProc (const std::string field_name, const std::string tag_name, Vec v=PETSC_NULL)
 Add operator to post-process L2 or H1 field value. More...
 
MoFEMErrorCode addFieldValuesGradientPostProc (const std::string field_name, Vec v=PETSC_NULL)
 Add operator to post-process L2 or H1 field gradient. More...
 
MoFEMErrorCode addFieldValuesGradientPostProc (const std::string field_name, const std::string tag_name, Vec v=PETSC_NULL)
 Add operator to post-process L2 or H1 field gradient. More...
 
MoFEMErrorCode addFieldValuesGradientPostProc (const std::string field_name, int space_dim, Vec v=PETSC_NULL)
 Add operator to post-process L2 or H1 field gradient. More...
 
MoFEMErrorCode writeFile (const std::string file_name, const char *file_type="MOAB", const char *file_options="PARALLEL=WRITE_PART")
 wrote results in (MOAB) format, use "file_name.h5m" More...
 

Public Attributes

moab::Core coreMesh
 
moab::Interface & postProcMesh
 
boost::shared_ptr< WrapMPIComm > wrapRefMeshComm
 
std::vector< EntityHandlemapGaussPts
 

Detailed Description

template<class ELEMENT>
struct PostProcTemplateOnRefineMesh< ELEMENT >

Generic post-processing class.

Generate refined mesh and save data on vertices

Definition at line 118 of file PostProcOnRefMesh.hpp.

Constructor & Destructor Documentation

◆ PostProcTemplateOnRefineMesh()

template<class ELEMENT >
PostProcTemplateOnRefineMesh< ELEMENT >::PostProcTemplateOnRefineMesh ( MoFEM::Interface m_field)
inline

Definition at line 127 of file PostProcOnRefMesh.hpp.

128  : ELEMENT(m_field), postProcMesh(coreMesh) {}

◆ ~PostProcTemplateOnRefineMesh()

template<class ELEMENT >
virtual PostProcTemplateOnRefineMesh< ELEMENT >::~PostProcTemplateOnRefineMesh ( )
inlinevirtual

Definition at line 130 of file PostProcOnRefMesh.hpp.

130  {
131  ParallelComm *pcomm_post_proc_mesh =
132  ParallelComm::get_pcomm(&postProcMesh, MYPCOMM_INDEX);
133  if (pcomm_post_proc_mesh != NULL)
134  delete pcomm_post_proc_mesh;
135  }

Member Function Documentation

◆ getCommonData()

template<class ELEMENT >
virtual PostProcCommonOnRefMesh::CommonData& PostProcTemplateOnRefineMesh< ELEMENT >::getCommonData ( )
inlinevirtual

Member Data Documentation

◆ coreMesh

template<class ELEMENT >
moab::Core PostProcTemplateOnRefineMesh< ELEMENT >::coreMesh

Definition at line 120 of file PostProcOnRefMesh.hpp.

◆ mapGaussPts

template<class ELEMENT >
std::vector<EntityHandle> PostProcTemplateOnRefineMesh< ELEMENT >::mapGaussPts

Definition at line 125 of file PostProcOnRefMesh.hpp.

◆ postProcMesh

template<class ELEMENT >
moab::Interface& PostProcTemplateOnRefineMesh< ELEMENT >::postProcMesh

Definition at line 122 of file PostProcOnRefMesh.hpp.

◆ wrapRefMeshComm

template<class ELEMENT >
boost::shared_ptr<WrapMPIComm> PostProcTemplateOnRefineMesh< ELEMENT >::wrapRefMeshComm

Definition at line 123 of file PostProcOnRefMesh.hpp.


The documentation for this struct was generated from the following file:
MYPCOMM_INDEX
#define MYPCOMM_INDEX
default communicator number PCOMM
Definition: definitions.h:228
PostProcTemplateOnRefineMesh::postProcMesh
moab::Interface & postProcMesh
Definition: PostProcOnRefMesh.hpp:122
ELEMENT
THROW_MESSAGE
#define THROW_MESSAGE(msg)
Throw MoFEM exception.
Definition: definitions.h:574
PostProcTemplateOnRefineMesh::coreMesh
moab::Core coreMesh
Definition: PostProcOnRefMesh.hpp:120