mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3830 from plgbrts/vapwat
Adding explicit input specification of water-gas ratio (RVW) and RVW output plus simulator gas-water system with salt precipitation and water evaporation for
This commit is contained in:
@@ -686,6 +686,7 @@ assignToSolution(data::Solution& sol)
|
||||
{"RSSAT", UnitSystem::measure::gas_oil_ratio, data::TargetType::RESTART_AUXILIARY, gasDissolutionFactor_},
|
||||
{"RV", UnitSystem::measure::oil_gas_ratio, data::TargetType::RESTART_SOLUTION, rv_},
|
||||
{"RVSAT", UnitSystem::measure::oil_gas_ratio, data::TargetType::RESTART_AUXILIARY, oilVaporizationFactor_},
|
||||
{"RVW", UnitSystem::measure::oil_gas_ratio, data::TargetType::RESTART_AUXILIARY, rvw_},
|
||||
{"SALT", UnitSystem::measure::salinity, data::TargetType::RESTART_SOLUTION, cSalt_},
|
||||
{"SALTP", UnitSystem::measure::identity, data::TargetType::RESTART_AUXILIARY, pSalt_},
|
||||
{"PERMFACT", UnitSystem::measure::identity, data::TargetType::RESTART_AUXILIARY, permFact_},
|
||||
@@ -789,6 +790,8 @@ setRestart(const data::Solution& sol,
|
||||
rs_[elemIdx] = sol.data("RS")[globalDofIndex];
|
||||
if (!rv_.empty() && sol.has("RV"))
|
||||
rv_[elemIdx] = sol.data("RV")[globalDofIndex];
|
||||
if (!rvw_.empty() && sol.has("RVW"))
|
||||
rvw_[elemIdx] = sol.data("RVW")[globalDofIndex];
|
||||
if (!cPolymer_.empty() && sol.has("POLYMER"))
|
||||
cPolymer_[elemIdx] = sol.data("POLYMER")[globalDofIndex];
|
||||
if (!cFoam_.empty() && sol.has("FOAM"))
|
||||
@@ -983,7 +986,10 @@ doAllocBuffers(unsigned bufferSize,
|
||||
rv_.resize(bufferSize, 0.0);
|
||||
rstKeywords["RV"] = 0;
|
||||
}
|
||||
|
||||
if (FluidSystem::enableVaporizedWater()) {
|
||||
rvw_.resize(bufferSize, 0.0);
|
||||
rstKeywords["RVW"] = 0;
|
||||
}
|
||||
if (enableSolvent_)
|
||||
sSol_.resize(bufferSize, 0.0);
|
||||
if (enablePolymer_)
|
||||
|
||||
Reference in New Issue
Block a user