Opm::ECLUnits::Convert::DissolvedGasOilRatio Class Reference
Inheritance diagram for Opm::ECLUnits::Convert::DissolvedGasOilRatio:
Detailed DescriptionFacility for converting dissolved gas/oil ratio (Rs) values between user-selected units of measure. Member Function Documentation◆ appliedTo()
Convert a sequence of dissolved gas/oil ratio values from its input unit of measure to its output unit of measure. Will throw an exception of type std::invalid_argument
unless both of the input and output unit system conventions have been previously specified. Example: Extract the saturated state curve for oil in cell 14142 in PVT-M units. const auto rset = ResultSet("Case.EGRID");
const auto si = internalUnitConvention();
const auto satState =
pvtCC.getPvtCurve(RawCurve::SaturatedState,
ECLPhaseIndex::Liquid, 14142);
.appliedTo(satState.first);
Convert::Pressure().to(*pvt_m).from(*si)
.appliedTo(satState.second);
Definition: ECLGraph.hpp:52 static ECLGraph load(const boost::filesystem::path &gridFile, const ECLInitFileData &init) Definition: ECLResultData.hpp:177 Definition: ECLPropertyUnitConversion.hpp:377 PhysicalQuantity & to(const UnitSystem &usys) PhysicalQuantity & from(const UnitSystem &usys) virtual void appliedTo(std::vector< double > &x) const =0 std::unique_ptr< const UnitSystem > pvtmUnitConventions() @ Pressure Definition: eclipse/VectorItems/aquifer.hpp:62 std::vector< double > init(const std::string &kewyord, const TableManager &tables, const Phases &phases, const std::vector< double > &cell_depth, const std::vector< int > &num, const std::vector< int > &endnum) @ Liquid
Implements Opm::ECLUnits::Convert::PhysicalQuantity. ◆ from() [1/2]
Retrieve input unit system. Exists for the benefit of derived classes.
◆ from() [2/2]
Specify collection of units of measure of the inputs.
◆ to() [1/2]
Retrieve output unit system. Exists for the benefit of derived classes.
◆ to() [2/2]
Specify collection of units of measure of the output.
The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||