Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_STK_MultiBlockMeshFactory.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
11#ifndef __Panzer_STK_MultiBlockMeshFactory_hpp__
12#define __Panzer_STK_MultiBlockMeshFactory_hpp__
13
16
17namespace panzer_stk {
18
19class STK_Interface;
20
22public:
25
28
30 Teuchos::RCP<STK_Interface> buildMesh(stk::ParallelMachine parallelMach) const;
31
32 virtual Teuchos::RCP<STK_Interface> buildUncommitedMesh(stk::ParallelMachine parallelMach) const;
33 virtual void completeMeshConstruction(STK_Interface & mesh,stk::ParallelMachine parallelMach) const;
34
36 void setParameterList(const Teuchos::RCP<Teuchos::ParameterList> & paramList);
37
39 Teuchos::RCP<const Teuchos::ParameterList> getValidParameters() const;
40
42
43protected:
44 void buildMetaData(stk::ParallelMachine parallelMach, STK_Interface & mesh) const;
45 void buildElements(stk::ParallelMachine parallelMach,STK_Interface & mesh) const;
46 void buildBlock(stk::ParallelMachine parallelMach,int xBlock,int yBlock,STK_Interface & mesh) const;
47 std::pair<int,int> determineXElemSizeAndStart(int xBlock,unsigned int size,unsigned int rank) const;
48 std::pair<int,int> determineYElemSizeAndStart(int yBlock,unsigned int size,unsigned int rank) const;
49 void addSideSets(STK_Interface & mesh) const;
50
53 mutable unsigned int machRank_, machSize_;
54};
55
56}
57
58#endif
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &paramList)
From ParameterListAcceptor.
Teuchos::RCP< STK_Interface > buildMesh(stk::ParallelMachine parallelMach) const
Build the mesh object.
std::pair< int, int > determineXElemSizeAndStart(int xBlock, unsigned int size, unsigned int rank) const
void buildElements(stk::ParallelMachine parallelMach, STK_Interface &mesh) const
virtual void completeMeshConstruction(STK_Interface &mesh, stk::ParallelMachine parallelMach) const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
From ParameterListAcceptor.
void buildMetaData(stk::ParallelMachine parallelMach, STK_Interface &mesh) const
void buildBlock(stk::ParallelMachine parallelMach, int xBlock, int yBlock, STK_Interface &mesh) const
virtual Teuchos::RCP< STK_Interface > buildUncommitedMesh(stk::ParallelMachine parallelMach) const
std::pair< int, int > determineYElemSizeAndStart(int yBlock, unsigned int size, unsigned int rank) const