00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _BING_IS_INCLUDED
00022 # define _BING_IS_INCLUDED
00023
00024 #include <utils/utils.h>
00025
00026 typedef struct
00027 {
00028 double U, Uold, Up, Upold;
00029 double Dbar, Xbar, Ubar, Upbar;
00030 double D, X, Y;
00031 } node;
00032
00033 typedef struct
00034 {
00035 double yieldStrength;
00036 double viscosity;
00037 double numericalViscosity;
00038 double flowDensity;
00039 double dt;
00040 double maxTime;
00041 int MC;
00042 }
00043 bing_t;
00044
00045 #define sq(a) ( (a)*(a) )
00046 #define floor(a) ( (int)(a) )
00047 #define abs(a) ( ((a)>=0)?a:(-1.0*(a)) )
00048 #define sign(a) ( ((a)>0)?1:(((a)==0)?0:(-1)) )
00049 #define PI 3.14159265359
00050
00051 double *bing(pos_t*,pos_t*,bing_t,double*);
00052
00053 #endif