PropUpdateLnfTP

Top  Previous  Next

This function calculates the natural log to fugacity's and several analytical derivatives:

Temperature
Pressure
Mole numbers (Depends on the argument Updatedni)

 

 

This function is defined in C++ as:

extern "C" __declspec(dllexport)int __stdcall PropUpdateLnfTP(double Temperature, double Pressure, int VolumeType, int Updatedni, int UseCompress)

 

Return

The function return -1 if no problem was found. If a different number is returned use the error functions to get more information.

 

Input

Argument

Type

Units

Description

Temperature

double

User defined

Temperature to use in calculation

Pressure

double

User defined

Pressure to use in the calculation

 

VolumeType

 

int

 

[-]

Type of volume root to use from the EOS

0: Liquid
1: Vapor
2: Auto  (Stable root)

Updatedni

int

[-]

Update the derivatives with respect to mole numbers.

Valid input are:

0: No
1: Yes

UseCompress

int

[-]

Advanced use. Determine if the arrays for a poly-disperse polymer are compressed or not.

Valid input are:

0: No
1: Yes