mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix phase resetting for mixtures
This commit is contained in:
@@ -1565,8 +1565,11 @@ void FlashRoutines::DHSU_T_flash(HelmholtzEOSMixtureBackend &HEOS, parameters ot
|
||||
HEOS.calc_pressure();
|
||||
HEOS._Q = -1;
|
||||
}
|
||||
// Update the state for conditions where the state was guessed
|
||||
HEOS.recalculate_singlephase_phase();
|
||||
if (HEOS.is_pure_or_pseudopure)
|
||||
{
|
||||
// Update the state for conditions where the state was guessed
|
||||
HEOS.recalculate_singlephase_phase();
|
||||
}
|
||||
}
|
||||
void FlashRoutines::HS_flash_twophase(HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl hmolar_spec, CoolPropDbl smolar_spec, HS_flash_twophaseOptions &options)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user