© 2024 Jasper van Baten, AmsterCHEM

getFeedProp

getFeedProp is used to obtain thermodynamic and physical properties from feed ports.

Syntax

value=getFeedProp(feedIndex,propName)

Arguments

feedIndex
Integer; the index of the feed to obtain the property from. The index must be between one and the number of feeds - inclusive.

propname
String; the property to obtain. Valid properties are:

PropertyDescriptionUnit of measure
temperatureTemperatureK
pressurePressurePa
flowComponent flows, one value for each chemical compoundmol / s
totalFlowTotal flowmol / s
fractionOverall mole fraction-
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
internalEnergyEnergyJ / mol
volumeSpecific volumem3 / mol

Not all of these properties may be supported by the underlying thermo system. The default enthalpy term will generally be available. The enthalpyF property may not be available, but if it is it is the preferred enthalpy for systems that include chemical reactions.

Returns

value
The value of the requested property. The unit of measure of the value is indicated in the above table

Examples

-->f1=getFeedProp(1,"flow")
 f1  =
 
    0.25    0.25    0.25    0.25  

-->h2=getFeedProp(2,"enthalpy")
 h2  =
 
    50.844593  

-->T1=getFeedProp(1,"temperature")
 T1  =
 
    298.15  
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