Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_Integrator_CurlBasisDotVector.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_Integrator_CurlBasisDotVector_hpp
12 #define Panzer_Integrator_CurlBasisDotVector_hpp
13 
15 //
16 // Include Files
17 //
19 
20 // C++
21 #include <string>
22 
23 // Kokkos
24 #include "Kokkos_DynRankView.hpp"
25 
26 // Panzer
29 
30 // Phalanx
31 #include "Phalanx_Evaluator_Derived.hpp"
32 #include "Phalanx_MDField.hpp"
33 
34 namespace panzer
35 {
52  template<typename EvalT, typename Traits>
54  :
55  public panzer::EvaluatorWithBaseImpl<Traits>,
56  public PHX::EvaluatorDerived<EvalT, Traits>
57  {
58  public:
59 
97  const std::string& resName,
98  const std::string& valName,
99  const panzer::BasisIRLayout& basis,
100  const panzer::IntegrationRule& ir,
101  const double& multiplier = 1,
102  const std::vector<std::string>& fmNames =
103  std::vector<std::string>());
104 
149  const Teuchos::ParameterList& p);
150 
190  const panzer::EvaluatorStyle& evalStyle,
191  const PHX::FieldTag& resTag,
192  const PHX::FieldTag& valTag,
193  const panzer::BasisDescriptor& bd,
195  const int& spaceDim = 3,
196  const double& multiplier = 1,
197  const std::vector<PHX::FieldTag>& multipliers =
198  std::vector<PHX::FieldTag>());
199 
212  void
214  typename Traits::SetupData sd,
216 
226  void
228  typename Traits::EvalData d);
229 
230  private:
231 
243 
247  using ScalarT = typename EvalT::ScalarT;
248 
258 
264 
269 
274 
280 
286 
293 
298  double multiplier_;
299 
304  std::vector<PHX::MDField<const ScalarT, panzer::Cell, panzer::IP>>
306 
312  PHX::View<Kokkos::View<const ScalarT**, typename PHX::DevLayout<ScalarT>::type, Kokkos::MemoryUnmanaged>*> kokkosFieldMults_;
313 
317  std::string basisName_;
318 
323  std::size_t basisIndex_;
324 
330 
336 
342  }; // end of class Integrator_CurlBasisDotVector
343 
344 } // end of namespace panzer
345 
346 #endif // Panzer_Integrator_CurlBasisDotVector_hpp
std::size_t basisIndex_
The index in the Workset bases for our particular BasisIRLayout name.
void evaluateFields(typename Traits::EvalData d)
Evaluate Fields.
PHX::MDField< ScalarT, panzer::Cell, panzer::IP > result2D_
A field used to build up the result of this integral when working on a two-dimensional vector field...
std::vector< PHX::MDField< const ScalarT, panzer::Cell, panzer::IP > > fieldMults_
The (possibly empty) list of fields that are multipliers out in front of the integral ( ...
bool useDescriptors_
A flag indicating whether or not to use the descriptor interface.
Teuchos::RCP< Teuchos::ParameterList > getValidParameters() const
Get Valid Parameters.
EvaluatorStyle
An indication of how an Evaluator will behave.
panzer::BasisDescriptor bd_
The BasisDescriptor for the basis to use.
double multiplier
The scalar multiplier out in front of the integral ( ).
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
panzer::IntegrationDescriptor id_
The IntegrationDescriptor for the quadrature to use.
PHX::MDField< ScalarT, panzer::Cell, panzer::IP, panzer::Dim > result3D_
A field used to build up the result of this integral when working on a three-dimensional vector field...
panzer::EvaluatorStyle evalStyle
The EvaluatorStyle of the parent Integrator_CurlBasisDotVector object.
PHX::MDField< const ScalarT, panzer::Cell, panzer::IP, panzer::Dim > vector3D_
A field representing the vector-valued function we&#39;re integrating ( ) in a three-dimensional problem...
int spaceDim_
The spatial dimension of the vector-valued function we&#39;re integrating, either 2 or 3...
void postRegistrationSetup(typename Traits::SetupData sd, PHX::FieldManager< Traits > &fm)
Post-Registration Setup.
PHX::MDField< ScalarT, panzer::Cell, panzer::BASIS > field_
A field to which we&#39;ll contribute, or in which we&#39;ll store, the result of computing this integral...
PHX::View< Kokkos::View< const ScalarT **, typename PHX::DevLayout< ScalarT >::type, Kokkos::MemoryUnmanaged > * > kokkosFieldMults_
The PHX::View representation of the (possibly empty) list of fields that are multipliers out in front...
Integrator_CurlBasisDotVector(const panzer::EvaluatorStyle &evalStyle, const std::string &resName, const std::string &valName, const panzer::BasisIRLayout &basis, const panzer::IntegrationRule &ir, const double &multiplier=1, const std::vector< std::string > &fmNames=std::vector< std::string >())
Main Constructor.
const panzer::EvaluatorStyle evalStyle_
An enum determining the behavior of this Evaluator.
std::string basisName_
The name of the basis we&#39;re using.
PHX::MDField< const ScalarT, panzer::Cell, panzer::IP > vector2D_
A field representing the vector-valued function we&#39;re integrating ( ) in a two-dimensional problem...
double multiplier_
The scalar multiplier out in front of the integral ( ).
typename EvalT::ScalarT ScalarT
The scalar type.