/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/bing/bing.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <glib.h>
#include <utils/utils.h>
#include <sed/sed_sedflux.h>
#include "bing.h"

Go to the source code of this file.

Defines

#define DENSITY_OF_SEA_WATER   sed_rho_sea_water()
#define GRAVITY   sed_gravity()
#define EPS   .0001

Functions

double * bing (pos_t *bathy, pos_t *fail, bing_t consts, double *deposit)


Define Documentation

#define DENSITY_OF_SEA_WATER   sed_rho_sea_water()

Definition at line 149 of file bing.c.

Referenced by bing().

#define EPS   .0001

Definition at line 155 of file bing.c.

Referenced by bing(), eh_gamma_cf(), and eh_gamma_series().

#define GRAVITY   sed_gravity()

Definition at line 152 of file bing.c.

Referenced by bing().


Function Documentation

double* bing ( pos_t bathy,
pos_t fail,
bing_t  consts,
double *  deposit 
)

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, pos_t::x, node::X, pos_t::y, node::Y, and bing_t::yieldStrength.

Referenced by main(), and run_debris_flow().


Generated on Fri Jan 4 18:04:17 2008 for sedflux by  doxygen 1.5.2