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

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

Go to the source code of this file.

Defines

#define EPS   1e-5
#define NNODES   7
#define nxpts   1000
#define D_MAX   4.0
#define INIT_LEN   1000.0
#define FLOW_START   10
#define DEFAULT_VERBOSE   0
#define DEFAULT_IN_FILE   stdin
#define DEFAULT_OUT_FILE   stdout
#define DEFAULT_IN_FILE_NAME   "stdin"
#define DEFAULT_OUT_FILE_NAME   "stdout"
#define DEFAULT_WRITE_INTERVAL   120
#define DEFAULT_END_TIME   60.0
#define DEFAULT_SLOPE   2.0
#define DEFAULT_VISCOSITY   0.00083
#define DEFAULT_NUMERICAL_VISCOSITY   0.01
#define DEFAULT_YIELD_STRENGTH   100.0
#define DEFAULT_TIME_STEP   .01
#define DEFAULT_FLOW_DENSITY   1500.0
#define FLOOR_LENGTH   100000.

Functions

int main (int argc, char *argv[])

Variables

char * help_msg []


Define Documentation

#define D_MAX   4.0

Definition at line 91 of file bing_main.c.

Referenced by main().

#define DEFAULT_END_TIME   60.0

Definition at line 102 of file bing_main.c.

Referenced by main().

#define DEFAULT_FLOW_DENSITY   1500.0

Definition at line 108 of file bing_main.c.

Referenced by main().

#define DEFAULT_IN_FILE   stdin

Definition at line 97 of file bing_main.c.

Referenced by main().

#define DEFAULT_IN_FILE_NAME   "stdin"

Definition at line 99 of file bing_main.c.

Referenced by main().

#define DEFAULT_NUMERICAL_VISCOSITY   0.01

Definition at line 105 of file bing_main.c.

Referenced by main().

#define DEFAULT_OUT_FILE   stdout

Definition at line 98 of file bing_main.c.

#define DEFAULT_OUT_FILE_NAME   "stdout"

Definition at line 100 of file bing_main.c.

Referenced by main().

#define DEFAULT_SLOPE   2.0

Definition at line 103 of file bing_main.c.

#define DEFAULT_TIME_STEP   .01

Definition at line 107 of file bing_main.c.

Referenced by main().

#define DEFAULT_VERBOSE   0

Definition at line 96 of file bing_main.c.

Referenced by main().

#define DEFAULT_VISCOSITY   0.00083

Definition at line 104 of file bing_main.c.

Referenced by main().

#define DEFAULT_WRITE_INTERVAL   120

Definition at line 101 of file bing_main.c.

Referenced by main().

#define DEFAULT_YIELD_STRENGTH   100.0

Definition at line 106 of file bing_main.c.

Referenced by main().

#define EPS   1e-5

Definition at line 85 of file bing_main.c.

#define FLOOR_LENGTH   100000.

Definition at line 110 of file bing_main.c.

Referenced by main().

#define FLOW_START   10

Definition at line 93 of file bing_main.c.

Referenced by main().

#define INIT_LEN   1000.0

Definition at line 92 of file bing_main.c.

Referenced by main().

#define NNODES   7

Definition at line 88 of file bing_main.c.

Referenced by main().

#define nxpts   1000

Definition at line 89 of file bing_main.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Read in bathymetry

Set initial shape of debris flow

Parabola:

Definition at line 112 of file bing_main.c.

References bing(), createPosVec(), D_MAX, DEFAULT_END_TIME, DEFAULT_FLOW_DENSITY, DEFAULT_IN_FILE_NAME, DEFAULT_NUMERICAL_VISCOSITY, DEFAULT_OUT_FILE_NAME, DEFAULT_TIME_STEP, DEFAULT_VERBOSE, DEFAULT_VISCOSITY, DEFAULT_WRITE_INTERVAL, DEFAULT_YIELD_STRENGTH, destroyPosVec(), bing_t::dt, eh_check_opts(), eh_exit(), eh_fopen(), eh_free, eh_get_opt_bool(), eh_get_opt_dbl(), eh_get_opt_int(), eh_get_opt_str(), eh_new, eh_opts_init(), FLOOR_LENGTH, FLOW_START, bing_t::flowDensity, help_msg, INIT_LEN, bing_t::maxTime, bing_t::MC, NNODES, bing_t::numericalViscosity, PI, sed_get_floor_vec(), pos_t::size, bing_t::viscosity, pos_t::x, pos_t::y, and bing_t::yieldStrength.


Variable Documentation

char* help_msg[]

Definition at line 29 of file bing_main.c.

Referenced by main().


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