Panzer Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
panzer_stk::CubeTetMeshFactory Class Reference

#include <Panzer_STK_CubeTetMeshFactory.hpp>

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

Public Member Functions

 CubeTetMeshFactory ()
 Constructor.
 
virtual ~CubeTetMeshFactory ()
 Destructor.
 
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)
 From ParameterListAcceptor.
 
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters () const
 From ParameterListAcceptor.
 
Teuchos::Tuple< std::size_t, 3 > procRankToProcTuple (std::size_t procRank) const
 what is the 3D tuple describe this processor distribution
 
- Public Member Functions inherited from panzer_stk::STK_MeshFactory
 STK_MeshFactory ()
 
virtual Teuchos::RCP< STK_InterfacebuildMesh (stk::ParallelMachine parallelMach) const =0
 
virtual Teuchos::RCP< STK_InterfacebuildUncommitedMesh (stk::ParallelMachine parallelMach) const =0
 
virtual void completeMeshConstruction (STK_Interface &mesh, stk::ParallelMachine parallelMach) const =0
 
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 initializeWithDefaults ()
 
void buildMetaData (stk::ParallelMachine parallelMach, STK_Interface &mesh) const
 
void buildElements (stk::ParallelMachine parallelMach, STK_Interface &mesh) const
 
void buildBlock (stk::ParallelMachine machRank, int xBlock, int yBlock, int zBlock, STK_Interface &mesh) const
 
std::pair< int, int > determineXElemSizeAndStart (int xBlock, unsigned int size, unsigned int rank) const
 
std::pair< int, int > determineYElemSizeAndStart (int yBlock, unsigned int size, unsigned int rank) const
 
std::pair< int, int > determineZElemSizeAndStart (int zBlock, unsigned int size, unsigned int rank) const
 
void addSideSets (STK_Interface &mesh) const
 
void addNodeSets (STK_Interface &mesh) const
 
void addEdgeBlocks (STK_Interface &mesh) const
 
void addFaceBlocks (STK_Interface &mesh) const
 
void buildTetsOnHex (const Teuchos::Tuple< int, 3 > &meshDesc, const Teuchos::Tuple< int, 3 > &element, stk::mesh::Part *block, const std::vector< stk::mesh::EntityId > &h_nodes, STK_Interface &mesh) const
 

Protected Attributes

double x0_
 
double y0_
 
double z0_
 
double xf_
 
double yf_
 
double zf_
 
int xBlocks_
 
int yBlocks_
 
int zBlocks_
 
int nXElems_
 
int nYElems_
 
int nZElems_
 
int xProcs_
 
int yProcs_
 
int zProcs_
 
unsigned int machRank_
 
unsigned int machSize_
 
Teuchos::Tuple< std::size_t, 3 > procTuple_
 
bool createEdgeBlocks_
 
bool createFaceBlocks_
 
std::string edgeBlockName_
 
std::string faceBlockName_
 
- 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 builds a parallel mesh object. Note that the local IDs are ordered by going up the z, then y axis and across the X-axis (in that order). See the SquareQuad mesh factory for more information.

Definition at line 58 of file Panzer_STK_CubeTetMeshFactory.hpp.

Constructor & Destructor Documentation

◆ CubeTetMeshFactory()

panzer_stk::CubeTetMeshFactory::CubeTetMeshFactory ( )

Constructor.

Definition at line 52 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ ~CubeTetMeshFactory()

panzer_stk::CubeTetMeshFactory::~CubeTetMeshFactory ( )
virtual

Destructor.

Definition at line 58 of file Panzer_STK_CubeTetMeshFactory.cpp.

Member Function Documentation

◆ buildMesh()

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

Build the mesh object.

Implements panzer_stk::STK_MeshFactory.

Definition at line 63 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ buildUncommitedMesh()

Teuchos::RCP< STK_Interface > panzer_stk::CubeTetMeshFactory::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 79 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ completeMeshConstruction()

void panzer_stk::CubeTetMeshFactory::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 147 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ setParameterList()

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

From ParameterListAcceptor.

Definition at line 185 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ getValidParameters()

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

From ParameterListAcceptor.

Definition at line 219 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ procRankToProcTuple()

Teuchos::Tuple< std::size_t, 3 > panzer_stk::CubeTetMeshFactory::procRankToProcTuple ( std::size_t  procRank) const

what is the 3D tuple describe this processor distribution

Convert processor rank to a tuple.

Definition at line 672 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ initializeWithDefaults()

void panzer_stk::CubeTetMeshFactory::initializeWithDefaults ( )
protected

Definition at line 258 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ buildMetaData()

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

Definition at line 275 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ buildElements()

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

Definition at line 319 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ buildBlock()

void panzer_stk::CubeTetMeshFactory::buildBlock ( stk::ParallelMachine  machRank,
int  xBlock,
int  yBlock,
int  zBlock,
STK_Interface mesh 
) const
protected

Definition at line 333 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ determineXElemSizeAndStart()

std::pair< int, int > panzer_stk::CubeTetMeshFactory::determineXElemSizeAndStart ( int  xBlock,
unsigned int  size,
unsigned int  rank 
) const
protected

Definition at line 460 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ determineYElemSizeAndStart()

std::pair< int, int > panzer_stk::CubeTetMeshFactory::determineYElemSizeAndStart ( int  yBlock,
unsigned int  size,
unsigned int  rank 
) const
protected

Definition at line 483 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ determineZElemSizeAndStart()

std::pair< int, int > panzer_stk::CubeTetMeshFactory::determineZElemSizeAndStart ( int  zBlock,
unsigned int  size,
unsigned int  rank 
) const
protected

Definition at line 509 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ addSideSets()

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

Definition at line 534 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ addNodeSets()

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

Definition at line 621 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ addEdgeBlocks()

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

Definition at line 641 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ addFaceBlocks()

void panzer_stk::CubeTetMeshFactory::addFaceBlocks ( STK_Interface mesh) const
protected

Definition at line 657 of file Panzer_STK_CubeTetMeshFactory.cpp.

◆ buildTetsOnHex()

void panzer_stk::CubeTetMeshFactory::buildTetsOnHex ( const Teuchos::Tuple< int, 3 > &  meshDesc,
const Teuchos::Tuple< int, 3 > &  element,
stk::mesh::Part *  block,
const std::vector< stk::mesh::EntityId > &  h_nodes,
STK_Interface mesh 
) const
protected

Definition at line 397 of file Panzer_STK_CubeTetMeshFactory.cpp.

Member Data Documentation

◆ x0_

double panzer_stk::CubeTetMeshFactory::x0_
protected

Definition at line 103 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ y0_

double panzer_stk::CubeTetMeshFactory::y0_
protected

Definition at line 103 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ z0_

double panzer_stk::CubeTetMeshFactory::z0_
protected

Definition at line 103 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ xf_

double panzer_stk::CubeTetMeshFactory::xf_
protected

Definition at line 104 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ yf_

double panzer_stk::CubeTetMeshFactory::yf_
protected

Definition at line 104 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ zf_

double panzer_stk::CubeTetMeshFactory::zf_
protected

Definition at line 104 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ xBlocks_

int panzer_stk::CubeTetMeshFactory::xBlocks_
protected

Definition at line 106 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ yBlocks_

int panzer_stk::CubeTetMeshFactory::yBlocks_
protected

Definition at line 106 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ zBlocks_

int panzer_stk::CubeTetMeshFactory::zBlocks_
protected

Definition at line 106 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ nXElems_

int panzer_stk::CubeTetMeshFactory::nXElems_
protected

Definition at line 108 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ nYElems_

int panzer_stk::CubeTetMeshFactory::nYElems_
protected

Definition at line 108 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ nZElems_

int panzer_stk::CubeTetMeshFactory::nZElems_
protected

Definition at line 108 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ xProcs_

int panzer_stk::CubeTetMeshFactory::xProcs_
mutableprotected

Definition at line 110 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ yProcs_

int panzer_stk::CubeTetMeshFactory::yProcs_
protected

Definition at line 110 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ zProcs_

int panzer_stk::CubeTetMeshFactory::zProcs_
protected

Definition at line 110 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ machRank_

unsigned int panzer_stk::CubeTetMeshFactory::machRank_
mutableprotected

Definition at line 112 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ machSize_

unsigned int panzer_stk::CubeTetMeshFactory::machSize_
protected

Definition at line 112 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ procTuple_

Teuchos::Tuple<std::size_t,3> panzer_stk::CubeTetMeshFactory::procTuple_
mutableprotected

Definition at line 114 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ createEdgeBlocks_

bool panzer_stk::CubeTetMeshFactory::createEdgeBlocks_
protected

Definition at line 116 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ createFaceBlocks_

bool panzer_stk::CubeTetMeshFactory::createFaceBlocks_
protected

Definition at line 117 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ edgeBlockName_

std::string panzer_stk::CubeTetMeshFactory::edgeBlockName_
protected

Definition at line 119 of file Panzer_STK_CubeTetMeshFactory.hpp.

◆ faceBlockName_

std::string panzer_stk::CubeTetMeshFactory::faceBlockName_
protected

Definition at line 120 of file Panzer_STK_CubeTetMeshFactory.hpp.


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