VertexCFD  0.0-dev
VertexCFD_Closure_IncompressibleFluidProperties.hpp
1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLEFLUIDPROPERTIES_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLEFLUIDPROPERTIES_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 FluidProperties
19 {
20 //---------------------------------------------------------------------------//
21 // Fluid properties evaluation for fluid solver.
22 //---------------------------------------------------------------------------//
23 template<class EvalType, class Traits>
25  : public panzer::EvaluatorWithBaseImpl<Traits>,
26  public PHX::EvaluatorDerived<EvalType, Traits>
27 {
28  public:
29  using scalar_type = typename EvalType::ScalarT;
30 
31  IncompressibleFluidProperties(const panzer::IntegrationRule& ir,
32  const Teuchos::ParameterList& fluid_params);
33 
34  void evaluateFields(typename Traits::EvalData workset) override;
35 
36  KOKKOS_INLINE_FUNCTION
37  void operator()(
38  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
39 
40  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _density;
41  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _kinematic_viscosity;
42  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _thermal_conductivity;
43  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _specific_heat_capacity;
44  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _electrical_conductivity;
45 
46  private:
47  double _rho;
48  double _nu;
49  double _k;
50  double _cp;
51  double _sigma;
52 
53  enum FluidPropertyType
54  {
55  constant
56  };
57 
58  FluidPropertyType _fluid_prop_type;
59 };
60 
61 //---------------------------------------------------------------------------//
62 
63 } // end namespace FluidProperties
64 } // end namespace VertexCFD
65 
66 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLEFLUIDPROPERTIES_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::FluidProperties::IncompressibleFluidProperties
Definition: VertexCFD_Closure_IncompressibleFluidProperties.hpp:27