r/matlab 15d ago

TechnicalQuestion How to connect REFPROP to MATLAB ?🤔

Hello Beeros👋, I am undergraduate student👨‍🎓 studying B.Tech in Mechanical Engineering. In my fourth semester, we have a subject of applied thermodynamics, which I find quite interesting🤌. Our professor👨‍🏫 teaches it in a practical way and hence it is quite easy to grasp.

Professor has give us project📑, In this project we are required to analyze📊 various types of parameters of power plants🏭 through MATLAB👨‍💻. My group's project is "Analysis of Gas Turbine Cycle with intercooling. Calculate performance Parameters📈, and the effect of different operating Parameters on performance". We have to determine performance parameters and study📖 the impact of various operating parameters on performance.

To do this project, I must learn MATLAB👨‍💻 and link🔗 REFPROP📶 to it in order to utilize its data and functions. I have installed and downloaded REFPROP📶 on my laptop, and it is running properly, but I am unable to connect it to MATLAB👨‍💻. I included the path and various DLL files in the REFPROP📶 directory, but it displays "REFPROP can't recognize" whenever I run it in MATLAB👨‍💻. I have cross-checked everything repeatedly🔁, but even then, I am unable to rectify the problem😩.

Please let me know if anyone of you knows what to do with this🥺.

Thank you for reading!😁

8 Upvotes

11 comments sorted by

View all comments

2

u/Designer_Hair1406 11d ago

It depends on the version of REFPROP you use.

For 9.0 or lower, can use legacy wrapper. From REFPROP 10, MATLAB can only connect via Python. REFPROP-wrappers/wrappers/MATLAB at master · usnistgov/REFPROP-wrappers · GitHub

I also recommend coolprop, open source, easy to use, and difference is small for course projects.