111 static void solve(FluidState &fluidState,
112 ParameterCache ¶mCache,
115 ComponentVector fugVec;
119 paramCache.updatePhase(fluidState, refPhaseIdx);
120 fluidState.setDensity(refPhaseIdx,
121 FluidSystem::density(fluidState,
124 fluidState.setMolarDensity(refPhaseIdx,
125 FluidSystem::molarDensity(fluidState,
130 for (
int compIdx = 0; compIdx < numComponents; ++compIdx)
132 fluidState.setFugacityCoefficient(refPhaseIdx,
134 FluidSystem::fugacityCoefficient(fluidState,
138 fugVec[compIdx] = fluidState.fugacity(refPhaseIdx, compIdx);
142 for (
int phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx)
144 if (phaseIdx == refPhaseIdx)