CalcFlashTP

 

See also: CalcFlashTPFlow

Top  Previous  Next

Function that perform a multiphase flash at fixed temperature and pressure

 

This function is defined in C++ as:

extern "C" __declspec(dllexport) int __stdcall CalcFlashTP(double Temperature, double Pressure, int PhaseCount)        

 

Return

The function return -1 if no problem was found. If a different number is returned use the function ErrorGetMessage for more information.

 

Input

Argument

Type

Units

Description

Temperature

double

User defined

Default: [Kelvin]

Temperature to use in calculation

Pressure

double

User defined

Default: [Bar]

Pressure to use in the calculation

 

PhaseCount

 

int

 

[-]

Number of phases the flash will look for. Valid input are:

2: The flash will maximum look for 2 phases

3: The flash will maximum look for 3 phases

0: No limit on the number of phases to look for

 

Code examples

Example