Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_STK_IOClosureModel_Factory_decl.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_IOCLOSURE_MODEL_FACTORY_DECL_HPP
12 #define PANZER_STK_IOCLOSURE_MODEL_FACTORY_DECL_HPP
13 
14 #include "PanzerAdaptersSTK_config.hpp"
15 #include "Panzer_Traits.hpp"
17 
18 #include "Panzer_STK_Interface.hpp"
19 
20 #include <vector>
21 #include <string>
22 
23 namespace panzer {
24  class InputEquationSet;
25 }
26 
27 namespace panzer_stk {
28 
29  template<typename EvalT>
31  public:
32 
34  const Teuchos::RCP<STK_Interface> & mesh,
35  const Teuchos::ParameterList & outputList);
36 
38  const Teuchos::RCP<STK_Interface> & mesh,
39  const std::map<std::string,std::vector<std::string> > & nodalFields,
40  const std::map<std::string,std::vector<std::string> > & cellFields);
41 
43  buildClosureModels(const std::string& model_id,
44  const Teuchos::ParameterList& models,
47  const Teuchos::ParameterList& default_params,
48  const Teuchos::ParameterList& user_data,
49  const Teuchos::RCP<panzer::GlobalData>& global_data,
51 
52  private:
54  std::map<std::string,std::vector<std::string> > & blockIdToFields) const;
55 
58 
60  std::map<std::string,std::vector<std::string> > blockIdToCellAvgFields_;
61 
63  std::map<std::string,std::vector<std::string> > blockIdToCellAvgVectors_;
64 
66  std::map<std::string,std::vector<std::string> > blockIdToCellFields_;
67 
69  std::map<std::string,std::vector<std::string> > blockIdToNodalFields_;
70 
79  mutable std::map<std::string,bool> blockIdEvaluated_;
80 
83  };
84 
85  template < >
88  const Teuchos::ParameterList& models,
91  const Teuchos::ParameterList& default_params,
92  const Teuchos::ParameterList& user_data,
93  const Teuchos::RCP<panzer::GlobalData>& global_data,
95 
96 }
97 
98 #endif
Teuchos::RCP< STK_Interface > mesh_
Mesh pointer, will be passed around.
std::map< std::string, std::vector< std::string > > blockIdToCellAvgVectors_
Map showing which cell averaged vector fields need to be written out for each element block...
std::map< std::string, std::vector< std::string > > blockIdToCellFields_
Map showing which cell fields need to be written out for each element block.
Teuchos::RCP< const panzer::ClosureModelFactory< EvalT > > userCMF_
we will reuse the drekar closure model factory
std::map< std::string, std::vector< std::string > > blockIdToNodalFields_
Map showing which nodal fields need to be written out for each element block.
std::map< std::string, std::vector< std::string > > blockIdToCellAvgFields_
Map showing which cell averaged fields need to be written out for each element block.
Teuchos::RCP< std::vector< Teuchos::RCP< PHX::Evaluator< panzer::Traits > > > > buildClosureModels(const std::string &model_id, const Teuchos::ParameterList &models, const panzer::FieldLayoutLibrary &fl, const Teuchos::RCP< panzer::IntegrationRule > &ir, const Teuchos::ParameterList &default_params, const Teuchos::ParameterList &user_data, const Teuchos::RCP< panzer::GlobalData > &global_data, PHX::FieldManager< panzer::Traits > &fm) const
IOClosureModelFactory(const Teuchos::RCP< const panzer::ClosureModelFactory< EvalT > > userCMF_, const Teuchos::RCP< STK_Interface > &mesh, const Teuchos::ParameterList &outputList)
void parseOutputList(const Teuchos::ParameterList &pl, std::map< std::string, std::vector< std::string > > &blockIdToFields) const