forked from AMReX-Combustion/PelePhysics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPelePhysicsConstraints.H
79 lines (66 loc) · 1.62 KB
/
PelePhysicsConstraints.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <type_traits>
namespace pele::physics {
// Forward declarations
namespace eos {
struct Fuego;
struct GammaLaw;
struct SRK;
struct Manifold;
} // namespace eos
// Forward declarations
namespace transport {
struct ConstTransport;
struct SimpleTransport;
struct SutherlandTransport;
struct ManifoldTransport;
} // namespace transport
template <typename EosModel, typename TransportModel>
struct is_valid_physics_combination : public std::true_type
{
};
template <>
struct is_valid_physics_combination<eos::GammaLaw, transport::SimpleTransport>
: public std::false_type
{
};
template <>
struct is_valid_physics_combination<
eos::GammaLaw,
transport::SutherlandTransport> : public std::false_type
{
};
template <>
struct is_valid_physics_combination<eos::SRK, transport::ConstTransport>
: public std::false_type
{
};
template <>
struct is_valid_physics_combination<eos::SRK, transport::SutherlandTransport>
: public std::false_type
{
};
// Manifold Transport doesn't apply except with Manifold EOS
// Manifold EOS requires Manifold or Constant Transport
#ifndef AMREX_USE_SYCL
template <typename EosModel>
struct is_valid_physics_combination<EosModel, transport::ManifoldTransport>
: public std::false_type
{
};
template <typename TransportModel>
struct is_valid_physics_combination<eos::Manifold, TransportModel>
: public std::false_type
{
};
template <>
struct is_valid_physics_combination<eos::Manifold, transport::ManifoldTransport>
: public std::true_type
{
};
template <>
struct is_valid_physics_combination<eos::Manifold, transport::ConstTransport>
: public std::true_type
{
};
#endif
} // namespace pele::physics