some small changes, not functionality change.

This commit is contained in:
Kai Bao 2021-11-12 15:23:33 +01:00 committed by Trine Mykkeltvedt
parent e7da7cdad6
commit 6abcbf60e2

View File

@ -51,7 +51,6 @@ void testChiFlash()
typedef Opm::CompositionalFluidState<Evaluation, FluidSystem> FluidState; typedef Opm::CompositionalFluidState<Evaluation, FluidSystem> FluidState;
// From co2-compositional branch, it uses // From co2-compositional branch, it uses
typename FluidSystem::template ParameterCache<Evaluation> paramCache;
// typedef typename FluidSystem::template ParameterCache<Scalar> ParameterCache; // typedef typename FluidSystem::template ParameterCache<Scalar> ParameterCache;
FluidState fs; FluidState fs;
@ -72,10 +71,13 @@ void testChiFlash()
fs.setTemperature(303); fs.setTemperature(303);
// ParameterCache paramCache; // ParameterCache paramCache;
paramCache.updatePhase(fs, FluidSystem::oilPhaseIdx); {
paramCache.updatePhase(fs, FluidSystem::gasPhaseIdx); typename FluidSystem::template ParameterCache<Evaluation> paramCache;
fs.setDensity(FluidSystem::oilPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::oilPhaseIdx)); paramCache.updatePhase(fs, FluidSystem::oilPhaseIdx);
fs.setDensity(FluidSystem::gasPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::gasPhaseIdx)); paramCache.updatePhase(fs, FluidSystem::gasPhaseIdx);
fs.setDensity(FluidSystem::oilPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::oilPhaseIdx));
fs.setDensity(FluidSystem::gasPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::gasPhaseIdx));
}
ComponentVector zInit(0.); // TODO; zInit needs to be normalized. ComponentVector zInit(0.); // TODO; zInit needs to be normalized.
{ {