112 static void solve(FluidState &fluidState,
113 ParameterCache ¶mCache,
116 ComponentVector fugVec;
120 paramCache.updatePhase(fluidState, refPhaseIdx);
121 fluidState.setDensity(refPhaseIdx,
122 FluidSystem::density(fluidState,
125 fluidState.setMolarDensity(refPhaseIdx,
126 FluidSystem::molarDensity(fluidState,
131 for (
int compIdx = 0; compIdx < numComponents; ++compIdx)
133 fluidState.setFugacityCoefficient(refPhaseIdx,
135 FluidSystem::fugacityCoefficient(fluidState,
139 fugVec[compIdx] = fluidState.fugacity(refPhaseIdx, compIdx);
143 for (
int phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx)
145 if (phaseIdx == refPhaseIdx)