pass the saltConcentration to the waterPVT

This commit is contained in:
Tor Harald Sandve
2020-07-02 13:44:01 +02:00
parent 6a6f55b099
commit 88ee892fdf
5 changed files with 26 additions and 9 deletions
+2 -1
View File
@@ -172,7 +172,8 @@ private:
double
density(const double press) const
{
double rho = FluidSystem::waterPvt().inverseFormationVolumeFactor(pvtRegionIdx_, temp_, press);
double saltConcentration = 0.0; // TODO allow for non-zero initial salt concentration
double rho = FluidSystem::waterPvt().inverseFormationVolumeFactor(pvtRegionIdx_, temp_, press, saltConcentration);
rho *= FluidSystem::referenceDensity(FluidSystem::waterPhaseIdx, pvtRegionIdx_);
return rho;
}