-
Notifications
You must be signed in to change notification settings - Fork 54
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
Possible fix for some dew and bubble computations #328
Comments
A smaller reproducer: model = cPR("butane")
Clapeyron.x0_sat_pure(model,406.5487245045052) the problem on the generation of the bracket itself, in this particular case, the bracket does not contain the objective spinodal mean pressure ( |
08539a5 fixes the issue, but as always, this issue will be closed at the next release |
Hi there My student picked up this is still an issue in the SAFT_eos.ipynb example file when using the default methanol (i.e. the fix wasn't global, so might pop up elsewhere as well) - just for your reference. Thanks! |
Hello, This issue is still open because we haven't released a new version of Clapeyron with the commit that fixes this issue. I checked with all models in SAFT.ipynb and did not encounter any errors in the master branch of the repository. There was an (unrelated) error in the CKSAFT EoS when calculating critical point, that error is also fixed in the latest master. I'm planning to release a new version this week, but if fixing the issue can't wait, you can use the master branch of this repository in the following way:
or from the
|
Hello, using Clapeyron
fluids =["butane","toluene"]
global model = cPR(fluids,idealmodel = ReidIdeal)
_,p_,_ = crit_mix(model,[1.5,1.5])
bubble_temperature(model,p_*1.1,[1.5,1.5]) (1960.5811538774678, 0.004855433165462302, 0.005506594621675661, [0.601711213873475, 0.39828878612652496]) The same does not apply for dew temperature (atleast not always) using Clapeyron
fluids =["butane","toluene"]
global model = cPR(fluids,idealmodel = ReidIdeal)
_,p_,_ = crit_mix(model,[1.5,1.5])
dew_temperature(model,p_*1.5,[1.5,1.5]) (553.9695067276397, 0.00016685848692124782, 0.00022722814575264715, [0.22610825063197718, 0.7738917493680229]) |
In those two particular cases, a relaxed check allowed to return those results, fixed in caa4006 . |
The original issue and subsequent ones are fixed in Clapeyron 0.6.8. |
Hello,
As of now the following will fail:
This is because the interval provided to
volume_from_spinodal
cannot find roots.The possible fix I have for now is not providing this interval (maybe this will mess some other cases):
The root finder seems to work without providing the lower bound of
0
.The text was updated successfully, but these errors were encountered: