You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While specify_phase is available to specify mixture phase after the creation of the mixture object, there does not appear to be a mechanism for specifying the phase using with_state.
This prevents the creation of complex mixture such as:
ValueError: One stationary point (not good) for T=623.706,p=101449,z=[ 0.689054749976, 0.0944405350566, 0.0123029388101, 0.00580880011636, 0.198392976041 ]
This mixture can be created using CoolProp's Python bindings with the following code, which imposes a gas phase constraint (note that temperature units are K):
I think your solution is somewhat counterintuitive and imposes unnecessary obligations on the user if he wants to extend the Input class (I mean this example).
Then the best solution would be to return an instance of the Fluid or Mixture from the specify_phase / unspecify_phase method. With this, we will be able to do the following:
While
specify_phase
is available to specify mixture phase after the creation of the mixture object, there does not appear to be a mechanism for specifying the phase usingwith_state
.This prevents the creation of complex mixture such as:
which yields the following error:
This mixture can be created using CoolProp's Python bindings with the following code, which imposes a
gas
phase constraint (note that temperature units are K):Could Input.pressure() or Input.temperature() be modified so that a second optional parameter is an imposed phase?
The text was updated successfully, but these errors were encountered: