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
using Clapeyron
fluids =["butane","toluene"]
global model =cPR(fluids,idealmodel = ReidIdeal)
p =202650.0; z = [ 0.03660834309918798 ,0.5195534741939288]*100dew_temperature(model,p,z)
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):
functionvolume_from_spinodal(p,poly,vshift,v0)
iflength(v0) ==2
v0 = v0[2]
endf(v) = p -evalpoly(v,poly)
prob = Roots.ZeroProblem(f,v0)
return Roots.solve(prob) + vshift
end
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 ((p_spinodal_l + p_spinodal_v)/2)
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: