CalcFlashPV

Top  Previous  Next

Function that perform a multiphase flash at fixed pressure and volume

 

This function is defined in C++ as:

extern "C" __declspec(dllexport) int __stdcall CalcFlashPV(double Pressure, double Volume, 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

Pressure

double

User defined

Default: [Kelvin]

Pressure to use in calculation

Volume

double

User defined

Default: [cm3]

Volume to use in the calculation

 

PhaseCount

 

int

 

[-]

Currently this flash type can only handle 2 phases.

Argument is unused.

 

Code examples

Example