7#ifndef FVCARTESIANSYSEQNTRAITS_H
8#define FVCARTESIANSYSEQNTRAITS_H
18template <
class SysEqn>
19constexpr bool isNS = std::is_same_v<SysEqn, FvSysEqnNS<2>> || std::is_same_v<SysEqn, FvSysEqnNS<3>>;
22template <
class SysEqn>
25 std::is_same_v<SysEqn,
26 FvSysEqnRANS<2, RANSModelConstants<RANS_SA_DV>>> || std::is_same_v<SysEqn, FvSysEqnRANS<3, RANSModelConstants<RANS_SA_DV>>> || std::is_same_v<SysEqn, FvSysEqnRANS<2, RANSModelConstants<RANS_FS>>> || std::is_same_v<SysEqn, FvSysEqnRANS<3, RANSModelConstants<RANS_FS>>> || std::is_same_v<SysEqn, FvSysEqnRANS<2, RANSModelConstants<RANS_KOMEGA>>> || std::is_same_v<SysEqn, FvSysEqnRANS<3, RANSModelConstants<RANS_KOMEGA>>>;
29template <
class SysEqn>
30constexpr bool isEEGas = std::is_same_v<SysEqn, FvSysEqnEEGas<2>> || std::is_same_v<SysEqn, FvSysEqnEEGas<3>>;
33template <
class SysEqn>
34constexpr bool isDetChem = std::is_same_v<SysEqn, FvSysEqnDetChem<2>> || std::is_same_v<SysEqn, FvSysEqnDetChem<3>>;
37template <
class SysEqn_>
44 template <
class SysEqn>
45 static one test(
decltype(&SysEqn::PV->C));
46 template <
class SysEqn>
50 enum {
value =
sizeof(test<SysEqn_>(0)) ==
sizeof(
one) };
54template <
class SysEqn_>
61 template <
class SysEqn>
62 static one test(
decltype(&SysEqn::PV->N));
63 template <
class SysEqn>
67 enum {
value =
sizeof(test<SysEqn_>(0)) ==
sizeof(
one) };
70template <
class SysEqn_>
77 template <
class SysEqn>
78 static one test(
decltype(&SysEqn::PV->A));
79 template <
class SysEqn>
83 enum {
value =
sizeof(test<SysEqn_>(0)) ==
sizeof(
one) };
86template <
class SysEqn>
87constexpr bool hasE = SysEqn::ConservativeVariables::RHO_E > -1;
static one test(decltype(&SysEqn::PV->A))
Checks if the primitive variable C exists.
static one test(decltype(&SysEqn::PV->C))
Checks if the primitive variable N exists.
static one test(decltype(&SysEqn::PV->N))
constexpr bool isRANS
Checks if the SysEqn is SysEqnRANS.
constexpr bool isDetChem
Checks if the SysEqn is SysEqnDetChem.
constexpr bool isNS
Checks if the SysEqn is SysEqnNS.
constexpr bool isEEGas
Checks if the SysEqn is SysEqnEEGas.