Re: Refprop Matlab Download For Windowsl

0 views
Skip to first unread message
Message has been deleted

Sharolyn Uriegas

unread,
Jul 12, 2024, 12:28:06 AM7/12/24
to hornrasthulcha

How to Download and Install Refprop for Matlab on Windows

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.

Refprop Matlab Download For Windowsl


Download Zip ---> https://miimms.com/2ySNrX



Step 1: Purchase and Download Refprop 10.0

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.

Step 2: Extract and Install Refprop 10.0

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:

    • FLUIDS: This folder contains the fluid files that define the properties of each fluid or mixture.
    • FORTAN: This folder contains the Fortran source code of the Refprop core routines.
    • MIXTURES: This folder contains the predefined mixture files that can be used with Refprop.
    • PYTHON: This folder contains some sample Python scripts that demonstrate how to use Refprop with Python.
    • SAMPLES: This folder contains some sample programs in various languages, such as C++, VB, LabVIEW, etc., that demonstrate how to use Refprop with different platforms.
    • WINDLL: This folder contains the Windows DLL (Dynamic Link Library) file that allows other programs to access the Refprop functions.
    • REFPROP.xls: This is an Excel spreadsheet that provides a graphical interface to use Refprop.
    • REFPROP.chm: This is the help file that contains the documentation of Refprop.
    • setup.exe: This is the setup program that installs Refprop on your computer.

    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.

    Step 3: Configure Matlab to Use Refprop

    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.

    Step 4: Use Refprop with Matlab

    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:

      • output: This is the output property that you want to calculate. You can specify one or more output properties, separated by commas. For example, "P,T,H" means pressure, temperature, and enthalpy.
      • output_units: This is the units of the output property. You can specify one or more units, separated by commas. For example, "kPa,K,J/kg" means kilopascals, kelvins, and joules per kilogram.
      • input_property_1 and input_property_2: These are the input properties that you want to use to calculate the output property. You can specify one or two input properties, depending on the type of calculation. For example, "T,P" means temperature and pressure.
      • input_value_1 and input_value_2: These are the values of the input properties that you want to use. You can specify one or two values, depending on the number of input properties. For example, "300,101.325" means 300 K and 101.325 kPa.
      • input_units_1 and input_units_2: These are the units of the input properties that you want to use. You can specify one or two units, depending on the number of input properties. For example, "K,kPa" means kelvins and kilopascals.
      • fluid_or_mixture_name: This is the name of the fluid or mixture that you want to use. You can specify a pure fluid by its name or its file name (without extension). For example, "water" or "WATER.FLD" means water. You can also specify a predefined mixture by its file name (with extension). For example, "R410A.MIX" means R410A refrigerant mixture. You can also specify a custom mixture by its composition in mole fractions or mass fractions, followed by a colon and the names or file names of the components. For example, "0.5:water;0.5:ethanol" means a 50/50 mole fraction mixture of water and ethanol.

      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.

      Conclusion

      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
      Reply all
      Reply to author
      Forward
      0 new messages