Lnf_PV

Top  Previous  Next

This function lets the user calculate Ln(fugacity) for each component + all the first order derivatives at fixed pressure and volume

 

Important note:

VLXE uses the units: Kelvin, Bar, cm3, mole numbers internal. Therefore the values and derivatives obtained here uses these units no matter the user settings.

 

Input

Argument

Type

Optional

Description

 

Feed

 

Range of double

 

No

 

A range of cells with the feed

Pressure

C# : double

No

Fixed pressure

Volume

C# : double

No

Fixed volume

 

Updatedni

 

C# : string

 

No

Determine if the derivatives with respect to mole numbers are calculated. Valid input are:

No

Yes

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

 

 

UseCompress

 

 

C# : Object

(Expects a string)

 

 

Yes

This argument Is used only for system with a poly-disperse polymer. Determine if the code calculate the full range of properties or the compressed set. Valid input are:

No

Yes

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

This function is defined in C# as:

public Object[,] Lnf_PV(Range Feed, double Pressure, double Volume, string Updatedni, string Output, string Components, string Units, [In, Optional] object UseCompress, [In, Optional] object Distribution, [In, Optional] object BlockMassfraction, [In, Optional] object AdvVLXE, [In, Optional] object AdvUser)