Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_DOF.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_EVALUATOR_DOF_DECL_HPP
12 #define PANZER_EVALUATOR_DOF_DECL_HPP
13 
14 #include <string>
15 #include "Phalanx_Evaluator_Macros.hpp"
16 #include "Phalanx_MDField.hpp"
17 #include "PanzerDiscFE_config.hpp"
19 
20 namespace panzer {
21 
23 template<typename EvalT, typename TRAITS>
24 class DOF : public panzer::EvaluatorWithBaseImpl<TRAITS>,
25  public PHX::EvaluatorDerived<EvalT, TRAITS> {
26 public:
27 
28  DOF(const Teuchos::ParameterList& p);
29 
37  DOF(const PHX::FieldTag & input,
38  const PHX::FieldTag & output,
39  const panzer::BasisDescriptor & bd,
41 
42  void postRegistrationSetup(typename TRAITS::SetupData d,
44 
45  void evaluateFields(typename TRAITS::EvalData d);
46 
47 private:
48 
49  typedef typename EvalT::ScalarT ScalarT;
50 
54 
56 
59 
60  std::string basis_name;
61  std::size_t basis_index;
62 
64 };
65 
69 template<typename TRAITS>
70 class DOF<typename TRAITS::Jacobian,TRAITS> :
71  public panzer::EvaluatorWithBaseImpl<TRAITS>,
72  public PHX::EvaluatorDerived<typename TRAITS::Jacobian, TRAITS> {
73 public:
74 
75  DOF(const Teuchos::ParameterList& p);
76 
77  DOF(const PHX::FieldTag & input,
78  const PHX::FieldTag & output,
79  const panzer::BasisDescriptor & bd,
81 
82  void postRegistrationSetup(typename TRAITS::SetupData d,
84 
85  void preEvaluate(typename TRAITS::PreEvalData d);
86 
87  void evaluateFields(typename TRAITS::EvalData d);
88 
89 private:
90 
92 
96 
98 
101 
102  std::string basis_name;
103  std::size_t basis_index;
104 
107  PHX::View<int*> offsets_array;
108  std::string sensitivities_name; // This sets which gather operations have sensitivities
109  // and thus which DOF operations can use accelerated jacobians
110 
112 };
113 
114 }
115 
116 #endif
EvalT::ScalarT ScalarT
Definition: Panzer_DOF.hpp:49
PHX::MDField< ScalarT, Cell, Point > dof_ip_scalar
Definition: Panzer_DOF.hpp:57
DOF(const Teuchos::ParameterList &p)
bool use_descriptors_
Definition: Panzer_DOF.hpp:51
PHX::MDField< ScalarT, Cell, Point > dof_ip_scalar
Definition: Panzer_DOF.hpp:99
PHX::MDField< const ScalarT, Cell, Point > dof_basis
Definition: Panzer_DOF.hpp:97
panzer::BasisDescriptor bd_
Definition: Panzer_DOF.hpp:52
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
PHX::MDField< ScalarT, Cell, Point, Dim > dof_ip_vector
Definition: Panzer_DOF.hpp:100
panzer::Traits::Jacobian::ScalarT ScalarT
Definition: Panzer_DOF.hpp:91
PHX::MDField< const ScalarT, Cell, Point > dof_basis
Definition: Panzer_DOF.hpp:55
panzer::IntegrationDescriptor id_
Definition: Panzer_DOF.hpp:53
virtual void preEvaluate(typename Traits::PreEvalData d)=0
bool is_vector_basis
Definition: Panzer_DOF.hpp:63
void evaluateFields(typename TRAITS::EvalData d)
Interpolates basis DOF values to IP DOF values.
Definition: Panzer_DOF.hpp:24
PHX::MDField< ScalarT, Cell, Point, Dim > dof_ip_vector
Definition: Panzer_DOF.hpp:58
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &fm)
std::string basis_name
Definition: Panzer_DOF.hpp:60
std::size_t basis_index
Definition: Panzer_DOF.hpp:61