BubbleKij

 

See also: Fitting

Top  Previous  Next

This function is part of the fitting options in VLXE.

 

The function solves for a bubble kij value at fixed temperature and pressure. This may sounds a bit strange but it works just like a bubble point pressure calculation only that pressure and not kij is now fixed.

 

It is handy if only the kij is to be fitted. For each data point the function will give a exact kij value that can then be fitted to the temperature dependent kij expression used in VLXE Blend.

The linear fit can be done using the 2 Excel functions: SLOPE and INTERCEPT.

 

Note: The best way to use this function is to use the wizard. Select: VLXE Blend/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. Units [User defined]

Pressure

C# : double

No

Pressure. Units [User defined]

InitialKij

C# : double

No

Initial guess for the kij. This is used when there are more then one solution.

IndexI

C#: int

No

Index of the first component for the kij (Note is zero based)

IndexJ

C#: int

No

Index of the second component for the kij (Note is zero based)

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

 

 

SystemType

 

 

C# : string

 

 

Yes

Tells the function if the user wants a LLE or VLE system.

Valid input, LLE, VLE, Auto

Default values:

One solvent: VLE

Multi solvents: VLE

Polymer systems: Auto

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

 

 

 

 

Extra

The function is defined in C# as:

public Object[,] BubbleKij(Range Feed, double Temperature, double Pressure, double InitialKij, int IndexI, int IndexJ, string Output, string Components, string Units, [In, Optional] object SystemType, [In, Optional] object Distribution, [In, Optional] object BlockMassfraction, [In, Optional] object ProjectSheet, [In, Optional] object AdvVLXE, [In, Optional] object AdvUser)