31 #ifndef OPM_MATERIAL_TRAITS_HPP 32 #define OPM_MATERIAL_TRAITS_HPP 43 template <
class ScalarT,
int numPhasesV>
59 template <
class ScalarT,
int wettingPhaseIdxV,
int nonWettingPhaseIdxV>
77 "wettingPhaseIdx and nonWettingPhaseIdx must be different");
85 template <
class ScalarT,
int wettingPhaseIdxV,
int nonWettingasPhaseIdxV,
int gasPhaseIdxV,
86 bool enableHysteresisV,
bool enableEndpointScalingV>
113 "wettingPhaseIdx is out of range");
115 "nonWettingPhaseIdx is out of range");
117 "gasPhaseIdx is out of range");
120 "wettingPhaseIdx and nonWettingPhaseIdx must be different");
122 "wettingPhaseIdx and gasPhaseIdx must be different");
124 "nonWettingPhaseIdx and gasPhaseIdx must be different");
A generic traits class for three-phase material laws.
Definition: MaterialTraits.hpp:87
ScalarT Scalar
The type used for scalar floating point values.
Definition: MaterialTraits.hpp:48
ScalarT Scalar
The type used for scalar floating point values.
Definition: MaterialTraits.hpp:64
static constexpr int numPhases
The number of fluid phases.
Definition: MaterialTraits.hpp:51
static constexpr int nonWettingPhaseIdx
The index of the non-wetting phase.
Definition: MaterialTraits.hpp:73
static constexpr int gasPhaseIdx
The index of the gas phase (i.e., the least wetting phase)
Definition: MaterialTraits.hpp:103
static constexpr int wettingPhaseIdx
The index of the wetting liquid phase.
Definition: MaterialTraits.hpp:97
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
static constexpr int wettingPhaseIdx
The index of the wetting phase.
Definition: MaterialTraits.hpp:70
A generic traits class which does not provide any indices.
Definition: MaterialTraits.hpp:44
static constexpr int nonWettingPhaseIdx
The index of the non-wetting liquid phase.
Definition: MaterialTraits.hpp:100
ScalarT Scalar
The type used for scalar floating point values.
Definition: MaterialTraits.hpp:91
static constexpr int numPhases
The number of fluid phases.
Definition: MaterialTraits.hpp:67
static constexpr bool enableHysteresis
Is hysteresis enabled.
Definition: MaterialTraits.hpp:106
static constexpr bool enableEndpointScaling
Is endpoint scaling enabled.
Definition: MaterialTraits.hpp:109
static constexpr int numPhases
The number of fluid phases.
Definition: MaterialTraits.hpp:94
A generic traits class for two-phase material laws.
Definition: MaterialTraits.hpp:60