DifferentialDepletion

Top  Previous  Next

A common PVT calculation for a oil is differential depletion.

The calculations is a series of flash calculations where the pressure is lower in each step and the heavy phase is used as feed to the next flash.

 

VLXE Oil and Gas lets the user give a feed, a temperature and a list of pressures and the function will then perform the series of flash calculations and display the result to the user in a range.

 

A wizard is provided to help the user setup the calculation and prepare the sheet for both in- and output.

 

To open the wizard select Oil and Gas/Calculation.

 

Below is a screen dump showing the wizard

 

DifferentialDepletionWizard

 

Below is a screen dump showing the resulting output from the wizard:

 

DifferentialDepletionSheet

 

Description of the function argument list

Input

Argument

Type

Optional

Description

Feed

Range of double

No

A range of cells with the feed

TemperatureList

Range of double

No

One column with a number of rows given the list of temperatures to use in the flash calculations

PressureList

Range of double

No

One column with a number of rows given the list of pressures to use in the flash calculations

Output

C# : string

No

Defines the output. (Note currently unused, so just leave blank)

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

 

 

Extra

The function is defined in C# as:

 

public Object[,] DifferentialDepletion(Range Feed, double Temperature, Range TemperatureList, Range PressureList, string Output, object Components, object Units, [In, Optional] object Distribution, [In, Optional] object BlockMassfraction, [In, Optional] object AdvVLXE, [In, Optional] object AdvUser)