My Project
Opm::EclMaterialLawManager< TraitsT > Class Template Reference

Provides an simple way to create and manage the material law objects for a complete ECL deck. More...

#include <EclMaterialLawManager.hpp>

Public Types

using MaterialLaw = EclMultiplexerMaterial< Traits, GasOilTwoPhaseLaw, OilWaterTwoPhaseLaw, GasWaterTwoPhaseLaw >
 
using MaterialLawParams = typename MaterialLaw::Params
 

Public Member Functions

void initFromState (const EclipseState &eclState)
 
void initParamsForElements (const EclipseState &eclState, size_t numCompressedElems)
 
Scalar applySwatinit (unsigned elemIdx, Scalar pcow, Scalar Sw)
 Modify the initial condition according to the SWATINIT keyword. More...
 
bool enableEndPointScaling () const
 
bool enableHysteresis () const
 
MaterialLawParams & materialLawParams (unsigned elemIdx)
 
const MaterialLawParams & materialLawParams (unsigned elemIdx) const
 
const MaterialLawParams & connectionMaterialLawParams (unsigned satRegionIdx, unsigned elemIdx) const
 Returns a material parameter object for a given element and saturation region. More...
 
int satnumRegionIdx (unsigned elemIdx) const
 
int getKrnumSatIdx (unsigned elemIdx, FaceDir::DirEnum facedir) const
 
bool hasDirectionalRelperms () const
 
int imbnumRegionIdx (unsigned elemIdx) const
 
std::shared_ptr< MaterialLawParams > & materialLawParamsPointerReferenceHack (unsigned elemIdx)
 
template<class FluidState >
void updateHysteresis (const FluidState &fluidState, unsigned elemIdx)
 
void oilWaterHysteresisParams (Scalar &pcSwMdc, Scalar &krnSwMdc, unsigned elemIdx) const
 
void setOilWaterHysteresisParams (const Scalar &pcSwMdc, const Scalar &krnSwMdc, unsigned elemIdx)
 
void gasOilHysteresisParams (Scalar &pcSwMdc, Scalar &krnSwMdc, unsigned elemIdx) const
 
void setGasOilHysteresisParams (const Scalar &pcSwMdc, const Scalar &krnSwMdc, unsigned elemIdx)
 
EclEpsScalingPoints< Scalar > & oilWaterScaledEpsPointsDrainage (unsigned elemIdx)
 
const EclEpsScalingPointsInfo< Scalar > & oilWaterScaledEpsInfoDrainage (size_t elemIdx) const
 

Detailed Description

template<class TraitsT>
class Opm::EclMaterialLawManager< TraitsT >

Provides an simple way to create and manage the material law objects for a complete ECL deck.

Member Function Documentation

◆ applySwatinit()

template<class TraitsT >
Scalar Opm::EclMaterialLawManager< TraitsT >::applySwatinit ( unsigned  elemIdx,
Scalar  pcow,
Scalar  Sw 
)
inline

Modify the initial condition according to the SWATINIT keyword.

The method returns the water saturation which yields a givenn capillary pressure. The reason this method is not folded directly into initFromState() is that the capillary pressure given depends on the particuars of how the simulator calculates its initial condition.

◆ connectionMaterialLawParams()

template<class TraitsT >
const MaterialLawParams& Opm::EclMaterialLawManager< TraitsT >::connectionMaterialLawParams ( unsigned  satRegionIdx,
unsigned  elemIdx 
) const
inline

Returns a material parameter object for a given element and saturation region.

This method changes the saturation table idx in the original material law parameter object. In the context of ECL reservoir simulators, this is required to properly handle wells with its own saturation table idx. In order to reset the saturation table idx in the materialLawparams_ call the method with the cells satRegionIdx


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