Closed thorade closed 11 years ago
setState_ps
also has convergence problems.
Why does the "globally convergent Newton" algorithm not converge?
another iterative method that might be a promising candidate for this case is described by M. Nikkhah-Bahrami and R. Oftadeh http://dx.doi.org/10.1016/j.amc.2009.07.028 R. Oftadeh, M. Nikkhah-Bahrami, und A. Najafi http://dx.doi.org/10.1016/j.amc.2010.07.075
Applicability of equations of state for modeling helium systems: http://dx.doi.org/10.1016/j.cryogenics.2012.03.002
does not mention the un-published interim RefProp-Helmholtz-EoS by Ortiz-Vega, D.O., Hall, K.R., Arp, V.D., and Lemmon, E.W.
maybe the iteration variables should not be d
and T
, but log(d)
and T
(at least in the gas-like region);
something like dvar = if d>d_crit then d else log(d);
but one of the two has to be ±1
to make the change-over steady
Some more ideas:
T>T_crit
or d>sat.liq.d
or d<sat.vap.d
is guaranteed to be single-phase.setState_pT
or setState_pd
or setState_Ts
be used to calculate better start values? To find a smaller interval?closing for now, if convergence problems do appear again it will be reopened
For Helium, the two functions
setState_ph
andsetState_ph
have converge problems in the super-critical liquid-like region and in the super-critical vapour-like region. Three possible solutions:as described by e.g. Numerical Recipes 3rd ed.
http://books.google.de/books?id=DyykEZo4fwUC&pg=PA477
or by Numerik für Ingenieure und Naturwissenschaftler, 2nd ed., Dahmen (2008)
http://books.google.de/books?id=zWenT-hxDxEC&pg=PA200