1 #ifndef VERTEXCFD_CLOSURE_RADLOCALTIMESTEPSIZE_HPP
2 #define VERTEXCFD_CLOSURE_RADLOCALTIMESTEPSIZE_HPP
4 #include "rad_solver/species_properties/VertexCFD_ConstantSpeciesProperties.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>
18 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 std::string& neutron_flux_name);
39 void evaluateFields(
typename Traits::EvalData d)
override;
41 KOKKOS_INLINE_FUNCTION
43 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
49 PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _local_dt;
52 PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim>
54 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _neutron_flux;
55 Kokkos::View<double**, Kokkos::LayoutLeft, PHX::mem_space> _bateman_matrix;
56 Kokkos::View<double**, Kokkos::LayoutLeft, PHX::mem_space> _mic_cross_section;
57 Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
62 bool _build_transmutation;
63 bool _build_advection;
64 bool _build_diffusion;
78 = Kokkos::View<scalar_type**,
79 typename PHX::DevLayout<scalar_type>::type,
80 typename PHX::exec_space::scratch_memory_space,
81 Kokkos::MemoryUnmanaged>;
89 #endif // end VERTEXCFD_CLOSURE_RADLOCALTIMESTEPSIZE_HPP