Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_STK_ScatterFields_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_ScatterFields_decl_HPP__
12 #define __PANZER_STK_ScatterFields_decl_HPP__
13 
14 #include "Phalanx_config.hpp"
15 #include "Phalanx_MDField.hpp"
16 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
17 #include "Phalanx_Evaluator_Derived.hpp"
18 #include "Phalanx_FieldManager.hpp"
19 
21 
22 #include "Panzer_Dimension.hpp"
23 #include "Panzer_Traits.hpp"
24 #include "Panzer_STK_Interface.hpp"
25 
27 
28 namespace panzer_stk {
29 
36 template <typename EvalT,typename TraitsT>
38  public PHX::EvaluatorDerived<EvalT, TraitsT> {
39  typedef typename EvalT::ScalarT ScalarT;
41 
42  std::vector< PHX::MDField<const ScalarT,panzer::Cell,panzer::NODE> > scatterFields_;
44 
45  std::vector<double> scaling_;
46 
48 
49  void initialize(const std::string & scatterName,
50  const Teuchos::RCP<STK_Interface> mesh,
52  const std::vector<std::string> & names,
53  const std::vector<double> & scaling);
54 
55 public:
56 
57  ScatterFields(const std::string & scatterName,
58  const Teuchos::RCP<STK_Interface> mesh,
60  const std::vector<std::string> & names);
61 
62  ScatterFields(const std::string & scatterName,
63  const Teuchos::RCP<STK_Interface> mesh,
65  const std::vector<std::string> & names,
66  const std::vector<double> & scaling);
67 
68  void postRegistrationSetup(typename TraitsT::SetupData d,
70 
71  void evaluateFields(typename TraitsT::EvalData d);
72 };
73 
74 }
75 
76 // **************************************************************
77 #endif
void initialize(const std::string &scatterName, const Teuchos::RCP< STK_Interface > mesh, const Teuchos::RCP< const panzer::PureBasis > &basis, const std::vector< std::string > &names, const std::vector< double > &scaling)
stk::mesh::Field< double > SolutionFieldType
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
void postRegistrationSetup(typename TraitsT::SetupData d, PHX::FieldManager< TraitsT > &fm)
panzer_stk::STK_Interface::SolutionFieldType VariableField
std::vector< PHX::MDField< const ScalarT, panzer::Cell, panzer::NODE > > scatterFields_
ScatterFields(const std::string &scatterName, const Teuchos::RCP< STK_Interface > mesh, const Teuchos::RCP< const panzer::PureBasis > &basis, const std::vector< std::string > &names)
Teuchos::RCP< STK_Interface > mesh_
void evaluateFields(typename TraitsT::EvalData d)