Refprop is a software package that provides thermodynamic and transport properties of pure fluids and mixtures. It is developed by the National Institute of Standards and Technology (NIST) and can be used for various applications, such as refrigeration, air conditioning, combustion, and chemical engineering. Refprop can be integrated with Matlab, a popular numerical computing environment, to perform calculations and simulations using the Refprop functions.
In this article, we will show you how to download and install Refprop for Matlab on Windows. You will need a license for Refprop 10.0, the latest version of the software, and Matlab R2021a or later.
To use Refprop for Matlab, you need to purchase a license for Refprop 10.0 from the NIST website. The price is $325.00 for a single user license. If you have an older version of Refprop, you can upgrade to version 10.0 for $125.00.
After you complete your purchase, you will receive a confirmation email with a link to download the Refprop 10.0 installer. The installer is a zip file that contains the Refprop program files, the documentation, and some sample programs.
Download the Refprop 10.0 installer from the link provided in your confirmation email. Save the zip file to a location of your choice on your computer. Then, extract the zip file using a tool like WinZip or 7-Zip.
You will see a folder named "REFPROP-10" that contains the following subfolders:
To install Refprop on your computer, run the setup.exe program and follow the instructions on the screen. You will need to accept the license agreement and choose a destination folder for Refprop. The default folder is C:\Program Files (x86)\REFPROP, but you can change it if you want. The setup program will copy all the necessary files to your chosen folder and create a shortcut on your desktop and in your start menu.
To use Refprop with Matlab, you need to configure Matlab to load the Refprop DLL file and set some environment variables. You can do this manually or use a script that automates the process.
The script is called "refpropm.m" and it is located in the SAMPLES\MATLAB folder of your Refprop installation. You can copy this script to any folder that is in your Matlab path, or add the SAMPLES\MATLAB folder to your Matlab path.
To run the script, open Matlab and type "refpropm" in the command window. The script will check if you have Refprop installed and if you have the correct version of Matlab. It will also ask you where your FLUIDS and MIXTURES folders are located. The default locations are C:\Program Files (x86)\REFPROP\FLUIDS and C:\Program Files (x86)\REFPROP\MIXTURES, but you can change them if you installed Refprop in a different folder.
The script will then load the Refprop DLL file and set the environment variables that are needed to use Refprop. It will also display some information about Refprop and how to use it with Matlab. You can read the help file or the documentation for more details.
Once you have configured Matlab to use Refprop, you can start using the Refprop functions in your Matlab scripts or in the command window. The syntax of the Refprop functions is similar to the syntax of the native Matlab functions, but with some differences.
The general syntax of the Refprop functions is:
output = refpropm(output_units, input_property_1, input_value_1, input_units_1, input_property_2, input_value_2, input_units_2, fluid_or_mixture_name)The arguments are:
Here are some examples of how to use Refprop with Matlab:
% Calculate the pressure and enthalpy of water at 300 K and 101.325 kPa [P,H] = refpropm('P,H','T',300,'K','P',101.325,'kPa','water') % Calculate the density and viscosity of R134a at 273.15 K and 700 kPa [D,V] = refpropm('D,V','T',273.15,'K','P',700,'kPa','R134a') % Calculate the temperature and quality of a 50/50 mole fraction mixture of nitrogen and oxygen at 200 kPa and 500 J/kg [T,Q] = refpropm('T,Q','P',200,'kPa','H',500,'J/kg','0.5:nitrogen;0.5:oxygen')You can also use Refprop with other Matlab functions, such as plot, fzero, fsolve, etc., to perform more complex calculations and simulations.
In this article, we have shown you how to download and install Refprop for Matlab on Windows. We have also explained how to configure Matlab to use Refprop and how to use Refprop functions in Matlab. We hope this article has been helpful for you and that you enjoy using Refprop for Matlab.
6500f7198a