ABLATE Source Documentation  0.12.33
pressure.hpp
1 #ifndef ABLATELIBRARY_TCHEMSOOT_PRESSURE_HPP
2 #define ABLATELIBRARY_TCHEMSOOT_PRESSURE_HPP
3 #include <Kokkos_Macros.hpp>
4 #ifndef KOKKOS_ENABLE_CUDA
5 #include "TChem_KineticModelData.hpp"
6 #include "TChem_Util.hpp"
7 
8 namespace ablate::eos::tChemSoot {
9 
10 struct Pressure {
11  using host_device_type = typename Tines::UseThisDevice<host_exec_space>::type;
12  using device_type = typename Tines::UseThisDevice<exec_space>::type;
13 
14  using real_type_1d_view_type = Tines::value_type_1d_view<real_type, device_type>;
15  using real_type_2d_view_type = Tines::value_type_2d_view<real_type, device_type>;
16 
17  using real_type_2d_view_host_type = Tines::value_type_2d_view<real_type, host_device_type>;
18 
19  using kinetic_model_type = KineticModelConstData<device_type>;
20  using kinetic_model_host_type = KineticModelConstData<host_device_type>;
21 
22  static inline ordinal_type getWorkSpaceSize(ordinal_type numberSpecies) { return 0; }
23 
33  [[maybe_unused]] static void runDeviceBatch(
34  typename UseThisTeamPolicy<exec_space>::type& policy,
36  const real_type_2d_view_type& state,
38  const kinetic_model_type& kmcd);
39 
49  [[maybe_unused]] static void runHostBatch(
50  typename UseThisTeamPolicy<host_exec_space>::type& policy,
52  const real_type_2d_view_host_type& state,
54  const kinetic_model_host_type& kmcd);
55 };
56 
57 } // namespace ablate::eos::tChemSoot
58 #endif
59 #endif
Definition: densityFcn.hpp:11
Definition: pressure.hpp:10
static void runHostBatch(typename UseThisTeamPolicy< host_exec_space >::type &policy, const real_type_2d_view_host_type &state, const kinetic_model_host_type &kmcd)
Definition: pressure.cpp:47
static void runDeviceBatch(typename UseThisTeamPolicy< exec_space >::type &policy, const real_type_2d_view_type &state, const kinetic_model_type &kmcd)
Definition: pressure.cpp:42