资源简介
NIST的著名热物理性质计算软件,可用Matlab,Fortran,Excel,C语言进行调用。压缩包中Readme给出了64位MATLAB调用该软件的办法,并成功验证。

代码片段和文件信息
function varargout = refproparray( varargin )
%refproparray Interface for refpropm which allows arrays to be entered
%instead of individual data points
%
%Function calls are very similar to refpropm (identical if only a single
%value is to be evaluated) except that vectors can be entered
%
%To use custom mixtures the substances and concentrations must be arranged
%in rows vectors
%Lengths of the values substances concentrations must be the same length
%or of length 1.
%
%Programmed by Scott Wujek Creative Thermal Solutions Fall 2013
%% convert known numeric input variables to numbers
propVal1 = cell2mat(varargin(3));
propVal2 = cell2mat(varargin(5));
%% determine vector lengths
L1=length(propVal1);
L2=length(propVal2);
L3=size(char(varargin(6))1);
if nargin>6
L4=size(cell2mat(varargin(nargin))1);
concentrations=cell2mat(varargin(nargin));
else
L4=NaN;
concentrations=[];
end
maxsize=nanmax([L1 L2 L3 L4]);
%% Make vectors to all be same length (expand singular entries)
if maxsize>1 && (L1==maxsize || L1==1) && (L2==maxsize || L2==1) && (L3==maxsize || L3==1) && (L4==maxsize || L4==1 || isnan(L4))
if L1==1
propVal1=repmat(propVal1 [maxsize1]); %#ok
end
if L2==1
propVal2=repmat(propVal2 [maxsize 1]); %#ok
end
if L3==1
if nargin==6
varargin{6}=repmat(varargin(6) [maxsize1]);
else
for inarg=6:nargin-1
varargin{inarg}=repmat(varargin(inarg) [maxsize1]);
end
end
end
if L4==1
concentrations=repmat(concentrations [maxsize1]); %#ok
end
elseif maxsize~=1
error(‘Input value vectors are of different lengths or not of length 1‘)
end
%% determine number of properties requested make output variable and left side of equation that replicates format of refpropm
propReq = lower(char(varargin(1)));
if propReq==‘x‘
varargout = cell([12]);
variables=genvarname(repmat({‘temp‘} [12]));
for i=1:length(variables)
eval([char(variables(i)) ‘=NaN(maxsize2);‘]);
end
string1=‘[temp(arraynum:) temp1(arraynum:)]‘;
else
varargout = cell(size(propReq));
variables=genvarname(repmat({‘temp‘} [1length(propReq)]));
string1=‘[‘;
for i=1:length(variables)
eval([char(variables(i)) ‘=NaN(size(propVal1));‘]);
string1=[string1 char(variables(i))]; %#ok
if i~=length(variables)
string1=[string1 ‘(arraynum)‘]; %#ok
else
string1=[string1 ‘(arraynum)]‘]; %#ok
end
end
end
%% create right side of refprop function call and evaluate function
for arraynum=1:maxsize
if nargin==6 %this is case for pure substances or .mix files
string2=‘=refpropm(char(varargin(1))char(varargin(2))propVal1(arraynum)char(varargin(4))propVal2(arraynum)char(varargin{6}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-26 09:57 REFPROP9\
目录 0 2016-07-26 09:57 REFPROP9\Latest Update\
文件 2272768 2013-12-18 23:22 REFPROP9\Latest Update\REFPRP64.DLL
文件 60416 2013-12-18 23:21 REFPROP9\Latest Update\REFPRP64_thunk_pcwin64.dll
文件 3581 2013-12-18 23:22 REFPROP9\Latest Update\refproparray.m
文件 30356 2013-12-18 23:20 REFPROP9\Latest Update\refpropm.m
文件 51741 2013-12-18 23:22 REFPROP9\Latest Update\rp_proto64.m
目录 0 2016-07-26 09:57 REFPROP9\ML2010A\
文件 4010 2011-08-17 14:58 REFPROP9\ML2010A\refprop_example.m
文件 20225 2011-10-03 09:24 REFPROP9\ML2010A\refpropm.f90
文件 3521 2011-10-03 09:19 REFPROP9\ML2010A\refpropm.m
文件 856064 2011-10-03 09:23 REFPROP9\ML2010A\refpropm.mexw32
文件 1254400 2011-04-07 10:59 REFPROP9\ML2010A\refpropm.mexw64
目录 0 2016-07-27 18:08 REFPROP9\REFPROP9\
文件 4737745 2011-07-26 00:07 REFPROP9\REFPROP9\NIST2309.EXE
文件 2706944 2016-03-05 10:30 REFPROP9\REFPROP9\REFPRP64.DLL
文件 60416 2016-03-05 10:30 REFPROP9\REFPROP9\REFPRP64_thunk_pcwin64.dll
目录 0 2016-07-26 09:57 REFPROP9\REFPROP9\Refprop9 Excel Add-In\
文件 1136 2012-02-24 02:44 REFPROP9\REFPROP9\Refprop9 Excel Add-In\EffyFixedVolRatio.txt
目录 0 2016-07-26 09:57 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\
目录 0 2016-07-26 09:57 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\Refprop Excel Add-In\
文件 171535 2012-03-22 02:08 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\Refprop Excel Add-In\RefpropExcelAddIn.xlam
文件 21373 2012-03-22 01:32 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\Refprop Excel Add-In\RefpropExcelAddInCreationNotes20120316.docx
文件 108473 2012-03-16 23:48 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\Refprop Excel Add-In\RefpropExcelAddInHelp.xlsm
文件 13393 2012-03-16 21:27 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\Refprop Excel Add-In\RefpropExcelAddInInstallationNotes20120316.docx
文件 9219 2012-01-27 04:10 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\Refprop Excel Add-In\TryThis20120126.xlsm
文件 13393 2012-03-16 21:27 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files\RefpropExcelAddInInstallationNotes20120316.docx
目录 0 2016-07-26 09:57 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files (x86)\
目录 0 2016-07-26 09:57 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files (x86)\Refprop Excel Add-In\
文件 156404 2012-03-22 02:14 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files (x86)\Refprop Excel Add-In\RefpropExcelAddIn.xlam
文件 21373 2012-03-22 01:32 REFPROP9\REFPROP9\Refprop9 Excel Add-In\IfRefprop9InProgram Files (x86)\Refprop Excel Add-In\RefpropExcelAddInCreationNotes20120316.docx
............此处省略11个文件信息
相关资源
- 卡尔曼定位程序
- 基于VC、MATLAB的汽车制动性能仿真
- MATLAB通信仿真及应用详解附超星阅读
- filtfilt C语言实现,可直接运行验证
- 台湾林智仁开发的libsvm-3.0.1
- Matlab与C++混合程序设计第三版
- 粒子群算法及其代码实现
- 九轴姿态解算matlab源代码 两种方法代
- 经纬度坐标转换为平面坐标的matlab实
- 数字图像处理与机器视觉——Visual
- 利用FFT计算频谱图
- 用matlab编的基于DTW和MFC算法的语音识
-
从Matlab_Simuli
nk模型到代码实现 - MUSIC算法C语言+MATLAB
- MATLAB科学计算及分析唐培培源代码
- 灰色预测模型资料和程序.rar
- matcom4.5绿色破解版
- matlab下的基于高斯混合模型的说话人
- Matlab中峰值计算函数findpeaks()的c
- 图像去雾代码集合
- 电容恒流充电模糊控制matlab仿真与实
- 基于mfcc的说话人语音识别matlb
- 图像识别算法,相关matlab编程
- Miguel的二维解包裹算法Matlab程序及C程
- 点云数据txt格式
- MATLAB Demystified中文版.最好的matlab自学
- 基于MFCC的GMM的语音识别
- Matlab6.5 与 VC6 利用动态链接库实现混
- 有限差分模拟电磁波场
- MATLAB图论工具箱,matlabBGL
评论
共有 条评论