mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
water-gas ratio input and output plus simulator for salt precipitation and water evaporation
This commit is contained in:
@@ -282,6 +282,11 @@ public:
|
||||
Valgrind::CheckDefined(this->rv_[globalDofIdx]);
|
||||
}
|
||||
|
||||
if (!this->rvw_.empty()) {
|
||||
this->rvw_[globalDofIdx] = getValue(fs.Rvw());
|
||||
Valgrind::CheckDefined(this->rvw_[globalDofIdx]);
|
||||
}
|
||||
|
||||
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
||||
if (this->invB_[phaseIdx].empty())
|
||||
continue;
|
||||
@@ -472,6 +477,9 @@ public:
|
||||
if (!this->rs_.empty())
|
||||
this->rs_[globalDofIdx] = fsInitial.Rs();
|
||||
|
||||
if (!this->rvw_.empty())
|
||||
this->rvw_[globalDofIdx] = fsInitial.Rvw();
|
||||
|
||||
// re-compute the volume factors, viscosities and densities if asked for
|
||||
if (!this->density_[oilPhaseIdx].empty())
|
||||
this->density_[oilPhaseIdx][globalDofIdx] = FluidSystem::density(fsInitial,
|
||||
@@ -717,6 +725,8 @@ public:
|
||||
fs.setRs(this->rs_[elemIdx]);
|
||||
if (!this->rv_.empty())
|
||||
fs.setRv(this->rv_[elemIdx]);
|
||||
if (!this->rvw_.empty())
|
||||
fs.setRvw(this->rvw_[elemIdx]);
|
||||
}
|
||||
|
||||
void initHysteresisParams(Simulator& simulator, unsigned elemIdx) const
|
||||
|
||||
Reference in New Issue
Block a user