getSinglePhaseProperty is used to retrieve single phase mixture properties.
value=getSinglePhaseProperty(propName,phaseName,T,P,moleFraction)
propName
String; name of the property. The following single phase properties may be supported,
depending on the underlying thermo system:
| property name | description | unit of measure |
| activity | Activity | - |
| activityCoefficient | Activity coefficient | - |
| compressibility | Isothermal compressibility: (1/V) d V / d P | 1 / Pa |
| compressibilityFactor | Compressibility factor: Z = (P V) / (R T) | - |
| density | Density | mol / m3 |
| diffusionCoefficient | Binary diffusion coefficients for all species in mixture relative to all other species | m2 / s |
| dissociationConstant | Chemical equilibrium constant corresponding to a dissociation reaction | - |
| enthalpy | Default enthalpy | J / mol |
| enthalpyF | Enthalpy, including formation terms | J / mol |
| enthalpyNF | Enthalpy, not including formation terms | J / mol |
| entropy | Default entropy | J / (mol K) |
| entropyF | Entropy, including formation terms | J / mol / K |
| entropyNF | Entropy, not including formation terms | J / mol / K |
| excessEnthalpy | Excess enthalpy | J / mol |
| excessEntropy | Excess entropy | J / mol / K |
| excessGibbsEnergy | Excess Gibbs energy | J / mol |
| excessGibbsFreeEnergy | Excess Gibbs energy | J / mol |
| excessHelmholtzEnergy | Excess Helmholtz energy | J / mol |
| excessHelmholtzFreeEnergy | Excess Helmholtz energy | J / mol |
| excessInternalEnergy | Excess internal energy | J / mol |
| excessVolume | Excess volume | m3 / mol |
| fugacity | Fugacity | Pa |
| fugacityCoefficient | Fugacity coefficient | - |
| gibbsEnergy | Gibbs free energy | J / mol |
| gibbsFreeEnergy | Gibbs free energy | J / mol |
| heatCapacity | Heat capacity at constant pressure | J / mol / K |
| heatCapacityCp | Heat capacity at constant pressure | J / mol / K |
| heatCapacityCv | Heat capacity at constant volume | J / mol / K |
| helmholtzEnergy | Helmholtz free energy | J / mol |
| helmholtzFreeEnergy | Helmholtz free energy | J / mol |
| internalEnergy | Internal energy | J / mol |
| jouleThomsonCoefficient | Joule Thomsom coefficient: derivative of temperature w.r.t. pressure at constant enthalpy | K / Pa |
| logFugacity | Natural logarithm of fugacity (expressed in Pa) | - |
| logFugacityCoefficient | Natural logarithm of fugacity coefficient | - |
| meanActivityCoefficient | The geometrical mean of the activity coefficients of the ions in an electrolyte solution | - |
| molecularWeight | Relative molecular weight | gr / mol |
| osmoticCoefficient | A measure of water activities | - |
| pH | pH | - |
| pOH | pOH | - |
| speedOfSound | Thermodynamic speed of sound | m / s |
| thermalConductivity | Thermal conductivity | W / m / K |
| viscosity | Viscosity | Pa s |
| volume | Volume | m3 / mol |
.Dtemperature to the property name, e.g.
enthalpy.Dtemperature. Pressure derivatives may be obtained by adding .Dpressure. Mole fraction derivatives
may be obtained by adding .DmolFraction. Mole number derivatives - for a total of 1 mole of mixture - may be obtained
by by adding .Dmoles.phaseName
String; name of the phase for which to retrieve the property. The defined phase names depend on the underlying thermo system.
T
Double; temperature (K) at which to retrieve the property values
P
Double; pressure (Pa) at which to retrieve the property values
moleFraction
Double; composition at which to retrieve the property values. This must be a vector, with the number of elements equal
to the number of compounds.
value
Double; values for the properties. Depending on the property, this may be a scalar value (e.g. enthalpy), a vector value (one value for each compound, e.g. logFugacityCoefficient),
or a matrix (number of compounds squared, e.g. logFugacityCoefficient.Dmolfraction)
» h=getSinglePhaseProperty('enthalpy','vapor',500,101325,[0.1 0.3 0.2 0.4])
h =
7.8120e+003
» uom=getPropertyUnitOfMeasure('enthalpy')
uom =
J / mol
» hdp=getSinglePhaseProperty('enthalpy.Dpressure','vapor',500,101325,[0.1 0.3 0.2 0.4])
hdp =
-4.5430e-005
» uom=getPropertyUnitOfMeasure('enthalpy.Dpressure')
uom =
J / mol / Pa
» hdx=getSinglePhaseProperty('enthalpy.DmolFraction','vapor',500,101325,[0.1 0.3 0.2 0.4])
hdx =
1.0e+004 *
1.0577 0.5879 1.3126 0.5913
» uom=getPropertyUnitOfMeasure('enthalpy.DmolFraction')
uom =
J / mol
» f=getSinglePhaseProperty('logFugacityCoefficient','liquid',500,101325,[0.1 0.3 0.2 0.4])
f =
9.9024 10.9345 9.6735 10.6284
» f=getSinglePhaseProperty('logFugacityCoefficient.DmolFraction','liquid',500,101325,[0.1 0.3 0.2 0.4])
f =
-1.2346 -0.3963 -1.3626 -0.5794
-2.1502 -0.9039 -2.4540 -1.3200
-0.9780 -0.3155 -1.1005 -0.4244
-1.7360 -0.7227 -1.9655 -1.0728