00001 00023 #ifndef CALCULATEREGIMESHARED_H 00024 #define CALCULATEREGIMESHARED_H 00025 00026 #include <QObject> 00027 #include <QString> 00028 #include <QtPlugin> 00029 #include <QDebug> 00030 #include <math.h> 00031 00032 #include "data.h" 00033 #include "frictionfunctions.h" 00034 00035 class CalculateRegimeShared 00036 { 00037 public: 00038 CalculateRegimeShared(); 00039 ~CalculateRegimeShared(); 00040 static double bisectvoid(Data *data, FrictionFunctions *frictionFunctions, 00041 double (*evalFunction)(Data*, FrictionFunctions*, double variable, double *args, int nArg), 00042 double *args, int nArg, double tolerance, double x); 00043 static double reynolds(double density, double hdiameter, double velocity, double viscosity); 00044 static double hydraulicDiameter(double alpha, double area, double surface); 00045 static double relativeVelocityRisingBubbles(double alpha, double surfaceTension, double densityLiquid, double densityGas, double angle); 00046 }; 00047 00048 #endif // CALCULATEREGIMESHARED_H