Opm::TwoPhaseMaterialTraits< ScalarT, wettingPhaseIdxV, nonWettingPhaseIdxV > Class Template Reference

A generic traits class for two-phase material laws. More...

#include <MaterialTraits.hpp>

Public Types

using Scalar = ScalarT
 The type used for scalar floating point values. More...
 

Static Public Attributes

static constexpr int numPhases = 2
 The number of fluid phases. More...
 
static constexpr int wettingPhaseIdx = wettingPhaseIdxV
 The index of the wetting phase. More...
 
static constexpr int nonWettingPhaseIdx = nonWettingPhaseIdxV
 The index of the non-wetting phase. More...
 

Detailed Description

template<class ScalarT, int wettingPhaseIdxV, int nonWettingPhaseIdxV>
class Opm::TwoPhaseMaterialTraits< ScalarT, wettingPhaseIdxV, nonWettingPhaseIdxV >

A generic traits class for two-phase material laws.

Member Typedef Documentation

◆ Scalar

template<class ScalarT , int wettingPhaseIdxV, int nonWettingPhaseIdxV>
using Opm::TwoPhaseMaterialTraits< ScalarT, wettingPhaseIdxV, nonWettingPhaseIdxV >::Scalar = ScalarT

The type used for scalar floating point values.

Member Data Documentation

◆ nonWettingPhaseIdx

template<class ScalarT , int wettingPhaseIdxV, int nonWettingPhaseIdxV>
constexpr int Opm::TwoPhaseMaterialTraits< ScalarT, wettingPhaseIdxV, nonWettingPhaseIdxV >::nonWettingPhaseIdx = nonWettingPhaseIdxV
staticconstexpr

The index of the non-wetting phase.

◆ numPhases

template<class ScalarT , int wettingPhaseIdxV, int nonWettingPhaseIdxV>
constexpr int Opm::TwoPhaseMaterialTraits< ScalarT, wettingPhaseIdxV, nonWettingPhaseIdxV >::numPhases = 2
staticconstexpr

The number of fluid phases.

◆ wettingPhaseIdx

template<class ScalarT , int wettingPhaseIdxV, int nonWettingPhaseIdxV>
constexpr int Opm::TwoPhaseMaterialTraits< ScalarT, wettingPhaseIdxV, nonWettingPhaseIdxV >::wettingPhaseIdx = wettingPhaseIdxV
staticconstexpr

The index of the wetting phase.


The documentation for this class was generated from the following file: