getFeedProp is used to obtain thermodynamic and physical properties from feed ports.
value=getFeedProp(feedIndex,propName)
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:
Property | Description | Unit of measure |
temperature | Temperature | K |
pressure | Pressure | Pa |
flow | Component flows, one value for each chemical compound | mol / s |
totalFlow | Total flow | mol / s |
fraction | Overall mole fraction | - |
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 |
internalEnergy | Energy | J / mol |
volume | Specific volume | m3 / 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.
value
The value of the requested property. The unit of measure of the value is indicated in the above table
-->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