Panzer Version of the Day
|
#include <Panzer_STK_SquareTriMeshFactory.hpp>
Public Member Functions | |
SquareTriMeshFactory () | |
Constructor. | |
~SquareTriMeshFactory () | |
Destructor. | |
Teuchos::RCP< STK_Interface > | buildMesh (stk::ParallelMachine parallelMach) const |
Build the mesh object. | |
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 > ¶mList) |
From ParameterListAcceptor. | |
Teuchos::RCP< const Teuchos::ParameterList > | getValidParameters () const |
From ParameterListAcceptor. | |
Teuchos::Tuple< std::size_t, 2 > | procRankToProcTuple (std::size_t procRank) const |
what is the 2D tuple describe this processor distribution | |
![]() | |
STK_MeshFactory () | |
virtual Teuchos::RCP< STK_Interface > | buildMesh (stk::ParallelMachine parallelMach) const =0 |
virtual Teuchos::RCP< STK_Interface > | buildUncommitedMesh (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, 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 |
void | addSideSets (STK_Interface &mesh) const |
void | addNodeSets (STK_Interface &mesh) const |
void | addEdgeBlocks (STK_Interface &mesh) const |
Protected Attributes | |
double | x0_ |
double | y0_ |
double | xf_ |
double | yf_ |
int | xBlocks_ |
int | yBlocks_ |
int | nXElems_ |
int | nYElems_ |
int | xProcs_ |
int | yProcs_ |
unsigned int | machRank_ |
unsigned int | machSize_ |
Teuchos::Tuple< std::size_t, 2 > | procTuple_ |
bool | createEdgeBlocks_ |
std::string | edgeBlockName_ |
![]() | |
std::vector< Teuchos::RCP< const PeriodicBC_MatcherBase > > | periodicBCVec_ |
bool | useBBoxSearch_ |
bool | enableRebalance_ |
Teuchos::RCP< const Teuchos::ParameterList > | rebalanceList_ |
Additional Inherited Members | |
![]() | |
static void | parsePeriodicBCList (const Teuchos::RCP< Teuchos::ParameterList > &pl, std::vector< Teuchos::RCP< const PeriodicBC_MatcherBase > > &periodicBC, bool &useBBoxSearch) |
This builds a parallel mesh object. Note that the local IDs are ordered by going up the y axis and across the X-axis (in that order). For a mesh with two X blocks and one Y-block, with each block composed of 3x2 (x2) elements the numbering looks like:
8 9 10 11 4 5 6 7 0 1 2 3
Definition at line 64 of file Panzer_STK_SquareTriMeshFactory.hpp.
panzer_stk::SquareTriMeshFactory::SquareTriMeshFactory | ( | ) |
Constructor.
Definition at line 52 of file Panzer_STK_SquareTriMeshFactory.cpp.
panzer_stk::SquareTriMeshFactory::~SquareTriMeshFactory | ( | ) |
Destructor.
Definition at line 58 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
virtual |
Build the mesh object.
Implements panzer_stk::STK_MeshFactory.
Definition at line 63 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
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_SquareTriMeshFactory.cpp.
|
virtual |
Finishes building a mesh object started by buildUncommitedMesh
.
Implements panzer_stk::STK_MeshFactory.
Definition at line 145 of file Panzer_STK_SquareTriMeshFactory.cpp.
void panzer_stk::SquareTriMeshFactory::setParameterList | ( | const Teuchos::RCP< Teuchos::ParameterList > & | paramList | ) |
From ParameterListAcceptor.
Definition at line 177 of file Panzer_STK_SquareTriMeshFactory.cpp.
Teuchos::RCP< const Teuchos::ParameterList > panzer_stk::SquareTriMeshFactory::getValidParameters | ( | ) | const |
From ParameterListAcceptor.
Definition at line 205 of file Panzer_STK_SquareTriMeshFactory.cpp.
Teuchos::Tuple< std::size_t, 2 > panzer_stk::SquareTriMeshFactory::procRankToProcTuple | ( | std::size_t | procRank | ) | const |
what is the 2D tuple describe this processor distribution
Convert processor rank to a tuple.
Definition at line 515 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 238 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 253 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 292 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 304 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 361 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 384 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 407 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 477 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 496 of file Panzer_STK_SquareTriMeshFactory.cpp.
|
protected |
Definition at line 101 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 101 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 102 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 102 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 104 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 104 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 106 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 106 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
mutableprotected |
Definition at line 107 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 107 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
mutableprotected |
Definition at line 109 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 109 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
mutableprotected |
Definition at line 110 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 112 of file Panzer_STK_SquareTriMeshFactory.hpp.
|
protected |
Definition at line 114 of file Panzer_STK_SquareTriMeshFactory.hpp.