Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
panzer_stk::Quad8ToQuad4MeshFactory Class Reference

#include <Panzer_STK_Quad8ToQuad4MeshFactory.hpp>

Inheritance diagram for panzer_stk::Quad8ToQuad4MeshFactory:
Inheritance graph
[legend]

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. More...
 
virtual Teuchos::RCP
< STK_Interface
buildUncommitedMesh (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. More...
 
Teuchos::RCP< const
Teuchos::ParameterList
getValidParameters () const
 Derived from ParameterListAcceptor. More...
 
- 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
 
- Public Member Functions inherited from Teuchos::ParameterListAcceptorDefaultBase
RCP< ParameterListgetNonconstParameterList ()
 
RCP< ParameterListunsetParameterList ()
 
RCP< const ParameterListgetParameterList () 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 Member Functions inherited from Teuchos::ParameterListAcceptorDefaultBase
void setMyParamList (const RCP< ParameterList > &paramList)
 
RCP< ParameterListgetMyNonconstParamList ()
 
RCP< const ParameterListgetMyParamList () const
 

Protected Attributes

Teuchos::RCP
< panzer_stk::STK_Interface
quad8Mesh_
 
unsigned int machRank_
 
unsigned int machSize_
 
bool createEdgeBlocks_
 
bool offsetGIDs_
 If true, offset mesh GIDs to exercise 32-bit limits. More...
 
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 28 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

Constructor & Destructor Documentation

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

Definition at line 27 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 42 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

Member Function Documentation

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 52 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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 75 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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 93 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Derived from ParameterListAcceptor.

From ParameterListAcceptor.

Implements Teuchos::ParameterListAcceptor.

Definition at line 132 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Derived from ParameterListAcceptor.

From ParameterListAcceptor.

Reimplemented from Teuchos::ParameterListAcceptor.

Definition at line 147 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 169 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 255 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 320 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 349 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 352 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

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

Definition at line 370 of file Panzer_STK_Quad8ToQuad4MeshFactory.cpp.

Member Data Documentation

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

Definition at line 58 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

unsigned int panzer_stk::Quad8ToQuad4MeshFactory::machRank_
mutableprotected

Definition at line 60 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

unsigned int panzer_stk::Quad8ToQuad4MeshFactory::machSize_
mutableprotected

Definition at line 60 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

bool panzer_stk::Quad8ToQuad4MeshFactory::createEdgeBlocks_
protected

Definition at line 62 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

bool panzer_stk::Quad8ToQuad4MeshFactory::offsetGIDs_
protected

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

Definition at line 65 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

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

Definition at line 66 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

bool panzer_stk::Quad8ToQuad4MeshFactory::print_debug_
protected

Definition at line 68 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.

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

Definition at line 70 of file Panzer_STK_Quad8ToQuad4MeshFactory.hpp.


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