ABLATE Source Documentation  0.12.34
sensibleInternalEnergy.hpp
1 #ifndef ABLATELIBRARY_TCHEMSOOT_SENSIBLEINTERNALENERGY_HPP
2 #define ABLATELIBRARY_TCHEMSOOT_SENSIBLEINTERNALENERGY_HPP
3 
4 #include <Kokkos_Macros.hpp>
5 #ifndef KOKKOS_ENABLE_CUDA
6 
7 #include "TChem_KineticModelData.hpp"
8 #include "TChem_Util.hpp"
9 
10 namespace ablate::eos::tChemSoot {
11 
13  using host_device_type = typename Tines::UseThisDevice<host_exec_space>::type;
14  using device_type = typename Tines::UseThisDevice<exec_space>::type;
15 
16  using real_type_1d_view_type = Tines::value_type_1d_view<real_type, device_type>;
17  using real_type_2d_view_type = Tines::value_type_2d_view<real_type, device_type>;
18 
19  using real_type_1d_view_host_type = Tines::value_type_1d_view<real_type, host_device_type>;
20  using real_type_2d_view_host_type = Tines::value_type_2d_view<real_type, host_device_type>;
21 
22  using kinetic_model_type = KineticModelConstData<device_type>;
23  using kinetic_model_host_type = KineticModelConstData<host_device_type>;
24 
25  static inline ordinal_type getWorkSpaceSize(ordinal_type numberSpecies) { return numberSpecies; }
26 
36  [[maybe_unused]] static void runDeviceBatch(
37  typename UseThisTeamPolicy<exec_space>::type& policy,
39  const real_type_2d_view_type& state,
41  const real_type_1d_view_type& internalEnergy,
43  const real_type_2d_view_type& enthalpyMass,
45  const real_type_1d_view_type& enthalpyReference, const kinetic_model_type& kmcd);
46 
56  [[maybe_unused]] static void runHostBatch(
57  typename UseThisTeamPolicy<host_exec_space>::type& policy,
59  const real_type_2d_view_host_type& state,
61  const real_type_1d_view_host_type& internalEnergy,
63  const real_type_2d_view_host_type& enthalpyMass,
65  const real_type_1d_view_host_type& enthalpyReference, const kinetic_model_host_type& kmcd);
66 };
67 
68 } // namespace ablate::eos::tChemSoot
69 #endif
70 #endif
Definition: densityFcn.hpp:11
Definition: sensibleInternalEnergy.hpp:12
static void runHostBatch(typename UseThisTeamPolicy< host_exec_space >::type &policy, const real_type_2d_view_host_type &state, const real_type_1d_view_host_type &internalEnergy, const real_type_2d_view_host_type &enthalpyMass, const real_type_1d_view_host_type &enthalpyReference, const kinetic_model_host_type &kmcd)
Definition: sensibleInternalEnergy.cpp:63
static void runDeviceBatch(typename UseThisTeamPolicy< exec_space >::type &policy, const real_type_2d_view_type &state, const real_type_1d_view_type &internalEnergy, const real_type_2d_view_type &enthalpyMass, const real_type_1d_view_type &enthalpyReference, const kinetic_model_type &kmcd)
Definition: sensibleInternalEnergy.cpp:55