CalcFlashTB

Top  Previous  Next

Function that perform a multiphase flash at fixed temperature and phase fraction (Mole based)

 

This function is defined in C++ as:

extern "C" __declspec(dllexport) int __stdcall CalcFlashTB(double Temperature, double PhaseFraction, 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

 

PhaseFraction

 

double

User defined

Default: [-]

Note: Phase fraction is mole based.

 

Phase fraction to use in the calculation

 

PhaseCount

 

int

 

[-]

Currently this flash type can only handle 2 phases.

Argument is unused.

 

Code examples

Example