© 2024 Jasper van Baten, AmsterCHEM

getSinglePhaseProperty

getSinglePhaseProperty is used to retrieve single phase mixture properties.

Syntax

value=getSinglePhaseProperty(propName,phaseName,T,P,moleFraction)

Arguments

propName
String; name of the property. The following single phase properties may be supported, depending on the underlying thermo system:

property namedescriptionunit of measure
activityActivity-
activityCoefficientActivity coefficient-
compressibilityIsothermal compressibility: (1/V) d V / d P1 / Pa
compressibilityFactorCompressibility factor: Z = (P V) / (R T)-
densityDensitymol / m3
diffusionCoefficientBinary diffusion coefficients for all species in mixture relative to all other speciesm2 / s
dissociationConstantChemical equilibrium constant corresponding to a dissociation reaction-
enthalpyDefault enthalpyJ / mol
enthalpyFEnthalpy, including formation termsJ / mol
enthalpyNFEnthalpy, not including formation termsJ / mol
entropyDefault entropyJ / (mol K)
entropyFEntropy, including formation termsJ / mol / K
entropyNFEntropy, not including formation termsJ / mol / K
excessEnthalpyExcess enthalpyJ / mol
excessEntropyExcess entropyJ / mol / K
excessGibbsEnergyExcess Gibbs energyJ / mol
excessHelmholtzEnergyExcess Helmholtz energyJ / mol
excessInternalEnergyExcess internal energyJ / mol
excessVolumeExcess volumem3 / mol
fugacityFugacityPa
fugacityCoefficientFugacity coefficient-
gibbsEnergyGibbs free energyJ / mol
heatCapacityCpHeat capacity at constant pressureJ / mol / K
heatCapacityCvHeat capacity at constant volumeJ / mol / K
helmholtzEnergyHelmholtz free energyJ / mol
internalEnergyInternal energyJ / mol
jouleThomsonCoefficientJoule Thomsom coefficient: derivative of temperature w.r.t. pressure at constant enthalpyK / Pa
logFugacityNatural logarithm of fugacity (expressed in Pa)-
logFugacityCoefficientNatural logarithm of fugacity coefficient-
meanActivityCoefficientThe geometrical mean of the activity coefficients of the ions in an electrolyte solution-
molecularWeightRelative molecular weightgr / mol
osmoticCoefficientA measure of water activities-
pHpH-
pOHpOH-
speedOfSoundThermodynamic speed of soundm / s
thermalConductivityThermal conductivityW / m / K
viscosityViscosityPa s
volumeVolumem3 / mol
The temperature derivatives of the above properties may be obtained by adding .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.
See getFeedProperty for comments on various kinds of enthalpy.

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.

Returns:

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)

Examples

-->h=getSinglePhaseProperty("enthalpy","vapor",500,101325,[0.1 0.3 0.2 0.4])
 h  =
 
    7811.9909  

-->uom=getPropertyUnitOfMeasure("enthalpy")
 uom  =
 
 J / mol   

-->hdp=getSinglePhaseProperty("enthalpy.Dpressure","vapor",500,101325,[0.1 0.3 0.2 0.4])
 hdp  =
 
  - 0.0000454  

-->uom=getPropertyUnitOfMeasure("enthalpy.Dpressure")
 uom  =
 
 J / mol / Pa   

-->hdx=getSinglePhaseProperty("enthalpy.DmolFraction","vapor",500,101325,[0.1 0.3 0.2 0.4])
 hdx  =
 
    10576.583    5879.2317    13126.138    5913.349  

-->uom=getPropertyUnitOfMeasure("enthalpy.DmolFraction")
 uom  =
 
 J / mol   

-->f=getSinglePhaseProperty("logFugacityCoefficient","liquid",500,101325,[0.1 0.3 0.2 0.4])
 f  =
 
    9.9023979    10.93454    9.6735163    10.628362  

-->f=getSinglePhaseProperty("logFugacityCoefficient.DmolFraction","liquid",500,101325,[0.1 0.3 0.2 0.4])
 f  =
 
  - 1.2345792  - 0.3962918  - 1.3625699  - 0.5794488  
  - 2.1502121  - 0.9038575  - 2.4539553  - 1.3200498  
  - 0.9779875  - 0.3154517  - 1.1004894  - 0.4243725  
  - 1.7359584  - 0.7226563  - 1.9654613  - 1.072765  

INDEX
Acknowledgements
Additional files
Boolean parameters
Calculation
compNames
Dimensionality
Disclaimer
DOs and DONTs
Error trapping
Examples
Feeds
Files
Formulas
Function reference
getAggregationState
getAggregationStateName
getCompoundConstant
getEquilibrium
getEquilibriumProperty
getFeedEquilibrium
getFeedProp
getNumberOfFeeds
getNumberOfProducts
getParameter
getPDependentProperty
getPropertyUnitOfMeasure
getSinglePhaseProperty
getTDependentProperty
getTwoPhaseProperty
getUnitOperationName
Global variables
Integer parameters
License
Loading models
logMessage
Model files
nComp
nPhase
Parameters
phaseAggregationStates
phaseNames
Products
Real parameters
Reports
Requirements
Saving models
SCI files
setParameter
setProduct
setReport
String parameters
SUM files
Welcome
CONTENT
 Welcome
 Feed and product ports
 Parameters
 Reports
 SciLab Calculation Script
 Additional files
 Global variables
 Function reference
 getAggregationState
 getAggregationStateName
 getCompoundConstant
 getEquilibrium
 getEquilibriumProperty
 getFeedEquilibrium
 getFeedProp
 getNumberOfFeeds
 getNumberOfProducts
 getParameter
 getPDependentProperty
 getPropertyUnitOfMeasure
 getSinglePhaseProperty
 getTDependentProperty
 getTwoPhaseProperty
 getUnitOperationName
 logMessage
 setParameter
 setProduct
 setReport
 Saving and loading models
 License and disclaimer