VertexCFD  0.0-dev
VertexCFD_Closure_IncompressibleChienKEpsilonEddyViscosity.hpp
1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLECHIENKEPSILONEDDYVISCOSITY_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLECHIENKEPSILONEDDYVISCOSITY_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 #include <Panzer_GlobalData.hpp>
7 
8 #include <Phalanx_Evaluator_Derived.hpp>
9 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
10 #include <Phalanx_FieldManager.hpp>
11 #include <Phalanx_config.hpp>
12 
13 #include <Kokkos_Core.hpp>
14 
15 namespace VertexCFD
16 {
17 namespace ClosureModel
18 {
19 //---------------------------------------------------------------------------//
20 // Turbulent eddy viscosity for Chien's low-Re K-Epsilon turbulence model
21 //---------------------------------------------------------------------------//
22 template<class EvalType, class Traits>
24  : public panzer::EvaluatorWithBaseImpl<Traits>,
25  public PHX::EvaluatorDerived<EvalType, Traits>
26 {
27  public:
28  using scalar_type = typename EvalType::ScalarT;
29 
31  const panzer::IntegrationRule& ir,
32  const Teuchos::RCP<panzer::GlobalData>& global_data,
33  const Teuchos::ParameterList& user_params);
34 
35  void evaluateFields(typename Traits::EvalData workset) override;
36 
37  KOKKOS_INLINE_FUNCTION
38  void operator()(
39  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
40 
41  private:
42  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>
43  _turb_kinetic_energy;
44  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>
45  _turb_dissipation_rate;
46  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _nu;
47  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _distance;
48 
49  Teuchos::RCP<panzer::GlobalData> _global_data;
50 
51  double _C_nu;
52  double _C_tau;
53  int _num_grad_dim;
54  double _area;
55 
56  scalar_type _wall_shear_stress;
57 
58  public:
59  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _nu_t;
60 };
61 
62 //---------------------------------------------------------------------------//
63 
64 } // end namespace ClosureModel
65 } // end namespace VertexCFD
66 
67 #endif // end
68  // VERTEXCFD_CLOSURE_INCOMPRESSIBLECHIENKEPSILONEDDYVISCOSITY_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::IncompressibleChienKEpsilonEddyViscosity
Definition: VertexCFD_Closure_IncompressibleChienKEpsilonEddyViscosity.hpp:26