VertexCFD  0.0-dev
VertexCFD_Closure_ConductionThermalConductivity.hpp
1 #ifndef VERTEXCFD_CLOSURE_CONDUCTIONTHERMALCONDUCTIVITY_HPP
2 #define VERTEXCFD_CLOSURE_CONDUCTIONTHERMALCONDUCTIVITY_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 #include <Panzer_IntegrationRule.hpp>
7 
8 #include <Phalanx_Evaluator_Derived.hpp>
9 #include <Phalanx_KokkosDeviceTypes.hpp>
10 #include <Phalanx_MDField.hpp>
11 
12 #include <Kokkos_Core.hpp>
13 
14 #include <string>
15 
16 namespace VertexCFD
17 {
18 namespace ClosureModel
19 {
20 //--------------------------------------------------------------------//
34 template<class EvalType, class Traits>
36  : public panzer::EvaluatorWithBaseImpl<Traits>,
37  public PHX::EvaluatorDerived<EvalType, Traits>
38 {
39 public:
41  using scalar_type = typename EvalType::ScalarT;
42 
53  ConductionThermalConductivity(const panzer::IntegrationRule& ir,
54  const Teuchos::ParameterList& closure_params);
55 
62  void evaluateFields(typename Traits::EvalData workset) override;
63 
71  KOKKOS_INLINE_FUNCTION
72  void operator()(
73  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
74 
79  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _thermal_conductivity;
80 
81 private:
83  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _temperature;
84 
86  int _num_space_dim;
87 
89  double _k0;
90 
92  enum ThermCondType
93  {
95  constant,
97  one_over_temp
98  };
99 
101  ThermCondType _therm_cond_type;
102 };
103 
104 //--------------------------------------------------------------------//
105 
106 } // end namespace ClosureModel
107 } // end namespace VertexCFD
108 
109 #endif // end VERTEXCFD_CLOSURE_CONDUCTIONTHERMALCONDUCTIVITY_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::ConductionThermalConductivity::_thermal_conductivity
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _thermal_conductivity
Evaluated field containing the computed thermal conductivity.
Definition: VertexCFD_Closure_ConductionThermalConductivity.hpp:79
VertexCFD::ClosureModel::ConductionThermalConductivity
Evaluates temperature‑dependent thermal conductivity for conduction models.
Definition: VertexCFD_Closure_ConductionThermalConductivity.hpp:38
VertexCFD::ClosureModel::ConductionThermalConductivity::operator()
KOKKOS_INLINE_FUNCTION void operator()(const Kokkos::TeamPolicy< PHX::exec_space >::member_type &team) const
Kokkos functor for parallel evaluation over a team policy.
Definition: VertexCFD_Closure_ConductionThermalConductivity_impl.hpp:67
VertexCFD::ClosureModel::ConductionThermalConductivity::evaluateFields
void evaluateFields(typename Traits::EvalData workset) override
Compute the thermal conductivity field for the current workset.
Definition: VertexCFD_Closure_ConductionThermalConductivity_impl.hpp:56
VertexCFD::ClosureModel::ConductionThermalConductivity::scalar_type
typename EvalType::ScalarT scalar_type
Scalar type used by the evaluator (extracted from EvalType).
Definition: VertexCFD_Closure_ConductionThermalConductivity.hpp:41
VertexCFD::ClosureModel::ConductionThermalConductivity::ConductionThermalConductivity
ConductionThermalConductivity(const panzer::IntegrationRule &ir, const Teuchos::ParameterList &closure_params)
Constructor.
Definition: VertexCFD_Closure_ConductionThermalConductivity_impl.hpp:14