27#ifndef OPM_LINEAR_MATERIAL_PARAMS_HPP
28#define OPM_LINEAR_MATERIAL_PARAMS_HPP
40template<
class TraitsT>
43 enum { numPhases = TraitsT::numPhases };
45 typedef typename TraitsT::Scalar Scalar;
50 typedef TraitsT Traits;
59 for (
unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
71 { EnsureFinalized::check();
return pcMinSat_[phaseIdx]; }
79 { pcMinSat_[phaseIdx] = val; }
87 { EnsureFinalized::check();
return pcMaxSat_[phaseIdx]; }
95 { pcMaxSat_[phaseIdx] = val; }
98 Scalar pcMaxSat_[numPhases];
99 Scalar pcMinSat_[numPhases];
Default implementation for asserting finalization of parameter objects.
Default implementation for asserting finalization of parameter objects.
Definition EnsureFinalized.hpp:47
void finalize()
Mark the object as finalized.
Definition EnsureFinalized.hpp:75
Reference implementation of params for the linear M-phase material material.
Definition LinearMaterialParams.hpp:42
Scalar pcMaxSat(unsigned phaseIdx) const
Return the relative phase pressure at the maximum saturation of a phase.
Definition LinearMaterialParams.hpp:86
LinearMaterialParams()
The default constructor.
Definition LinearMaterialParams.hpp:57
void setPcMinSat(unsigned phaseIdx, Scalar val)
Set the relative phase pressure at the minimum saturation of a phase.
Definition LinearMaterialParams.hpp:78
Scalar pcMinSat(unsigned phaseIdx) const
Return the relative phase pressure at the minimum saturation of a phase.
Definition LinearMaterialParams.hpp:70
void setPcMaxSat(unsigned phaseIdx, Scalar val)
Set the relative phase pressure at the maximum saturation of a phase.
Definition LinearMaterialParams.hpp:94
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30