主题:Matlab调用refprop时出问题,请高手帮忙解决,期待中
>> help property
PROPERTY Thermophysical properties of pure substances and mixtures.
Calling sequence for pure substances:
result=property(prop_req, spec1, value1, spec2, value2, substance1)
and for mixtures
result=property(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/Pa
T Temperature/K
D Density (kg/m3)
H Enthalpy (J/kg)
S Entropy (J/(kg/K))
U Internal energy (J/kg)
C Cp (J/(kg K))
X liquid phase and gas phase composition (mass fractions)
V Dynamic viscosity (Pas)
L Thermal conductivity (W/(m K))
Q Quality (vapor fraction) (kg/kg)
I Surface tension (N/m)
spec1 is a character giving what we want to specify (T, P 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
substance1 is a string with the name of the first (maybe only) substance
substance2,..., substance N are 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).
x is a vector with mass fractions of the substances in the mixture.
Examples:
1) P=property('P','T',373.15,'Q',0,'water') gives
the vapor pressure of water at 373.15 K
2) [S Cp]=property('SC','T',373.15,'Q',1,'water') gives
Entropy and Cp of saturated steam at 373.15 K
3) viscmix=property('V','T',323.15,'P',1e5,'water','ammonia',[0.9 0.1]) gives
the viscosity of a 10% ammonia in water at 100 kPa and 323.15 K.
4) [x y]=property('X','P',5e5,'Q',0.4,'R134a','R32',[0.8, 0.2]) 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=property('P','T',373.15,'Q',0,'water')
??? [SETUP error 101] error in opening file for component # 1; filename = (C:\Program Files\Refprop\Fluids\water.fld ).
Error in ==> C:\MATLAB6p5\work\PROPERT
调用时,出现上述问题,请哪位高手给指点指点,谢谢
PROPERTY Thermophysical properties of pure substances and mixtures.
Calling sequence for pure substances:
result=property(prop_req, spec1, value1, spec2, value2, substance1)
and for mixtures
result=property(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/Pa
T Temperature/K
D Density (kg/m3)
H Enthalpy (J/kg)
S Entropy (J/(kg/K))
U Internal energy (J/kg)
C Cp (J/(kg K))
X liquid phase and gas phase composition (mass fractions)
V Dynamic viscosity (Pas)
L Thermal conductivity (W/(m K))
Q Quality (vapor fraction) (kg/kg)
I Surface tension (N/m)
spec1 is a character giving what we want to specify (T, P 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
substance1 is a string with the name of the first (maybe only) substance
substance2,..., substance N are 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).
x is a vector with mass fractions of the substances in the mixture.
Examples:
1) P=property('P','T',373.15,'Q',0,'water') gives
the vapor pressure of water at 373.15 K
2) [S Cp]=property('SC','T',373.15,'Q',1,'water') gives
Entropy and Cp of saturated steam at 373.15 K
3) viscmix=property('V','T',323.15,'P',1e5,'water','ammonia',[0.9 0.1]) gives
the viscosity of a 10% ammonia in water at 100 kPa and 323.15 K.
4) [x y]=property('X','P',5e5,'Q',0.4,'R134a','R32',[0.8, 0.2]) 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=property('P','T',373.15,'Q',0,'water')
??? [SETUP error 101] error in opening file for component # 1; filename = (C:\Program Files\Refprop\Fluids\water.fld ).
Error in ==> C:\MATLAB6p5\work\PROPERT
调用时,出现上述问题,请哪位高手给指点指点,谢谢