Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar > Class Template Reference

#include <GenericThresholdPressure.hpp>

Inheritance diagram for Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >:
Inheritance graph

Public Types

using CartesianIndexMapper = Dune::CartesianIndexMapper< Grid >
 
using LookUpData = Opm::LookUpData< Grid, GridView >
 
using LookUpCartesianData = Opm::LookUpCartesianData< Grid, GridView >
 

Public Member Functions

 GenericThresholdPressure (const CartesianIndexMapper &cartMapper, const GridView &gridView, const ElementMapper &elementMapper, const EclipseState &eclState)
 
Scalar thresholdPressure (int elem1Idx, int elem2Idx) const
 Returns the theshold pressure [Pa] for the intersection between two elements. More...
 
const std::vector< Scalar > & data () const
 Return the raw array with the threshold pressures. More...
 
void setFromRestart (const std::vector< Scalar > &values)
 Set the threshold pressures from a raw array. More...
 
std::vector< Scalar > getRestartVector () const
 Returns a fully expanded vector for restart file writing. More...
 

Protected Member Functions

void finishInit ()
 Actually compute the threshold pressures over a face as a pre-compute step. More...
 
void applyExplicitThresholdPressures_ ()
 
void configureThpresft_ ()
 
void logPressures ()
 

Protected Attributes

const CartesianIndexMappercartMapper_
 
const GridView & gridView_
 
const ElementMapper & elementMapper_
 
const LookUpData lookUpData_
 
const LookUpCartesianData lookUpCartesianData_
 
const EclipseState & eclState_
 
std::vector< Scalar > thpresDefault_
 
std::vector< Scalar > thpres_
 
unsigned numEquilRegions_ {}
 
std::vector< unsigned short > elemEquilRegion_
 
std::vector< Scalar > thpresftValues_
 
std::vector< int > cartElemFaultIdx_
 
bool enableThresholdPressure_
 

Member Typedef Documentation

◆ CartesianIndexMapper

template<class Grid , class GridView , class ElementMapper , class Scalar >
using Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::CartesianIndexMapper = Dune::CartesianIndexMapper<Grid>

◆ LookUpCartesianData

template<class Grid , class GridView , class ElementMapper , class Scalar >
using Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::LookUpCartesianData = Opm::LookUpCartesianData<Grid,GridView>

◆ LookUpData

template<class Grid , class GridView , class ElementMapper , class Scalar >
using Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::LookUpData = Opm::LookUpData<Grid,GridView>

Constructor & Destructor Documentation

◆ GenericThresholdPressure()

template<class Grid , class GridView , class ElementMapper , class Scalar >
Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::GenericThresholdPressure ( const CartesianIndexMapper cartMapper,
const GridView &  gridView,
const ElementMapper &  elementMapper,
const EclipseState &  eclState 
)

Member Function Documentation

◆ applyExplicitThresholdPressures_()

template<class Grid , class GridView , class ElementMapper , class Scalar >
void Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::applyExplicitThresholdPressures_
protected

◆ configureThpresft_()

template<class Grid , class GridView , class ElementMapper , class Scalar >
void Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::configureThpresft_
protected

◆ data()

template<class Grid , class GridView , class ElementMapper , class Scalar >
const std::vector< Scalar > & Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::data ( ) const
inline

Return the raw array with the threshold pressures.

This is used for the restart capability.

References Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::thpres_.

◆ finishInit()

template<class Grid , class GridView , class ElementMapper , class Scalar >
void Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::finishInit
protected

Actually compute the threshold pressures over a face as a pre-compute step.

◆ getRestartVector()

template<class Grid , class GridView , class ElementMapper , class Scalar >
std::vector< Scalar > Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::getRestartVector

Returns a fully expanded vector for restart file writing.

Returns the union of explicitly configured entries and defaulted values.

◆ logPressures()

template<class Grid , class GridView , class ElementMapper , class Scalar >
void Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::logPressures
protected

◆ setFromRestart()

template<class Grid , class GridView , class ElementMapper , class Scalar >
void Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::setFromRestart ( const std::vector< Scalar > &  values)
inline

Set the threshold pressures from a raw array.

This is used for the restart capability.

References Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::thpres_.

◆ thresholdPressure()

template<class Grid , class GridView , class ElementMapper , class Scalar >
Scalar Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::thresholdPressure ( int  elem1Idx,
int  elem2Idx 
) const

Returns the theshold pressure [Pa] for the intersection between two elements.

This is tailor made for the E100 threshold pressure mechanism and it is thus quite a hack: First of all threshold pressures in general are unphysical, and second, they should be different for the fluid phase but are not. Anyway, this seems to be E100's way of doing things, so we do it the same way.

Member Data Documentation

◆ cartElemFaultIdx_

template<class Grid , class GridView , class ElementMapper , class Scalar >
std::vector<int> Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::cartElemFaultIdx_
protected

◆ cartMapper_

template<class Grid , class GridView , class ElementMapper , class Scalar >
const CartesianIndexMapper& Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::cartMapper_
protected

◆ eclState_

template<class Grid , class GridView , class ElementMapper , class Scalar >
const EclipseState& Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::eclState_
protected

◆ elementMapper_

template<class Grid , class GridView , class ElementMapper , class Scalar >
const ElementMapper& Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::elementMapper_
protected

◆ elemEquilRegion_

template<class Grid , class GridView , class ElementMapper , class Scalar >
std::vector<unsigned short> Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::elemEquilRegion_
protected

◆ enableThresholdPressure_

template<class Grid , class GridView , class ElementMapper , class Scalar >
bool Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::enableThresholdPressure_
protected

◆ gridView_

template<class Grid , class GridView , class ElementMapper , class Scalar >
const GridView& Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::gridView_
protected

◆ lookUpCartesianData_

template<class Grid , class GridView , class ElementMapper , class Scalar >
const LookUpCartesianData Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::lookUpCartesianData_
protected

◆ lookUpData_

template<class Grid , class GridView , class ElementMapper , class Scalar >
const LookUpData Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::lookUpData_
protected

◆ numEquilRegions_

template<class Grid , class GridView , class ElementMapper , class Scalar >
unsigned Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::numEquilRegions_ {}
protected

◆ thpres_

template<class Grid , class GridView , class ElementMapper , class Scalar >
std::vector<Scalar> Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::thpres_
protected

◆ thpresDefault_

template<class Grid , class GridView , class ElementMapper , class Scalar >
std::vector<Scalar> Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::thpresDefault_
protected

◆ thpresftValues_

template<class Grid , class GridView , class ElementMapper , class Scalar >
std::vector<Scalar> Opm::GenericThresholdPressure< Grid, GridView, ElementMapper, Scalar >::thpresftValues_
protected

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