© 2024 Jasper van Baten, AmsterCHEM

getPropertyUnitOfMeasure

getPropertyUnitOfMeasure can be used to get a textual description for the unit-of-measure of a specified property; useful for creating reports.

Syntax

uom=getPropertyUnitOfMeasure(propName)

Arguments

propName
String; name of the property. This can be any of the supported compound constants, temperature dependent properties, pressure dependent properties, single phase properties or two phase properties.

Returns:

uom
String; textual description for unit of measure, or empty string.

Examples

-->getPropertyUnitOfMeasure("criticalTemperature")
 ans  =
 
 K   

-->getPropertyUnitOfMeasure("vaporPressure")
 ans  =
 
 Pa   

-->getPropertyUnitOfMeasure("vaporPressure.Dtemperature")
 ans  =
 
 Pa / K   

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

-->getPropertyUnitOfMeasure("enthalpy.Dmoles")
 ans  =
 
 J / mol   

-->getPropertyUnitOfMeasure("surfaceTension")
 ans  =
 
 N m   

-->getPropertyUnitOfMeasure("surfaceTension.Dmoles")
 ans  =
 
 N m / mol 

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