1 #ifndef VERTEXCFD_CLOSURE_RADBADExactSolution_HPP
2 #define VERTEXCFD_CLOSURE_RADBADExactSolution_HPP
4 #include "rad_solver/species_properties/VertexCFD_ConstantSpeciesProperties.hpp"
5 #include "utils/VertexCFD_Utils_Constants.hpp"
7 #include <Panzer_Dimension.hpp>
8 #include <Panzer_Evaluator_WithBaseImpl.hpp>
10 #include <Phalanx_Evaluator_Derived.hpp>
11 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
12 #include <Phalanx_FieldManager.hpp>
13 #include <Phalanx_config.hpp>
15 #include <Teuchos_ParameterList.hpp>
17 #include <Kokkos_Core.hpp>
21 namespace ClosureModel
26 template<
class EvalType,
class Traits,
int NumSpaceDim>
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,
37 const Teuchos::ParameterList& closure_params);
39 void postRegistrationSetup(
typename Traits::SetupData sd,
40 PHX::FieldManager<Traits>& fm)
override;
42 void evaluateFields(
typename Traits::EvalData workset)
override;
44 KOKKOS_INLINE_FUNCTION
46 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
52 Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
53 VertexCFD::Constants::MAX_NUM_VIEW>
60 PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim> _ip_coords;
61 Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
65 Kokkos::View<double**, Kokkos::LayoutLeft, PHX::mem_space> _bateman_matrix;
66 Kokkos::Array<double, VertexCFD::Constants::MAX_NUM_VIEW> _scale;
68 bool _build_advection;
69 bool _build_diffusion;
86 = Kokkos::View<scalar_type**,
87 typename PHX::DevLayout<scalar_type>::type,
88 typename PHX::exec_space::scratch_memory_space,
89 Kokkos::MemoryUnmanaged>;
97 #endif // VERTEXCFD_CLOSURE_RADBADExactSolution_HPP