Ref Prop
Transcript of Ref Prop
Sample Workbook to demonstrate the use of REFPROP in a Spreadsheet.
Dr. Mark O. McLindenThermophsical Properties Division Thermophsical Properties DivisionTheory and Modeling of Fluids Group Experimental Properties of Fluids Group325 Broadway 325 BroadwayBoulder, CO 80305, U.S.A. Boulder, CO 80305, U.S.A.
Phone: +1-303-497-7939 Phone: +1-303-497-3580Web: Web:
Thermophsical Properties DivisionTheory and Modeling of Fluids Group325 BroadwayBoulder, CO 80305, U.S.A.
Phone: +1-303-497-5252Web:
Dr. Eric W. Lemmon
http://www.nist.gov/cstl/properties/fluids_modeling/index.cfm http://FluidProperties.NIST.Gov
Dr. Marcia L. Huber
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 program.***For additional information, see
Running Refprop within ExcelMacros must be enabled to calculate properties.The help file in the REFPROP graphical interface gives additional information on calculating properties or running macros from any spreadsheet.
To recalculate all of the values in every cell, press Ctrl-Alt-F9. Recalculating worksheets with a large number of formulas can take a long time. See lower left of screen to monitor recalculation rate.
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:
(Environment variables can be set under Start/Settings/Control Panel/System/Advanced/Environment Variables, under the "User variables" option.) (In Windows 7, this is located in Start/Control Panel/System And Security/System/Change settings/Advanced/Environment variables)
If the path statement already exists, it can be modified by adding ";C:\Program Files\REFPROP" (or whatever location is used) to the end so that the file REFPROP.DLL can be found from any location.
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 in order for REFPROP to locate the fluid files and the DLL. Warning: Do not edit the working directories in the macro window AND set the environment variables. This will cause it to fail.
Changes from previous versionsThe units used here have changed slightly from those used in REFPROP 7.0. "SI" now refers to SI units on a mass basis, while "Molar SI" will return the same results as those given in version 7.0.
UnitsMost properties shown here use the default units of "Molar SI"; other available sets: "SI", "SI with C", "Molar SI", "E", "Molar E", "cgs", "mks", "M" (these all need quotes). The "SI with C" set can also be labeled as just "C".(See the "REFPROP with Instructions and Help.XLS" file for definitions of these sets. In particular, see the User Information tab and click on the "vlookup table" button.)
All unit systems use a mass basis for properties and a mole basis for compositions, except "Molar SI" and "Molar E", which uses a mole basis for properties.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 change the value to 3.
Other tipsTo 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 displayed on the monitor when REFPROP.exe is running. This can then be pasted into a worksheet.
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htmhttp://www.nist.gov/srd/upload/REFPROP9.PDFhttp://www.nist.gov/srd/nist23.cfm
The REFPROP.xls file can be saved as a template file (REFPROP.xlt). When a new Excel file is created (under File/New) using this template file, a suffix number is appended so that the saved material will not overwrite the original file.
1. An environment variable can be set to specify the location of the fluid files. This new variable should be called RPPrefix and be given the value of "C:\Program Files\REFPROP" (or the directory where REFPROP is located).
2. Add a second environment variable named "path" (under "User variables") that contains the text "C:\Program Files\REFPROP".
3. Go to the "File/Save As…" option in Excel and select "Microsoft Office Excel Add-In" under the "Save as type" section. This will change the extension to .XLA and save it in a default dir. 4. Restart Excel. Under the Tools\Addins option, select the REFPROP add-in. The macros will now be available for use in any empty or existing worksheet.
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 in effect for density, then the quality will 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.xls" file from 8.0.
***Do not save your work as REFPROP.XLS, but rename it. This will avoid losing the file if you ever uninstall or reinstall the program.***
The help file in the REFPROP graphical interface gives additional information on calculating properties or running macros from any spreadsheet.
To recalculate all of the values in every cell, press Ctrl-Alt-F9. Recalculating worksheets with a large number of formulas can take a long time. See lower left of screen to monitor recalculation rate.
(Environment variables can be set under Start/Settings/Control Panel/System/Advanced/Environment Variables, under the "User variables" option.) (In Windows 7, this is located in Start/Control Panel/System And Security/System/Change settings/Advanced/Environment variables)
If the path statement already exists, it can be modified by adding ";C:\Program Files\REFPROP" (or whatever location is used) to the end so that the file REFPROP.DLL can be found from any location.
Alternatively, the comments at the beginning of the Visual Basic code (press Alt-F11) tell how to change the working directories in order for REFPROP to locate the fluid files and the DLL. Warning: Do not edit the working directories in the macro window AND set the environment variables. This will cause it to fail.
The units used here have changed slightly from those used in REFPROP 7.0. "SI" now refers to SI units on a mass basis, while "Molar SI" will return the same results as those given in version 7.0.
Most properties shown here use the default units of "Molar SI"; other available sets: "SI", "SI with C", "Molar SI", "E", "Molar E", "cgs", "mks", "M" (these all need quotes). The "SI with C" set can also be labeled as just "C".(See the "REFPROP with Instructions and Help.XLS" file for definitions of these sets. In particular, see the User Information tab and click on the "vlookup table" button.)
All unit systems use a mass basis for properties and a mole basis for compositions, except "Molar SI" and "Molar E", which uses a mole basis for properties.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 change the value to 3.
A screen shot of REFPROP can be inserted into a worksheet by clicking the "Print Screen" key (top row) to copy what is displayed on the monitor when REFPROP.exe is running. This can then be pasted into a worksheet.
The REFPROP.xls file can be saved as a template file (REFPROP.xlt). When a new Excel file is created (under File/New) using this template file, a suffix number is appended so that the saved material will not overwrite the original file.
can be set to specify the location of the fluid files. This new variable should be called RPPrefix and be given the value of "C:\Program Files\REFPROP" (or the directory where REFPROP is located).
Add a second environment variable named "path" (under "User variables") that contains the text "C:\Program Files\REFPROP".
. Go to the "File/Save As…" option in Excel and select "Microsoft Office Excel Add-In" under the "Save as type" section. This will change the extension to .XLA and save it in a default dir. Restart Excel. Under the Tools\Addins option, select the REFPROP add-in. The macros will now be available for use in any empty or existing worksheet.
is being defined for mixtures in the 2-phase has changed since the release of version 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 with the definitions in the "REFPROP with Instructions and Help.xls" file from 8.0.
To recalculate all of the values in every cell, press Ctrl-Alt-F9. Recalculating worksheets with a large number of formulas can take a long time. See lower left of screen to monitor recalculation rate.
If the path statement already exists, it can be modified by adding ";C:\Program Files\REFPROP" (or whatever location is used) to the end so that the file REFPROP.DLL can be found from any location.
Alternatively, the comments at the beginning of the Visual Basic code (press Alt-F11) tell how to change the working directories in order for REFPROP to locate the fluid files and the DLL.
The units used here have changed slightly from those used in REFPROP 7.0. "SI" now refers to SI units on a mass basis, while "Molar SI" will return the same results as those given in version 7.0.
Most properties shown here use the default units of "Molar SI"; other available sets: "SI", "SI with C", "Molar SI", "E", "Molar E", "cgs", "mks", "M" (these all need quotes). The "SI with C" set can also be labeled as just "C".
All unit systems use a mass basis for properties and a mole basis for compositions, except "Molar SI" and "Molar E", which uses a mole basis for properties.
A screen shot of REFPROP can be inserted into a worksheet by clicking the "Print Screen" key (top row) to copy what is displayed on the monitor when REFPROP.exe is running. This can then be pasted into a worksheet.
The REFPROP.xls file can be saved as a template file (REFPROP.xlt). When a new Excel file is created (under File/New) using this template file, a suffix number is appended so that the saved material will not overwrite the original file.
can be set to specify the location of the fluid files. This new variable should be called RPPrefix and be given the value of "C:\Program Files\REFPROP" (or the directory where REFPROP is located).
. Go to the "File/Save As…" option in Excel and select "Microsoft Office Excel Add-In" under the "Save as type" section. This will change the extension to .XLA and save it in a default dir.
is being defined for mixtures in the 2-phase has changed since the release of version 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 with the definitions in the "REFPROP with Instructions and Help.xls" file from 8.0.
is being defined for mixtures in the 2-phase has changed since the release of version 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 with the definitions in the "REFPROP with Instructions and Help.xls" file from 8.0.
is being defined for mixtures in the 2-phase has changed since the release of version 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 with the definitions in the "REFPROP with Instructions and Help.xls" file from 8.0.
REFPROP Functions Function Syntax:
Mole2Mass(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8,
30 #VALUE! REFPROP VerNr =>
Arguments: (FluidName, InpCode, Units, Prop1, Prop2, i )
See "Examples" Worksheet and search for air.ppf
Routines for working with mole & mass fractions
Mole2Mass LiquidMoleFraction Mass Fraction
Mass2Mole VaporMoleFraction Mole Fraction
FAQ REFPROP >>
FluidName, InpCode, and Units are "text", use quotes. Prop1 and Prop2 are numbers
FluidName = "text" - fluid must be either in Fluids or Mixtures sub directories.
Predefined mixtures must contain .mix suffix, eg: "air.mix"
User defined mixtures, with composition entered on a mole or mass basis
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 SI", "mks", "cgs", "M"
If this input is omitted, then SI is default. (Unless DefaultUnits changed in VBA )
Prop1 = numerical value (without quotes) of the first input property (in the units of the previous line)
Prop2 = numerical value (without quotes) of the second input property (if required). Component functions require the index i, the component number in the mixture ( 1 <= i <= 20 )
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm
Mole2Mass(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, Dimensions InpCode
#VALUE! lbm(i)/lbm "E"
lbm(i)/lbm "Molar E"
kg(i)/kg "SI"
kg(i)/kg "SI with C"
kg(i)/kg "Molar SI"
See "Examples" Worksheet and search for air.ppf kg(i)/kg "mks"
g(i)/g "cgs"
g(i)/g "Mixed"
Defining a new fluid mixture
FluidString(FluidRange,FractionRange)
FluidString(FluidRange,FractionRange) & " mass"
use quotes. Prop1 and Prop2 are numbers
fluid must be either in Fluids or Mixtures sub directories.
must contain .mix suffix, eg: "air.mix"
, with composition entered on a mole or mass basis
means Prop1 is Temperature, Prop2 is Pressure (need quotes) 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
TP, TD, TH, TS, TE, TQ, PD, PH, PS, PE, PQ, DH, DS, DE, HS
Tliq, Tvap, Pliq, Pvap, TPL, TPV
note: Prop2 is Optional
, valid inputs are "E", "Molar E", "SI", "SI with C" or "C", "Molar SI", "mks", "cgs", "M"
SI is default. (Unless DefaultUnits changed in VBA )
= numerical value (without quotes) of the first input property (in the units of the previous line)
of the second input property (if required)., the component number in the mixture ( 1 <= i <= 20 )
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm
Units 1
English Mass 1
English Moles 2
SI 3
SI with °C 4
Molar SI 5
mks 6
cgs 7
Mixed 8
9
10
11
12
13
FluidString(FluidRange,FractionRange) 14
FluidString(FluidRange,FractionRange) & " mass" 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
VLOOKUP() TableRange M4 : W81
All units use a mass basis for properties and a mole basis "Molar SI" and "Molar E", which
40
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
Dimensions are in columns O thru V. Function Arguments are in Column W
2 3 4
>>>>INPUT FluidString<<<< "E" "Molar E"
FluidString()
>>>>>>>PROPERTY<<<<<<<
Temperature() °F °F
Pressure() psia psia
Density() lbm/ft^3 lbmol/ft^3
LiquidDensity() lbm/ft^3 lbmol/ft^3
VaporDensity() lbm/ft^3 lbmol/ft^3
Quality() Vapor massFr Vapor moleFr
CompressibilityFactor() dimLess dimLess
Volume() ft^3/lbm ft^3/lbmol
Energy() Btu/lbm Btu/lbmol
IsochoricHeatCapacity() Btu/lbm-°R Btu/lbmol-°R
cv() Btu/lbm-°R Btu/lbmol-°R
Enthalpy() Btu/lbm Btu/lbmol
cp() Btu/lbm-°R Btu/lbmol-°R
IsobaricHeatCapacity() Btu/lbm-°R Btu/lbmol-°R
LatentHeat() Btu/lbm Btu/lbmol
HeatOfVaporization() Btu/lbm Btu/lbmol
Entropy() Btu/(lbm-°R) Btu/(lbmol-°R)
VolumeExpansivity() 1/°R 1/°R
SecondVirial() ft^3/lbm ft^3/lbmol
Csat() Btu/lbm-°R Btu/lbmol-°R
>COMPOSITION & MIXTURE<
MolarMass() lbm/lbmol lbm/lbmol
MoleFraction(i) lbmol(i)/lbmol lbmol(i)/lbmol
MassFraction(i) lbm(i)/lbm lbm(i)/lbm
Mole2Mass(i) lbm(i)/lbm lbm(i)/lbm
Mass2Mole(i) lbmol(i)/lbmol lbmol(i)/lbmol
LiquidMoleFraction(i) lbmol(i)/lbmol lbmol(i)/lbmol
VaporMoleFraction(i) lbmol(i)/lbmol lbmol(i)/lbmol
>>>>>>TRANSPORT<<<<<<
Viscosity() lbm/ft-s lbmol/ft-s
ThermalConductivity() Btu/h-ft-°F Btu/h-ft-°F
Prandtl() dimLess dimLess
SurfaceTension() lbf/ft lbf/ft
VLOOKUP() TableRange M4 : W81
DielectricConstant() dimLess dimLess
>>>>>HEATING VALUE<<<<<
HeatOfCombustion() Btu/lbm Btu/lbmol
GrossHeatingValue() Btu/lbm Btu/lbmol
NetHeatingValue() Btu/lbm Btu/lbmol
>>>>>>>>>SONIC<<<<<<<<<
Cstar() Critical Flow Factor dimLess dimLess
Sound() ft/s ft/s
SpeedOfSound() ft/s ft/s
>>ISENTROPIC (ADIABATIC)<<
IsentropicExpansionCoef() dimLess dimLess
AdiabaticCompressibility() 1/psia 1/psia
AdiabaticBulkModulus() psia psia
>>>>>>ISOTHERMAL<<<<<<
IsothermalCompressibility() 1/psia 1/psia
IsothermalExpansionCoef() dimLess dimLess
IsothermalBulkModulus() psia psia
>>>>>>DERIVATIVE<<<<<<
JouleThomson() °F/psia °F/psia
dPdrho() psia-ft^3/lbm psia-ft^3/lbmol
d2Pdrho2() psia-ft^6/lbm^2psia-ft^6/lbmol^2
dPdT() psia/°F psia/°F
drhodT() lbm/(ft^3-°F) lbmol/(ft^3-°F)
SpecificHeatInput() Btu/lbm Btu/lbmol
>>>>SYSTEM RELATED<<<<
RefpropXLSVersionNumber()
RefpropDLLVersionNumber()
WhereAreREFPROPfunctions()
WhereIsWorkbook()
SeeFileLinkSources()
Dimensions are in columns O thru V. Function Arguments are in Column W
5 6 7 8
"SI" "SI with C" "Molar SI" "mks"
NIST Default Units
(UserUnits = 0)
K °C K K
MPa MPa MPa kPa
kg/m^3 kg/m^3 mol/dm^3 kg/m^3
kg/m^3 kg/m^3 mol/dm^3 kg/m^3
kg/m^3 kg/m^3 mol/dm^3 kg/m^3
Vapor massFr Vapor massFr Vapor moleFr Vapor massFr
dimLess dimLess dimLess dimLess
m^3/kg m^3/kg dm^3/mol m^3/kg
kJ/kg kJ/kg J/mol kJ/kg
kJ/kg-K kJ/kg-K J/mol-K kJ/kg-K
kJ/kg-K kJ/kg-K J/mol-K kJ/kg-K
kJ/kg kJ/kg J/mol kJ/kg
kJ/kg-K kJ/kg-K J/mol-K kJ/kg-K
kJ/kg-K kJ/kg-K J/mol-K kJ/kg-K
kJ/kg kJ/kg J/mol kJ/kg
kJ/kg kJ/kg J/mol kJ/kg
kJ/kg-K kJ/kg-K J/mol-K kJ/kg-K
1/K 1/K 1/K 1/K
m^3/kg m^3/kg dm^3/mol m^3/kg
kJ/kg-K kJ/kg-K J/mol-K kJ/kg-K
kg/kgmol kg/kgmol kg/kgmol kg/kgmol
kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol
kg(i)/kg kg(i)/kg kg(i)/kg kg(i)/kg
kg(i)/kg kg(i)/kg kg(i)/kg kg(i)/kg
kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol
kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol
kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol kgmol(i)/kgmol
µPa-s µPa-s µPa-s µPa-s
mW/m-K mW/m-K mW/m-K W/m-K
dimLess dimLess dimLess dimLess
mN/m mN/m mN/m mN/m
dimLess dimLess dimLess dimLess
kJ/kg kJ/kg J/mol kJ/kg
kJ/kg kJ/kg J/mol kJ/kg
kJ/kg kJ/kg J/mol kJ/kg
dimLess dimLess dimLess dimLess
m/s m/s m/s m/s
m/s m/s m/s m/s
dimLess dimLess dimLess dimLess
1/MPa 1/MPa 1/MPa 1/kPa
MPa MPa MPa kPa
1/MPa 1/MPa 1/MPa 1/kPa
dimLess dimLess dimLess dimLess
MPa MPa MPa kPa
K/MPa K/MPa K/MPa K/kPa
MPa-m^3/kg MPa-m^3/kg MPa-dm^3/mol kPa-m^3/kg
MPa-m^6/kg^2 MPa-m^6/kg^2 MPa-dm^6/mol^2 kPa-m^6/kg^2
MPa/K MPa/K MPa/K kPa/K
kg/m^3-K kg/m^3-K mol/dm^3-K kg/m^3-K
kJ/kg kJ/kg J/mol kJ/kg
9 10
"cgs" "Mixed"
K K
MPa psia
g/cm^3 g/cm^3
g/cm^3 g/cm^3
g/cm^3 g/cm^3
Vapor massFr Vapor massFr
dimLess dimLess
cm^3/g cm^3/g
J/g J/g
J/g-K J/g-K
J/g-K J/g-K
J/g J/g
J/g-K J/g-K
J/g-K J/g-K
J/g J/g
J/g J/g
J/g-K J/g-K
1/K 1/K
cm^3/g cm^3/g
J/g-K J/g-K
g/gmol g/gmol
gmol(i)/gmol gmol(i)/gmol
g(i)/g g(i)/g
g(i)/g g(i)/g
gmol(i)/gmol gmol(i)/gmol
gmol(i)/gmol gmol(i)/gmol
gmol(i)/gmol gmol(i)/gmol
µPa-s µPa-s
mW/m-K mW/m-K
dimLess dimLess
dyn/cm mN/m
dimLess dimLess
J/g J/g
J/g J/g
J/g J/g
dimLess dimLess
cm/s m/s
cm/s m/s
dimLess dimLess
1/MPa 1/psia
MPa psia
1/MPa 1/psia
dimLess dimLess
MPa psia
K/MPa K/psia
MPa-cm^3/g psia-cm^3/g
MPa-cm^6/g^2 psia-cm^6/g^2
MPa/K psia/°F
g/cm^3-K g/cm^3-°F
J/g J/g
11
Function Arguments
FluidString(Nmes, Comps, Optional massmole As String)
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, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional Prop
Mass2Mole(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional Prop
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)
Arguments with the word "Optional" may be required, depending upon how the function is used
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()
Mole2Mass(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional Prop
Mass2Mole(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional Prop
The data shown on the "User Information" worksheet were prepared by Frank J. Doyle, P.E., using Excel 97 and Excel 2003. These were upgraded and edited by NIST members then edited using WinXP sp3 and Excel 2003 sp3. The embodiment developed as Frank learned how to use REFPROP and needed an effective method to "keep track of the specific and essential 'user' details" in the Excel environment, from a user perspsective. The data are copied from the NIST REFPROP program and from responses to questions that Frank asked NIST. NIST is offering these worksheets on a FYI basis to provide users additional incite into REFPROP.xls. The information is believed to be correct and is offered by Frank J. Doyle, P.E., on a "As Is, Where Is", no guarantees / warranties / info only basis.
When Excel evaluates a function, it first looks for vba code that is included (attached) to the file requesting the evaluation, if it does not find the function included in the included vba code, then it looks for an xla file - first in the same directory as the open worksheet, then along the specified path. Excel evaluates the function using the vba code that is found first. When no VBA code is attached to the xls file, the REFPROP functions are evaluated in the user's REFPROP.xla file. Since it needs the REFPROP.xla file to function, it will always perform calculations using the "present version" of the REFPROP (xla) code.
This data are intended to give the "new and / or infrequent REFPROP user" some bare essential information about REFPROP, it is intended to be used to augment the REFPROP User's Guide. A detailed look at the Help File attached to REFPROP.exe should be undertaken by the user.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" and as a REFPROP.xla file.
For Questions / Comments contact Frank J. Doyle, P.E. [email protected]
Be sure to use the word REFPROP in the Subject line. If I do not recognize the name or the subject, I will delete it without opening it.
Frank J. Doyle, P.E.Frank J. Doyle, Enterprises7 Hickory Bark DriveThe Woodlands, TX 77381
Mole2Mass(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional Prop
Mass2Mole(FluidName, i, Prop1, Prop2, Optional Prop3, Optional Prop4, Optional Prop5, Optional Prop6, Optional Prop7, Optional Prop8, Optional Prop9, Optional Prop10, Optional Prop11, Optional Prop12, Optional Prop13, Optional Prop14, Optional Prop15, Optional Prop16, Optional Prop17, Optional Prop
The data shown on the "User Information" worksheet were prepared by Frank J. Doyle, P.E., using Excel 97 and Excel 2003. These were upgraded and edited by NIST members then edited using WinXP sp3 and Excel 2003 sp3. The embodiment developed as Frank learned how to use REFPROP and needed an effective method to "keep track of the specific and essential 'user' details" in the Excel environment, from a user perspsective. The data are copied from the NIST REFPROP program and from responses to questions that Frank asked NIST. NIST is offering these worksheets on a FYI basis to provide users additional incite into REFPROP.xls. The information is believed to be correct and is offered by Frank J. Doyle, P.E., on a "As Is, Where Is", no guarantees / warranties / info only basis.
When Excel evaluates a function, it first looks for vba code that is included (attached) to the file requesting the evaluation, if it does not find the function included in the included vba code, then it looks for an xla file - first in the same directory as the open worksheet, then along the specified path. Excel evaluates the function using the vba code that is found first. When no VBA code is attached to the xls file, the REFPROP functions are evaluated in the user's REFPROP.xla file. Since it needs the REFPROP.xla file to function, it will always perform calculations using the "present version" of the REFPROP (xla) code.
This data are intended to give the "new and / or infrequent REFPROP user" some bare essential information about REFPROP, it is intended to be used to augment the REFPROP User's Guide. A detailed look at the Help File attached to REFPROP.exe should be undertaken by the user.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" and as a REFPROP.xla file.
For Questions / Comments contact Frank J. Doyle, P.E. [email protected]
Be sure to use the word REFPROP in the Subject line. If I do not recognize the name or the subject, I will delete it without opening it.
Frank J. Doyle, P.E.Frank J. Doyle, Enterprises7 Hickory Bark DriveThe Woodlands, TX 77381
Short Name File Name CAS number
acetone acetone.fld 67-64-1ammonia ammonia.fld 7664-41-7argon argon.fld 7440-37-1benzene benzene.fld 71-43-2butane butane.fld 106-97-8butane 1butene.fld 106-98-9carbon dioxide co2.fld 124-38-9carbon monoxide co.fld 630-08-0carbonyl sulfide cos.fld 463-58-1cis-butene c2butene.fld 590-18-1cyclohexane cyclohex.fld 110-82-7cyclopentane cyclopen.fld 287-92-3cyclopropane cyclopro.fld 75-19-4D4 d4.fld 556-67-2D5 d5.fld 541-02-6D6 d6.fld 540-97-6decane decane.fld 124-18-5deuterium d2.fld 7782-39-0dimethyl carbonate dmc.fld 616-38-6dimethylether dme.fld 115-10-6dodecane c12.fld 112-40-3ethane ethane.fld 74-84-0ethanol ethanol.fld 64-17-5ethylene ethylene.fld 74-85-1fluorine fluorine.fld 7782-41-4heavy water d2o.fld 7789-20-0helium helium.fld 7440-59-7heptane heptane.fld 142-82-5hexane hexane.fld 110-54-3hydrogen (normal) hydrogen.fld 1333-74-0hydrogen sulfide h2s.fld 2148878isobutane isobutan.fld 75-28-5isobutene ibutene.fld 115-11-7isohexane ihexane.fld 107-83-5isopentane ipentane.fld 78-78-4krypton krypton.fld 7439-90-9md2m md2m.fld 141-62-8md3m md3m.fld 141-63-9
Index of pure fluids included in the REFPROP database
md4m md4m.fld 107-52-8mdm mdm.fld 107-51-7methane methane.fld 74-82-8methanol methanol.fld 67-56-1methyl linoleate mlinolea.fld 112-63-0methyl linolenate mlinolen.fld 301-00-8methyl oleate moleate.fld 112-62-9methyl palmitate mpalmita.fld 112-39-0methyl stearate mstearat.fld 112-61-8methylcyclohexane c1cc6.fld 108-87-2MM mm.fld 107-46-0neon neon.fld 2023453neopentane neopentn.fld 463-82-1nitrogen nitrogen.fld 7727-37-9nitrogen triflouride nf3.fld 7783-54-2nitrous oxide n2o.fld 10024-97-2nonane nonane.fld 111-84-2octane octane.fld 111-65-9orthohydrogen orthohyd.fld 1333-74-0ooxygen oxygen.fld 7782-44-7parahydrogen parahyd.fld 1333-74-0ppentane pentane.fld 109-66-0perfluorobutane c4f10.fld 355-25-9perfluoropentane c5f12.fld 678-26-2propane propane.fld 74-98-6propylcyclohexane c3cc6.fld 1678-92-8propylene propylene.fld 115-07-1propyne propyne.fld 74-99-7sulfur dioxide so2.fld 2025884sulfur hexafluoride sf6.fld 2551-62-4toluene toluene.fld 108-88-3trans-butene t2butene.fld 624-64-6trifluoroiodomethane cf3i.fld 2314-97-8water water.fld 7732-18-5xenon xenon.fld 7440-63-3R11 r11.fld 75-69-4R12 r12.fld 75-71-8R13 r13.fld 75-72-9R14 r14.fld 75-73-0R21 r21.fld 75-43-4R22 r22.fld 75-45-6R23 r23.fld 75-46-7
R32 r32.fld 75-10-5R41 r41.fld 593-53-3R113 r113.fld 76-13-1R114 r114.fld 76-14-2R115 r115.fld 76-15-3R116 r116.fld 76-16-4R123 r123.fld 306-83-2R1234yf r1234yf.fld 754-12-1R1234ze r1234ze.fld 1645-83-6R124 r124.fld 2837-89-0R125 r125.fld 354-33-6R134a r134a.fld 811-97-2R141b r141b.fld 1717-00-6R142b r142b.fld 75-68-3R143a r143a.fld 420-46-2R152a r152a.fld 75-37-6R161 r161.fld 353-36-6R218 r218.fld 76-19-7R227ea r227ea.fld 431-89-0R236ea r236ea.fld 431-63-0R236fa r236fa.fld 690-39-1R245ca r245ca.fld 679-86-7R245fa r245fa.fld 460-73-1R365mfc r365mfc.fld 406-58-6RC318 rc318.fld 115-25-3
Full Chemical Name EOS Temperature and Pressure Limits
propanone 178.5-550 K, 700 MPaammonia 195.495-700 K, 1000 MPaargon 83.8058-2000 K, 1000 MPabenzene 278.7-750 K, 500 MPan-butane 134.895-575 K, 69 MPa1-butene 87.8-525 K, 70 MPacarbon dioxide 216.592-2000 K, 800 MPacarbon monoxide 68.16-500 K, 100 MPacarbon oxide sulfide 134.3-650 K, 50 MPacis-2-butene 134.3-525 K, 50 MPacyclohexane 279.47-700 K, 80 MPacyclopentane 179.72-600 K, 200 MPacyclopropane 273-473 K, 28 MPaoctamethylcyclotetrasiloxane 300-673 K, 30 MPa
300-673 K, 30 MPa270.2-673 K, 30 MPa
decane 243.5-675 K, 800 MPadeuterium 18.71-423 K, 320 MPadimethyl ester carbonic acid 277.06-400 K, 60 MPamethoxymethane 131.65-525 K, 40 MPadodecane 263.6-700 K, 700 MPaethane 90.368-675 K, 900 MPaethyl alcohol 250-650 K, 280 MPaethene 103.986-450 K, 300 MPafluorine 53.4811-300 K, 20 MPadeuterium oxide 276.97-800 K, 100 MPahelium-4 2.1768-1500 K, 100 MPaheptane 182.55-600 K, 100 MPahexane 177.83-600 K, 100 MPahydrogen (normal) 13.957-1000 K, 2000 MPahydrogen sulfide 187.7-760 K, 170 MPa2-methylpropane 113.73-575 K, 35 MPa2-methyl-1-propene 132.4-550 K, 50 MPa2-methylpentane 119.6-550 K, 1000 MPa2-methylbutane 112.65-500 K, 1000 MPakrypton 115.775-750 K, 200 MPadecamethyltetrasiloxane 205.2-673 K, 30 MPadodecamethylpentasiloxane 192-673 K, 30 MPa
pure fluids included in the REFPROP database
decamethylcyclopentasiloxanedodecamethylcyclohexasiloxane
tetradecamethylhexasiloxane 300-673 K, 30 MPaoctamethyltrisiloxane 187.2-673 K, 30 MPamethane 90.6941-625 K, 1000 MPamethanol 175.61-620 K, 800 MPa
238.1-1000 K, 50 MPa218.65-1000 K, 50 MPa
methyl cis-9-octadecenoate 253.47-1000 K, 50 MPamethyl hexadecanoate 242-1000 K, 50 MPamethyl octadecanoate 311.4- 1000 K, 50 MPamethylcyclohexane 146.7-600 K, 500 MPahexamethyldisiloxane 273-673 K, 30 MPaneon 24.556-700 K, 700 MPa2,2-dimethylpropane 256.6-550 K, 200 MPanitrogen 63.151-2000 K, 2200 MPanitrogen trifluoride 85-500 K, 50 MPadinitrogen monoxide 182.33-525 K, 50 MPanonane 219.7-600 K, 800 MPaoctane 216.37-600 K, 100 MPaorthohydrogen 14.008-1000 K, 2000 MPaoxygen 54.361-2000 K, 82 MPaparahydrogen 13.803-1000 K, 2000 MPapentane 143.47-600 K, 100 MPadecafluorobutane 189-500 K, 30 MPadodecafluoropentane 148.36-500 K, 30 MPapropane 85.525-650 K, 1000 MPan-propylcyclohexane 178.2-650 K, 50 MPapropene 87.953-575 K, 1000 MPapropyne 273-474 K, 32 MPasulfur dioxide 197.7-525 K, 35 MPasulfur hexafluoride 223.56-625 K, 150 MPamethylbenzene 178-700 K, 500 MPatrans-2-butene 167.6-525 K, 50 MPatrifluoroiodomethane 120-420 K, 20 MPawater 273.16-2000 K, 1000 MPaxenon 161.41-750 K, 700 MPatrichlorofluoromethane 162.68-625 K, 30 MPadichlorodifluoromethane 116.099-525 K, 200 MPachlorotrifluoromethane 92-403 K, 35 MPatetrafluoromethane 120-623 K, 51 MPadichlorofluoromethane 200-473 K, 138 MPachlorodifluoromethane 115.73-550 K, 60 MPatrifluoromethane 118.02-475 K, 120 MPa
methyl (Z,Z)-9,12-octadecadienoatemethyl (Z,Z,Z)-9,12,15-octadecatrienoate
difluoromethane 136.34-435 K, 70 MPafluoromethane 129.82-425 K, 70 MPa
236.93-525 K, 200 MPa273.15-507 K, 21 MPa
chloropentafluoroethane 173.75-550 K, 60 MPahexafluoroethane 173.1-425 K, 50 MPa
166-600 K, 40 MPa2,3,3,3-tetrafluoroprop-1-ene 220-410 K, 30 MPa
168.62-420 K, 20 MPa120-470 K, 40 MPa
pentafluoroethane 172.52-500 K, 60 MPa1,1,1,2-tetrafluoroethane 169.85-455 K, 70 MPa1,1-dichloro-1-fluoroethane 169.68-500 K, 400 MPa1-chloro-1,1-difluoroethane 142.72-470 K, 60 MPa1,1,1-trifluoroethane 161.34-650 K, 100 MPa1,1-difluoroethane 154.56-500 K, 60 MPafluoroethane 130-400 K, 50 MPaoctafluoropropane 125.45-440 K, 20 MPa
146.35-475 K, 60 MPa242-500 K, 60 MPa179.52-500 K, 40 MPa
1,1,2,2,3-pentafluoropropane 200-500 K, 60 MPa1,1,1,3,3-pentafluoropropane 171.05-440 K, 200 MPa1,1,1,3,3-pentafluorobutane 239-500 K, 35 MPaoctafluorocyclobutane 233.35-623 K, 60 MPa
1,1,2-trichloro-1,2,2-trifluoroethane1,2-dichloro-1,1,2,2-tetrafluoroethane
2,2-dichloro-1,1,1-trifluoroethanetrans-1,3,3,3-tetrafluoropropene1-chloro-1,2,2,2-tetrafluoroethane
1,1,1,2,3,3,3-heptafluoropropane1,1,1,2,3,3-hexafluoropropane1,1,1,3,3,3-hexafluoropropane
ASHRAE Designation Componentsair N2/Ar/O2R401A R22/R152a/R124R401B R22/R152a/R124R401C R22/R152a/R124R402A R125/Propane/R22R402B R125/Propane/R22R403A Propane/R22/R218R403B Propane/R22/R218R404A R125/R134a/R143aR405A R22/R152a/R142b/RC318R406AR407A R32/R125/R134aR407B R32/R125/R134aR407C R32/R125/R134aR407D R32/R125/R134aR407E R32/R125/R134aR408A R125/R143a/R22R409A R22/R124/R142bR409B R22/R124/R142bR410A R32/R125R410B R32/R125R411A Propylene/R22/R152aR411B Propylene/R22/R152aR412A R22/R218/R142bR413AR414AR414BR415A R22/R152aR415B R22/R152aR416AR417AR418A Propane/R22/R152aR419A R125/R134a/DMER420A R134a/R142bR421A R125/R134aR421B R125/R134aR422A R125/R134a/IsobutaneR422B R125/R134a/Isobutane
Index of mixtures included in the REFPROP database
R22/Isobutane/R142b
R218/R134a/IsobutaneR22/R124/Isobutane/R142bR22/R124/Isobutane/R142b
R134a/R124/ButaneR125/R134a/Butane
R422C R125/R134a/IsobutaneR422D R125/R134a/IsobutaneR423A R134a/R227eaR424A R125/R134a/Isobutane/Butane/ IsopentaneR425A R32/R134a/R227eaR426A R125/R134a/Butane/IsopentaneR427A R32/R125/R143a/R134aR428A R125/R143a/Propane/IsobutaneR429A Dimethyl ether/R152a/IsobutaneR430A R152a/IsobuteneR431A Propane/R152aR432A Propylene/Dimethyl etherR433A Propylene/PropaneR434A R125/R143a/R134a/IsobutaneR435A Dimethyl ether/R152aR436A Propane/IsobutaneR436B Propane/IsobutaneR437A R125/R134a/Butane/PentaneR438A R32/R125/R134a/Butane/IsopentaneR500 R12/R152aR501 R22/R12R502 R22/R115R503 R23/R13R504 R32/R115R507A R125/R143aR508A R23/R116R508B R23/R116R509A R22/R218R510A Dimethyl ether/IsobutaneAmarillo Gas 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 methane/nitrogen/ Nitrogen Gas CO2/ethane/
propane/isobutane/butane
High N2 Gas methane/nitrogen/CO2/ethane/propane/isobutane/butane
Composition Composition(mass percentages) (mole fractions)75.57/1.27/23.16 0.78120/0.00920/0.2096053/13/34 0.57885/0.18587/0.2352761/11/28 0.65492/0.15461/0.1904733/15/52 0.38559/0.22945/0.3849660/2/38 0.50766/0.04606/0.4462838/2/60 0.29986/0.04296/0.657195/75/20 0.10430/0.79785/0.097855/56/39 0.11708/0.66873/0.2141844/4/52 0.35782/0.03826/0.6039245/7/5.5/42.5 0.58240/0.11860/0.06125/0.2377655/4/41 0.57156/0.06184/0.3666020/40/40 0.34642/0.30032/0.3532610/70/20 0.19787/0.60036/0.2017723/25/52 0.38111/0.17956/0.4393315/15/70 0.26227/0.11368/0.6240525/15/60 0.40261/0.10471/0.492687/46/47 0.05075/0.47628/0.4729760/25/15 0.67609/0.17848/0.1454365/25/10 0.72671/0.17709/0.0962050/50 0.69761/0.3023945/55 0.65369/0.346311.5/87.5/11 0.02936/0.83347/0.137173/94/3 0.05922/0.90305/0.0377370/5/25 0.74619/0.02451/0.229309/88/3 0.04976/0.89658/0.0536651/28.5/4/16.5 0.57172/0.20242/0.06671/0.1591550/39/1.5/9.5 0.58744/0.29031/0.02622/0.0960382/18 0.77678/0.2232225/75 0.20295/0.7970559/39.5/1.5 0.64718/0.32393/0.0288846.6/50/3.4 0.41446/0.52310/0.062441.5/96/2.5 0.02878/0.93920/0.0320277/19/4 0.70146/0.20360/0.0949488/12 0.87839/0.1216158/42 0.54001/0.4599985/15 0.82810/0.1719085.1/11.5/3.4 0.80550/0.12804/0.0664655/42/3 0.49729/0.44670/0.05601
included in the REFPROP database
82/15/3 0.77476/0.16671/0.0585365.1/31.5/3.4 0.59629/0.33940/0.0643152.5/47.5 0.64812/0.3518850.5/47.9/1/0.6 0.45615/0.49939/0.01679/0.01865/ 0.0090218.5/69.5/12 0.32113/0.61513/0.063735.1/93/1.3/0.6 0.04315/0.92568/0.02272/0.0084515/25/10/50 0.26078/0.18839/0.10762/0.4432177.5/20/0.6/1.9 0.69433/0.25589/0.01463/0.0351560/10/30 0.66113/0.07685/0.2620176/24 0.73591/0.2640971/29 0.78574/0.2142680/20 0.81410/0.1859030/70 0.30992/0.6900863.2/18/16/2.8 0.55678/0.22647/0.16581/0.0509480/20 0.85152/0.1484856/44 0.62653/0.3734752/48 0.58813/0.4118719.5/78.5/1.4/0.6 0.16850/0.79790/0.02498/0.008628.5/45/44.2/1.7/0.6 0.16191/0.37156/0.42930/0.02899/0.0082473.8/26.2 0.60610/0.3939075/25 0.80751/0.1924948.8/51.2 0.62999/0.3700140.1/59.9 0.49970/0.5003048.2/51.8 0.73424/0.2657650/50 0.41184/0.5881639/61 0.55758/0.4424246/54 0.62675/0.3732544/56 0.63079/0.3692188/12 0.90246/0.0975482.672/4.9807/ 0.90672/0.031284/1.1696/7.7379/ 0.004676/0.045279/2.0751/0.34255/ 0.00828/0.001037/0.5163/0.13162/ 0.001563/0.000321/0.18165/0.19248 0.000443/0.00039373.432/1.5028/ 0.85906/0.010068/3.5066/13.605/ 0.014954/0.084919/5.4074/1.0796/ 0.023015/0.003486/1.0858/0.19567/ 0.003506/0.000509/0.18452 0.0004892.176/0.43273/ 0.96522/0.002595/1.5603/3.2551/ 0.005956/0.018186/1.2064/0.33802/ 0.004596/0.000977/
0.3484/0.20314/ 0.001007/0.000473/0.13915/0.34061 0.000324/0.00066465.706/8.0556/ 0.81212/0.05702/16.835/6.5252/ 0.07585/0.04303/1.9903/0.44261/ 0.00895/0.00151/0.44554 0.0015270.061/20.227/ 0.81441/0.13465/2.3246/5.3209/ 0.00985/0.033/1.4306/0.31167/ 0.00605/0.001/0.32414 0.00104
XLS Version Number: #VALUE! 9.0 If the two cells do not 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 restored with the new code attached to this file.
DLL Version Number: #VALUE! 9.0 If the two cells do not match after pressing Ctrl-Alt-F9, then you are not using the most recent REFPROP.DLL file. Search your computer for REFPROP.DLL (especially in the Windows\System32 directory) and delete all occurrences except the one in the REFPROP directory.
Location of the VB code #VALUE!
Name of this file #VALUE!
See the Tips worksheet for information on using Refprop in Excel
Units: Molar SIPure Fluid Calculations Critical Temp. (K): #VALUE! Triple Point Temp. (K):
Crit. Press. (MPa): #VALUE! Trp Pressure (MPa):
Fluid: nitrogen Crit. Dens. (mol/L): #VALUE! Trp Density (mol/L):
T P r h s QualityK MPa mol/L J/mol J/mol-K (mole basis)
100 2 #VALUE! #VALUE! #VALUE! #VALUE!#VALUE! 1 #VALUE! #VALUE! 100 #VALUE!
#VALUE! 1 #VALUE! -4000.00 #VALUE! #VALUE!
100 #VALUE! #VALUE! (Melting point given temperature)
#VALUE! 200 #VALUE! (Melting point given pressure)
60 #VALUE! #VALUE! (Sublimation point given temperature)
#VALUE! 0.01 #VALUE! (Sublimation point given pressure)
Two-Phase CalculationsCompute properties from given temperature and density.
T P r u h sK MPa mol/L J/mol J/mol J/mol-K
100 #VALUE! 15 #VALUE! #VALUE! #VALUE!
Calculate liquid properties given only the saturation pressure.#VALUE! 0.3 #VALUE! #VALUE! #VALUE! #VALUE!
Calculate properties given only the saturation temperature.(note that some of the following calculations use "TD&" to define the input properties, see the "Mixture Example" sheet for more information.
100 #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE!
Example:Unit Conversions
Unit system: cgsT P r v u h
K MPa J/g J/g
Text of user-specified values in the input cells is blue.
g/cm3 cm3/g
100 1 #VALUE! #VALUE! #VALUE! #VALUE!
Other Properties
Unit system: E Isothermal Volume Isentropic IsothermalT P Compressibility Expansivity Expansion Expansion°F psia 1/psia 1/R Coefficient Coefficient
-100 1000 #VALUE! #VALUE! #VALUE! #VALUE!
Example: (See the "Mixture Example" worksheet for more examples.)
System: 0.6 nitrogen + 0.05 argon + 0.35 oxygen
nitrogen;0.6;argon;0.05;oxygen;0.35 (Note the two different ways to make this string, the second is easiest)#VALUE!
Components Mole Fractionsnitrogen 0.60
argon 0.05oxygen 0.35
Total 1.00
Density Bubble Point Mixture properties: Pressure
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
Example: Mole Fraction Mole Fraction Mass Fraction Predefined Mixture: r410a.mix #VALUE! #VALUE! #VALUE!
In addition to the predefined mixtures in REFPROP, any mixture with a ".mix" extension that you save in the mixtures directory while running the REFPROP graphical interface will be available to the Excel file here.Mixture properties:
#VALUE! #VALUE! kJ/kg #VALUE!
#VALUE! #VALUE! Btu/lbm #VALUE!
Properties of the liquid and vapor at the equilibrium compositions (not the R410A composition):Two phase state point at 300 K, 200 kg/m3: Liquid Phase Liquid Phase
T P r Quality Mole Frac. Mole Frac.
K MPa (mass basis) R32 R125300 #VALUE! 200 #VALUE! #VALUE! #VALUE!
Liquid phase composition string: #VALUE!Vapor phase composition string: #VALUE!
Properties of the liquid and vapor at the equilibrium compositions (not the R410A composition for the liquid):Dew point at 300 K with equilibrium liquid properties Liquid Phase Liquid Phase
T P r Equilibrium Mole Frac. Mole Frac.
K MPa Liquid DensityR32 R125300 #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
Liquid phase composition string: #VALUE!
Mixture Calculations (maximum number of components in a mixture is 20)
r (100 K, 0.1 MPa) kg/m3
r (100 K, 1 MPa) kg/m3
r (300 K, 10 MPa) kg/m3
r (25 F, 1000 psia) lbm/ft3
kg/m3
kg/m3
Alternative method for specifying a mixture setup To specify mass composition, add the word "mass" at the end of the inputR32/R125 (0.5/0.5) R32/R125 (0.5/0.5) mass
T P r T P
K MPa K MPa300 #VALUE! #VALUE! 300 #VALUE!
Temp (K) 300Pressure (MPa) 10
methane 0.5 methane 0.50.2 0.2
propane 0.1 propane 0.10.1 butane 0.1
pentane 0.1 0.1
#VALUE! #VALUE!Density (kg/m^3) #VALUE! #VALUE!
kg/m3
If the two cells do not 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 restored with the new code attached to this file.
If the two cells do not match after pressing Ctrl-Alt-F9, then you are not using the most recent REFPROP.DLL file. Search your computer for REFPROP.DLL (especially in the Windows\System32 directory) and delete all occurrences except the one in the REFPROP directory.
Triple Point Temp. (K): #VALUE! Critical Temp. (C): #VALUE!Trp Pressure (MPa): #VALUE! Triple Point Temp. (C): #VALUE!
Trp Density (mol/L): #VALUE!Viscosity Th. Cnd. Example calculations when two states are possible for the given inputs:
mW/(m-K) Inputs are T = 100 K and H = -40 kJ/kg
#VALUE! #VALUE! #VALUE! #VALUE!
#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 calculations:
These examples also show how to force the calculation to search only in the liquid or only in the vapor state (for example, for metastable states.)
#VALUE! (Input state is known to be in the liquid)
#VALUE! (Input state is known to be in the vapor)
Liquid Vapor
Quality Surf. Tens. Viscosity Viscosity(mole basis) mol/L mol/L mN/m
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!Latent heat
J/mol
#VALUE!
(note that some of the following calculations use "TD&" to define the input properties, see the "Mixture Example" sheet for more information.
#VALUE! 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.
s w h l
J/g-K J/g-K J/g-K cm/s mW/(m-K)
mPa-s
rSL rSVmPa-s mPa-s
Cv Cp
mPa-s
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
Adiabatic Adiabatic BulkIsothermal Bulk dP/dTCompressibility Modulus Modulus
1/psia psia psia psia-ft^3/lbmpsia-ft^6/lbm^2 psia/F#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
(Note the two different ways to make this string, the second is easiest)
Dew PointPressure
#VALUE! Air as a predefined mixture
#VALUE! Air as a pseudo-pure fluid
Mass Fraction 2#VALUE!
In addition to the predefined mixtures in REFPROP, any mixture with a ".mix" extension that you save in the mixtures directory while running the REFPROP graphical interface will be available to the Excel file here.
kJ/kg-K
Btu/lbm-F
Properties of the liquid and vapor at the equilibrium compositions (not the R410A composition):Vapor Phase Vapor Phase Liquid Vapor Liquid Vapor Mole Frac. Mole Frac. Density Density Viscosity Viscosity
R32 R125#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
Properties of the liquid and vapor at the equilibrium compositions (not the R410A composition for the liquid):Liquid Vapor Liquid Vapor
Enthalpy Enthalpy Viscosity Viscosity
kJ/kg kJ/kg#VALUE! #VALUE! #VALUE! #VALUE!
dP/dr d2P/dr2
kg/m3 kg/m3 mPa-s mPa-s
mPa-s mPa-s
To specify mass composition, add the word "mass" at the end of the input
r
#VALUE!
methane 0.5ethane 0.2propane 0.1butane 0.1pentane 0.1
#VALUE!#VALUE!
kg/m3
If the two cells do not 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 restored with the new code attached to this file.
If the two cells do not match after pressing Ctrl-Alt-F9, then you are not using the most recent REFPROP.DLL file. Search your computer for REFPROP.DLL (especially in the Windows\System32 directory) and delete all occurrences except the one in the REFPROP directory.
Example calculations when two states are possible for the given inputs:
(Pressure and quality at the high density point)
(Pressure and quality at the low density point)
If the phase is known for given inputs of T and P, the following examples show how to obtain much faster calculations:
These examples also show how to force the calculation to search only in the liquid or only in the vapor state (for example, for metastable states.)
Liquid Vapor Liquid Vapor
Th. Cnd. Th. Cnd. Z ZmW/(m-K) mW/(m-K) - -
#VALUE! #VALUE! #VALUE! #VALUE!
Note that there can be three roots for entropy in the vapor phase, for example, try butane at 422 K.
Z Prandtl
- Number
#VALUE! #VALUE!
C* Specific(Critical flow Heat Input
lbm/(ft^3-F) factor) Btu/lbm#VALUE! #VALUE! #VALUE!
In addition to the predefined mixtures in REFPROP, any mixture with a ".mix" extension that you save in the mixtures directory while running the REFPROP graphical interface will be available to the Excel file here.
Liquid Vapor Liquid phase Liquid phase
Th. Cnd. Th. Cnd. mass fract. mass fract.
mW/(m-K) mW/(m-K) R32 R125#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! (These two cells are just for checking mass to mole conversions)
Fugacity Fugacity Chemical Liquid Vapor Fugacity Fugacity Coefficient Coefficient Potential
Th. Cnd. Th. Cnd. R32 R125 R32 R125 R32
mW/(m-K) mW/(m-K) MPa MPa kJ/kg#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
dr/dT
If the two cells do not match after pressing Ctrl-Alt-F9, then you are not using the most recent REFPROP.DLL file. Search your computer for REFPROP.DLL (especially in the Windows\System32 directory) and delete all occurrences except the one in the REFPROP directory.
(These two cells are just for checking mass to mole conversions)
Chemical Activity ActivityPotential Activity Activity Coefficient Coefficient
R125 R32 R125 R32 R125
kJ/kg#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
Phase calculation example for a 50/50 mixture of ammonia and waterThere 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 with the vapor state at 300 Kammonia;0.5;water;0.5Pressure (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 calculationsLiquid 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 phaseVapor phase in equilibrium with liquid at 0.3 MPaAmmonia #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) #VALUE!Vapor speed of sound (m/s) #VALUE!
Comparisons with calculations from the Refprop graphical interface will help ensure that calculated values are correct.
Example worksheet that demonstrates how to mix two natural gas streams of known molar composition. The two streams have differentflow rates, temperatures, and pressures. Inputs are in blue. The cells in rows 60-62 are used to concatenate the fluid names and mole fractionsinto one argument that can be passed to the REFPROP DLL.
Stream 1 Stream 2 Stream 1 Stream 2Mole 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 0.0403 0.2050 #VALUE! #VALUE!Hexane 0.0620 0.2940 #VALUE! #VALUE!
Stream 1 #VALUE!Stream 2 #VALUE!Output #VALUE!
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 with the vapor state at 300 K
300#VALUE!
#VALUE!#VALUE!
Liquid phase in equilibrium with vapor at 300 K#VALUE!#VALUE!
#VALUE!
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,
The ampersand should NOT be used for two-phase states, it will return properties for metastable states.#VALUE!#VALUE! (Note which cells are specified for the fluid string in these 8 calculations)
#VALUE!#VALUE!
Comparisons with calculations from the Refprop graphical interface will help ensure that calculated values are correct.
Example worksheet that demonstrates how to mix two natural gas streams of known molar composition. The two streams have differentflow rates, temperatures, and pressures. Inputs are in blue. The cells in rows 60-62 are used to concatenate the fluid names and mole fractions
Stream 1 Stream 1 Stream 2Flow Rate (ft^3/hr) 500000 Flow Rate in lbm/hrTemp. (F) 60 #VALUE! #VALUE!Pressure (psia) 550 #VALUE! #VALUE!Density (lbm/ft^3) #VALUE! #VALUE! #VALUE!Flow Rate (lbm/hr) #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE!Stream 2 #VALUE! #VALUE!Flow Rate (ft^3/hr) 100000 #VALUE! #VALUE!
Temp. (F) 70 #VALUE! #VALUE!Pressure (psia) 900 #VALUE! #VALUE!Density (lbm/ft^3) #VALUE! #VALUE! #VALUE!Flow Rate (lbm/hr) #VALUE! Sum:
Output Output OutputFlow Rate in lbm/hr Mass Frac Mole Percent
#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!
This worksheet can be used to verify that the user's computer is returning proper calculationsThe 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)
#VALUE!
0.00001From DLL From NIST Percent Difference#VALUE! 28.958600656 #VALUE! #VALUE!#VALUE! 637.377588657857 #VALUE! #VALUE!#VALUE! 1.45691892789737 #VALUE! #VALUE!#VALUE! 651.516616080985 #VALUE! #VALUE!#VALUE! 153.886680663752 #VALUE! #VALUE!#VALUE! 100.111748964945 #VALUE! #VALUE!#VALUE! 0.0749156384666842 #VALUE! #VALUE!#VALUE! 23643.9935673668 #VALUE! #VALUE!#VALUE! 298.431320311048 #VALUE! #VALUE!#VALUE! 5536.79144924072 #VALUE! #VALUE!#VALUE! 1.60040403481075 #VALUE! #VALUE!#VALUE! 0.0386406319102425 #VALUE! #VALUE!#VALUE! 0.0386406174274298 #VALUE! #VALUE!#VALUE! 0.0500926645329693 #VALUE! #VALUE!#VALUE! 319.167499870568 #VALUE! #VALUE!#VALUE! 4.05042029179832 #VALUE! #VALUE!#VALUE! 283.724836669066 #VALUE! #VALUE!#VALUE! 101.794782618358 #VALUE! #VALUE!#VALUE! 1.03705805870843 #VALUE! #VALUE!#VALUE! 0.697614699375863 #VALUE! #VALUE!#VALUE! 0.500000000000001 #VALUE! #VALUE!#VALUE! 0.697614699375863 #VALUE! #VALUE!#VALUE! 481.276156335092 #VALUE! #VALUE!
Total Sum of Differences between this computer's calcs and NIST
Number of functions with percent
difference > 0.00001
This worksheet can be used to verify that the user's computer is returning proper calculations
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).
#VALUE!
FunctionMolarMass("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/kgQuality("methane;40;ethane;60 mass","TP","mks",200,2814.5509) mass ratioQuality("methane;40;ethane;60 mass","TP","molar SI",200,2.8145509) molar ratioHeatOfVaporization("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)