Flash_TP

 

See also: How to define output

Top  Previous  Next

This function lets the user to perform a flash calculations at fixed temperature & pressure.

 

Note: The best way to use this function is to use the wizard. Select: VLXE/Wizard on the menu

 

Input

Argument

Type

Optional

Description

Feed

Range of double

No

A range of cells with the feed

Temperature

C# : double

No

Temperature, default unit: Kelvin

Pressure

C# : double

No

Pressure, default unit: Bar

 

 

FlashType

 

 

C# : string

 

 

No

Defines the number of phases to look for. Valid input are:

Auto: Stops when stability analysis shows that the system is stable

2: Will maximum look for 2 phases

3: Will maximum look for 3 phases

Output

C# : string

No

Defines the output. See here for more information.

 

Components

 

C# : string

 

No

Give a list of component names.

Only those components are used in the calculations.

See here for more information

 

Units

 

C# : string

 

No

 

Set the units used in this calculation.

See here for more information

Distribution

C# : object

(Expect a range of double)

Yes

Gives a range with the distribution of the polymer. Can for example be used if 2 flash calculations are liked as 2 separation tanks.

See here for more information

 

BlockMassfraction

C# : object

(Expect a range of double)

Yes

Sets the block mass fractions in a co-polymer.

See here for more information

ProjectSheet

C#: object

Yes

Lets the user set the project sheet to use.

See here for more information

AdvVLXE

C# : object

Yes

Advanced used. Reserved for use by VLXE.

See here for more information

AdvUser

C# : object

Yes

Advanced used. Reserved for the user. For example it can be used to force the function update.

See here for more information

 

 

 

Examples:

 

A calculation on a system with three components at 100 bar and 400 Kelvin. The solvent mass fractions are given in the range: B3:B5.

We want the composition of phase 1 and 2 as the output

 

=Flash_TP(B3:B5,-1, 100,400, "Auto", "C(1),C(2)")

 

 

Extra

This function is defined in C# as:

public Object[,] Flash_TP(Range Feed, double Temperature, double Pressure, string FlashType, string Output, string Components, string Units, [In, Optional] object Distribution, [In, Optional] object BlockMassfraction, [In, Optional] object AdvVLXE, [In, Optional] object AdvUser).

 

Below is a screen dump showing the result of a TP flash in the 3 phase region for a system with a poly-disperse polymer:

 

 

3 phase flash