工控之家

 找回密码
加入工控之家

[分享] matlab调用refprop8问题求助

[复制链接]
发表于 2012-7-14 11:00:10 | 显示全部楼层 |阅读模式
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

        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).
                        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: character  sequence  matlab  result  where
您需要登录后才可以回帖 登录 | 加入工控之家

本版积分规则

QQ|手机版|小黑屋|Archiver|工控之家 ( 鲁ICP备12015736号-1 )

GMT+8, 2024-5-18 04:51 , Processed in 0.093442 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表