Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_STK_CustomMeshFactory.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_CustomMeshFactory_hpp__
12 #define __Panzer_STK_CustomMeshFactory_hpp__
13 
14 #include <Panzer_Traits.hpp> // for panzer::GlobalOrdinal
16 #include <Panzer_STK_Interface.hpp>
17 
18 namespace panzer_stk {
19 
20  class STK_Interface;
21 
26  public:
29 
31  virtual ~CustomMeshFactory();
32 
34  Teuchos::RCP<STK_Interface> buildMesh(stk::ParallelMachine parallelMach) const;
35 
36  virtual Teuchos::RCP<STK_Interface> buildUncommitedMesh(stk::ParallelMachine parallelMach) const;
37  virtual void completeMeshConstruction(STK_Interface & mesh,stk::ParallelMachine parallelMach) const;
38 
41 
44 
45  protected:
47 
48  void buildMetaData(STK_Interface & mesh) const;
49 
50  void buildElements(STK_Interface & mesh) const;
51  void addSideSets(STK_Interface & mesh) const;
52 
53  void fillSolutionFieldData(STK_Interface & mesh) const;
54 
56 
58 
60  int *Nodes_;
61 
62  double *Coords_;
63 
65  int *BlockIDs_;
67 
69 
70  double *ChargeDensity_;
72 
73  mutable unsigned int machRank_, machSize_;
74  };
75 
76 }
77 
78 #endif
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &paramList)
From ParameterListAcceptor.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
From ParameterListAcceptor.
Teuchos::RCP< STK_Interface > buildMesh(stk::ParallelMachine parallelMach) const
Build the mesh object.
void addSideSets(STK_Interface &mesh) const
virtual void completeMeshConstruction(STK_Interface &mesh, stk::ParallelMachine parallelMach) const
void fillSolutionFieldData(STK_Interface &mesh) const
void buildElements(STK_Interface &mesh) const
virtual Teuchos::RCP< STK_Interface > buildUncommitedMesh(stk::ParallelMachine parallelMach) const
void buildMetaData(STK_Interface &mesh) const