mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-29 01:14:24 -06:00
Adapt to changes related to hydroCarbonState
This commit is contained in:
parent
03d6dde203
commit
bd0ad6aa5b
@ -532,7 +532,8 @@ namespace Opm {
|
|||||||
auto watOnly = sw > (1 - epsilon);
|
auto watOnly = sw > (1 - epsilon);
|
||||||
|
|
||||||
// phase translation sg <-> rs
|
// phase translation sg <-> rs
|
||||||
std::fill(primalVariable_.begin(), primalVariable_.end(), PrimalVariables::Sg);
|
std::vector<HydroCarbonState>& hydroCarbonState = reservoir_state.hydroCarbonState();
|
||||||
|
std::fill(hydroCarbonState.begin(), hydroCarbonState.end(), HydroCarbonState::GasAndOil);
|
||||||
|
|
||||||
if (has_disgas_) {
|
if (has_disgas_) {
|
||||||
const V rsSat0 = fluidRsSat(p_old, s_old.col(pu.phase_pos[Oil]), cells_);
|
const V rsSat0 = fluidRsSat(p_old, s_old.col(pu.phase_pos[Oil]), cells_);
|
||||||
@ -548,7 +549,7 @@ namespace Opm {
|
|||||||
if (useSg[c]) {
|
if (useSg[c]) {
|
||||||
rs[c] = rsSat[c];
|
rs[c] = rsSat[c];
|
||||||
} else {
|
} else {
|
||||||
primalVariable_[c] = PrimalVariables::RS;
|
hydroCarbonState[c] = HydroCarbonState::OilOnly;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -574,7 +575,7 @@ namespace Opm {
|
|||||||
if (useSg[c]) {
|
if (useSg[c]) {
|
||||||
rv[c] = rvSat[c];
|
rv[c] = rvSat[c];
|
||||||
} else {
|
} else {
|
||||||
primalVariable_[c] = PrimalVariables::RV;
|
hydroCarbonState[c] = HydroCarbonState::GasOnly;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -615,7 +616,7 @@ namespace Opm {
|
|||||||
Base::updateWellState(dwells,well_state);
|
Base::updateWellState(dwells,well_state);
|
||||||
|
|
||||||
// Update phase conditions used for property calculations.
|
// Update phase conditions used for property calculations.
|
||||||
updatePhaseCondFromPrimalVariable();
|
updatePhaseCondFromPrimalVariable(reservoir_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user