CalculateRegimeShared Class Reference

List of all members.

Public Member Functions

 CalculateRegimeShared ()
 ~CalculateRegimeShared ()

Static Public Member Functions

static double bisectvoid (Data *data, FrictionFunctions *frictionFunctions, double(*evalFunction)(Data *, FrictionFunctions *, double variable, double *args, int nArg), double *args, int nArg, double tolerance, double x)
static double reynolds (double density, double hdiameter, double velocity, double viscosity)
static double hydraulicDiameter (double alpha, double area, double surface)
static double relativeVelocityRisingBubbles (double alpha, double surfaceTension, double densityLiquid, double densityGas, double angle)

Constructor & Destructor Documentation

CalculateRegimeShared::CalculateRegimeShared (  ) 
CalculateRegimeShared::~CalculateRegimeShared (  ) 

Member Function Documentation

double CalculateRegimeShared::bisectvoid ( Data data,
FrictionFunctions frictionFunctions,
double(*)(Data *, FrictionFunctions *, double variable, double *args, int nArg)  evalFunction,
double *  args,
int  nArg,
double  tolerance,
double  x 
) [static]

Workhorse function which takes in pointer to function in with which a correct variable should be found, used by all four regimes

Parameters:
data Flow data
frictionFunctions Pointer to class with pointer to functions
evalFunction Pointer to function with which to evaluate the variable, takes an array of doubles as argument allowing it to pass as many arguments as it wants to
See also:
voidAnnular Function to calculate void fraction for annular flow, can be passed as argument as evalFunction
alphaDispersed Function to calculate alpha for dispersed flow, can be passed as argument as evalFunction
alphaStatified Function to calculate alpha for stratified flow, can be passed as argument as evalFunction
voidBubble Function to calculate void fraction for bubble in slug flow, can be passed as argument as evalFunction
Parameters:
args pointer to double array of arguments to pass to evalFunction
nArg number of arguments in args array
tolerance numerical error tolerance
x initial value, should be center value
double CalculateRegimeShared::hydraulicDiameter ( double  alpha,
double  area,
double  surface 
) [static]

Calculate hydraulic diameter

Parameters:
alpha Alpha value to use
area Area
surface Surface length
double CalculateRegimeShared::relativeVelocityRisingBubbles ( double  alpha,
double  surfaceTension,
double  densityLiquid,
double  densityGas,
double  angle 
) [static]

Calculates the rising velocity of gas bubbles in dispersed/slug flow

Parameters:
alpha Alpha value
surfaceTension Surface Tension
densityLiquid Density of liquid phase
densityGas Density of gas phase
angle Pipe angle
double CalculateRegimeShared::reynolds ( double  density,
double  hdiameter,
double  velocity,
double  viscosity 
) [static]

Calculates reynolds number

Parameters:
density Density
hdiameter Hydraulic diameter
velocity Speed of transport
viscosity Viscosity (Pa*s)
 All Classes Functions Variables

Generated by  doxygen 1.6.2