Opm::ECLUnits::Convert::Pressure Class Reference
Inheritance diagram for Opm::ECLUnits::Convert::Pressure:
Detailed DescriptionFacility for converting pressure values between user-selected units of measure. Member Function Documentation◆ appliedTo()
Convert a sequence of pressure 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: Convert LGR-1's oil pressure values on restart step 123 from serialised format on disk (unified restart) to internal units of measure (SI). const auto si = internalUnitConvention();
rstrt.selectReportStep(123);
auto press = rstrt.keywordData<double>("PRESSURE", "LGR-1");
Convert::Pressure().from(*native).to(*si).appliedTo(press);
Definition: ECLResultData.hpp:57 std::unique_ptr< const UnitSystem > serialisedUnitConventions(const ECLRestartData &rstrt) @ Pressure Definition: eclipse/VectorItems/aquifer.hpp:62
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: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||