VertexCFD  0.0-dev
VertexCFD_Closure_IncompressiblePlanarPoiseuilleExact.hpp
1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLEPLANARPOISEUILLEEXACT_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLEPLANARPOISEUILLEEXACT_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 // Exact solution for planar Poiseuille flow with viscous dissipation
20 //---------------------------------------------------------------------------//
21 template<class EvalType, class Traits, int NumSpaceDim>
23  : public panzer::EvaluatorWithBaseImpl<Traits>,
24  public PHX::EvaluatorDerived<EvalType, Traits>
25 {
26  public:
27  using scalar_type = typename EvalType::ScalarT;
28  static constexpr int num_space_dim = NumSpaceDim;
29 
31  const panzer::IntegrationRule& ir,
32  const Teuchos::ParameterList& closure_params);
33 
34  void postRegistrationSetup(typename Traits::SetupData sd,
35  PHX::FieldManager<Traits>& fm) override;
36 
37  void evaluateFields(typename Traits::EvalData workset) override;
38 
39  KOKKOS_INLINE_FUNCTION
40  void operator()(
41  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
42 
43  public:
44  PHX::MDField<double, panzer::Cell, panzer::Point> _temperature;
45  PHX::MDField<double, panzer::Cell, panzer::Point> _lagrange_pressure;
46  Kokkos::Array<PHX::MDField<double, panzer::Cell, panzer::Point>, num_space_dim>
47  _velocity;
48 
49  private:
50  double _nu;
51  double _rho;
52  double _k;
53  double _cp;
54  double _h_min;
55  double _h_max;
56  double _T_l;
57  double _T_u;
58  double _S_u;
59 
60  int _ir_degree;
61  int _ir_index;
62 
63  PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim> _ip_coords;
64 };
65 
66 //---------------------------------------------------------------------------//
67 
68 } // end namespace ClosureModel
69 } // end namespace VertexCFD
70 
71 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLEPLANARPOISEUILLEEXACT_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::IncompressiblePlanarPoiseuilleExact
Definition: VertexCFD_Closure_IncompressiblePlanarPoiseuilleExact.hpp:25