1 #ifndef VERTEXCFD_CLOSURE_CONDUCTIONVOLUMETRICSOURCE_HPP
2 #define VERTEXCFD_CLOSURE_CONDUCTIONVOLUMETRICSOURCE_HPP
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 #include <Panzer_IntegrationRule.hpp>
8 #include <Phalanx_Evaluator_Derived.hpp>
9 #include <Phalanx_KokkosDeviceTypes.hpp>
10 #include <Phalanx_MDField.hpp>
12 #include <Kokkos_Core.hpp>
18 namespace ClosureModel
35 template<
class EvalType,
class Traits>
37 :
public panzer::EvaluatorWithBaseImpl<Traits>,
38 public PHX::EvaluatorDerived<EvalType, Traits>
41 using scalar_type =
typename EvalType::ScalarT;
56 const Teuchos::ParameterList& closure_params);
68 PHX::FieldManager<Traits>& fm)
override;
89 KOKKOS_INLINE_FUNCTION
91 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
99 PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
_source;
121 PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim> _ip_coords;
133 HeatSourceType _heat_source_type;
141 #endif // end VERTEXCFD_CLOSURE_CONDUCTIONVOLUMETRICSOURCE_HPP
void evaluateFields(typename Traits::EvalData workset) override
Compute the source term at each integration point.
Definition: VertexCFD_Closure_ConductionVolumetricSource_impl.hpp:62
Definition: tstMethodManufacturedSolutionBC.cpp:23
Evaluator that adds a volumetric heat source (or sink) to the energy equation for conduction problems...
Definition: VertexCFD_Closure_ConductionVolumetricSource.hpp:39
KOKKOS_INLINE_FUNCTION void operator()(const Kokkos::TeamPolicy< PHX::exec_space >::member_type &team) const
Kokkos functor for parallel evaluation over teams.
Definition: VertexCFD_Closure_ConductionVolumetricSource_impl.hpp:75
ConductionVolumetricSource(const panzer::IntegrationRule &ir, const Teuchos::ParameterList &closure_params)
Constructor.
Definition: VertexCFD_Closure_ConductionVolumetricSource_impl.hpp:15
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _source
MDField that holds the evaluated source term.
Definition: VertexCFD_Closure_ConductionVolumetricSource.hpp:99
void postRegistrationSetup(typename Traits::SetupData sd, PHX::FieldManager< Traits > &fm) override
Register fields with the FieldManager after construction.
Definition: VertexCFD_Closure_ConductionVolumetricSource_impl.hpp:54