1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFVARIABLEPROPERTIES_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFVARIABLEPROPERTIES_HPP
4 #include "utils/VertexCFD_Utils_PhaseIndex.hpp"
6 #include <Panzer_Dimension.hpp>
7 #include <Panzer_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_DataLayout.hpp>
10 #include <Phalanx_Evaluator_Derived.hpp>
11 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
12 #include <Phalanx_Field.hpp>
13 #include <Phalanx_FieldManager.hpp>
14 #include <Phalanx_KokkosDeviceTypes.hpp>
15 #include <Phalanx_MDField.hpp>
16 #include <Phalanx_config.hpp>
18 #include <Kokkos_Core.hpp>
24 namespace ClosureModel
30 template<
class EvalType,
class Traits>
32 :
public panzer::EvaluatorWithBaseImpl<Traits>,
33 public PHX::EvaluatorDerived<EvalType, Traits>
36 using scalar_type =
typename EvalType::ScalarT;
37 using view_layout =
typename PHX::DevLayout<scalar_type>::type;
40 const panzer::IntegrationRule& ir,
41 const Teuchos::ParameterList& lsvof_params,
42 const std::vector<std::string>& phase_names,
43 const bool& build_dxdts =
true,
44 const std::string& field_prefix =
"");
46 void evaluateFields(
typename Traits::EvalData workset)
override;
48 KOKKOS_INLINE_FUNCTION
50 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
52 PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _rho;
53 PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _mu;
54 PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _dxdt_rho;
58 Teuchos::RCP<PHX::DataLayout> _phase_layout;
59 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, PhaseIndex>
61 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, PhaseIndex>
63 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _alpha_n;
64 Kokkos::View<double*, view_layout, PHX::mem_space> _phase_rho;
65 Kokkos::View<double*, view_layout, PHX::mem_space> _phase_mu;
73 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFVARIABLEPROPERTIES_HPP