Get values for temperature dependent properties for all compounds at specified temperatures. The list of compounds in the package can be obtained using capeOpenCompounds. A list of supported temperature dependent properties can be obtained using capeOpenTDepPropList.
[values,...]=capeOpenTDepProp(handle,propNames,T)
handle: package handle, as obtained from capeOpenGetPackage
propNames: string. Multiple properties can be specified; either separate the properties by a space, or use a string matrix for multiple properties.
T: column vector of temperatures at which to calculate the values.
values: matrix of values. Number of columns will match the number of compounds. Number of rows will match the number of specified temperatures. One matrix will be returned for each property.
» handle=capeOpenGetPackage('TEA (CAPE-OPEN 1.1)','C1_C2');
» capeOpenCompounds(handle)
ans =
'Methane'
'Ethane'
» capeOpenTDepPropList(handle)
ans =
'heatOfVaporization'
'heatOfVaporization.Dtemperature'
'vaporPressure'
'vaporPressure.Dtemperature'
» capeOpenPropUnit('temperature')
ans =
K
» T=[300:10:400]'
T =
300
310
320
330
340
350
360
370
380
390
400
» capeOpenTDepProp(handle,'vaporPressure',T)
ans =
1.0e+013 *
0.0000 0.0000
0.0001 0.0000
0.0001 0.0000
0.0003 0.0000
0.0007 0.0000
0.0021 0.0000
0.0077 0.0000
0.0328 0.0000
0.1715 0.0000
1.1190 0.0000
9.3543 0.0000
» [vp dvpdt]=capeOpenTDepProp(handle,'vaporPressure vaporPressure.Dtemperature',T)
vp =
1.0e+013 *
0.0000 0.0000
0.0001 0.0000
0.0001 0.0000
0.0003 0.0000
0.0007 0.0000
0.0021 0.0000
0.0077 0.0000
0.0328 0.0000
0.1715 0.0000
1.1190 0.0000
9.3543 0.0000
dvpdt =
1.0e+013 *
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0001 0.0000
0.0003 0.0000
0.0010 0.0000
0.0051 0.0000
0.0302 0.0000
0.2233 0.0000
2.1103 0.0000
» [vp dvpdt]=capeOpenTDepProp(handle,{'vaporPressure';'vaporPressure.Dtemperature'},T)
vp =
1.0e+013 *
0.0000 0.0000
0.0001 0.0000
0.0001 0.0000
0.0003 0.0000
0.0007 0.0000
0.0021 0.0000
0.0077 0.0000
0.0328 0.0000
0.1715 0.0000
1.1190 0.0000
9.3543 0.0000
dvpdt =
1.0e+013 *
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0001 0.0000
0.0003 0.0000
0.0010 0.0000
0.0051 0.0000
0.0302 0.0000
0.2233 0.0000
2.1103 0.0000
» capeOpenPropUnit('vaporPressure')
ans =
Pa