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::LineMeshFactory Class Reference

#include <Panzer_STK_LineMeshFactory.hpp>

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

Public Member Functions

 LineMeshFactory ()
 Constructor. More...
 
 ~LineMeshFactory ()
 Destructor. More...
 
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)
 From ParameterListAcceptor. More...
 
Teuchos::RCP< const
Teuchos::ParameterList
getValidParameters () const
 From ParameterListAcceptor. More...
 
Teuchos::Tuple< std::size_t, 2 > procRankToProcTuple (std::size_t procRank) const
 what is the 2D tuple describe this processor distribution 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 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, STK_Interface &mesh) const
 
std::pair< int, int > determineXElemSizeAndStart (int xBlock, unsigned int size, unsigned int rank) const
 
void addSideSets (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

double x0_
 
double xf_
 
int xBlocks_
 
int nXElems_
 
unsigned int machRank_
 
unsigned int machSize_
 
Teuchos::Tuple< std::size_t, 2 > procTuple_
 
- 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 left to right across the X-axis.

Definition at line 25 of file Panzer_STK_LineMeshFactory.hpp.

Constructor & Destructor Documentation

panzer_stk::LineMeshFactory::LineMeshFactory ( )

Constructor.

Definition at line 20 of file Panzer_STK_LineMeshFactory.cpp.

panzer_stk::LineMeshFactory::~LineMeshFactory ( )

Destructor.

Definition at line 26 of file Panzer_STK_LineMeshFactory.cpp.

Member Function Documentation

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

Build the mesh object.

Implements panzer_stk::STK_MeshFactory.

Definition at line 31 of file Panzer_STK_LineMeshFactory.cpp.

Teuchos::RCP< STK_Interface > panzer_stk::LineMeshFactory::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 47 of file Panzer_STK_LineMeshFactory.cpp.

void panzer_stk::LineMeshFactory::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 67 of file Panzer_STK_LineMeshFactory.cpp.

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

From ParameterListAcceptor.

Implements Teuchos::ParameterListAcceptor.

Definition at line 89 of file Panzer_STK_LineMeshFactory.cpp.

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

From ParameterListAcceptor.

Reimplemented from Teuchos::ParameterListAcceptor.

Definition at line 105 of file Panzer_STK_LineMeshFactory.cpp.

Teuchos::Tuple< std::size_t, 2 > panzer_stk::LineMeshFactory::procRankToProcTuple ( std::size_t  procRank) const

what is the 2D tuple describe this processor distribution

Convert processor rank to a tuple.

Definition at line 271 of file Panzer_STK_LineMeshFactory.cpp.

void panzer_stk::LineMeshFactory::initializeWithDefaults ( )
protected

Definition at line 125 of file Panzer_STK_LineMeshFactory.cpp.

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

Definition at line 134 of file Panzer_STK_LineMeshFactory.cpp.

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

Definition at line 158 of file Panzer_STK_LineMeshFactory.cpp.

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

Definition at line 168 of file Panzer_STK_LineMeshFactory.cpp.

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

Definition at line 202 of file Panzer_STK_LineMeshFactory.cpp.

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

Definition at line 225 of file Panzer_STK_LineMeshFactory.cpp.

Member Data Documentation

double panzer_stk::LineMeshFactory::x0_
protected

Definition at line 59 of file Panzer_STK_LineMeshFactory.hpp.

double panzer_stk::LineMeshFactory::xf_
protected

Definition at line 60 of file Panzer_STK_LineMeshFactory.hpp.

int panzer_stk::LineMeshFactory::xBlocks_
protected

Definition at line 62 of file Panzer_STK_LineMeshFactory.hpp.

int panzer_stk::LineMeshFactory::nXElems_
protected

Definition at line 64 of file Panzer_STK_LineMeshFactory.hpp.

unsigned int panzer_stk::LineMeshFactory::machRank_
mutableprotected

Definition at line 66 of file Panzer_STK_LineMeshFactory.hpp.

unsigned int panzer_stk::LineMeshFactory::machSize_
mutableprotected

Definition at line 66 of file Panzer_STK_LineMeshFactory.hpp.

Teuchos::Tuple<std::size_t,2> panzer_stk::LineMeshFactory::procTuple_
mutableprotected

Definition at line 67 of file Panzer_STK_LineMeshFactory.hpp.


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