v0.9.0
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
PostProcFatPrismOnRefinedMesh Struct Reference

Postprocess on prism. More...

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

Inheritance diagram for PostProcFatPrismOnRefinedMesh:
[legend]
Collaboration diagram for PostProcFatPrismOnRefinedMesh:
[legend]

Classes

struct  CommonData
 
struct  PointsMap3D
 

Public Types

typedef multi_index_container< PointsMap3D, indexed_by< ordered_unique< composite_key< PointsMap3D, member< PointsMap3D, const int, &PointsMap3D::kSi >, member< PointsMap3D, const int, &PointsMap3D::eTa >, member< PointsMap3D, const int, &PointsMap3D::zEta > > > > > PointsMap3D_multiIndex
 
- Public Types inherited from MoFEM::VolumeElementForcesAndSourcesCoreSwitch< SWITCH >
using UserDataOperator = VolumeElementForcesAndSourcesCoreBase::UserDataOperator
 
- Public Types inherited from MoFEM::VolumeElementForcesAndSourcesCoreBase
enum  Switches { NO_HO_GEOMETRY = 1 << 0 | 1 << 2, NO_TRANSFORM = 1 << 1 | 1 << 2, NO_HO_TRANSFORM = 1 << 2 }
 
- Public Types inherited from MoFEM::ForcesAndSourcesCore
typedef boost::function< int(int order_row, int order_col, int order_data)> RuleHookFun
 
- Public Types inherited from MoFEM::KspMethod
enum  KSPContext { CTX_SETFUNCTION, CTX_OPERATORS, CTX_KSPNONE }
 pass information about context of KSP/DM for with finite element is computed More...
 
- Public Types inherited from MoFEM::SnesMethod
enum  SNESContext { CTX_SNESSETFUNCTION, CTX_SNESSETJACOBIAN, CTX_SNESNONE }
 
- Public Types inherited from MoFEM::TSMethod
enum  TSContext {
  CTX_TSSETRHSFUNCTION, CTX_TSSETRHSJACOBIAN, CTX_TSSETIFUNCTION, CTX_TSSETIJACOBIAN,
  CTX_TSTSMONITORSET, CTX_TSNONE
}
 

Public Member Functions

 PostProcFatPrismOnRefinedMesh (MoFEM::Interface &m_field, bool ten_nodes_post_proc_tets=true)
 
virtual ~PostProcFatPrismOnRefinedMesh ()
 
int getRuleTrianglesOnly (int order)
 
int getRuleThroughThickness (int order)
 
MoFEMErrorCode setGaussPtsTrianglesOnly (int order_triangles_only)
 
MoFEMErrorCode setGaussPtsThroughThickness (int order_thickness)
 
MoFEMErrorCode generateReferenceElementMesh ()
 
MoFEMErrorCode preProcess ()
 function is run at the beginning of loop More...
 
MoFEMErrorCode postProcess ()
 function is run at the end of loop More...
 
virtual PostProcCommonOnRefMesh::CommonDatagetCommonData ()
 
- Public Member Functions inherited from PostProcTemplateOnRefineMesh< MoFEM::FatPrismElementForcesAndSourcesCore >
 PostProcTemplateOnRefineMesh (MoFEM::Interface &m_field)
 
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 writeFile (const std::string file_name)
 wrote results in (MOAB) format, use "file_name.h5m" More...
 
- Public Member Functions inherited from MoFEM::FatPrismElementForcesAndSourcesCore
 FatPrismElementForcesAndSourcesCore (Interface &m_field)
 
MoFEMErrorCode operator() ()
 function is run for every finite element More...
 
- Public Member Functions inherited from MoFEM::VolumeElementForcesAndSourcesCoreSwitch< SWITCH >
MoFEMErrorCode operator() ()
 function is run for every finite element More...
 
- Public Member Functions inherited from MoFEM::VolumeElementForcesAndSourcesCoreBase
 VolumeElementForcesAndSourcesCoreBase (Interface &m_field, const EntityType type=MBTET)
 
template<int SWITCH>
MoFEMErrorCode OpSwitch ()
 
- Public Member Functions inherited from MoFEM::ForcesAndSourcesCore
 ForcesAndSourcesCore (Interface &m_field)
 
boost::ptr_vector< UserDataOperator > & getOpPtrVector ()
 Use to push back operator for row operator. More...
 
auto & getElementPolynomialBase ()
 Get the Entity Polynomial Base object. More...
 
auto & getUserPolynomialBase ()
 Get the User Polynomial Base object. More...
 
int getMaxDataOrder () const
 Get max order of approximation for data fields. More...
 
int getMaxRowOrder () const
 Get max order of approximation for field in rows. More...
 
int getMaxColOrder () const
 Get max order of approximation for field in columns. More...
 
MoFEMErrorCode getNumberOfNodes (int &num_nodes) const
 Get number of DOFs on element. More...
 
const DataForcesAndSourcesCore::EntDatagetEntData (const FieldSpace space, const EntityType type, const int side) const
 Get the entity data. More...
 
DataForcesAndSourcesCore::EntDatagetEntData (const FieldSpace space, const EntityType type, const int side)
 Get the entity data. More...
 
- Public Member Functions inherited from MoFEM::FEMethod
MoFEMErrorCode query_interface (const MOFEMuuid &uuid, UnknownInterface **iface) const
 
 FEMethod ()
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_begin (const MULTIINDEX &index, const std::string &field_name, const EntityType type, const int side_number) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_end (const MULTIINDEX &index, const std::string &field_name, const EntityType type, const int side_number) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_begin (const MULTIINDEX &index, const std::string &field_name, const EntityType type) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_end (const MULTIINDEX &index, const std::string &field_name, const EntityType type) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_begin (const MULTIINDEX &index, const std::string &field_name) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_end (const MULTIINDEX &index, const std::string &field_name) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_begin (const MULTIINDEX &index, const EntityHandle ent) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_end (const MULTIINDEX &index, const EntityHandle ent) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_begin (const MULTIINDEX &index, const std::string &field_name, const EntityHandle ent) const
 
template<class MULTIINDEX >
MULTIINDEX::iterator get_end (const MULTIINDEX &index, const std::string &field_name, const EntityHandle ent) const
 
- Public Member Functions inherited from MoFEM::BasicMethod
 BasicMethod ()
 
virtual ~BasicMethod ()
 
int getNinTheLoop () const
 get number of evaluated element in the loop More...
 
int getLoopSize () const
 get loop size More...
 
MoFEMErrorCode copyBasicMethod (const BasicMethod &basic)
 Copy data from other base method to this base method. More...
 
- Public Member Functions inherited from MoFEM::KspMethod
 KspMethod ()
 
virtual ~KspMethod ()
 
MoFEMErrorCode setKspCtx (const KSPContext &ctx)
 set operator type More...
 
MoFEMErrorCode setKsp (KSP ksp)
 set solver More...
 
MoFEMErrorCode copyKsp (const KspMethod &ksp)
 copy data form another method More...
 
- Public Member Functions inherited from MoFEM::UnknownInterface
template<class IFACE >
MoFEMErrorCode registerInterface (const MOFEMuuid &uuid, bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE , bool VERIFY = false>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, IFACE *&iface) const
 Get interface by uuid and return reference to pointer of 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
 
virtual MoFEMErrorCode getLibVersion (Version &version) const
 Get library version. More...
 
virtual const MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version) const
 Get database major version. More...
 
virtual MoFEMErrorCode getInterfaceVersion (Version &version) const
 Get database major version. More...
 
template<>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, UnknownInterface *&iface) const
 
- Public Member Functions inherited from MoFEM::SnesMethod
 SnesMethod ()
 
virtual ~SnesMethod ()
 
MoFEMErrorCode setSnesCtx (const SNESContext &ctx)
 Set SNES context. More...
 
MoFEMErrorCode setSnes (SNES snes)
 Set SNES instance. More...
 
MoFEMErrorCode copySnes (const SnesMethod &snes)
 Copy snes data. More...
 
- Public Member Functions inherited from MoFEM::TSMethod
 TSMethod ()
 
virtual ~TSMethod ()
 
MoFEMErrorCode setTsCtx (const TSContext &ctx)
 Set Ts context. More...
 
MoFEMErrorCode copyTs (const TSMethod &ts)
 Copy TS solver data. More...
 
MoFEMErrorCode setTs (TS _ts)
 Set TS solver. More...
 

Public Attributes

bool tenNodesPostProcTets
 
PointsMap3D_multiIndex pointsMap
 
std::map< EntityHandle, EntityHandleelementsMap
 
CommonData commonData
 
- Public Attributes inherited from PostProcTemplateOnRefineMesh< MoFEM::FatPrismElementForcesAndSourcesCore >
moab::Core coreMesh
 
moab::Interface & postProcMesh
 
std::vector< EntityHandlemapGaussPts
 
- Public Attributes inherited from MoFEM::VolumeElementForcesAndSourcesCoreBase
std::string meshPositionsFieldName
 
- Public Attributes inherited from MoFEM::ForcesAndSourcesCore
InterfacemField
 
RuleHookFun getRuleHook
 Hook to get rule. More...
 
RuleHookFun setRuleHook
 Set function to calculate integration rule. More...
 
MatrixDouble gaussPts
 Matrix of integration points. More...
 
- Public Attributes inherited from MoFEM::FEMethod
std::string feName
 Name of finite element. More...
 
boost::shared_ptr< const NumeredEntFiniteElementnumeredEntFiniteElementPtr
 
boost::shared_ptr< const FENumeredDofEntity_multiIndexrowPtr
 Pointer to finite element rows dofs view. More...
 
boost::shared_ptr< const FENumeredDofEntity_multiIndexcolPtr
 Pointer to finite element columns dofs view. More...
 
boost::shared_ptr< const FEDofEntity_multiIndexdataPtr
 Pointer to finite element data dofs. More...
 
boost::shared_ptr< const FieldEntity_vector_viewrowFieldEntsPtr
 Pointer to finite element field entities row view. More...
 
boost::shared_ptr< const FieldEntity_vector_viewcolFieldEntsPtr
 Pointer to finite element field entities column view. More...
 
boost::shared_ptr< const FieldEntity_multiIndex_spaceType_viewdataFieldEntsPtr
 Pointer to finite element field entities data view. More...
 
- Public Attributes inherited from MoFEM::BasicMethod
int nInTheLoop
 number currently of processed method More...
 
int loopSize
 local number oe methods to process More...
 
int rAnk
 processor rank More...
 
int sIze
 number of processors in communicator More...
 
const RefEntity_multiIndexrefinedEntitiesPtr
 container of mofem dof entities More...
 
const RefElement_multiIndexrefinedFiniteElementsPtr
 container of mofem finite element entities More...
 
const ProblemproblemPtr
 raw pointer to problem More...
 
const Field_multiIndexfieldsPtr
 raw pointer to fields container More...
 
const FieldEntity_multiIndexentitiesPtr
 raw pointer to container of field entities More...
 
const DofEntity_multiIndexdofsPtr
 raw pointer container of dofs More...
 
const FiniteElement_multiIndexfiniteElementsPtr
 raw pointer to container finite elements More...
 
const EntFiniteElement_multiIndexfiniteElementsEntitiesPtr
 
const FieldEntityEntFiniteElementAdjacencyMap_multiIndexadjacenciesPtr
 
boost::function< MoFEMErrorCode()> preProcessHook
 Hook function for pre-processing. More...
 
boost::function< MoFEMErrorCode()> postProcessHook
 Hook function for post-processing. More...
 
boost::function< MoFEMErrorCode()> operatorHook
 Hook function for operator. More...
 
boost::movelib::unique_ptr< boolvecAssembleSwitch
 
boost::movelib::unique_ptr< boolmatAssembleSwitch
 
- Public Attributes inherited from MoFEM::KspMethod
KSPContext ksp_ctx
 Context. More...
 
KSP ksp
 KSP solver. More...
 
Vec ksp_f
 the right hand side vector More...
 
Mat ksp_A
 matrix More...
 
Mat ksp_B
 preconditioner matrix More...
 
- Public Attributes inherited from MoFEM::SnesMethod
SNESContext snes_ctx
 
SNES snes
 snes solver More...
 
Vec snes_x
 state vector More...
 
Vec snes_f
 residual More...
 
Mat snes_A
 jacobian matrix More...
 
Mat snes_B
 preconditioner of jacobian matrix More...
 
- Public Attributes inherited from MoFEM::TSMethod
TSContext ts_ctx
 
TS ts
 time solver More...
 
Vec ts_u
 state vector More...
 
Vec ts_u_t
 time derivative of state vector More...
 
Vec ts_u_tt
 second time derivative of state vector More...
 
Vec ts_F
 residual vector More...
 
Mat ts_A
 
Mat ts_B
 Preconditioner for ts_A. More...
 
PetscInt ts_step
 time step More...
 
PetscReal ts_a
 shift for U_tt (see PETSc Time Solver) More...
 
PetscReal ts_v
 shift for U_t shift for U_t More...
 
PetscReal ts_t
 time More...
 

Additional Inherited Members

- Protected Member Functions inherited from MoFEM::VolumeElementForcesAndSourcesCoreBase
virtual MoFEMErrorCode setIntegrationPts ()
 Set integration points. More...
 
virtual MoFEMErrorCode calculateVolumeAndJacobian ()
 Calculate element volume and Jacobian. More...
 
virtual MoFEMErrorCode calculateCoordinatesAtGaussPts ()
 Calculate coordinate at integration points. More...
 
virtual MoFEMErrorCode getSpaceBaseAndOrderOnElement ()
 Determine approximation space and order of base functions. More...
 
virtual MoFEMErrorCode transformBaseFunctions ()
 Transform base functions based on geometric element Jacobian. More...
 
virtual MoFEMErrorCode calculateHoJacobian ()
 Calculate Jacobian for HO geometry. More...
 
virtual MoFEMErrorCode transformHoBaseFunctions ()
 Transform base functions based on ho-geometry element Jacobian. More...
 
- Protected Member Functions inherited from MoFEM::ForcesAndSourcesCore
MoFEMErrorCode getEntitySense (const EntityType type, boost::ptr_vector< DataForcesAndSourcesCore::EntData > &data) const
 get sense (orientation) of entity More...
 
MoFEMErrorCode getEntityDataOrder (const EntityType type, const FieldSpace space, boost::ptr_vector< DataForcesAndSourcesCore::EntData > &data) const
 Get the entity data order. More...
 
template<EntityType type>
MoFEMErrorCode getEntitySense (DataForcesAndSourcesCore &data) const
 Get the entity sense (orientation) More...
 
template<EntityType type>
MoFEMErrorCode getEntityDataOrder (DataForcesAndSourcesCore &data, const FieldSpace space) const
 Get the entity data order for given space. More...
 
MoFEMErrorCode getFaceTriNodes (DataForcesAndSourcesCore &data) const
 Get nodes on triangles. More...
 
MoFEMErrorCode getSpacesAndBaseOnEntities (DataForcesAndSourcesCore &data) const
 Get field approximation space and base on entities. More...
 
virtual int getRule (int order_row, int order_col, int order_data)
 another variant of getRule More...
 
virtual MoFEMErrorCode setGaussPts (int order_row, int order_col, int order_data)
 set user specific integration rule More...
 
MoFEMErrorCode calHierarchicalBaseFunctionsOnElement (const FieldApproximationBase b)
 Calculate base functions. More...
 
MoFEMErrorCode calHierarchicalBaseFunctionsOnElement ()
 Calculate base functions. More...
 
MoFEMErrorCode calBernsteinBezierBaseFunctionsOnElement ()
 Calculate Bernstein-Bezier base. More...
 
MoFEMErrorCode createDataOnElement ()
 Create a entity data on element object. More...
 
MoFEMErrorCode loopOverOperators ()
 Iterate user data operators. More...
 
MoFEMErrorCode getNodesIndices (const boost::string_ref field_name, FENumeredDofEntity_multiIndex &dofs, VectorInt &nodes_indices, VectorInt &local_nodes_indices) const
 get node indices More...
 
MoFEMErrorCode getRowNodesIndices (DataForcesAndSourcesCore &data, const std::string &field_name) const
 get row node indices from FENumeredDofEntity_multiIndex More...
 
MoFEMErrorCode getColNodesIndices (DataForcesAndSourcesCore &data, const std::string &field_name) const
 get col node indices from FENumeredDofEntity_multiIndex More...
 
MoFEMErrorCode getEntityIndices (DataForcesAndSourcesCore &data, const std::string &field_name, FENumeredDofEntity_multiIndex &dofs, const EntityType type_lo=MBVERTEX, const EntityType type_hi=MBPOLYHEDRON) const
 
MoFEMErrorCode getEntityRowIndices (DataForcesAndSourcesCore &data, const std::string &field_name, const EntityType type_lo=MBVERTEX, const EntityType type_hi=MBPOLYHEDRON) const
 
MoFEMErrorCode getEntityColIndices (DataForcesAndSourcesCore &data, const std::string &field_name, const EntityType type_lo=MBVERTEX, const EntityType type_hi=MBPOLYHEDRON) const
 
MoFEMErrorCode getNoFieldIndices (const std::string &field_name, FENumeredDofEntity_multiIndex &dofs, VectorInt &nodes_indices) const
 get NoField indices More...
 
MoFEMErrorCode getNoFieldRowIndices (DataForcesAndSourcesCore &data, const std::string &field_name) const
 get col NoField indices More...
 
MoFEMErrorCode getNoFieldColIndices (DataForcesAndSourcesCore &data, const std::string &field_name) const
 get col NoField indices More...
 
MoFEMErrorCode getNoFieldFieldData (const boost::string_ref field_name, FEDofEntity_multiIndex &dofs, VectorDouble &ent_field_data, VectorDofs &ent_field_dofs) const
 Get field data on nodes. More...
 
MoFEMErrorCode getNoFieldFieldData (DataForcesAndSourcesCore &data, const boost::string_ref field_name) const
 
MoFEMErrorCode getNodesFieldData (DataForcesAndSourcesCore &data, const std::string &field_name) const
 Get data on nodes. More...
 
MoFEMErrorCode getEntityFieldData (DataForcesAndSourcesCore &data, const std::string &field_name, const EntityType type_lo=MBVERTEX, const EntityType type_hi=MBPOLYHEDRON) const
 
MoFEMErrorCode getProblemNodesIndices (const std::string &field_name, const NumeredDofEntity_multiIndex &dofs, VectorInt &nodes_indices) const
 get indices of nodal indices which are declared for problem but not this particular element More...
 
MoFEMErrorCode getProblemTypeIndices (const std::string &field_name, const NumeredDofEntity_multiIndex &dofs, EntityType type, int side_number, VectorInt &indices) const
 get indices by type (generic function) which are declared for problem but not this particular element More...
 
MoFEMErrorCode getProblemNodesRowIndices (const std::string &field_name, VectorInt &nodes_indices) const
 
MoFEMErrorCode getProblemTypeRowIndices (const std::string &field_name, EntityType type, int side_number, VectorInt &indices) const
 
MoFEMErrorCode getProblemNodesColIndices (const std::string &field_name, VectorInt &nodes_indices) const
 
MoFEMErrorCode getProblemTypeColIndices (const std::string &field_name, EntityType type, int side_number, VectorInt &indices) const
 
virtual int getRule (int order)
 
virtual MoFEMErrorCode setGaussPts (int order)
 
- Protected Member Functions inherited from MoFEM::UnknownInterface
boost::typeindex::type_index getClassIdx (const MOFEMuuid &uid) const
 Get type name for interface Id. More...
 
MOFEMuuid getUId (const boost::typeindex::type_index &class_idx) const
 Get interface Id for class name. More...
 
- Protected Attributes inherited from MoFEM::FatPrismElementForcesAndSourcesCore
double aRea [2]
 
VectorDouble normal
 
MatrixDouble gaussPtsTrianglesOnly
 
MatrixDouble coordsAtGaussPtsTrianglesOnly
 
MatrixDouble gaussPtsThroughThickness
 
DataForcesAndSourcesCore dataH1TrianglesOnly
 
DataForcesAndSourcesCore dataH1TroughThickness
 
MatrixDouble hoCoordsAtGaussPtsF3
 
MatrixDouble nOrmals_at_GaussPtF3
 
MatrixDouble tAngent1_at_GaussPtF3
 
MatrixDouble tAngent2_at_GaussPtF3
 
MatrixDouble hoCoordsAtGaussPtsF4
 
MatrixDouble nOrmals_at_GaussPtF4
 
MatrixDouble tAngent1_at_GaussPtF4
 
MatrixDouble tAngent2_at_GaussPtF4
 
OpGetCoordsAndNormalsOnPrism opHOCoordsAndNormals
 
- Protected Attributes inherited from MoFEM::VolumeElementForcesAndSourcesCoreBase
VectorDouble coords
 
MatrixDouble3by3 jAc
 
MatrixDouble3by3 invJac
 
OpSetInvJacH1 opSetInvJacH1
 
OpSetContravariantPiolaTransform opContravariantPiolaTransform
 
OpSetCovariantPiolaTransform opCovariantPiolaTransform
 
OpSetInvJacHdivAndHcurl opSetInvJacHdivAndHcurl
 
MatrixDouble hoCoordsAtGaussPts
 
MatrixDouble hoGaussPtsJac
 
MatrixDouble hoGaussPtsInvJac
 
VectorDouble hoGaussPtsDetJac
 
OpGetDataAndGradient< 3, 3 > opHOatGaussPoints
 higher order geometry data at Gauss pts More...
 
OpSetHoInvJacH1 opSetHoInvJacH1
 
OpSetHoContravariantPiolaTransform opHoContravariantTransform
 
OpSetHoCovariantPiolaTransform opHoCovariantTransform
 
OpSetHoInvJacHdivAndHcurl opSetHoInvJacHdivAndHcurl
 
double vOlume
 
int num_nodes
 
const EntityHandleconn
 
FTensor::Tensor2< double *, 3, 3 > tJac
 
FTensor::Tensor2< double *, 3, 3 > tInvJac
 
MatrixDouble coordsAtGaussPts
 
- Protected Attributes inherited from MoFEM::ForcesAndSourcesCore
const std::array< boost::shared_ptr< DataForcesAndSourcesCore >, LASTSPACEdataOnElement
 Entity data on element entity rows fields. More...
 
const std::array< boost::shared_ptr< DataForcesAndSourcesCore >, LASTSPACEderivedDataOnElement
 Entity data on element entity columns fields. More...
 
DataForcesAndSourcesCoredataNoField
 
DataForcesAndSourcesCoredataH1
 
DataForcesAndSourcesCoredataHcurl
 
DataForcesAndSourcesCoredataHdiv
 
DataForcesAndSourcesCoredataL2
 
boost::ptr_vector< UserDataOperatoropPtrVector
 Vector of finite element users data operators. More...
 
EntityType lastEvaluatedElementEntityType
 Last evaluated type of element entity. More...
 

Detailed Description

Postprocess on prism.

Deprecated:
Use PostPocOnRefinedMesh instead
Examples
elasticity.cpp.

Definition at line 671 of file PostProcOnRefMesh.hpp.

Member Typedef Documentation

◆ PointsMap3D_multiIndex

typedef multi_index_container< PointsMap3D, indexed_by<ordered_unique<composite_key< PointsMap3D, member<PointsMap3D, const int, &PointsMap3D::kSi>, member<PointsMap3D, const int, &PointsMap3D::eTa>, member<PointsMap3D, const int, &PointsMap3D::zEta> > > > > PostProcFatPrismOnRefinedMesh::PointsMap3D_multiIndex

Definition at line 709 of file PostProcOnRefMesh.hpp.

Constructor & Destructor Documentation

◆ PostProcFatPrismOnRefinedMesh()

PostProcFatPrismOnRefinedMesh::PostProcFatPrismOnRefinedMesh ( MoFEM::Interface m_field,
bool  ten_nodes_post_proc_tets = true 
)

Definition at line 677 of file PostProcOnRefMesh.hpp.

681  tenNodesPostProcTets(ten_nodes_post_proc_tets) {}
bool tenNodesPostProcTets
FatPrism finite elementUser is implementing own operator at Gauss points level, by own object derived...
Generic post-processing class.

◆ ~PostProcFatPrismOnRefinedMesh()

virtual PostProcFatPrismOnRefinedMesh::~PostProcFatPrismOnRefinedMesh ( )
virtual

Definition at line 683 of file PostProcOnRefMesh.hpp.

683  {
684  ParallelComm *pcomm_post_proc_mesh =
685  ParallelComm::get_pcomm(&postProcMesh, MYPCOMM_INDEX);
686  if (pcomm_post_proc_mesh != NULL) {
687  delete pcomm_post_proc_mesh;
688  }
689  }
moab::Interface & postProcMesh
#define MYPCOMM_INDEX
default communicator number PCOMM
Definition: definitions.h:285

Member Function Documentation

◆ generateReferenceElementMesh()

MoFEMErrorCode PostProcFatPrismOnRefinedMesh::generateReferenceElementMesh ( )

Definition at line 319 of file PostProcOnRefMesh.cpp.

319  {
322 }
#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

◆ getCommonData()

virtual PostProcCommonOnRefMesh::CommonData& PostProcFatPrismOnRefinedMesh::getCommonData ( )
virtual

Reimplemented from PostProcTemplateOnRefineMesh< MoFEM::FatPrismElementForcesAndSourcesCore >.

Definition at line 725 of file PostProcOnRefMesh.hpp.

725  {
726  return commonData;
727  }
CommonData commonData

◆ getRuleThroughThickness()

int PostProcFatPrismOnRefinedMesh::getRuleThroughThickness ( int  order)
virtual

◆ getRuleTrianglesOnly()

int PostProcFatPrismOnRefinedMesh::getRuleTrianglesOnly ( int  order)
virtual

◆ postProcess()

MoFEMErrorCode PostProcFatPrismOnRefinedMesh::postProcess ( )
virtual

function is run at the end of loop

It is used to assembly matrices and vectors, calculating global variables, f.e. total internal energy, ect.

Iterating over dofs: Example1 iterating over dofs in row by name of the field for(IT_GET_FEROW_BY_NAME_DOFS_FOR_LOOP(this,"DISPLACEMENT",it)) { ... }

Reimplemented from MoFEM::ForcesAndSourcesCore.

Reimplemented in SolidShellModule::SolidShellPrismElement::PostProcFatPrismOnTriangleOnRefinedMesh.

Definition at line 501 of file PostProcOnRefMesh.cpp.

501  {
503  ParallelComm *pcomm =
504  ParallelComm::get_pcomm(&mField.get_moab(), MYPCOMM_INDEX);
505  ParallelComm *pcomm_post_proc_mesh =
506  ParallelComm::get_pcomm(&postProcMesh, MYPCOMM_INDEX);
507  if (pcomm_post_proc_mesh == NULL) {
508  pcomm_post_proc_mesh = new ParallelComm(&postProcMesh, mField.get_comm());
509  }
510  Range prims;
511  CHKERR postProcMesh.get_entities_by_type(0, MBPRISM, prims, false);
512  // std::cerr << "total prims size " << prims.size() << std::endl;
513  int rank = pcomm->rank();
514  Range::iterator pit = prims.begin();
515  for (; pit != prims.end(); pit++) {
516  CHKERR postProcMesh.tag_set_data(pcomm_post_proc_mesh->part_tag(), &*pit, 1,
517  &rank);
518  }
519  CHKERR pcomm_post_proc_mesh->resolve_shared_ents(0);
521 }
virtual moab::Interface & get_moab()=0
moab::Interface & postProcMesh
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MYPCOMM_INDEX
default communicator number PCOMM
Definition: definitions.h:285
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407
virtual MPI_Comm & get_comm() const =0

◆ preProcess()

MoFEMErrorCode PostProcFatPrismOnRefinedMesh::preProcess ( )
virtual

function is run at the beginning of loop

It is used to zeroing matrices and vectors, calculation of shape functions on reference element, preprocessing boundary conditions, etc.

Reimplemented from MoFEM::ForcesAndSourcesCore.

Definition at line 489 of file PostProcOnRefMesh.cpp.

489  {
491  // MoAB
492  ParallelComm *pcomm_post_proc_mesh =
493  ParallelComm::get_pcomm(&postProcMesh, MYPCOMM_INDEX);
494  if (pcomm_post_proc_mesh != NULL) {
495  delete pcomm_post_proc_mesh;
496  }
497  // CHKERR postProcMesh.delete_mesh();
499 }
moab::Interface & postProcMesh
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define MYPCOMM_INDEX
default communicator number PCOMM
Definition: definitions.h:285
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

◆ setGaussPtsThroughThickness()

MoFEMErrorCode PostProcFatPrismOnRefinedMesh::setGaussPtsThroughThickness ( int  order_thickness)
virtual

Reimplemented from MoFEM::FatPrismElementForcesAndSourcesCore.

Reimplemented in SolidShellModule::SolidShellPrismElement::PostProcFatPrismOnTriangleOnRefinedMesh.

Definition at line 478 of file PostProcOnRefMesh.cpp.

479  {
481  if (gaussPtsThroughThickness.size1() == 0 ||
482  gaussPtsThroughThickness.size2() == 0) {
483  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
484  "post-process mesh not generated");
485  }
487 }
#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

◆ setGaussPtsTrianglesOnly()

MoFEMErrorCode PostProcFatPrismOnRefinedMesh::setGaussPtsTrianglesOnly ( int  order_triangles_only)
virtual

Reimplemented from MoFEM::FatPrismElementForcesAndSourcesCore.

Reimplemented in SolidShellModule::SolidShellPrismElement::PostProcFatPrismOnTriangleOnRefinedMesh.

Definition at line 324 of file PostProcOnRefMesh.cpp.

325  {
327  // if(gaussPtsTrianglesOnly.size1()==0 || gaussPtsTrianglesOnly.size2()==0) {
328  // SETERRQ(PETSC_COMM_SELF,MOFEM_DATA_INCONSISTENCY,"post-process mesh not
329  // generated");
330  // }
331 
332  // FIXME: Refinement not implement and inefficient implementation, looks ugly.
333 
334  //
335  const EntityHandle *conn;
336  int num_nodes;
337  EntityHandle prism;
338  const int nb_on_triangle = 6;
339  const int nb_through_thickness = 3;
340 
341  if (elementsMap.find(numeredEntFiniteElementPtr->getEnt()) !=
342  elementsMap.end()) {
343  prism = elementsMap[numeredEntFiniteElementPtr->getEnt()];
344  } else {
345  MatrixDouble gauss_pts_triangles_only, gauss_pts_through_thickness;
346  {
347  gauss_pts_triangles_only.resize(3, 3, false);
348  gauss_pts_triangles_only.clear();
349  gauss_pts_triangles_only(0, 0) = 0;
350  gauss_pts_triangles_only(1, 0) = 0;
351  gauss_pts_triangles_only(0, 1) = 1;
352  gauss_pts_triangles_only(1, 1) = 0;
353  gauss_pts_triangles_only(0, 2) = 0;
354  gauss_pts_triangles_only(1, 2) = 1;
355  gauss_pts_through_thickness.resize(2, 2, false);
356  gauss_pts_through_thickness(0, 0) = 0;
357  gauss_pts_through_thickness(0, 1) = 1;
358  }
359  ublas::vector<EntityHandle> prism_conn(6);
360  VectorDouble coords(3);
361  for (int ggf = 0; ggf != 3; ggf++) {
362  double ksi = gauss_pts_triangles_only(0, ggf);
363  double eta = gauss_pts_triangles_only(1, ggf);
364  coords[0] = ksi;
365  coords[1] = eta;
366  for (int ggt = 0; ggt != 2; ggt++) {
367  double zeta = gauss_pts_through_thickness(0, ggt);
368  coords[2] = zeta;
369  int side = ggt * 3 + ggf;
370  CHKERR postProcMesh.create_vertex(&coords[0], prism_conn[side]);
371  }
372  }
373  CHKERR postProcMesh.create_element(MBPRISM, &prism_conn[0], 6, prism);
374 
375  elementsMap[numeredEntFiniteElementPtr->getEnt()] = prism;
376  // Range faces;
377  // CHKERR postProcMesh.get_adjacencies(&prism,1,2,true,faces);
378  Range edges;
379  CHKERR postProcMesh.get_adjacencies(&prism, 1, 1, true, edges);
380  EntityHandle meshset;
381  CHKERR postProcMesh.create_meshset(MESHSET_SET, meshset);
382  CHKERR postProcMesh.add_entities(meshset, &prism, 1);
383  // CHKERR postProcMesh.add_entities(meshset,faces);
384  CHKERR postProcMesh.add_entities(meshset, edges);
385  if (tenNodesPostProcTets) {
386  CHKERR postProcMesh.convert_entities(meshset, true, false, false);
387  }
388  CHKERR postProcMesh.delete_entities(&meshset, 1);
389  CHKERR postProcMesh.delete_entities(edges);
390  // CHKERR postProcMesh.delete_entities(faces);
391 
392  CHKERR mField.get_moab().get_connectivity(
393  numeredEntFiniteElementPtr->getEnt(), conn, num_nodes, true);
394  MatrixDouble coords_prism_global;
395  coords_prism_global.resize(num_nodes, 3, false);
396  CHKERR mField.get_moab().get_coords(conn, num_nodes,
397  &coords_prism_global(0, 0));
398 
399  CHKERR postProcMesh.get_connectivity(prism, conn, num_nodes, false);
400  MatrixDouble coords_prism_local;
401  coords_prism_local.resize(num_nodes, 3, false);
402  CHKERR postProcMesh.get_coords(conn, num_nodes, &coords_prism_local(0, 0));
403 
404  if (gaussPtsThroughThickness.size2() != nb_through_thickness) {
405  pointsMap.clear();
406  gaussPtsTrianglesOnly.resize(3, nb_on_triangle, false);
407  gaussPtsTrianglesOnly.clear();
408  gaussPtsThroughThickness.resize(2, nb_through_thickness, false);
409  gaussPtsThroughThickness.clear();
410  const double eps = 1e-6;
411  int ggf = 0, ggt = 0;
412  for (int nn = 0; nn != num_nodes; nn++) {
413  double ksi = coords_prism_local(nn, 0);
414  double eta = coords_prism_local(nn, 1);
415  double zeta = coords_prism_local(nn, 2);
416  pointsMap.insert(PointsMap3D(ksi * 100, eta * 100, zeta * 100, nn));
417  if (fabs(zeta) < eps) {
418  gaussPtsTrianglesOnly(0, ggf) = ksi;
419  gaussPtsTrianglesOnly(1, ggf) = eta;
420  ggf++;
421  }
422  if (fabs(ksi) < eps && fabs(eta) < eps) {
423  gaussPtsThroughThickness(0, ggt) = zeta;
424  ggt++;
425  }
426  }
427  }
428 
429  for (int nn = 0; nn != num_nodes; nn++) {
430  const double ksi = coords_prism_local(nn, 0);
431  const double eta = coords_prism_local(nn, 1);
432  const double zeta = coords_prism_local(nn, 2);
433  const double n0 = N_MBTRI0(ksi, eta);
434  const double n1 = N_MBTRI1(ksi, eta);
435  const double n2 = N_MBTRI2(ksi, eta);
436  const double e0 = N_MBEDGE0(zeta);
437  const double e1 = N_MBEDGE1(zeta);
438  double coords_global[3];
439  for (int dd = 0; dd != 3; dd++) {
440  coords_global[dd] = n0 * e0 * coords_prism_global(0, dd) +
441  n1 * e0 * coords_prism_global(1, dd) +
442  n2 * e0 * coords_prism_global(2, dd) +
443  n0 * e1 * coords_prism_global(3, dd) +
444  n1 * e1 * coords_prism_global(4, dd) +
445  n2 * e1 * coords_prism_global(5, dd);
446  }
447  // cerr << coords_global[0] << " " << coords_global[1] << " " <<
448  // coords_global[2] << endl;
449  CHKERR postProcMesh.set_coords(&conn[nn], 1, coords_global);
450  }
451  }
452 
453  mapGaussPts.clear();
454  mapGaussPts.resize(nb_through_thickness * nb_on_triangle);
455  CHKERR postProcMesh.get_connectivity(prism, conn, num_nodes, false);
456  fill(mapGaussPts.begin(), mapGaussPts.end(), 0);
457  {
458  int gg = 0;
459  for (unsigned int ggf = 0; ggf != gaussPtsTrianglesOnly.size2(); ggf++) {
460  const double ksi = gaussPtsTrianglesOnly(0, ggf);
461  const double eta = gaussPtsTrianglesOnly(1, ggf);
462  for (unsigned int ggt = 0; ggt != gaussPtsThroughThickness.size2();
463  ggt++, gg++) {
464  const double zeta = gaussPtsThroughThickness(0, ggt);
465  PointsMap3D_multiIndex::iterator it;
466  it =
467  pointsMap.find(boost::make_tuple(ksi * 100, eta * 100, zeta * 100));
468  if (it != pointsMap.end()) {
469  mapGaussPts[gg] = conn[it->nN];
470  }
471  }
472  }
473  }
474 
476 }
virtual moab::Interface & get_moab()=0
bool tenNodesPostProcTets
std::map< EntityHandle, EntityHandle > elementsMap
moab::Interface & postProcMesh
ublas::matrix< double, ublas::row_major, DoubleAllocator > MatrixDouble
Definition: Types.hpp:74
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define N_MBEDGE1(x)
edge shape function
Definition: fem_tools.h:80
boost::shared_ptr< const NumeredEntFiniteElement > numeredEntFiniteElementPtr
#define N_MBEDGE0(x)
edge shape function
Definition: fem_tools.h:79
const Tensor2_symmetric_Expr< const ddTensor0< T, Dim, i, j >, typename promote< T, double >::V, Dim, i, j > dd(const Tensor0< T * > &a, const Index< i, Dim > index1, const Index< j, Dim > index2, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: ddTensor0.hpp:33
#define CHKERR
Inline error check.
Definition: definitions.h:596
std::vector< EntityHandle > mapGaussPts
#define N_MBTRI2(x, y)
triangle shape function
Definition: fem_tools.h:56
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407
static const double eps
ublas::vector< double, DoubleAllocator > VectorDouble
Definition: Types.hpp:72
#define N_MBTRI1(x, y)
triangle shape function
Definition: fem_tools.h:55
#define N_MBTRI0(x, y)
triangle shape function
Definition: fem_tools.h:54
PointsMap3D_multiIndex pointsMap

Member Data Documentation

◆ commonData

CommonData PostProcFatPrismOnRefinedMesh::commonData

Definition at line 723 of file PostProcOnRefMesh.hpp.

◆ elementsMap

std::map<EntityHandle, EntityHandle> PostProcFatPrismOnRefinedMesh::elementsMap

Definition at line 717 of file PostProcOnRefMesh.hpp.

◆ pointsMap

PointsMap3D_multiIndex PostProcFatPrismOnRefinedMesh::pointsMap

Definition at line 711 of file PostProcOnRefMesh.hpp.

◆ tenNodesPostProcTets

bool PostProcFatPrismOnRefinedMesh::tenNodesPostProcTets

Definition at line 675 of file PostProcOnRefMesh.hpp.


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