Define function output

Top  Previous  Next

When calling a function the user has the option to have the function either a user defined set of values spanning one row or a fixed output spanning a number of rows.

This is controlled by the parameter:

Output

 

The parameters has to be given as a pair, where the first value is the property and the phase is given in brackets.

 

Important note: Only the values in brackets can be used. For example if you want temperature as output only "T" is a valid input

 

Below is a table that gives the options for Output:

NR.

Value of "Output"

Note: Only the short name is currently active.

Returning:

Notes

1

Component name (1, 2, etc.) (Not active yet)

Composition of the component in the given phase


2

Composition (C)

Array with composition of all components in the given phase


3

Bonding fraction (BF)

Fraction of sites not bonded

Only relevant when the association scheme is used.

4

Number of phases (NOP)

Number of phases found


5

Temperature (T)

Temperature given or found depending of calculation


6

Pressure (P)

Pressure given or found depending of calculation


7

Volume (V)

Volume of the given phase


8

PolymerMassfraction (PMF)

Polymer mass fraction in the given phase


9

Density (D)

Density of the given phase


10

Enthalpy (H)

Enthalpy in the given phase


11

Entropy (S)

Entropy in the given phase


12

Cp

Heat capacity in the given phase


13

PhasefractionMole (PFMole)

Return the phase fraction on a mole base


14

PhasefractionMass (PFMass)

Return the phase fraction on a mass base


15

Molar mass (M)

Average molar mass of the phase


16

Mn

Information for the distribution of the polymer

Only active for a system with a polymer

17

Mw

Information for the distribution of the polymer

Only active for a system with a polymer

18

Mz

Information for the distribution of the polymer

Only active for a system with a polymer

19

Number or results (NOR)

The number of results.

This can be when calculating critical points where more then on solution is possible.

 

If the property is for a specific phase a phase index has to be give. The code used 4 different phases:

NR.

Phase index

Note: Only the short name is currently active.

Returning:

1

System (S)

Return the value for the system equal to sum of all phases

2

Feed (F)

Return value for the feed

3

Phase 1 (1)

Return value for the first phase, the heaviest one.

4

Phase 2 (2)

Return value for the second phase, the lightest one.

 

 

Example

#1

We want to return Composition and density of phase number 1:

Output = "C(1), D(1)"

 

#2

We want to return temperature, polymer mass fraction and composition of the first phase

Output = "T, PMF(1) C(1)"