matlab调用refprop8问题求助
Refprop 有自带的与matlab调用的程序。问题是我把其中的文件复制到matlab安装文件中的work文件下,还是无法运行。
是和matlab版本有关吗?
有如下:
help refpropm
ЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁ
refpropm Thermophysical properties of pure substances and mixtures.
Calling sequence for pure substances:
result=refpropm(prop_req, spec1, value1, spec2, value2, substance1)
and for mixtures
result=refpropm(prop_req, spec1, value1, spec2, value2, substance1, substance2, ...,x)
where
prop_req is a character string showing what properties that are requested
Each property is represented by one character:
P Pressure
T Temperature
D Density
H Enthalpy
S Entropy
U Internal energy
C Cp
O Cv
K Ratio of specific heats (Cp/Cv)
A Speed of sound
X liquid phase and gas phase composition (mass fractions)
V Dynamic viscosity
L Thermal conductivity
Q Quality (vapor fraction) (kg/kg)
I Surface tension
spec1 is a character giving what we want to specify (T, P, H or D)
value1 is the corresponding value
spec2 is a character giving the second specification (P, D, H, S, U or Q)
value2 is the value of the second specification
substance1is a string with the name of the first (maybe only) substance
substance2,..., substance Nare the name of the other substances in the mixture.
Up to 20 substances can be handled
Valid substance names are equal to the file names in the
C:\Program Files\REFPROP\fluids\' directory (with .FLD excluded).
is a vector with mass fractions of the substances in the mixture.
Examples:
1) P=refpropm('P','T',373.15,'Q',0,'water') gives
the vapor pressure of water at 373.15 K in
2) =refpropm('SC','T',373.15,'Q',1,'water') gives
Entropy and Cp of saturated steam at 373.15 K
3) viscmix=refpropm('V','T',323.15,'P',1e5,'water','ammonia',) gives
the viscosity of a 10% ammonia in water at 100 kPa and 323.15 K.
4) =refpropm('X','P',5e5,'Q',0.4,'R134a','R32',) gives
temperature as well as gas and liquid compositions for a mixture
of two refrigerants at a certain pressure and quality.
Note that two output variables are needed when 'X' is requested.
ЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁЁ
但是
P=refpropm('P','T',373.15,'Q',0,'carbon dioxide') gives
??? P=refpropm('P','T',373.15,'Q',0,'carbon dioxide') gives
|
Error: Unexpected MATLAB expression.
Keywords: charactersequencematlabresultwhere
页:
[1]