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

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

Go to the source code of this file.

Defines

#define ERODE_DEPTH_IN_YEARS   (200.)
#define sign(a)   ( (a)>0?1:((a)==0?0:-1) )
#define EROSION_IS_ON   ( TRUE )

Functions

double get_orbital_velocity (double d, double H, double T, double L)
int test_in_suspension (double *in_suspension, double thickness, int n_grains)
int muddy (Sed_cube prof, Sed_cell *in_suspension_cell, double *wave, double duration)


Define Documentation

#define ERODE_DEPTH_IN_YEARS   (200.)

Definition at line 101 of file muds.c.

Referenced by muddy().

#define EROSION_IS_ON   ( TRUE )

Definition at line 104 of file muds.c.

Referenced by muddy().

#define sign (  )     ( (a)>0?1:((a)==0?0:-1) )

Definition at line 103 of file muds.c.


Function Documentation

double get_orbital_velocity ( double  d,
double  H,
double  T,
double  L 
)

Calculate wave orbital velocity

\[ u = \cases{ 0 ,& $d<.5$\cr {H\over 2}\sqrt{g\over d} ,& $.5<d<{\lambda\over 2}$\cr {\pi H\over T \sinh\left({2\pi {d\over\lambda}}\right)},& $d>{\lambda\over 2}$\cr} \]

Parameters:
d Water depth
H Wave height
T Wave period
L Wave length
Returns:
The orbital velocity

Definition at line 386 of file muds.c.

References M_PI.

Referenced by muddy().

int muddy ( Sed_cube  prof,
Sed_cell in_suspension_cell,
double *  wave,
double  duration 
)

Definition at line 110 of file muds.c.

References eh_free, eh_new, eh_new0, ERODE_DEPTH_IN_YEARS, EROSION_IS_ON, get_orbital_velocity(), M_PI, sed_cell_destroy(), sed_cell_fraction(), sed_cell_new(), sed_cell_size(), sed_column_add_vec(), sed_column_depth_age(), sed_column_extract_top(), sed_cube_age(), sed_cube_col(), sed_cube_n_y(), sed_cube_river_mouth_1d(), sed_cube_slope(), sed_cube_water_depth(), sed_cube_y_res(), sed_gravity(), sed_sediment_env_n_types(), sed_sediment_property(), and sed_type_diff_coef().

Referenced by main().

int test_in_suspension ( double *  in_suspension,
double  thickness,
int  n_grains 
)

Definition at line 408 of file muds.c.

References eh_watch_dbl.


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