convergence error using refprop.m close to saturation lines
jillblouse opened this issue · comments
jillblouse commented
It has been a while since I use refprop.m from REFPROP 10 in my simulation model in MATLAB. But mostly for fluid such as refrigerants and so, if the condition is close to 2-phase area, in iterations it can happen that the guesses gets in the 2-phase region and I get the error message and the model cannot run further. Since it is an iteration, the program supposed to ignore the error and either go back one step or make another guess to complete the iteration. So the question is how I can go around this error or ignore it somehow?
Ian Bell commented
- The refpropm interface is deprecated, please migrate to the python interface for MATLAB
- Please provide a runnable example demonstrating the problem, otherwise we have no idea where to start debugging
jillblouse commented
1. what do you mean using pyton interface? I call the refprop.m in my
matlab code. So you mean it is possible to call the functions from a python
file in matlab? Since I never had big issues with .m file so I could use it
easily, but this error made the life a bit hard.
2. It is a huge program that in every iteration calculates the properties
of the gas in a specific pressure and temperature. However it seems in some
points the quality value gets out of the range and it shows the error and
jumps out.Mainly for water and refriegerants.
…On Thu, Aug 17, 2023 at 11:10 PM Ian Bell ***@***.***> wrote:
1. The refpropm interface is deprecated, please migrate to the python
interface for MATLAB
2. Please provide a runnable example demonstrating the problem,
otherwise we have no idea where to start debugging
—
Reply to this email directly, view it on GitHub
<#546 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOK3UBJBKEU6WPITE5TDCI3XV2CDBANCNFSM6AAAAAA3UR5ROE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Ian Bell commented
- Please see https://github.com/usnistgov/REFPROP-wrappers/tree/master/wrappers/MATLAB . The refpropm interface is no longer supported, and has not been for a few years now.
- Please provide a runnable example of your failures.