Matlab调用refprop教程说明

本文参考来自官方教程(以64位为例)

来自

1.在refprop官网中下载以下四个文件,既可以调用refprop,也可以复制到refprop安装目录下,将路径添加到matlab搜索路径即可。(所需文件如图1)

refpropm.m(uploaded Oct. 17, 2013)

rp_proto.m

rp_proto64.m

REFPRP64_thunk_pcwin64.dll

REFPRP64.DLL


Matlab调用refprop教程说明_第1张图片

2.调用refprop中的物性主要通过以下refproparray.m文件,如图2,其实就是相当于一个自定义的m函数,利用这个函数来调用物性,具体方法函数说明例子中。


Matlab调用refprop教程说明_第2张图片

说明:这个主要是介绍调用方法,纯工质、混合工质以及自定义工质调用方法。


Matlab调用refprop教程说明_第3张图片

说明:对每种物性表示符号的详细说明,注意物性中表示的单位。


Matlab调用refprop教程说明_第4张图片

说明:主要是给出几个例子,介绍如何利用refpropm函数计算物性。


Matlab调用refprop教程说明_第5张图片

更加详细的内容,请参考英文说明文档。

MATLAB Applications. Keith Wait from GE Home Business Solutions has made the following MATLAB application available. This application calls the Refprop DLL directly rather than through themexfile provided in previous versions of Refprop. This release now includes the molar mass, compressibility factor, gross and net heating values, critical point properties, volumetricexpansivity, and a number of other properties. The routines can now read mixture files (*.mix). When using these new files, be sure to delete the old refpropm.mexw32 or refpropm.mexw64 files if you downloaded them previously.

refpropm.m(uploaded Oct. 17, 2013)

rp_proto.m

rp_proto64.m

Note: These file names are now lowercase, if you downloaded uppercase versions, delete thembeforedownloading otherwise the case will be changed and the files will not work.

If an error message such as "...is not a valid Win32 application" occurs, try downloading the file again, most likely the file was corrupted during the first attempt

For 64-bit MATLAB, the following files should be placed in your Refprop directory:

REFPRP64_thunk_pcwin64.dll

REFPRP64.DLL

The following file from Scott Wujek can be used in addition to those above to send arrays of input values to the code for calculating an output array.

refproparray.m

The following file from Steve Miller can be used to send arrays of input values to the code for generating a lookup table.

refpropm2D.m

You can see an example of how this file is used in aSimscapemodel of an engine cooling system:

Watch Video(3 min)

Download model from MATLAB Central

来自

你可能感兴趣的:(Matlab调用refprop教程说明)