#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 DENSITY_OF_SEA_WATER sed_rho_sea_water() |
#define EPS .0001 |
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().