VertexCFD  0.0-dev
VertexCFD_Closure_IncompressibleTimeDerivative.hpp
1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLETIMEDERIVATIVE_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLETIMEDERIVATIVE_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, int NumSpaceDim>
21  : public panzer::EvaluatorWithBaseImpl<Traits>,
22  public PHX::EvaluatorDerived<EvalType, Traits>
23 {
24  public:
25  using scalar_type = typename EvalType::ScalarT;
26  static constexpr int num_space_dim = NumSpaceDim;
27 
28  IncompressibleTimeDerivative(const panzer::IntegrationRule& ir,
29  const Teuchos::ParameterList& fluid_params);
30 
31  void evaluateFields(typename Traits::EvalData d) override;
32 
33  KOKKOS_INLINE_FUNCTION
34  void operator()(
35  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
36 
37  public:
38  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _dqdt_continuity;
39  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _dqdt_energy;
40  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
41  num_space_dim>
42  _dqdt_momentum;
43 
44  private:
45  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>
46  _dxdt_lagrange_pressure;
47  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _rho;
48  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _cp;
49  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
50  num_space_dim>
51  _dxdt_velocity;
52  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _dxdt_temperature;
53 
54  bool _solve_temp;
55  double _beta;
56 };
57 
58 //---------------------------------------------------------------------------//
59 
60 } // end namespace ClosureModel
61 } // namespace VertexCFD
62 
63 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLETIMEDERIVATIVE_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::IncompressibleTimeDerivative
Definition: VertexCFD_Closure_IncompressibleTimeDerivative.hpp:23