Add solvent rate in GRAT control mode

This commit is contained in:
Svenn Tveit 2024-01-31 18:18:19 +01:00
parent ba2b434dc0
commit b65f85a6c4

View File

@ -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;
};