Panzer Version of the Day
Loading...
Searching...
No Matches
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
34namespace 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
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
242 Teuchos::RCP<Teuchos::ParameterList> getValidParameters() const;
243
247 using ScalarT = typename EvalT::ScalarT;
248
258
264
269
274
279 PHX::MDField<ScalarT, panzer::Cell, panzer::BASIS> field_;
280
285 PHX::MDField<const ScalarT, panzer::Cell, panzer::IP> vector2D_;
286
291 PHX::MDField<const ScalarT, panzer::Cell, panzer::IP, panzer::Dim>
293
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
335 PHX::MDField<ScalarT, panzer::Cell, panzer::IP> result2D_;
336
341 PHX::MDField<ScalarT, panzer::Cell, panzer::IP, panzer::Dim> result3D_;
342 }; // end of class Integrator_CurlBasisDotVector
343
344} // end of namespace panzer
345
346#endif // Panzer_Integrator_CurlBasisDotVector_hpp
panzer::EvaluatorStyle evalStyle
The EvaluatorStyle of the parent Integrator_CurlBasisDotVector object.
double multiplier
The scalar multiplier out in front of the integral ( ).
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
const panzer::EvaluatorStyle evalStyle_
An enum determining the behavior of this Evaluator.
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...
PHX::MDField< const ScalarT, panzer::Cell, panzer::IP, panzer::Dim > vector3D_
A field representing the vector-valued function we're integrating ( ) in a three-dimensional problem.
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 ( ,...
std::string basisName_
The name of the basis we're using.
PHX::MDField< const ScalarT, panzer::Cell, panzer::IP > vector2D_
A field representing the vector-valued function we're integrating ( ) in a two-dimensional problem.
Teuchos::RCP< Teuchos::ParameterList > getValidParameters() const
Get Valid Parameters.
void postRegistrationSetup(typename Traits::SetupData sd, PHX::FieldManager< Traits > &fm)
Post-Registration Setup.
panzer::BasisDescriptor bd_
The BasisDescriptor for the basis to use.
double multiplier_
The scalar multiplier out in front of the integral ( ).
panzer::IntegrationDescriptor id_
The IntegrationDescriptor for the quadrature to use.
bool useDescriptors_
A flag indicating whether or not to use the descriptor interface.
int spaceDim_
The spatial dimension of the vector-valued function we're integrating, either 2 or 3.
PHX::MDField< ScalarT, panzer::Cell, panzer::BASIS > field_
A field to which we'll contribute, or in which we'll store, the result of computing this integral.
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...
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.
EvaluatorStyle
An indication of how an Evaluator will behave.