1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFSURFACETENSIONFORCE_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFSURFACETENSIONFORCE_HPP
4 #include "utils/VertexCFD_Utils_Constants.hpp"
6 #include <Panzer_Dimension.hpp>
7 #include <Panzer_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_Evaluator_Derived.hpp>
10 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
11 #include <Phalanx_FieldManager.hpp>
12 #include <Phalanx_config.hpp>
14 #include <Kokkos_Core.hpp>
20 namespace ClosureModel
25 template<
class EvalType,
class Traits,
int NumSpaceDim>
27 :
public panzer::EvaluatorWithBaseImpl<Traits>,
28 public PHX::EvaluatorDerived<EvalType, Traits>
31 using scalar_type =
typename EvalType::ScalarT;
32 static constexpr
int num_space_dim = NumSpaceDim;
35 const panzer::IntegrationRule& ir,
36 const Teuchos::ParameterList& closure_params,
37 const std::vector<std::string>& phase_names,
38 const std::string& flux_prefix =
"",
39 const std::string& gradient_prefix =
"");
41 void evaluateFields(
typename Traits::EvalData workset)
override;
43 KOKKOS_INLINE_FUNCTION
45 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
49 PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
51 _surface_tension_flux;
58 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
59 VertexCFD::Constants::MAX_NUM_VIEW>
64 = Kokkos::View<scalar_type*,
65 typename PHX::DevLayout<scalar_type>::type,
66 typename PHX::exec_space::scratch_memory_space,
67 Kokkos::MemoryUnmanaged>;
70 = Kokkos::View<scalar_type*,
71 typename PHX::DevLayout<scalar_type>::type,
72 typename PHX::exec_space::scratch_memory_space,
73 Kokkos::MemoryUnmanaged>;
75 using scratch_view_normal
76 = Kokkos::View<scalar_type**,
77 typename PHX::DevLayout<scalar_type>::type,
78 typename PHX::exec_space::scratch_memory_space,
79 Kokkos::MemoryUnmanaged>;
87 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFSURFACETENSIONFORCE_HPP