1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFARTIFICIALCOMPRESSION_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFARTIFICIALCOMPRESSION_HPP
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
7 #include <Phalanx_Evaluator_Derived.hpp>
8 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_FieldManager.hpp>
10 #include <Phalanx_config.hpp>
12 #include <Kokkos_Core.hpp>
18 namespace ClosureModel
23 template<
class EvalType,
class Traits,
int NumSpaceDim>
25 :
public panzer::EvaluatorWithBaseImpl<Traits>,
26 public PHX::EvaluatorDerived<EvalType, Traits>
29 using scalar_type =
typename EvalType::ScalarT;
30 static constexpr
int num_space_dim = NumSpaceDim;
33 const panzer::IntegrationRule& ir,
34 const Teuchos::ParameterList& closure_params,
35 const std::string& scalar_name,
36 const std::string& equation_name,
37 const std::string& flux_prefix =
"",
38 const std::string& gradient_prefix =
"",
39 const std::string& field_prefix =
"");
41 void evaluateFields(
typename Traits::EvalData workset)
override;
43 KOKKOS_INLINE_FUNCTION
45 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
48 PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
51 PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
55 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _scalar;
57 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
59 Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
74 = Kokkos::View<scalar_type**,
75 typename PHX::DevLayout<scalar_type>::type,
76 typename PHX::exec_space::scratch_memory_space,
77 Kokkos::MemoryUnmanaged>;
85 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFARTIFICIALCOMPRESSION_HPP