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