Opm::ECLUnits::Convert::GasFVF Class Reference
Inheritance diagram for Opm::ECLUnits::Convert::GasFVF:
Detailed DescriptionFacility for converting gas 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 gas/vapour 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: Compute the dynamic gas formation volume factor value in cell 57721 on restart step 314 and report it in Field units. const auto rset = ResultSet("Case.EGRID");
const auto si = internalUnitConvention();
rstrt.selectReportStep(314);
const auto press = G.linearisedCellData<double>
(rstrt, "PRESSURE", &UnitSystem::pressure);
const auto rv = G.linearisedCellData<double>
(rstrt, "RV", &UnitSystem::vaporisedOilGasRat);
auto Bg = pvtCC.getDynamicProperty(RawCurve::FVF,
ECLPhaseIndex::Vapour, 57721,
std::vector<double>{ press[57721] },
std::vector<double>{ rv.empty() ? 0.0 : rv[57721] });
Convert::GasFVF().to(*field).from(*si).appliedTo(Bg);
Definition: ECLGraph.hpp:52 static ECLGraph load(const boost::filesystem::path &gridFile, const ECLInitFileData &init) Definition: ECLResultData.hpp:177 Definition: ECLResultData.hpp:57 @ GasFVF Definition: custom-opm-common/opm-common/opm/output/eclipse/VectorItems/well.hpp:153 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) @ Vapour @ field virtual double pressure() const =0 double vaporisedOilGasRat() const
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: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||