Panzer Version of the Day
Loading...
Searching...
No Matches
panzer_stk::Quad8ToQuad4MeshFactory Class Reference

#include <Panzer_STK_Quad8ToQuad4MeshFactory.hpp>

Inheritance diagram for panzer_stk::Quad8ToQuad4MeshFactory:

Public Member Functions

 Quad8ToQuad4MeshFactory (const std::string &quad8MeshFileName, stk::ParallelMachine mpi_comm=MPI_COMM_WORLD, const bool print_debug=false)
 Quad8ToQuad4MeshFactory (const Teuchos::RCP< panzer_stk::STK_Interface > &quad8Mesh, const bool print_debug=false)
Teuchos::RCP< STK_InterfacebuildMesh (stk::ParallelMachine parallelMach) const
 Build the mesh object.
virtual Teuchos::RCP< STK_InterfacebuildUncommitedMesh (stk::ParallelMachine parallelMach) const
virtual void completeMeshConstruction (STK_Interface &mesh, stk::ParallelMachine parallelMach) const
void setParameterList (const Teuchos::RCP< Teuchos::ParameterList > &paramList)
 Derived from ParameterListAcceptor.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters () const
 Derived from ParameterListAcceptor.
Public Member Functions inherited from panzer_stk::STK_MeshFactory
 STK_MeshFactory ()
void enableRebalance (bool enable, const Teuchos::RCP< const Teuchos::ParameterList > &rebalanceList=Teuchos::null)
void rebalance (STK_Interface &mesh) const
double getMeshCoord (const int nx, const double deltaX, const double x0) const

Protected Member Functions

void buildMetaData (stk::ParallelMachine parallelMach, STK_Interface &mesh) const
void buildElements (stk::ParallelMachine parallelMach, STK_Interface &mesh) const
void addSideSets (STK_Interface &mesh) const
void addNodeSets (STK_Interface &mesh) const
void addEdgeBlocks (STK_Interface &mesh) const
void copyCellFieldData (STK_Interface &mesh) const

Protected Attributes

Teuchos::RCP< panzer_stk::STK_Interfacequad8Mesh_
unsigned int machRank_
unsigned int machSize_
bool createEdgeBlocks_
bool offsetGIDs_
 If true, offset mesh GIDs to exercise 32-bit limits.
stk::mesh::EntityId offset_
bool print_debug_
std::string edgeBlockName_
Protected Attributes inherited from panzer_stk::STK_MeshFactory
std::vector< Teuchos::RCP< const PeriodicBC_MatcherBase > > periodicBCVec_
bool useBBoxSearch_
bool enableRebalance_
Teuchos::RCP< const Teuchos::ParameterList > rebalanceList_

Additional Inherited Members

Static Public Member Functions inherited from panzer_stk::STK_MeshFactory
static void parsePeriodicBCList (const Teuchos::RCP< Teuchos::ParameterList > &pl, std::vector< Teuchos::RCP< const PeriodicBC_MatcherBase > > &periodicBC, bool &useBBoxSearch)

Detailed Description

This class reads in a Quad8 mesh and converts it to a Quad4 mesh. It will create the cells/nodes/edges, copy the sideset and nodeset data, and copy a list of user provided cell (not nodal) field data into the mesh.

Definition at line 60 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

Constructor & Destructor Documentation

◆ Quad8ToQuad4MeshFactory() [1/2]

panzer_stk::Quad8ToQuad4MeshFactory::Quad8ToQuad4MeshFactory ( const std::string & quad8MeshFileName,
stk::ParallelMachine mpi_comm = MPI_COMM_WORLD,
const bool print_debug = false )

Definition at line 59 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ Quad8ToQuad4MeshFactory() [2/2]

panzer_stk::Quad8ToQuad4MeshFactory::Quad8ToQuad4MeshFactory ( const Teuchos::RCP< panzer_stk::STK_Interface > & quad8Mesh,
const bool print_debug = false )

Definition at line 74 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

Member Function Documentation

◆ buildMesh()

Teuchos::RCP< STK_Interface > panzer_stk::Quad8ToQuad4MeshFactory::buildMesh ( stk::ParallelMachine parallelMach) const
virtual

Build the mesh object.

Implements panzer_stk::STK_MeshFactory.

Definition at line 84 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ buildUncommitedMesh()

Teuchos::RCP< STK_Interface > panzer_stk::Quad8ToQuad4MeshFactory::buildUncommitedMesh ( stk::ParallelMachine parallelMach) const
virtual

This builds all the meta data of the mesh. Does not call metaData->commit. Allows user to add solution fields and other pieces. The mesh can be "completed" by calling completeMeshConstruction.

Implements panzer_stk::STK_MeshFactory.

Definition at line 107 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ completeMeshConstruction()

void panzer_stk::Quad8ToQuad4MeshFactory::completeMeshConstruction ( STK_Interface & mesh,
stk::ParallelMachine parallelMach ) const
virtual

Finishes building a mesh object started by buildUncommitedMesh.

Implements panzer_stk::STK_MeshFactory.

Definition at line 125 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ setParameterList()

void panzer_stk::Quad8ToQuad4MeshFactory::setParameterList ( const Teuchos::RCP< Teuchos::ParameterList > & paramList)

Derived from ParameterListAcceptor.

From ParameterListAcceptor.

Definition at line 164 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ getValidParameters()

Teuchos::RCP< const Teuchos::ParameterList > panzer_stk::Quad8ToQuad4MeshFactory::getValidParameters ( ) const

Derived from ParameterListAcceptor.

From ParameterListAcceptor.

Definition at line 179 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ buildMetaData()

void panzer_stk::Quad8ToQuad4MeshFactory::buildMetaData ( stk::ParallelMachine parallelMach,
STK_Interface & mesh ) const
protected

Definition at line 204 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ buildElements()

void panzer_stk::Quad8ToQuad4MeshFactory::buildElements ( stk::ParallelMachine parallelMach,
STK_Interface & mesh ) const
protected

Definition at line 290 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ addSideSets()

void panzer_stk::Quad8ToQuad4MeshFactory::addSideSets ( STK_Interface & mesh) const
protected

Definition at line 355 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ addNodeSets()

void panzer_stk::Quad8ToQuad4MeshFactory::addNodeSets ( STK_Interface & mesh) const
protected

Definition at line 384 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ addEdgeBlocks()

void panzer_stk::Quad8ToQuad4MeshFactory::addEdgeBlocks ( STK_Interface & mesh) const
protected

Definition at line 387 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

◆ copyCellFieldData()

void panzer_stk::Quad8ToQuad4MeshFactory::copyCellFieldData ( STK_Interface & mesh) const
protected

Definition at line 405 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

Member Data Documentation

◆ quad8Mesh_

Teuchos::RCP<panzer_stk::STK_Interface> panzer_stk::Quad8ToQuad4MeshFactory::quad8Mesh_
protected

Definition at line 90 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ machRank_

unsigned int panzer_stk::Quad8ToQuad4MeshFactory::machRank_
mutableprotected

Definition at line 92 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ machSize_

unsigned int panzer_stk::Quad8ToQuad4MeshFactory::machSize_
protected

Definition at line 92 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ createEdgeBlocks_

bool panzer_stk::Quad8ToQuad4MeshFactory::createEdgeBlocks_
protected

Definition at line 94 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ offsetGIDs_

bool panzer_stk::Quad8ToQuad4MeshFactory::offsetGIDs_
protected

If true, offset mesh GIDs to exercise 32-bit limits.

Definition at line 97 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ offset_

stk::mesh::EntityId panzer_stk::Quad8ToQuad4MeshFactory::offset_
mutableprotected

Definition at line 98 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ print_debug_

bool panzer_stk::Quad8ToQuad4MeshFactory::print_debug_
protected

Definition at line 100 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

◆ edgeBlockName_

std::string panzer_stk::Quad8ToQuad4MeshFactory::edgeBlockName_
protected

Definition at line 102 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.


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