Opm::ECLUnits::Convert::OilFVF Class Reference
Inheritance diagram for Opm::ECLUnits::Convert::OilFVF:
Detailed DescriptionFacility for converting oil phase formation volume factor values between user-selected units of measure. Member Function Documentation◆ appliedTo()
Convert a sequence of formation volume factor values for the oil/liquid phase 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 dynamic oil formation volume factor curve in cell 355,113 in native units (convention of serialised result set). const auto rset = ResultSet("Case.EGRID");
const auto si = internalUnitConvention();
auto BoCurves = pvtCC.getPvtCurve(RawCurve::FVF,
ECLPhaseIndex::Liquid, 355113);
const auto cvrtPress =
Convert::Pressure().to(*native).from(*si);
const auto cvrtBo =
for (auto& curve : BoCurves) {
cvrtPress.appliedTo(curve.first);
cvrtBo .appliedTo(curve.second);
}
Definition: ECLGraph.hpp:52 static ECLGraph load(const boost::filesystem::path &gridFile, const ECLInitFileData &init) Definition: ECLResultData.hpp:177 Definition: ECLPropertyUnitConversion.hpp:329 PhysicalQuantity & to(const UnitSystem &usys) PhysicalQuantity & from(const UnitSystem &usys) virtual void appliedTo(std::vector< double > &x) const =0 std::unique_ptr< const UnitSystem > serialisedUnitConventions(const ECLRestartData &rstrt) @ 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: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||