ABLATE Source Documentation  0.12.34
temperature.hpp
1 #ifndef ABLATELIBRARY_TCHEM_TEMPERATURESOOT_HPP
2 #define ABLATELIBRARY_TCHEM_TEMPERATURESOOT_HPP
3 #include <Kokkos_Macros.hpp>
4 #ifndef KOKKOS_ENABLE_CUDA
5 
6 #include "TChem_KineticModelData.hpp"
7 #include "TChem_Util.hpp"
8 
9 namespace ablate::eos::tChemSoot {
10 
11 struct Temperature {
12  using host_device_type = typename Tines::UseThisDevice<host_exec_space>::type;
13  using device_type = typename Tines::UseThisDevice<exec_space>::type;
14 
15  using real_type_1d_view_type = Tines::value_type_1d_view<real_type, device_type>;
16  using real_type_2d_view_type = Tines::value_type_2d_view<real_type, device_type>;
17 
18  using real_type_1d_view_host_type = Tines::value_type_1d_view<real_type, host_device_type>;
19  using real_type_2d_view_host_type = Tines::value_type_2d_view<real_type, host_device_type>;
20 
21  using kinetic_model_type = KineticModelConstData<device_type>;
22  using kinetic_model_host_type = KineticModelConstData<host_device_type>;
23 
24  static inline ordinal_type getWorkSpaceSize(ordinal_type numberSpecies) { return numberSpecies; }
25 
35  [[maybe_unused]] static void runDeviceBatch(
36  typename UseThisTeamPolicy<exec_space>::type& policy,
38  const real_type_2d_view_type& state, const real_type_1d_view_type& internalEnergyRef,
40  const real_type_2d_view_type& enthalpyMass,
42  const real_type_1d_view_type& enthalpyReference, const kinetic_model_type& kmcd);
43 
53  [[maybe_unused]] static void runHostBatch(
54  const typename UseThisTeamPolicy<host_exec_space>::type& policy,
56  const real_type_2d_view_host_type& state, const real_type_1d_view_host_type& internalEnergyRef,
58  const real_type_2d_view_host_type& enthalpyMass,
60  const real_type_1d_view_host_type& enthalpyReference, const kinetic_model_host_type& kmcd);
61 };
62 
63 } // namespace ablate::eos::tChemSoot
64 #endif
65 #endif
Definition: densityFcn.hpp:11
Definition: temperature.hpp:11
static void runHostBatch(const typename UseThisTeamPolicy< host_exec_space >::type &policy, const real_type_2d_view_host_type &state, const real_type_1d_view_host_type &internalEnergyRef, const real_type_2d_view_host_type &enthalpyMass, const real_type_1d_view_host_type &enthalpyReference, const kinetic_model_host_type &kmcd)
Definition: temperature.cpp:65
static void runDeviceBatch(typename UseThisTeamPolicy< exec_space >::type &policy, const real_type_2d_view_type &state, const real_type_1d_view_type &internalEnergyRef, const real_type_2d_view_type &enthalpyMass, const real_type_1d_view_type &enthalpyReference, const kinetic_model_type &kmcd)
Definition: temperature.cpp:59