-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred while calculating the gas mixture #30
Comments
I'm also having this issue. ` air = Mixture([FluidsList.Nitrogen, FluidsList.Oxygen], [60, 40]).with_state( `ValueError Traceback (most recent call last) ~/.local/lib/python3.8/site-packages/pyfluids/fluids/abstract_fluid.py in with_state(self, first_input, second_input) ~/.local/lib/python3.8/site-packages/pyfluids/fluids/abstract_fluid.py in update(self, first_input, second_input) CoolProp/AbstractState.pyx in CoolProp.CoolProp.AbstractState.update() CoolProp/AbstractState.pyx in CoolProp.CoolProp.AbstractState.update() ValueError: One stationary point (not good) for T=773.15,p=2.53e+06,z=[ 0.660344557162, 0.339655442838 ] Doing either Nitrogen or Oxygen as a pure fluid works just fine air = Fluid(FluidsList.Oxygen).with_state( |
You are facing the error of CoolProp itself, not PyFluids. Judging by the error message, this is due to the fact that the calculations did not converge. As far as I understand, the equations of state for mixtures have much more restrictions than the equations of state for pure fluids. I think you can recreate this error using pure CoolProp (because CoolProp developers are most likely not familiar with PyFluids), and open an issue in the CoolProp repository. CoolProp developers will be able to answer in more detail. |
from pyfluids import Mixture, Fluid, FluidsList, Input
mix = Mixture([FluidsList.Methane,FluidsList.Hydrogen],[60, 40]).with_state(Input.pressure(200e+03), Input.temperature(30),)
print(mix.specific_heat)
print(mix.compressibility)
ValueError: One stationary point (not good) for T=303.15,p=200000,z=[ 0.228681059385, 0.771318940615 ]
The text was updated successfully, but these errors were encountered: