#include <utils/utils.h>
Go to the source code of this file.
Classes | |
struct | node |
struct | bing_t |
Defines | |
#define | sq(a) ( (a)*(a) ) |
#define | floor(a) ( (int)(a) ) |
#define | abs(a) ( ((a)>=0)?a:(-1.0*(a)) ) |
#define | sign(a) ( ((a)>0)?1:(((a)==0)?0:(-1)) ) |
#define | PI 3.14159265359 |
Functions | |
double * | bing (pos_t *, pos_t *, bing_t, double *) |
#define abs | ( | a | ) | ( ((a)>=0)?a:(-1.0*(a)) ) |
Definition at line 47 of file bing.h.
Referenced by bing(), dgamln_(), zabs_(), zacon_(), zairy_(), zasyi_(), zbesh_(), zbesi_(), zbesj_(), zbesk_(), zbesy_(), zbinu_(), zbiry_(), zbknu_(), zbuni_(), zbunk_(), zuchk_(), zunhj_(), zuni1_(), zuni2_(), zunik_(), zunk1_(), zunk2_(), zuoik_(), zzzlog_(), and zzzsqrt_().
#define floor | ( | a | ) | ( (int)(a) ) |
Definition at line 46 of file bing.h.
Referenced by bing(), calculate_head_index(), eh_binomial_coef(), eh_dbl_array_rebin_larger(), eh_dbl_array_rebin_smaller(), eh_dbl_grid_line_ids(), eh_dbl_grid_populate(), eh_reduce_angle(), hydrohypsom(), hydroshoulder(), make_depth_histogram(), plumearray(), sakura(), and sed_ind2sub().
#define PI 3.14159265359 |
#define sign | ( | a | ) | ( ((a)>0)?1:(((a)==0)?0:(-1)) ) |
#define sq | ( | a | ) | ( (a)*(a) ) |
Definition at line 45 of file bing.h.
Referenced by bing(), hydroexpdist(), hydrorandom(), main(), plumecent(), plumeconc(), plumedist(), and plumejump().
Calculate the forces on the nodes.
1 d 2 7 Xmom = - -( -( Up*Up*Dp )+ U*U*D - -( U*Up*D ) ) D dx 5 5
Xgrav = g*Drho*S
dD Xpres = - -- g*Drho dx
mum*Up Xresi = -2 ----------- rhom*D*Ds
yieldStrength Xyield = - --------------- D*rhom
dUp Xp1 = -(Up-U) --- dx
yieldStrength Xp2 = - --------------- rhom*Dp
Definition at line 158 of file bing.c.
References abs, node::D, node::Dbar, DENSITY_OF_SEA_WATER, derivative(), bing_t::dt, eh_free, eh_new, EPS, floor, bing_t::flowDensity, GRAVITY, interpolate(), bing_t::maxTime, bing_t::MC, bing_t::numericalViscosity, sign, pos_t::size, sq, node::U, node::Ubar, node::Uold, node::Up, node::Upbar, node::Upold, bing_t::viscosity, node::X, pos_t::x, node::Y, pos_t::y, and bing_t::yieldStrength.
Referenced by main(), and run_debris_flow().