mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
black oil fluid system: don't use the numerical value for the surface pressure directly
this is just a minor clean up which does not change anything...
This commit is contained in:
@@ -390,9 +390,8 @@ public:
|
|||||||
// water is simple: 18 g/mol
|
// water is simple: 18 g/mol
|
||||||
molarMass_[waterCompIdx] = 18e-3;
|
molarMass_[waterCompIdx] = 18e-3;
|
||||||
|
|
||||||
// for gas, we take the density at standard pressure and
|
// for gas, we take the density at standard conditions and assume it to be ideal
|
||||||
// temperature and assume it to be ideal
|
Scalar p = surfacePressure_;
|
||||||
Scalar p = 1.0135e5;
|
|
||||||
Scalar rho_g = surfaceDensity_[gasPhaseIdx];
|
Scalar rho_g = surfaceDensity_[gasPhaseIdx];
|
||||||
Scalar T = 297.15;
|
Scalar T = 297.15;
|
||||||
molarMass_[gasCompIdx] = Opm::Constants<Scalar>::R*T*rho_g / p;
|
molarMass_[gasCompIdx] = Opm::Constants<Scalar>::R*T*rho_g / p;
|
||||||
|
|||||||
Reference in New Issue
Block a user