#include <RvvdTable.hpp>

Inheritance diagram for Opm::RvvdTable:
Inheritance graph

Public Member Functions

 RvvdTable ()=default
 
void init (Opm::DeckItemConstPtr item)
 Read the RSVD keyword and provide some convenience methods for it. More...
 
const std::vector< double > & getDepthColumn () const
 
const std::vector< double > & getRvColumn () const
 
size_t numColumns () const
 
size_t numRows () const
 
const std::vector< double > & getColumn (const std::string &name) const
 
const std::vector< double > & getColumn (size_t colIdx) const
 
double evaluate (const std::string &columnName, double xPos) const
 Evaluate a column of the table at a given position. More...
 

Static Public Member Functions

static size_t numTables (Opm::DeckKeywordConstPtr keyword)
 Returns the number of tables in a keyword. More...
 

Protected Member Functions

void init (Opm::DeckItemConstPtr deckItem, const std::vector< std::string > &columnNames)
 Read simple tables from keywords like SWOF. More...
 
void checkNonDefaultable (const std::string &columnName)
 
void checkMonotonic (const std::string &columnName, bool isAscending, bool isStrictlyMonotonic=true)
 
void applyDefaultsConstant (const std::string &columnName, double value)
 
void applyDefaultsLinear (const std::string &columnName)
 
void createColumns (const std::vector< std::string > &columnNames)
 

Protected Attributes

std::map< std::string, size_t > m_columnNames
 
std::vector< std::vector
< double > > 
m_columns
 
std::vector< std::vector< bool > > m_valueDefaulted
 

Friends

class TableManager
 

Constructor & Destructor Documentation

Opm::RvvdTable::RvvdTable ( )
default

Member Function Documentation

void Opm::SimpleTable::applyDefaultsConstant ( const std::string &  columnName,
double  value 
)
protectedinherited
void Opm::SimpleTable::applyDefaultsLinear ( const std::string &  columnName)
protectedinherited
void Opm::SimpleTable::createColumns ( const std::vector< std::string > &  columnNames)
protectedinherited
double Opm::SimpleTable::evaluate ( const std::string &  columnName,
double  xPos 
) const
inherited

Evaluate a column of the table at a given position.

This method uses linear interpolation and always uses the first column as the X coordinate.

Referenced by Opm::GridPropertyTemperatureLookupInitializer< EclipseState, Deck >::apply(), Opm::EndpointInitializer< EclipseState, Deck >::findVerticalPoints(), and Opm::EndpointInitializer< EclipseState, Deck >::selectValue().

const std::vector<double>& Opm::SimpleTable::getColumn ( const std::string &  name) const
inherited

Referenced by Opm::PlyadsTable::getAdsorbedPolymerColumn(), Opm::PlyrockTable::getAdsorbtionIndexColumn(), Opm::PlyrockTable::getDeadPoreVolumeColumn(), Opm::RsvdTable::getDepthColumn(), getDepthColumn(), Opm::RtempvdTable::getDepthColumn(), Opm::ImptvdTable::getDepthColumn(), Opm::ImkrvdTable::getDepthColumn(), Opm::EnptvdTable::getDepthColumn(), Opm::EnkrvdTable::getDepthColumn(), Opm::PvdoTable::getFormationFactorColumn(), Opm::PvdgTable::getFormationFactorColumn(), Opm::PvdsTable::getFormationFactorColumn(), Opm::PvtgInnerTable::getGasFormationFactorColumn(), Opm::PvtgOuterTable::getGasFormationFactorColumn(), Opm::SsfnTable::getGasRelPermMultiplierColumn(), Opm::PvtoOuterTable::getGasSolubilityColumn(), Opm::PvtgInnerTable::getGasViscosityColumn(), Opm::PvtgOuterTable::getGasViscosityColumn(), Opm::GasvisctTable::getGasViscosityColumn(), Opm::SgofTable::getKrgColumn(), Opm::SgwfnTable::getKrgColumn(), Opm::SgfnTable::getKrgColumn(), Opm::SlgofTable::getKrgColumn(), Opm::ImkrvdTable::getKrgcritColumn(), Opm::EnkrvdTable::getKrgcritColumn(), Opm::ImkrvdTable::getKrgmaxColumn(), Opm::EnkrvdTable::getKrgmaxColumn(), Opm::SgwfnTable::getKrgwColumn(), Opm::Sof2Table::getKroColumn(), Opm::ImkrvdTable::getKrocritgColumn(), Opm::EnkrvdTable::getKrocritgColumn(), Opm::ImkrvdTable::getKrocritwColumn(), Opm::EnkrvdTable::getKrocritwColumn(), Opm::SgofTable::getKrogColumn(), Opm::Sof3Table::getKrogColumn(), Opm::SlgofTable::getKrogColumn(), Opm::ImkrvdTable::getKromaxColumn(), Opm::EnkrvdTable::getKromaxColumn(), Opm::Sof3Table::getKrowColumn(), Opm::SwofTable::getKrowColumn(), Opm::SwofTable::getKrwColumn(), Opm::SwfnTable::getKrwColumn(), Opm::ImkrvdTable::getKrwcritColumn(), Opm::EnkrvdTable::getKrwcritColumn(), Opm::ImkrvdTable::getKrwmaxColumn(), Opm::EnkrvdTable::getKrwmaxColumn(), Opm::PlyrockTable::getMaxAdsorbtionColumn(), Opm::PlymaxTable::getMaxPolymerConcentrationColumn(), Opm::PvtoInnerTable::getOilFormationFactorColumn(), Opm::PvtoOuterTable::getOilFormationFactorColumn(), Opm::PvtgInnerTable::getOilSolubilityColumn(), Opm::PvtgOuterTable::getOilSolubilityColumn(), Opm::OilvisctTable::getOilViscosityColumn(), Opm::PvtoInnerTable::getOilViscosityColumn(), Opm::PvtoOuterTable::getOilViscosityColumn(), Opm::SgwfnTable::getPcgwColumn(), Opm::SgfnTable::getPcogColumn(), Opm::SgofTable::getPcogColumn(), Opm::SlgofTable::getPcogColumn(), Opm::SwfnTable::getPcowColumn(), Opm::SwofTable::getPcowColumn(), Opm::PlymaxTable::getPolymerConcentrationColumn(), Opm::PlyviscTable::getPolymerConcentrationColumn(), Opm::PlyadsTable::getPolymerConcentrationColumn(), Opm::PlydhflfTable::getPolymerHalflifeColumn(), Opm::RocktabTable::getPoreVolumeMultiplierColumn(), Opm::PvdoTable::getPressureColumn(), Opm::PvdgTable::getPressureColumn(), Opm::PvdsTable::getPressureColumn(), Opm::PvtoInnerTable::getPressureColumn(), Opm::PvtgOuterTable::getPressureColumn(), Opm::RocktabTable::getPressureColumn(), Opm::PvtoOuterTable::getPressureColumn(), Opm::PlyrockTable::getResidualResistanceFactorColumn(), Opm::PlyrockTable::getRockDensityFactorColumn(), Opm::RsvdTable::getRsColumn(), getRvColumn(), Opm::ImptvdTable::getSgcoColumn(), Opm::EnptvdTable::getSgcoColumn(), Opm::SgofTable::getSgColumn(), Opm::SgwfnTable::getSgColumn(), Opm::SgfnTable::getSgColumn(), Opm::ImptvdTable::getSgcritColumn(), Opm::EnptvdTable::getSgcritColumn(), Opm::ImptvdTable::getSgmaxColumn(), Opm::EnptvdTable::getSgmaxColumn(), Opm::PlyshlogTable::getShearMultiplierColumn(), Opm::SlgofTable::getSlColumn(), Opm::Sof2Table::getSoColumn(), Opm::Sof3Table::getSoColumn(), Opm::ImptvdTable::getSogcritColumn(), Opm::EnptvdTable::getSogcritColumn(), Opm::SsfnTable::getSolventFractionColumn(), Opm::SsfnTable::getSolventRelPermMultiplierColumn(), Opm::ImptvdTable::getSowcritColumn(), Opm::EnptvdTable::getSowcritColumn(), Opm::ImptvdTable::getSwcoColumn(), Opm::EnptvdTable::getSwcoColumn(), Opm::SwofTable::getSwColumn(), Opm::SwfnTable::getSwColumn(), Opm::ImptvdTable::getSwcritColumn(), Opm::EnptvdTable::getSwcritColumn(), Opm::ImptvdTable::getSwmaxColumn(), Opm::EnptvdTable::getSwmaxColumn(), Opm::WatvisctTable::getTemperatureColumn(), Opm::PlydhflfTable::getTemperatureColumn(), Opm::OilvisctTable::getTemperatureColumn(), Opm::RtempvdTable::getTemperatureColumn(), Opm::GasvisctTable::getTemperatureColumn(), Opm::RocktabTable::getTransmissibilityMultiplierColumn(), Opm::RocktabTable::getTransmissibilityMultiplierXColumn(), Opm::RocktabTable::getTransmissibilityMultiplierYColumn(), Opm::RocktabTable::getTransmissibilityMultiplierZColumn(), Opm::PvdoTable::getViscosityColumn(), Opm::PvdgTable::getViscosityColumn(), Opm::PvdsTable::getViscosityColumn(), Opm::PlyviscTable::getViscosityMultiplierColumn(), Opm::PlyshlogTable::getWaterVelocityColumn(), and Opm::WatvisctTable::getWaterViscosityColumn().

const std::vector<double>& Opm::SimpleTable::getColumn ( size_t  colIdx) const
inherited
const std::vector<double>& Opm::RvvdTable::getDepthColumn ( ) const
inline
const std::vector<double>& Opm::RvvdTable::getRvColumn ( ) const
inline
void Opm::RvvdTable::init ( Opm::DeckItemConstPtr  item)
inline

Read the RSVD keyword and provide some convenience methods for it.

References Opm::SimpleTable::checkMonotonic(), Opm::SimpleTable::checkNonDefaultable(), and Opm::SimpleTable::init().

void Opm::SimpleTable::init ( Opm::DeckItemConstPtr  deckItem,
const std::vector< std::string > &  columnNames 
)
protectedinherited
size_t Opm::SimpleTable::numColumns ( ) const
inherited
size_t Opm::SimpleTable::numRows ( ) const
inherited
static size_t Opm::SimpleTable::numTables ( Opm::DeckKeywordConstPtr  keyword)
staticinherited

Returns the number of tables in a keyword.

For simple tables, that is identical to the number of records.

Friends And Related Function Documentation

friend class TableManager
friend

Member Data Documentation

std::map<std::string, size_t> Opm::SimpleTable::m_columnNames
protectedinherited
std::vector<std::vector<double> > Opm::SimpleTable::m_columns
protectedinherited
std::vector<std::vector<bool> > Opm::SimpleTable::m_valueDefaulted
protectedinherited

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