VertexCFD  0.0-dev
VertexCFD_Closure_ConductionTimeDerivative.hpp
1 #ifndef VERTEXCFD_CLOSURE_CONDUCTIONTIMEDERIVATIVE_HPP
2 #define VERTEXCFD_CLOSURE_CONDUCTIONTIMEDERIVATIVE_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 
7 #include <Phalanx_Evaluator_Derived.hpp>
8 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_FieldManager.hpp>
10 #include <Phalanx_config.hpp>
11 
12 #include <Kokkos_Core.hpp>
13 
14 namespace VertexCFD
15 {
16 namespace ClosureModel
17 {
18 //---------------------------------------------------------------------------//
19 template<class EvalType, class Traits>
20 class ConductionTimeDerivative : public panzer::EvaluatorWithBaseImpl<Traits>,
21  public PHX::EvaluatorDerived<EvalType, Traits>
22 {
23  public:
24  using scalar_type = typename EvalType::ScalarT;
25 
26  ConductionTimeDerivative(const panzer::IntegrationRule& ir);
27 
28  void evaluateFields(typename Traits::EvalData d) override;
29 
30  KOKKOS_INLINE_FUNCTION
31  void operator()(
32  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
33 
34  public:
35  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _dqdt_energy;
36 
37  private:
38  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _density;
39  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _specific_heat;
40  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _dxdt_temperature;
41 };
42 
43 //---------------------------------------------------------------------------//
44 
45 } // end namespace ClosureModel
46 } // namespace VertexCFD
47 
48 #endif // end VERTEXCFD_CLOSURE_CONDUCTIONTIMEDERIVATIVE_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::ConductionTimeDerivative
Definition: VertexCFD_Closure_ConductionTimeDerivative.hpp:22