ABLATE Source Documentation  0.12.33
specificHeatConstantPressure.hpp
1 //
2 // Created by klbud on 10/3/22.
3 //
4 
5 #ifndef ABLATE_SPECIFICHEATCONSTANTPRESSURE_HPP
6 #define ABLATE_SPECIFICHEATCONSTANTPRESSURE_HPP
7 #include <Kokkos_Macros.hpp>
8 #ifndef KOKKOS_ENABLE_CUDA
9 
10 #include "TChem_KineticModelData.hpp"
11 #include "TChem_Util.hpp"
12 
13 namespace ablate::eos::tChemSoot {
14 
16  using host_device_type = typename Tines::UseThisDevice<host_exec_space>::type;
17  using device_type = typename Tines::UseThisDevice<exec_space>::type;
18 
19  using real_type_1d_view_type = Tines::value_type_1d_view<real_type, device_type>;
20  using real_type_2d_view_type = Tines::value_type_2d_view<real_type, device_type>;
21 
22  using real_type_1d_view_host_type = Tines::value_type_1d_view<real_type, host_device_type>;
23  using real_type_2d_view_host_type = Tines::value_type_2d_view<real_type, host_device_type>;
24 
25  using kinetic_model_type = KineticModelConstData<device_type>;
26  using kinetic_model_host_type = KineticModelConstData<host_device_type>;
27 
28  static inline ordinal_type getWorkSpaceSize(ordinal_type numberSpecies) { return numberSpecies; }
29 
39  [[maybe_unused]] static void runDeviceBatch(
40  typename UseThisTeamPolicy<exec_space>::type& policy,
42  const real_type_2d_view_type& state,
44  const real_type_1d_view_type& CpMix,
46  const kinetic_model_type& kmcd);
47 
58  [[maybe_unused]] static void runHostBatch(
59  typename UseThisTeamPolicy<host_exec_space>::type& policy,
61  const real_type_2d_view_host_type& state,
63  const real_type_1d_view_host_type& CpMix,
65  const kinetic_model_host_type& kmcd);
66 };
67 
68 } // namespace ablate::eos::tChemSoot
69 #endif // ABLATE_SPECIFICHEATCONSTANTPRESSURE_HPP
70 #endif
Definition: densityFcn.hpp:11
Definition: specificHeatConstantPressure.hpp:15
static void runDeviceBatch(typename UseThisTeamPolicy< exec_space >::type &policy, const real_type_2d_view_type &state, const real_type_1d_view_type &CpMix, const kinetic_model_type &kmcd)
Definition: specificHeatConstantPressure.cpp:60
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 &CpMix, const kinetic_model_host_type &kmcd)
Definition: specificHeatConstantPressure.cpp:67