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) |
CalculateRegimeShared::CalculateRegimeShared | ( | ) |
CalculateRegimeShared::~CalculateRegimeShared | ( | ) |
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
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 |
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
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
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
density | Density | |
hdiameter | Hydraulic diameter | |
velocity | Speed of transport | |
viscosity | Viscosity (Pa*s) |