CalcBubbleP

Top  Previous  Next

This function perform a bubble pressure calculation.

 

The function works for both polymer and non-polymer systems and can handle both VLE and LLE points.

 

 

This function is defined in C++ as:

extern "C" __declspec(dllexport) int __stdcall CalcBubbleP(double Temperature, int PointType, double MinimumPressure, double MaximumPressure)

       

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

 

PointType

 

int

 

[-]

Type of point to look for. Valid input are:

0 (Auto)
1 (LLE)
2 (VLE)

 

MinimumPressure

 

double

User defined

Default: Bar

Note: Polymer systems only.

Smallest possible bubble pressure to look for.

 

MaximumPressure

 

double

User defined

Default: Bar

Note: Polymer systems only.

Biggest possible bubble pressure to look for.

Note that the value can go outside the physical range.

 

Code examples

Example