mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -06:00
Add solvent rate in GRAT control mode
This commit is contained in:
parent
ba2b434dc0
commit
b65f85a6c4
@ -113,6 +113,9 @@ assembleControlEq(const WellState& well_state,
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
|
||||
rates[Gas] = primary_variables.getQs(Indices::canonicalToActiveComponentIndex(FluidSystem::gasCompIdx));
|
||||
}
|
||||
if constexpr (Indices::enableSolvent) {
|
||||
rates[Gas] += primary_variables.getQs(Indices::contiSolventEqIdx);
|
||||
}
|
||||
return rates;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user