You are on page 1of 66

Sample Workbook to demonstrate the use of REFPROP in a Spreadsheet.

Dr. Eric W. Lemmon


Thermophsical Properties Division Theory and Modeling of Fluids Group 325 Broadway Boulder, CO 80305, U.S.A.

Dr. Mark O. McLinden Thermophsical Properties Division Experimental Properties of Fluids Group 325 Broadway Boulder, CO 80305, U.S.A.

Phone: +1-303-497-7939 Phone: +1-303-497-3580 Web: http://www.nist.gov/cstl/properties/fluids_modeling/index.cfm Web: http://FluidProperties.NIST.Gov

Dr. Marcia L. Huber


Thermophsical Properties Division Theory and Modeling of Fluids Group 325 Broadway Boulder, CO 80305, U.S.A. Phone: +1-303-497-5252 Web: http://www.nist.gov/cstl/properties/fluids_modeling/index.cfm

***Do not save your work as REFPROP.XLS, but rename it. This will avoid losing the file if you ever uninstall or reinstall the pro For additional information, see http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm http://www.nist.gov/srd/upload/REFPROP9.PDF http://www.nist.gov/srd/nist23.cfm

Running Refprop within Excel Macros must be enabled to calculate properties. The help file in the REFPROP graphical interface gives additional information on calculating properties or running macros from The REFPROP.xls file can be saved as a template file (REFPROP.xlt). When a new Excel file is created (under File/New) usin To recalculate all of the values in every cell, press Ctrl-Alt-F9. Recalculating worksheets with a large number of formulas can ta

Setting paths for linking with the DLL and FLD files outside of the Refprop directory. For running macros from any spreadsheet, four steps are required: 1. An environment variable can be set to specify the location of the fluid files. This new variable should be called RPPrefix an (Environment variables can be set under Start/Settings/Control Panel/System/Advanced/Environment Variables, under the " (In Windows 7, this is located in Start/Control Panel/System And Security/System/Change settings/Advanced/Environment v 2. Add a second environment variable named "path" (under "User variables") that contains the text "C:\Program Files\REFPRO If the path statement already exists, it can be modified by adding ";C:\Program Files\REFPROP" (or whatever location is use 3. Go to the "File/Save As" option in Excel and select "Microsoft Office Excel Add-In" under the "Save as type" section. This 4. Restart Excel. Under the Tools\Addins option, select the REFPROP add-in. The macros will now be available for use in an Screen shots are available in the FAQ website listed above.

Alternatively, the comments at the beginning of the Visual Basic code (press Alt-F11) tell how to change the working directories Warning: Do not edit the working directories in the macro window AND set the environment variables. This will cause it t

Changes from previous versions The units used here have changed slightly from those used in REFPROP 7.0. "SI" now refers to SI units on a mass basis, whil The way quality( ) is being defined for mixtures in the 2-phase has changed since the release of version 8.0. If mass units are

Units Most properties shown here use the default units of "Molar SI"; other available sets: "SI", "SI with C", "Molar SI", "E", "Molar E", (See the "REFPROP with Instructions and Help.XLS" file for definitions of these sets. In particular, see the User Information ta

All unit systems use a mass basis for properties and a mole basis for compositions, except "Mola

To use mass basis for compositions, add the word "mass" to the end of the composition string; see "Examples" worksheet. To permanently change the default units to English, search for "DefaultUnits = 0" in the Visual Basic code (press Alt-F11) and c

Other tips To use predefined mixtures, the extension ".MIX" must be included in the fluid name; see "Examples" worksheet. A screen shot of REFPROP can be inserted into a worksheet by clicking the "Print Screen" key (top row) to copy what is display

ninstall or reinstall the program.***

s or running macros from any spreadsheet. ted (under File/New) using this template file, a suffix number is appended so that the saved material will not overwrite the original file. number of formulas can take a long time. See lower left of screen to monitor recalculation rate.

ould be called RPPrefix and be given the value of "C:\Program Files\REFPROP" (or the directory where REFPROP is located). ent Variables, under the "User variables" option.) /Advanced/Environment variables) C:\Program Files\REFPROP". r whatever location is used) to the end so that the file REFPROP.DLL can be found from any location. ve as type" section. This will change the extension to .XLA and save it in a default dir. be available for use in any empty or existing worksheet.

ge the working directories in order for REFPROP to locate the fluid files and the DLL. ables. This will cause it to fail.

nits on a mass basis, while "Molar SI" will return the same results as those given in version 7.0. on 8.0. If mass units are in effect for density, then the quality will be returned on a mass basis, i.e., kg/kg or lbm/lbm. This now coincides w

"Molar SI", "E", "Molar E", "cgs", "mks", "M" (these all need quotes). The "SI with C" set can also be labeled as just "C". e the User Information tab and click on the "vlookup table" button.)

itions, except "Molar SI" and "Molar E", which uses a mole basis for properties.

Examples" worksheet. ode (press Alt-F11) and change the value to 3.

ow) to copy what is displayed on the monitor when REFPROP.exe is running. This can then be pasted into a worksheet.

appended so that the saved material will not overwrite the original file. en to monitor recalculation rate.

iles\REFPROP" (or the directory where REFPROP is located).

P.DLL can be found from any location. save it in a default dir.

uid files and the DLL.

s as those given in version 7.0. ll be returned on a mass basis, i.e., kg/kg or lbm/lbm. This now coincides with the definitions in the "REFPROP with Instructions and Help.x

es). The "SI with C" set can also be labeled as just "C".

es a mole basis for properties.

xe is running. This can then be pasted into a worksheet.

coincides with the definitions in the "REFPROP with Instructions and Help.xls" file from 8.0.

s and Help.xls" file from 8.0.

REFPROP Functions
30

Function Syntax:
Mole2Mass(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional

REFPROP VerNr =>> #VALUE! Arguments: (FluidName, InpCode, Units, Prop1, Prop2, i )

FluidName, InpCode, and Units are "text", use quotes. Prop1 and Pr FluidName = "text" - fluid must be either in Fluids or Mixtures sub directories. Predefined mixtures must contain .mix suffix, eg: "air.mi

See "Examples" Worksheet and search for air.ppf User defined mixtures , with composition entered on a mo InpCode = "text" - names and order of Prop1 and Prop2. "TP" means Prop1 is Temperature, Prop2 is Pressure (need quotes) Valid InpCodes: TP, TD, TH, TS, TE, TQ, PD, PH, PS, PE, PQ, DH, DS, DE, HS Saturated liquid or vapor inputs: Tliq, Tvap, Pliq, Pvap, TPL, TPV Valid 2-phase InpCodes: TD, PD, TQ, PQ, DH, DS Other: Crit, Trip, Tmelt, Pmelt, Tsubl, Psubl note: Prop2 is Optional

Units = "text", valid inputs are "E", "Molar E", "SI", "SI with C" or "C", "Molar If this input is omitted, then SI is default . (Unless DefaultU

Prop1 = numerical value (without quotes) of the first input property (in the units of t

Prop2 = numerical value (without quotes) of the second input property (if required) Component functions require the index i, the component number in the mixture (

Routines for working with mole & mass fractions Mole2Mass LiquidMoleFraction Mass Fraction Mass2Mole VaporMoleFraction Mole Fraction

FAQ REFPROP >>

http://www.boulder.nist.gov/div838/theory/refprop/Frequent

Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, OptionalDimensions Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional InpCode

9.0

, use quotes. Prop1 and Prop2 are numbers Mixtures sub directories. ntain .mix suffix, eg: "air.mix"

nd search for air.ppf composition entered on a mole or mass basis

lbm(i)/lbm lbm(i)/lbm kg(i)/kg kg(i)/kg kg(i)/kg kg(i)/kg g(i)/g g(i)/g

"E" "Molar E" "SI" "SI with C" "Molar SI" "mks" "cgs" "Mixed"

re (need quotes) PS, PE, PQ, DH, DS, DE, HS vap, TPL, TPV

All units use a mass basis for properties and a mole basis for compositions, except "Molar SI" and "Molar E", which use a mole basis everywhere Defining a new fluid mixture FluidString(FluidRange,FractionRange) FluidString(FluidRange,FractionRange) & " mass"

: Prop2 is Optional

"SI with C" or "C", "Molar SI", "mks", "cgs", "M" is default . (Unless DefaultUnits changed in VBA )

put property (in the units of the previous line)

d input property (if required). nent number in the mixture ( 1 <= i <= 20 )

838/theory/refprop/Frequently_asked_questions.htm

VLOOKUP() TableRange M4 : W Units English Mass English Moles SI SI with C Molar SI mks cgs Mixed 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

properties and a mole basis ar SI" and "Molar E", which

nge,FractionRange)

actionRange) & " mass"

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75

VLOOKUP() TableRange M4 : W81 2 >>>>INPUT FluidString<<<< FluidString() >>>>>>>PROPERTY<<<<<<< Temperature() Pressure() Density() LiquidDensity() VaporDensity() Quality() CompressibilityFactor() Volume() Energy() IsochoricHeatCapacity() cv() Enthalpy() cp() IsobaricHeatCapacity() LatentHeat() HeatOfVaporization() Entropy() VolumeExpansivity() SecondVirial() Csat() >COMPOSITION & MIXTURE< MolarMass() MoleFraction(i) MassFraction(i) Mole2Mass(i) Mass2Mole(i) LiquidMoleFraction(i) VaporMoleFraction(i) >>>>>>TRANSPORT<<<<<< Viscosity() ThermalConductivity() Prandtl() SurfaceTension() DielectricConstant() 3 "E"

Dimensions are in columns O thru V. Function Arguments 4 "Molar E"

F psia lbm/ft^3 lbm/ft^3 lbm/ft^3 Vapor massFr dimLess ft^3/lbm Btu/lbm Btu/lbm-R Btu/lbm-R Btu/lbm Btu/lbm-R Btu/lbm-R Btu/lbm Btu/lbm Btu/(lbm-R) 1/R ft^3/lbm Btu/lbm-R

F psia lbmol/ft^3 lbmol/ft^3 lbmol/ft^3 Vapor moleFr dimLess ft^3/lbmol Btu/lbmol Btu/lbmol-R Btu/lbmol-R Btu/lbmol Btu/lbmol-R Btu/lbmol-R Btu/lbmol Btu/lbmol Btu/(lbmol-R) 1/R ft^3/lbmol Btu/lbmol-R

lbm/lbmol lbmol(i)/lbmol lbm(i)/lbm lbm(i)/lbm lbmol(i)/lbmol lbmol(i)/lbmol lbmol(i)/lbmol

lbm/lbmol lbmol(i)/lbmol lbm(i)/lbm lbm(i)/lbm lbmol(i)/lbmol lbmol(i)/lbmol lbmol(i)/lbmol

lbm/ft-s Btu/h-ft-F dimLess lbf/ft dimLess

lbmol/ft-s Btu/h-ft-F dimLess lbf/ft dimLess

>>>>>HEATING VALUE<<<<< HeatOfCombustion() GrossHeatingValue() NetHeatingValue() >>>>>>>>>SONIC<<<<<<<<< Cstar() Critical Flow Factor Sound() SpeedOfSound() >>ISENTROPIC (ADIABATIC)<< IsentropicExpansionCoef() AdiabaticCompressibility() AdiabaticBulkModulus() >>>>>>ISOTHERMAL<<<<<< IsothermalCompressibility() IsothermalExpansionCoef() IsothermalBulkModulus() >>>>>>DERIVATIVE<<<<<< JouleThomson() dPdrho() d2Pdrho2() dPdT() drhodT() SpecificHeatInput() >>>>SYSTEM RELATED<<<< RefpropXLSVersionNumber() RefpropDLLVersionNumber() WhereAreREFPROPfunctions() WhereIsWorkbook() SeeFileLinkSources()

Btu/lbm Btu/lbm Btu/lbm

Btu/lbmol Btu/lbmol Btu/lbmol

dimLess ft/s ft/s

dimLess ft/s ft/s

dimLess 1/psia psia

dimLess 1/psia psia

1/psia dimLess psia

1/psia dimLess psia

F/psia F/psia psia-ft^3/lbm psia-ft^3/lbmol psia-ft^6/lbm^2 psia-ft^6/lbmol^2 psia/F psia/F lbm/(ft^3-F) lbmol/(ft^3-F) Btu/lbm Btu/lbmol

nsions are in columns O thru V. Function Arguments are in Column W 5 "SI" NIST Default Units (UserUnits = 0) K MPa kg/m^3 kg/m^3 kg/m^3 Vapor massFr dimLess m^3/kg kJ/kg kJ/kg-K kJ/kg-K kJ/kg kJ/kg-K kJ/kg-K kJ/kg kJ/kg kJ/kg-K 1/K m^3/kg kJ/kg-K 6 "SI with C" 7 "Molar SI" 8 "mks"

C MPa kg/m^3 kg/m^3 kg/m^3 Vapor massFr dimLess m^3/kg kJ/kg kJ/kg-K kJ/kg-K kJ/kg kJ/kg-K kJ/kg-K kJ/kg kJ/kg kJ/kg-K 1/K m^3/kg kJ/kg-K

K MPa mol/dm^3 mol/dm^3 mol/dm^3 Vapor moleFr dimLess dm^3/mol J/mol J/mol-K J/mol-K J/mol J/mol-K J/mol-K J/mol J/mol J/mol-K 1/K dm^3/mol J/mol-K

K kPa kg/m^3 kg/m^3 kg/m^3 Vapor massFr dimLess m^3/kg kJ/kg kJ/kg-K kJ/kg-K kJ/kg kJ/kg-K kJ/kg-K kJ/kg kJ/kg kJ/kg-K 1/K m^3/kg kJ/kg-K

kg/kgmol kgmol(i)/kgmol kg(i)/kg kg(i)/kg kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol

kg/kgmol kgmol(i)/kgmol kg(i)/kg kg(i)/kg kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol

kg/kgmol kgmol(i)/kgmol kg(i)/kg kg(i)/kg kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol

kg/kgmol kgmol(i)/kgmol kg(i)/kg kg(i)/kg kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol

Pa-s mW/m-K dimLess mN/m dimLess

Pa-s mW/m-K dimLess mN/m dimLess

Pa-s mW/m-K dimLess mN/m dimLess

Pa-s W/m-K dimLess mN/m dimLess

kJ/kg kJ/kg kJ/kg

kJ/kg kJ/kg kJ/kg

J/mol J/mol J/mol

kJ/kg kJ/kg kJ/kg

dimLess m/s m/s

dimLess m/s m/s

dimLess m/s m/s

dimLess m/s m/s

dimLess 1/MPa MPa

dimLess 1/MPa MPa

dimLess 1/MPa MPa

dimLess 1/kPa kPa

1/MPa dimLess MPa

1/MPa dimLess MPa

1/MPa dimLess MPa

1/kPa dimLess kPa

K/MPa MPa-m^3/kg MPa-m^6/kg^2 MPa/K kg/m^3-K kJ/kg

K/MPa MPa-m^3/kg MPa-m^6/kg^2 MPa/K kg/m^3-K kJ/kg

K/MPa MPa-dm^3/mol MPa-dm^6/mol^2 MPa/K mol/dm^3-K J/mol

K/kPa kPa-m^3/kg kPa-m^6/kg^2 kPa/K kg/m^3-K kJ/kg

9 "cgs"

10 "Mixed"

K MPa g/cm^3 g/cm^3 g/cm^3 Vapor massFr dimLess cm^3/g J/g J/g-K J/g-K J/g J/g-K J/g-K J/g J/g J/g-K 1/K cm^3/g J/g-K

K psia g/cm^3 g/cm^3 g/cm^3 Vapor massFr dimLess cm^3/g J/g J/g-K J/g-K J/g J/g-K J/g-K J/g J/g J/g-K 1/K cm^3/g J/g-K

g/gmol gmol(i)/gmol g(i)/g g(i)/g gmol(i)/gmol gmol(i)/gmol gmol(i)/gmol

g/gmol gmol(i)/gmol g(i)/g g(i)/g gmol(i)/gmol gmol(i)/gmol gmol(i)/gmol

Pa-s mW/m-K dimLess dyn/cm dimLess

Pa-s mW/m-K dimLess mN/m dimLess

J/g J/g J/g

J/g J/g J/g

dimLess cm/s cm/s

dimLess m/s m/s

dimLess 1/MPa MPa

dimLess 1/psia psia

1/MPa dimLess MPa

1/psia dimLess psia

K/MPa MPa-cm^3/g MPa-cm^6/g^2 MPa/K g/cm^3-K J/g

K/psia psia-cm^3/g psia-cm^6/g^2 psia/F g/cm^3-F J/g

11 Function Arguments FluidString(Nmes, Comps, Optional massmole As String) Arguments with the word "Optional" may be required, Temperature(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Pressure(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Density(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) LiquidDensity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) VaporDensity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Quality(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) CompressibilityFactor(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Volume(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Energy(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) IsochoricHeatCapacity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) cv(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Enthalpy(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) cp(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) IsobaricHeatCapacity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) LatentHeat(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) HeatOfVaporization(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Entropy(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) VolumeExpansivity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) SecondVirial(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Csat(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2)

MolarMass(FluidName, Optional InpCode, Optional Units, Optional Prop1, Optional Prop2) MoleFraction(FluidName, i) MassFraction(FluidName, i) Mole2Mass(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Opt Mass2Mole(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Opt

LiquidMoleFraction(FluidName, Optional InpCode, Optional Units, Optional Prop1, Optional Prop2, Optional i VaporMoleFraction(FluidName, Optional InpCode, Optional Units, Optional Prop1, Optional Prop2, Optional i)

Viscosity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) ThermalConductivity(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) Prandtl(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) SurfaceTension(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) DielectricConstant(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2)

HeatOfCombustion(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) GrossHeatingValue(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) NetHeatingValue(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2)

Cstar(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) CRITfloFact Sound(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) SpeedOfSound(FluidName,InpCode,Optional Units, Optional Prop1,Optional Prop2)

IsentropicExpansionCoef(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) AdiabaticCompressibility(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) AdiabaticBulkModulus(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2)

IsothermalCompressibility(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) IsothermalExpansionCoef(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) IsothermalBulkModulus(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2)

JouleThomson(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) dPdrho(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) d2Pdrho2(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) dPdT(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) drhodT(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2) SpecificHeatInput(FluidName, InpCode, Optional Units, Optional Prop1, Optional Prop2)

RefpropXLSVersionNumber() RefpropDLLVersionNumber() WhereAreREFPROPfunctions() WhereIsWorkbook() SeeFileLinkSources()

The data shown on the "User Information" worksheet were prepared by Fra and edited by NIST members then edited using WinXP sp3 and Excel 2003 REFPROP and needed an effective method to "keep track of the specific an perspsective. The data are copied from the NIST REFPROP program and f these worksheets on a FYI basis to provide users additional incite into REF Frank J. Doyle, P.E., on a "As Is, Where Is", no guarantees / warranties / inf

When Excel evaluates a function, it first looks for vba code that is included function included in the included vba code, then it looks for an xla file path. Excel evaluates the function using the vba code that is found first. W are evaluated in the user's REFPROP.xla file. Since it needs the REFPROP "present version" of the REFPROP (xla) code.

This data are intended to give the "new and / or infrequent REFPROP user" used to augment the REFPROP User's Guide. A detailed look at the Help F This present file contains: A list of REFPROP Functions and function syntax, A list of REFPROP fluids, A list of Units that REFPROP uses. A comparison of the functions used in REFPROP.xls and REFPROP.exe Some info on "List Boxes" and "VLOOKUP". Some comments about using REFPROP with Excel.

The user is encouraged to consider saving this workbook as a "Template" For Questions / Comments contact Frank J. Doyle, P.E. frank.doyle@sbcglobal.net

Be sure to use the word REFPROP in the Subject line. If I do not recogn I will delete it without opening it. Frank J. Doyle, P.E. Frank J. Doyle, Enterprises 7 Hickory Bark Drive The Woodlands, TX 77381 frank.doyle@sbcglobal.net

p5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, O p5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, O

tional Prop2, Optional i) tional Prop2, Optional i)

heet were prepared by Frank J. Doyle, P.E., using Excel 97 and Excel 2003. These were upgraded inXP sp3 and Excel 2003 sp3. The embodiment developed as Frank learned how to use ep track of the specific and essential 'user' details" in the Excel environment, from a user REFPROP program and from responses to questions that Frank asked NIST. NIST is offering additional incite into REFPROP.xls. The information is believed to be correct and is offered by arantees / warranties / info only basis.

vba code that is included (attached) to the file requesting the evaluation, if it does not find the t looks for an xla file - first in the same directory as the open worksheet, then along the specified code that is found first. When no VBA code is attached to the xls file, the REFPROP functions ce it needs the REFPROP.xla file to function, it will always perform calculations using the

frequent REFPROP user" some bare essential information about REFPROP, it is intended to be detailed look at the Help File attached to REFPROP.exe should be undertaken by the user.

OP.xls and REFPROP.exe

orkbook as a "Template" and as a REFPROP.xla file.

ect line. If I do not recognize the name or the subject,

rop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional rop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional

R141b R142b R143a R152a R161 R218 R227ea R236ea R236fa R245ca R245fa R365mfc RC318

Index of pure fluids included in the REFPROP databa


Short Name acetone ammonia argon benzene butane butane carbon dioxide carbon monoxide carbonyl sulfide cis-butene cyclohexane cyclopentane cyclopropane D4 D5 D6 decane deuterium dimethyl carbonate dimethylether dodecane ethane ethanol ethylene fluorine heavy water helium heptane hexane hydrogen (normal) hydrogen sulfide isobutane isobutene isohexane isopentane krypton md2m md3m md4m File Name acetone.fld ammonia.fld argon.fld benzene.fld butane.fld 1butene.fld co2.fld co.fld cos.fld c2butene.fld cyclohex.fld cyclopen.fld cyclopro.fld d4.fld d5.fld d6.fld decane.fld d2.fld dmc.fld dme.fld c12.fld ethane.fld ethanol.fld ethylene.fld fluorine.fld d2o.fld helium.fld heptane.fld hexane.fld hydrogen.fld h2s.fld isobutan.fld ibutene.fld ihexane.fld ipentane.fld krypton.fld md2m.fld md3m.fld md4m.fld CAS number 67-64-1 7664-41-7 7440-37-1 71-43-2 106-97-8 106-98-9 124-38-9 630-08-0 463-58-1 590-18-1 110-82-7 287-92-3 75-19-4 556-67-2 541-02-6 540-97-6 124-18-5 7782-39-0 616-38-6 115-10-6 112-40-3 74-84-0 64-17-5 74-85-1 7782-41-4 7789-20-0 7440-59-7 142-82-5 110-54-3 1333-74-0 2148878 75-28-5 115-11-7 107-83-5 78-78-4 7439-90-9 141-62-8 141-63-9 107-52-8

mdm methane methanol methyl linoleate methyl linolenate methyl oleate methyl palmitate methyl stearate methylcyclohexane MM neon neopentane nitrogen nitrogen triflouride nitrous oxide nonane octane orthohydrogen oxygen parahydrogen pentane perfluorobutane perfluoropentane propane propylcyclohexane propylene propyne sulfur dioxide sulfur hexafluoride toluene trans-butene trifluoroiodomethane water xenon R11 R12 R13 R14 R21 R22 R23 R32 R41

mdm.fld methane.fld methanol.fld mlinolea.fld mlinolen.fld moleate.fld mpalmita.fld mstearat.fld c1cc6.fld mm.fld neon.fld neopentn.fld nitrogen.fld nf3.fld n2o.fld nonane.fld octane.fld orthohyd.fld oxygen.fld parahyd.fld pentane.fld c4f10.fld c5f12.fld propane.fld c3cc6.fld propylene.fld propyne.fld so2.fld sf6.fld toluene.fld t2butene.fld cf3i.fld water.fld xenon.fld r11.fld r12.fld r13.fld r14.fld r21.fld r22.fld r23.fld r32.fld r41.fld

107-51-7 74-82-8 67-56-1 112-63-0 301-00-8 112-62-9 112-39-0 112-61-8 108-87-2 107-46-0 2023453 463-82-1 7727-37-9 7783-54-2 10024-97-2 111-84-2 111-65-9 1333-74-0o 7782-44-7 1333-74-0p 109-66-0 355-25-9 678-26-2 74-98-6 1678-92-8 115-07-1 74-99-7 2025884 2551-62-4 108-88-3 624-64-6 2314-97-8 7732-18-5 7440-63-3 75-69-4 75-71-8 75-72-9 75-73-0 75-43-4 75-45-6 75-46-7 75-10-5 593-53-3

R113 R114 R115 R116 R123 R1234yf R1234ze R124 R125 R134a R141b R142b R143a R152a R161 R218 R227ea R236ea R236fa R245ca R245fa R365mfc RC318

r113.fld r114.fld r115.fld r116.fld r123.fld r1234yf.fld r1234ze.fld r124.fld r125.fld r134a.fld r141b.fld r142b.fld r143a.fld r152a.fld r161.fld r218.fld r227ea.fld r236ea.fld r236fa.fld r245ca.fld r245fa.fld r365mfc.fld rc318.fld

76-13-1 76-14-2 76-15-3 76-16-4 306-83-2 754-12-1 1645-83-6 2837-89-0 354-33-6 811-97-2 1717-00-6 75-68-3 420-46-2 75-37-6 353-36-6 76-19-7 431-89-0 431-63-0 690-39-1 679-86-7 460-73-1 406-58-6 115-25-3

s included in the REFPROP database


Full Chemical Name propanone ammonia argon benzene n-butane 1-butene carbon dioxide carbon monoxide carbon oxide sulfide cis-2-butene cyclohexane cyclopentane cyclopropane octamethylcyclotetrasiloxane decamethylcyclopentasiloxan dodecamethylcyclohexasilox decane deuterium dimethyl ester carbonic acid methoxymethane dodecane ethane ethyl alcohol ethene fluorine deuterium oxide helium-4 heptane hexane hydrogen (normal) hydrogen sulfide 2-methylpropane 2-methyl-1-propene 2-methylpentane 2-methylbutane krypton decamethyltetrasiloxane dodecamethylpentasiloxane tetradecamethylhexasiloxane EOS Temperature and Pressure Limits 178.5-550 K, 700 MPa 195.495-700 K, 1000 MPa 83.8058-2000 K, 1000 MPa 278.7-750 K, 500 MPa 134.895-575 K, 69 MPa 87.8-525 K, 70 MPa 216.592-2000 K, 800 MPa 68.16-500 K, 100 MPa 134.3-650 K, 50 MPa 134.3-525 K, 50 MPa 279.47-700 K, 80 MPa 179.72-600 K, 200 MPa 273-473 K, 28 MPa 300-673 K, 30 MPa 300-673 K, 30 MPa 270.2-673 K, 30 MPa 243.5-675 K, 800 MPa 18.71-423 K, 320 MPa 277.06-400 K, 60 MPa 131.65-525 K, 40 MPa 263.6-700 K, 700 MPa 90.368-675 K, 900 MPa 250-650 K, 280 MPa 103.986-450 K, 300 MPa 53.4811-300 K, 20 MPa 276.97-800 K, 100 MPa 2.1768-1500 K, 100 MPa 182.55-600 K, 100 MPa 177.83-600 K, 100 MPa 13.957-1000 K, 2000 MPa 187.7-760 K, 170 MPa 113.73-575 K, 35 MPa 132.4-550 K, 50 MPa 119.6-550 K, 1000 MPa 112.65-500 K, 1000 MPa 115.775-750 K, 200 MPa 205.2-673 K, 30 MPa 192-673 K, 30 MPa 300-673 K, 30 MPa

octamethyltrisiloxane methane methanol methyl (Z,Z)-9,12methyl (Z,Z,Z)-9,12,15methyl cis-9-octadecenoate methyl hexadecanoate methyl octadecanoate methylcyclohexane hexamethyldisiloxane neon 2,2-dimethylpropane nitrogen nitrogen trifluoride dinitrogen monoxide nonane octane orthohydrogen oxygen parahydrogen pentane decafluorobutane dodecafluoropentane propane n-propylcyclohexane propene propyne sulfur dioxide sulfur hexafluoride methylbenzene trans-2-butene trifluoroiodomethane water xenon trichlorofluoromethane dichlorodifluoromethane chlorotrifluoromethane tetrafluoromethane dichlorofluoromethane chlorodifluoromethane trifluoromethane difluoromethane fluoromethane

187.2-673 K, 30 MPa 90.6941-625 K, 1000 MPa 175.61-620 K, 800 MPa 238.1-1000 K, 50 MPa 218.65-1000 K, 50 MPa 253.47-1000 K, 50 MPa 242-1000 K, 50 MPa 311.4- 1000 K, 50 MPa 146.7-600 K, 500 MPa 273-673 K, 30 MPa 24.556-700 K, 700 MPa 256.6-550 K, 200 MPa 63.151-2000 K, 2200 MPa 85-500 K, 50 MPa 182.33-525 K, 50 MPa 219.7-600 K, 800 MPa 216.37-600 K, 100 MPa 14.008-1000 K, 2000 MPa 54.361-2000 K, 82 MPa 13.803-1000 K, 2000 MPa 143.47-600 K, 100 MPa 189-500 K, 30 MPa 148.36-500 K, 30 MPa 85.525-650 K, 1000 MPa 178.2-650 K, 50 MPa 87.953-575 K, 1000 MPa 273-474 K, 32 MPa 197.7-525 K, 35 MPa 223.56-625 K, 150 MPa 178-700 K, 500 MPa 167.6-525 K, 50 MPa 120-420 K, 20 MPa 273.16-2000 K, 1000 MPa 161.41-750 K, 700 MPa 162.68-625 K, 30 MPa 116.099-525 K, 200 MPa 92-403 K, 35 MPa 120-623 K, 51 MPa 200-473 K, 138 MPa 115.73-550 K, 60 MPa 118.02-475 K, 120 MPa 136.34-435 K, 70 MPa 129.82-425 K, 70 MPa

1,1,2-trichloro-1,2,21,2-dichloro-1,1,2,2chloropentafluoroethane hexafluoroethane 2,2-dichloro-1,1,12,3,3,3-tetrafluoroprop-1-ene trans-1,3,3,31-chloro-1,2,2,2pentafluoroethane 1,1,1,2-tetrafluoroethane 1,1-dichloro-1-fluoroethane 1-chloro-1,1-difluoroethane 1,1,1-trifluoroethane 1,1-difluoroethane fluoroethane octafluoropropane 1,1,1,2,3,3,31,1,1,2,3,31,1,1,3,3,31,1,2,2,3-pentafluoropropane 1,1,1,3,3-pentafluoropropane 1,1,1,3,3-pentafluorobutane octafluorocyclobutane

236.93-525 K, 200 MPa 273.15-507 K, 21 MPa 173.75-550 K, 60 MPa 173.1-425 K, 50 MPa 166-600 K, 40 MPa 220-410 K, 30 MPa 168.62-420 K, 20 MPa 120-470 K, 40 MPa 172.52-500 K, 60 MPa 169.85-455 K, 70 MPa 169.68-500 K, 400 MPa 142.72-470 K, 60 MPa 161.34-650 K, 100 MPa 154.56-500 K, 60 MPa 130-400 K, 50 MPa 125.45-440 K, 20 MPa 146.35-475 K, 60 MPa 242-500 K, 60 MPa 179.52-500 K, 40 MPa 200-500 K, 60 MPa 171.05-440 K, 200 MPa 239-500 K, 35 MPa 233.35-623 K, 60 MPa

Index of mixtures included in the REFPROP database


ASHRAE Designation air R401A R401B R401C R402A R402B R403A R403B R404A R405A R406A R407A R407B R407C R407D R407E R408A R409A R409B R410A R410B R411A R411B R412A R413A R414A R414B R415A R415B R416A R417A R418A R419A R420A R421A R421B R422A R422B R422C Components N2/Ar/O2 R22/R152a/R124 R22/R152a/R124 R22/R152a/R124 R125/Propane/R22 R125/Propane/R22 Propane/R22/R218 Propane/R22/R218 R125/R134a/R143a R22/R152a/R142b/RC318 R22/Isobutane/R142b R32/R125/R134a R32/R125/R134a R32/R125/R134a R32/R125/R134a R32/R125/R134a R125/R143a/R22 R22/R124/R142b R22/R124/R142b R32/R125 R32/R125 Propylene/R22/R152a Propylene/R22/R152a R22/R218/R142b R218/R134a/Isobutane R22/R124/Isobutane/R142b R22/R124/Isobutane/R142b R22/R152a R22/R152a R134a/R124/Butane R125/R134a/Butane Propane/R22/R152a R125/R134a/DME R134a/R142b R125/R134a R125/R134a R125/R134a/Isobutane R125/R134a/Isobutane R125/R134a/Isobutane

R422D R423A R424A R425A R426A R427A R428A R429A R430A R431A R432A R433A R434A R435A R436A R436B R437A R438A R500 R501 R502 R503 R504 R507A R508A R508B R509A R510A Amarillo Gas

R125/R134a/Isobutane R134a/R227ea R125/R134a/Isobutane/Butane/ Isopentane R32/R134a/R227ea R125/R134a/Butane/Isopentane R32/R125/R143a/R134a R125/R143a/Propane/Isobutane Dimethyl ether/R152a/Isobutane R152a/Isobutene Propane/R152a Propylene/Dimethyl ether Propylene/Propane R125/R143a/R134a/Isobutane Dimethyl ether/R152a Propane/Isobutane Propane/Isobutane R125/R134a/Butane/Pentane R32/R125/R134a/Butane/Isopentane R12/R152a R22/R12 R22/R115 R23/R13 R32/R115 R125/R143a R23/R116 R23/R116 R22/R218 Dimethyl ether/Isobutane methane/nitrogen/ CO2/ethane/ propane/isobutane/ butane/isopentane/ pentane/hexane Ekofisk Gas methane/nitrogen/ CO2/ethane/ propane/isobutane/ butane/isopentane/ pentane Gulf Coast Gas methane/nitrogen/ CO2/ethane/ propane/isobutane/ butane/isopentane/ pentane/hexane

High CO2 and Nitrogen Gas

High N2 Gas

methane/nitrogen/ CO2/ethane/ propane/isobutane/ butane methane/nitrogen/ CO2/ethane/ propane/isobutane/ butane

in the REFPROP database


Composition (mass percentages) 75.57/1.27/23.16 53/13/34 61/11/28 33/15/52 60/2/38 38/2/60 5/75/20 5/56/39 44/4/52 45/7/5.5/42.5 55/4/41 20/40/40 10/70/20 23/25/52 15/15/70 25/15/60 7/46/47 60/25/15 65/25/10 50/50 45/55 1.5/87.5/11 3/94/3 70/5/25 9/88/3 51/28.5/4/16.5 50/39/1.5/9.5 82/18 25/75 59/39.5/1.5 46.6/50/3.4 1.5/96/2.5 77/19/4 88/12 58/42 85/15 85.1/11.5/3.4 55/42/3 82/15/3 Composition (mole fractions) 0.78120/0.00920/0.20960 0.57885/0.18587/0.23527 0.65492/0.15461/0.19047 0.38559/0.22945/0.38496 0.50766/0.04606/0.44628 0.29986/0.04296/0.65719 0.10430/0.79785/0.09785 0.11708/0.66873/0.21418 0.35782/0.03826/0.60392 0.58240/0.11860/0.06125/0.23776 0.57156/0.06184/0.36660 0.34642/0.30032/0.35326 0.19787/0.60036/0.20177 0.38111/0.17956/0.43933 0.26227/0.11368/0.62405 0.40261/0.10471/0.49268 0.05075/0.47628/0.47297 0.67609/0.17848/0.14543 0.72671/0.17709/0.09620 0.69761/0.30239 0.65369/0.34631 0.02936/0.83347/0.13717 0.05922/0.90305/0.03773 0.74619/0.02451/0.22930 0.04976/0.89658/0.05366 0.57172/0.20242/0.06671/0.15915 0.58744/0.29031/0.02622/0.09603 0.77678/0.22322 0.20295/0.79705 0.64718/0.32393/0.02888 0.41446/0.52310/0.06244 0.02878/0.93920/0.03202 0.70146/0.20360/0.09494 0.87839/0.12161 0.54001/0.45999 0.82810/0.17190 0.80550/0.12804/0.06646 0.49729/0.44670/0.05601 0.77476/0.16671/0.05853

65.1/31.5/3.4 52.5/47.5 50.5/47.9/1/0.6 18.5/69.5/12 5.1/93/1.3/0.6 15/25/10/50 77.5/20/0.6/1.9 60/10/30 76/24 71/29 80/20 30/70 63.2/18/16/2.8 80/20 56/44 52/48 19.5/78.5/1.4/0.6 8.5/45/44.2/1.7/0.6 73.8/26.2 75/25 48.8/51.2 40.1/59.9 48.2/51.8 50/50 39/61 46/54 44/56 88/12 82.672/4.9807/ 1.1696/7.7379/ 2.0751/0.34255/ 0.5163/0.13162/ 0.18165/0.19248 73.432/1.5028/ 3.5066/13.605/ 5.4074/1.0796/ 1.0858/0.19567/ 0.18452 92.176/0.43273/ 1.5603/3.2551/ 1.2064/0.33802/ 0.3484/0.20314/ 0.13915/0.34061

0.59629/0.33940/0.06431 0.64812/0.35188 0.45615/0.49939/0.01679/0.01865/ 0.00902 0.32113/0.61513/0.06373 0.04315/0.92568/0.02272/0.00845 0.26078/0.18839/0.10762/0.44321 0.69433/0.25589/0.01463/0.03515 0.66113/0.07685/0.26201 0.73591/0.26409 0.78574/0.21426 0.81410/0.18590 0.30992/0.69008 0.55678/0.22647/0.16581/0.05094 0.85152/0.14848 0.62653/0.37347 0.58813/0.41187 0.16850/0.79790/0.02498/0.00862 0.16191/0.37156/0.42930/0.02899/0.00824 0.60610/0.39390 0.80751/0.19249 0.62999/0.37001 0.49970/0.50030 0.73424/0.26576 0.41184/0.58816 0.55758/0.44242 0.62675/0.37325 0.63079/0.36921 0.90246/0.09754 0.90672/0.031284/ 0.004676/0.045279/ 0.00828/0.001037/ 0.001563/0.000321/ 0.000443/0.000393 0.85906/0.010068/ 0.014954/0.084919/ 0.023015/0.003486/ 0.003506/0.000509/ 0.00048 0.96522/0.002595/ 0.005956/0.018186/ 0.004596/0.000977/ 0.001007/0.000473/ 0.000324/0.000664

65.706/8.0556/ 16.835/6.5252/ 1.9903/0.44261/ 0.44554 70.061/20.227/ 2.3246/5.3209/ 1.4306/0.31167/ 0.32414

0.81212/0.05702/ 0.07585/0.04303/ 0.00895/0.00151/ 0.00152 0.81441/0.13465/ 0.00985/0.033/ 0.00605/0.001/ 0.00104

XLS Version Number: DLL Version Number: Location of the VB code Name of this file

9.0 #VALUE!

9.0 9.0

If the two cells do not match after pressing Ctrl-Alt-F9, the

If the two cells do not match after pressing Ctrl-Alt-F9, the

\\vboxsrv\conversion_tmp\scratch_2\195395121.xls.ms_office.xls \\vboxsrv\conversion_tmp\scratch_2\195395121.xls.ms_office.xls

See the Tips worksheet for information on using Refprop in Excel


Text of user-specified values in the input cells is blue. Pure Fluid Calculations Fluid: nitrogen T P K MPa 100 2 #VALUE! 1 #VALUE! 100 #VALUE! 60 #VALUE! 1 #VALUE! 200 #VALUE! 0.01
Critical Temp. (K): Crit. Press. (MPa): Crit. Dens. (mol/L):

r mol/L #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

h J/mol #VALUE! #VALUE! -4000.00

Units: Molar SI #VALUE! Triple Point Temp. (K): #VALUE! Trp Pressure (MPa): #VALUE! Trp Density (mol/L): s Quality J/mol-K (mole basis) #VALUE! #VALUE! #VALUE! 100 #VALUE! #VALUE!

(Melting point given temperature) (Melting point given pressure) (Sublimation point given temperature) (Sublimation point given pressure)

Two-Phase Calculations Compute properties from given temperature and density. r T P K MPa mol/L #VALUE! 15 100

u J/mol #VALUE!

h J/mol #VALUE!

s J/mol-K #VALUE!

Calculate liquid properties given only the saturation pressure. #VALUE! #VALUE! #VALUE! 0.3

#VALUE!

#VALUE!

Calculate properties given only the saturation temperature. (note that some of the following calculations use "TD&" to define the input properties, see t #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! 100 #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! Example: Unit Conversions Unit system: cgs T K 100

P MPa 1

r
g/cm #VALUE!
3

v cm /g #VALUE!
3

u J/g #VALUE!

h J/g #VALUE!

Other Properties Unit system: E T F -100 P psia 1000 Isothermal Compressibility 1/psia #VALUE! Volume Expansivity 1/R #VALUE! Isentropic Expansion Coefficient #VALUE! Isothermal Expansion Coefficient #VALUE!

(See the "Mixture Example" worksheet for more examples.) Example: Mixture Calculations (maximum number of components in a mixture is 20) System: 0.6 nitrogen + 0.05 argon + 0.35 oxygen
nitrogen;0.6;argon;0.05;oxygen;0.35 nitrogen;0.6;argon;0.05;oxygen;0.35 Components Mole Fractions 0.60 nitrogen 0.05 argon 0.35 oxygen 1.00 Total

(Note the two different ways to make this string, the second is easiest)

Density
Mixture properties: r (100 K, 0.1 MPa) r (100 K, 1 MPa) #VALUE! #VALUE! kg/m kg/m
3 3

Bubble Point Pressure


#VALUE! #VALUE!

#VALUE! #VALUE!

Example: Predefined Mixture:


Mixture properties: r (300 K, 10 MPa) r (25 F, 1000 psia)

Mole Fraction 1 Mole Fraction 2 Mass Fraction 1 r410a.mix #VALUE! #VALUE! #VALUE! In addition to the predefined mixtures in REFPROP, any mixture with a ".mix" extension th #VALUE! #VALUE! kg/m
3 3

#VALUE! #VALUE!

kJ/kg Btu/lbm

#VALUE! #VALUE!

lbm/ft

Two phase state point at 300 K, 200 kg/m3: r T P


K 300
3

Quality

Properties of the liquid and vapor at the equilibrium comp Liquid Phase Liquid Phase Mole Frac. Mole Frac.
R32 #VALUE! #VALUE! #VALUE! R125 #VALUE!

kg/m MPa (mass basis) 200 #VALUE! #VALUE! Liquid phase composition string: Vapor phase composition string:

Dew point at 300 K with equilibrium liquid properties r T P


K 300
3

Equilibrium

Properties of the liquid and vapor at the equilibrium comp Liquid Phase Liquid Phase Mole Frac. Mole Frac.
R125 #VALUE!

kg/m MPa Liquid Density R32 #VALUE! #VALUE! #VALUE! #VALUE! Liquid phase composition string: #VALUE!

Alternative method for specifying a mixture setup R32/R125 (0.5/0.5)

To specify mass composition, add the word "mass" at the R32/R125 (0.5/0.5) mass

T K 300

P MPa #VALUE!

r
kg/m #VALUE!
3

T K 300

P MPa #VALUE!

Temp (K) Pressure (MPa) methane propane pentane

300 10 0.5 0.2 0.1 0.1 0.1 methane propane butane 0.5 0.2 0.1 0.1 0.1

Density (kg/m^3)

methane;0.5;propane;0.1;pentane;0.1 #VALUE!

methane;0.5;propane;0.1;butane;0.1 #VALUE!

match after pressing Ctrl-Alt-F9, then you are not using the most recent VBA code. All occurrences in .xlt or .xla files should be deleted and

match after pressing Ctrl-Alt-F9, then you are not using the most recent REFPROP.DLL file. Search your computer for REFPROP.DLL (es

ms_office.xls

ms_office.xls

Triple Point Temp. (K): Trp Pressure (MPa): Trp Density (mol/L):

Viscosity mPa-s #VALUE! #VALUE!

#VALUE! #VALUE! #VALUE! Th. Cnd. mW/(m-K) #VALUE! #VALUE!

Critical Temp. (C): Triple Point Temp. (C):

#VALUE! #VALUE!

Example calculations when two states are possible for the given inputs: Inputs are T = 100 K and H = -40 kJ/kg

#VALUE! #VALUE!

#VALUE! #VALUE!

If the phase is known for given inputs of T and P, the following examples show how to obtain much faster ca These examples also show how to force the calculation to search only in the liquid or only in the vapor state #VALUE! (Input state is known to be in the liquid) #VALUE! (Input state is known to be in the vapor)

Quality (mole basis) #VALUE! Latent heat J/mol #VALUE!

rSL mol/L #VALUE!

rSV mol/L #VALUE!

Surf. Tens. mN/m #VALUE!

Liquid Viscosity mPa-s #VALUE!

Vapor Viscosity mPa-s #VALUE!

the input properties, see the "Mixture Example" sheet for more information.

Liquid Vapor Calculate temperature given saturation density, enthalpy, or entropy. Note that there can be three roots for entropy in the vapor phase, for example, try butane at 422 K.

#VALUE!

s J/g-K #VALUE!

Cv J/g-K #VALUE!

Cp J/g-K #VALUE!

w cm/s #VALUE!

h mPa-s #VALUE!

l
mW/(m-K) #VALUE!

Adiabatic Compressibility 1/psia #VALUE!

Adiabatic Bulk Isothermal Bulk Modulus Modulus psia psia #VALUE! #VALUE!

dP/dr

d P/dr2

dP/dT psia/F #VALUE!

psia-ft^3/lbm psia-ft^6/lbm^2 #VALUE! #VALUE!

this string, the second is easiest)

Dew Point Pressure


#VALUE! #VALUE!

Air as a predefined mixture Air as a pseudo-pure fluid

Mass Fraction 2 #VALUE! any mixture with a ".mix" extension that you save in the mixtures directory while running the REFPROP graphical interface will be available to kJ/kg-K Btu/lbm-F

d and vapor at the equilibrium compositions (not the R410A composition): Liquid Vapor Vapor Phase Vapor Phase Density Density Mole Frac. Mole Frac.
R32 #VALUE! R125 #VALUE! kg/m #VALUE!
3

Liquid Viscosity mPa-s #VALUE!

Vapor Viscosity mPa-s #VALUE!

kg/m #VALUE!

d and vapor at the equilibrium compositions (not the R410A composition for the liquid): Liquid Vapor Liquid Enthalpy Enthalpy Viscosity
kJ/kg #VALUE! kJ/kg #VALUE!

Vapor Viscosity mPa-s #VALUE!

mPa-s #VALUE!

mposition, add the word "mass" at the end of the input

r
kg/m #VALUE!
3

methane ethane propane butane pentane

0.5 0.2 0.1 0.1 0.1

e;0.1;butane;0.1

methane;0.5;ethane;0.2;propane;0.1;butane;0.1;pentane;0.1 #VALUE!

in .xlt or .xla files should be deleted and restored with the new code attached to this file.

h your computer for REFPROP.DLL (especially in the Windows\System32 directory) and delete all occurrences except the one in the REFPR

ates are possible for the given inputs:

(Pressure and quality at the high density point) (Pressure and quality at the low density point)

mples show how to obtain much faster calculations: nly in the liquid or only in the vapor state (for example, for metastable states.)

Liquid Th. Cnd. mW/(m-K) #VALUE!

Vapor Th. Cnd. mW/(m-K) #VALUE!

Liquid Z #VALUE!

Vapor Z #VALUE!

Z #VALUE!

Prandtl Number #VALUE!

dr/dT lbm/(ft^3-F) #VALUE!

C* (Critical flow factor) #VALUE!

Specific Heat Input Btu/lbm #VALUE!

OP graphical interface will be available to the Excel file here.

Liquid Th. Cnd.


mW/(m-K) #VALUE!

Vapor Th. Cnd.


mW/(m-K) #VALUE!

Liquid phase mass fract.

Liquid phase mass fract.

R32 #VALUE! #VALUE!

R125 #VALUE! #VALUE!

(These two cells are just for checking mass to mole conversions)

Liquid Th. Cnd.


mW/(m-K) #VALUE!

Vapor Th. Cnd.


mW/(m-K) #VALUE!

Fugacity R32
MPa #VALUE!

Fugacity Fugacity Chemical Fugacity Coefficient Coefficient Potential R125 R32 R125 R32
MPa kJ/kg #VALUE! #VALUE! #VALUE! #VALUE!

rences except the one in the REFPROP directory.

mass to mole conversions)

Chemical Potential R125

Activity R32

Activity Activity Activity Coefficient Coefficient R125 R32 R125

kJ/kg #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

Phase calculation example for a 50/50 mixture of ammonia and water There are two sets of indepent calculations below, column C shows calculations for a liquid phase input at 0.3 MPa. Column G shows calculations starting with a vapor phase state that is at 300 K; the liquid phase calculations are in equilibrium ammonia;0.5;water;0.5 Pressure (MPa) 0.3 Temperature (K) Liquid phase temperature (K) #VALUE! Vapor phase (dew point) pressure Get the liquid and vapor densities for all other thermodynamic property calculations Liquid phase density (kg/m^3) #VALUE! Liquid phase density (kg/m^3) Vapor phase density (kg/m^3) #VALUE! Vapor phase density (kg/m^3) Get the composition of the phase in equilibrium with the input phase Vapor phase in equilibrium with liquid at 0.3 MPa Ammonia #VALUE! Water #VALUE! #VALUE! Calculate all other properties using the temperature and density as inputs (with the appropriate mole fractions for ammonia and water for either the liquid or vapor.) Use the ampersand in the special code "TD&" to indicate that phase equilibrium checks should not be performed, and that the properties should be calculated directly from the equation of state (EOS) regardless of phase. The special code only works for temperature and density since these are the independent properties in the EOS. If the ampersand is not used, the program attempts to find the phase boundary for each input, thus slowing down the process, and occasionally causing errors because of nonconvergence. The TD& input can be used for all single phase and saturation states. The ampersand should NOT be used for two-phase states, it will return properties for metastable states. Liquid enthalpy (kJ/kg) #VALUE! Vapor enthalpy (kJ/kg) #VALUE! Liquid speed of sound (m/s) Vapor speed of sound (m/s) #VALUE! #VALUE!

Comparisons with calculations from the Refprop graphical interface will help ensure that calculated values are

Example worksheet that demonstrates how to mix two natural gas streams of known molar composition. The two stre flow rates, temperatures, and pressures. Inputs are in blue. The cells in rows 60-62 are used to concatenate the fluid into one argument that can be passed to the REFPROP DLL. Stream 1 Stream 2 Stream 1 Stream 2 Mole Percents Mass Fractions CO2 0.2202 0.2190 #VALUE! #VALUE! Nitrogen 2.1926 2.6600 #VALUE! #VALUE! Methane 95.3108 87.0381 #VALUE! #VALUE! Ethane 1.5123 5.6369 #VALUE! #VALUE! Propane 0.4471 2.6590 #VALUE! #VALUE! Isobutane 0.0495 0.3040 #VALUE! #VALUE! Butane 0.1366 0.8230 #VALUE! #VALUE! Isopentane 0.0284 0.1610 #VALUE! #VALUE!

Pentane Hexane

0.0403 0.0620

0.2050 0.2940

#VALUE! #VALUE!

#VALUE! #VALUE!

Stream 1 Stream 2 Output

CO2;0.220243;Nitrogen;2.192612;Methane;95.31076;Ethane;1.512332;Propane;0.447117;Isobutane;0.04952 CO2;0.219;Nitrogen;2.66;Methane;87.0381;Ethane;5.6369;Propane;2.659;Isobutane;0.304;Butane;0.823;Isop #VALUE!

d phase input at 0.3 MPa. phase calculations are in equilibrium with the vapor state at 300 K 300 #VALUE!

#VALUE! #VALUE!

Liquid phase in equilibrium with vapor at 300 K #VALUE! #VALUE! #VALUE!

ould not be performed, rdless of phase. properties in the EOS. put, thus slowing down the process,

astable states. #VALUE! #VALUE! #VALUE! #VALUE! (Note which cells are specified for the fluid string in these 8 calculations)

elp ensure that calculated values are correct.

n molar composition. The two streams have different are used to concatenate the fluid names and mole fractions Stream 1 Flow Rate Temp. Pressure Density Flow Rate Stream 2 Flow Rate Temp. Stream 1 (ft^3/hr) (F) (psia) (lbm/ft^3) (lbm/hr) 500000 60 550 #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! Stream 2 Flow Rate in lbm/hr #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

(ft^3/hr) (F)

100000 70

Pressure Density Flow Rate

(psia) (lbm/ft^3) (lbm/hr)

900 #VALUE! #VALUE!

#VALUE! #VALUE!

#VALUE! #VALUE! Sum:

Propane;0.447117;Isobutane;0.049524;Butane;0.136641;Isopentane;0.028408;Pentane;0.040311;Hexane;0.062049 9;Isobutane;0.304;Butane;0.823;Isopentane;0.161;Pentane;0.205;Hexane;0.294

Output Rate in lbm/hr #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

Output Mass Frac #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

Output Mole Percent #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

#VALUE! #VALUE! #VALUE!

#VALUE! #VALUE!

#VALUE! #VALUE!

This worksheet can be used to verify that the user's computer is returning proper calculations The values in the columns on the left are calculated from your copy of the Refprop DLL. The values in the middle column were calculated at NIST. The values in the right column show the differences, and should all be zero (or very near zero) If the "Total sum of errors" below is not (nearly) zero, please check carefully to determine the source of the problem(s). To recalculate, press Ctrl-Alt-F9 (or Ctrl-Alt-Shift-F9 for some users)

Total Sum of Differences between this computer's calcs and NIST From DLL #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! From NIST 28.95860066 637.3775887 1.456918928 651.5166161 153.8866807 100.111749 0.074915638 23643.99357 298.4313203 5536.791449 1.600404035 0.038640632 0.038640617 0.050092665 319.1674999 4.050420292 283.7248367 101.7947826 1.037058059 0.697614699 0.5 0.697614699 481.2761563

#VALUE!

Number of functions with percent difference > 0.00001

0.00001
Percent Difference #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!

er calculations

very near zero) determine the source of the problem(s).

#VALUE!
Function MolarMass("Air") Temperature("argon","PD","SI",2,15) Pressure("r134a","TD","SI",400,50) Enthalpy("ethylene","TS","SI",300,3) Viscosity("oxygen","TP","SI",100,1) ThermalConductivity("nitrogen","Tliq","SI",100) Density("air","TP","E",70,14.7) Enthalpy("R32;0.3;R125;0.7","PS","molar si",10,110) Temperature("ethane;0.5;butane;0.5 mass","DH","E",30,283) SpeedOfSound("ammonia;0.4;water;0.6","TP","E",300,10000) Density("r218;.1;r123;.9","PH","cgs",7,180) Quality("methane;40;ethane;60 mass","TD","mks",200,300) kg/kg Quality("methane;40;ethane;60 mass","TP","mks",200,2814.5509) mass ratio Quality("methane;40;ethane;60 mass","TP","molar SI",200,2.8145509) molar ratio HeatOfVaporization("octane","tliq","c",100) SurfaceTension("nitrogen","tl","SI",100) Viscosity("butane;.25;hexane;.75","TH","SI",300,-21) ThermalConductivity("carbon dioxide,.5,nitrogen,.5 mass","TH","SI",200,126) DielectricConstant("ethane;.5;propane;.5","tvap","SI",300) MoleFraction("R410A.MIX",1) mole2mass("R410A.MIX",1,A30,1-A30) mass2mole("R410A.MIX",1,0.5,0.5) LiquidDensity("methane;.7;ethane;.2;propane;.05;butane;.05","TD","SI",150,200)

You might also like