Along/Cross Shore Transport


Classes

struct  Bruun_data

Functions

double get_closure_depth (Sed_cube p, Sed_wave wave)
double get_h_c (Sed_wave wave)
gssize get_zone_indices (Sed_cube p, double z_0, double z_1, gssize i_0, Sed_grid_func get_val, gssize *ind)
double get_total_flux (double z, double dz_dx, Sed_wave w, double u_0, double w_s, double breaker_depth, double h_b, double x, double x_b, double max_qx) G_GNUC_INTERNAL
Sed_cell move_sediment (Sed_cube p, double **du, double *erosion_limit, double z_0, double dt, Bruun_data *data, Sed_cell lost, Sed_cell added, Sed_cell in_suspension) G_GNUC_INTERNAL
void update_bruun_zone_data (Bruun_data *data)
void diffuse_cols (Sed_cube p, Sed_wave deep_wave, double u_0, double *erosion_limit, Sed_column *source_col, double *bruun_depth, Sed_cell along_shore_cell, Bruun_data *data, double dt, double t_total, Sed_cell added, Sed_cell in, Sed_cell out) G_GNUC_INTERNAL
double ** get_sediment_flux (Sed_cube p, Sed_wave deep_wave, double u_0, Bruun_data *data, Sed_cell in)
double get_time_step (Sed_cube p, Sed_wave deep_wave, double u_0, Bruun_data *data) G_GNUC_INTERNAL
Xshore_info xshore (Sed_cube p, Sed_cell along_shore_cell, double xshore_current, Sed_ocean_storm storm)
double wave_break_helper (double z, gpointer user_data) G_GNUC_INTERNAL
double get_breaking_wave_depth (Sed_wave deep_water)
Sed_cube * get_shelf_zones (Sed_cube p, double z_0, gssize **shelf_ind)
Sed_cube * get_bruun_zones (Sed_cube p, double y_0)
Sed_cube * get_zones (Sed_cube p, double *z, gssize n_zones, Sed_grid_func f, gssize **ind)
double get_constant (double z, Sed_wave w, double w_s, double h_b)
double get_diffusion_constant (double z, Sed_wave w, double w_s, double h_b)
double get_diffusion_flux (double z, double dz_dx, Sed_wave w, double w_s, double h_b)
double get_advection_flux (double z, Sed_wave w, double u_0, double w_s, double h_b)
double get_total_flux_outer_shelf (double z, double dz_dx, Sed_wave w, double u_0, double w_s, double h_b)
double get_total_flux_bruun_zone (double x, double dz_dx, double x_0, double k_0)
void add_suspended_sediment (Sed_column *col, Sed_cell cell)
double get_bruun_depth (double y, double y_0, double bruun_a, double bruun_m)
double get_bruun_a (Sed_cube p, double bruun_m)
double get_bruun_y_0 (Sed_cube p)
double get_bruun_y_b (Sed_cube p)
double * get_bruun_profile (double *y, gssize len, double bruun_a, double bruun_m, double y_0, double y_b)
void fill_to_bruun (Sed_cube p, double *h, Sed_cell fill_cell)
void fill_to_bruun_profile (Sed_cube p, Sed_wave deep_wave, double bruun_m, Sed_cell fill_cell, Sed_cell added_fill_cell)
double get_erosion_depth (double u)
double * get_max_erosion_profile (Sed_cube p, Sed_wave w)
double get_near_bed_velocity (double water_depth, Sed_wave w, double breaker_depth)
double near_bed_velocity_func_mean (double water_depth, Sed_wave w, double breaker_depth)
double near_bed_velocity_func (double water_depth, Sed_wave w, double breaker_depth)
double near_bed_velocity_func_komar (double water_depth, Sed_wave w, double breaker_depth)
double near_bed_velocity_func_stokes (double water_depth, Sed_wave w, double breaker_depth)
double get_grain_size_threshold (double orbital_velocity, double wave_period)

Detailed Description

Model the transport of sediment over a 1D profile.

Function Documentation

void add_suspended_sediment ( Sed_column *  col,
Sed_cell  cell 
)

Add any sediment left in suspension

Parameters:
col A NULL-terminated list of Sed_column s
cell A Sed_cell

Definition at line 1450 of file xshore.c.

References eh_require, and sed_column_add_cell().

void diffuse_cols ( Sed_cube  p,
Sed_wave  deep_wave,
double  u_0,
double *  erosion_limit,
Sed_column *  source_col,
double *  bruun_depth,
Sed_cell  along_shore_cell,
Bruun_data data,
double  dt,
double  t_total,
Sed_cell  added,
Sed_cell  in,
Sed_cell  out 
)

Diffuse sediment of Sed_cube due to ocean waves.

Note:
The thickness of in and out represent the flux of sediment into and out of the Sed_cube in meters per second.
Parameters:
p A Sed_cube
deep_wave A Sed_wave causing sediment movement
u_0 Cross-shore current
erosion_limit Maximum depth of erosion along profile
source_col Unused
bruun_depth Unused
along_shore_cell Unused
data Data that describe the Bruun zone
dt Time step to use (in seconds)
t_total The duration of the ocean storm (in seconds)
added A Sed_cell to record sediment that is added to the profile
in A Sed_cell containing sediment flux into to Sed_cube
out A Sed_cell containing sediment flux out of the Sed_cube
Todo:
Tidy up function diffuse_cols.

Definition at line 983 of file xshore.c.

References eh_free_2, eh_require, eh_watch_dbl, get_closure_depth(), get_sediment_flux(), move_sediment(), sed_cell_destroy(), sed_cell_mass(), sed_cell_new_env(), sed_cell_resize(), sed_cube_mass(), sed_cube_n_y(), sed_cube_x_res(), sed_cube_y_res(), sed_wave_is_bad(), and update_bruun_zone_data().

Referenced by xshore().

void fill_to_bruun ( Sed_cube  p,
double *  h,
Sed_cell  fill_cell 
)

Fill the columns of a Sed_cube to given depths

The columns of p are filled to the water depths provided in the array h. fill_cell provides the sediment that will be added to the columns. The added sediment is given the current age of p, and the facies is set to S_FACIES_ALONG_SHORE. If h is NULL, nothing is done. If any depths are NaN, the column is skipped over.

Note:
The size of fill_cell is adjusted to reflect the amount of sediment that was added to the Sed_cube.
Parameters:
[in,out] p A Sed_cube
[in] h Water depths to fill columns to
[in,out] fill_cell A Sed_cell that contains the sediment to fill with

Definition at line 1582 of file xshore.c.

References eh_isnan(), eh_require, S_FACIES_ALONG_SHORE, sed_cell_resize(), sed_cell_set_age(), sed_cell_set_facies(), sed_column_add_cell(), sed_cube_age_in_years(), sed_cube_col(), sed_cube_n_y(), and sed_cube_water_depth().

void fill_to_bruun_profile ( Sed_cube  p,
Sed_wave  deep_wave,
double  bruun_m,
Sed_cell  fill_cell,
Sed_cell  added_fill_cell 
)

Definition at line 1622 of file xshore.c.

References eh_require, S_FACIES_BEDLOAD, sed_cell_add(), sed_cell_resize(), sed_cell_set_age(), sed_cell_set_facies(), sed_column_add_cell(), sed_cube_age_in_years(), sed_cube_col(), sed_cube_col_y(), sed_cube_n_y(), and sed_cube_water_depth().

double get_advection_flux ( double  z,
Sed_wave  w,
double  u_0,
double  w_s,
double  h_b 
)

Get the component of sediment flux due to advection

Parameters:
z Water depth in meters
w A Sed_wave
u_0 Cross-shore current velocity in meters per second
w_s Settling velocity in meters per second
h_b Depth of breaking waves in meters
Returns:
Sediment flux in m^2/s

Definition at line 885 of file xshore.c.

References get_constant().

double get_breaking_wave_depth ( Sed_wave  deep_water  ) 

Definition at line 483 of file xshore.c.

References eh_bisection(), eh_require, sed_wave_height(), sed_wave_is_bad(), sed_wave_new(), and wave_break_helper().

Referenced by get_sediment_flux(), get_time_step(), and update_bruun_zone_data().

double get_bruun_a ( Sed_cube  p,
double  bruun_m 
)

Get the coefficent for a Bruun profile

Parameters:
p A Sed_cube that defines the inner shelf
bruun_m The exponent for the Bruun profile
Returns:
The Bruun coefficient, $ a $

Definition at line 1492 of file xshore.c.

References eh_nan(), eh_require, sed_cube_col_y(), sed_cube_n_y(), sed_cube_water_depth(), and sed_cube_y_res().

Referenced by xshore().

double get_bruun_depth ( double  y,
double  y_0,
double  bruun_a,
double  bruun_m 
)

Get the depth of the Bruun profile at some position

The Bruun profile is described by the equation,

\[ \eta = a \left( y-y_0 \right)^m \]

where $ \eta $, is water depth, $ y $ is horizontal position, $ y_0 $ is the position of the shore, and $ a $ and $ m $ are constants that define the shape of the profile.

Parameters:
y Horizontal position
y_0 Horizontal position of the shore
bruun_a Coefficient in Bruun profile
bruun_m Exponent in Bruun profile
Returns:
The depth of the Bruun profile at position, y

Definition at line 1480 of file xshore.c.

Referenced by get_bruun_profile().

double* get_bruun_profile ( double *  y,
gssize  len,
double  bruun_a,
double  bruun_m,
double  y_0,
double  y_b 
)

Definition at line 1522 of file xshore.c.

References eh_free, eh_isnan(), eh_nan(), eh_new, eh_require, and get_bruun_depth().

Referenced by xshore().

double get_bruun_y_0 ( Sed_cube  p  ) 

Definition at line 1512 of file xshore.c.

References sed_cube_col_y(), and sed_cube_y_res().

Referenced by xshore().

double get_bruun_y_b ( Sed_cube  p  ) 

Definition at line 1517 of file xshore.c.

References sed_cube_col_y(), and sed_cube_n_y().

Referenced by xshore().

Sed_cube* get_bruun_zones ( Sed_cube  p,
double  y_0 
)

Definition at line 576 of file xshore.c.

References eh_free, eh_lower_bound, eh_new0, eh_require, get_zones(), S_Y_FUNC, sed_cube_col_y(), sed_cube_river_mouth_1d(), sed_cube_sea_level(), and sed_cube_set_sea_level().

double get_closure_depth ( Sed_cube  p,
Sed_wave  wave 
)

Get the closure depth of a profile with given ocean wave conditions.

Parameters:
p A Sed_cube
wave A Sed_wave
Returns:
The closure depth in meters.

Definition at line 1689 of file xshore.c.

References sed_wave_break_depth().

Referenced by diffuse_cols(), and xshore().

double get_constant ( double  z,
Sed_wave  w,
double  w_s,
double  h_b 
)

Definition at line 830 of file xshore.c.

References get_near_bed_velocity(), M_PI, sed_gravity(), sed_rho_quartz(), and sed_rho_sea_water().

Referenced by get_advection_flux(), get_diffusion_constant(), and get_total_flux_outer_shelf().

double get_diffusion_constant ( double  z,
Sed_wave  w,
double  w_s,
double  h_b 
)

Definition at line 846 of file xshore.c.

References get_constant(), and get_near_bed_velocity().

Referenced by get_diffusion_flux(), get_time_step(), and update_bruun_zone_data().

double get_diffusion_flux ( double  z,
double  dz_dx,
Sed_wave  w,
double  w_s,
double  h_b 
)

Get the component of sediment flux due to diffusion

Parameters:
z Water depth in meters
dz_dx Bathymetric slope
w A Sed_wave
w_s Settling velocity in meters per second
h_b Depth of breaking waves in meters
Returns:
Sediment flux in m^2/s

Definition at line 866 of file xshore.c.

References get_diffusion_constant().

double get_erosion_depth ( double  u  ) 

Get the depth of erosion for some near-bed velocity

Parameters:
u Near-bed current velocity in m/s
Returns:
The erosion depth (in meters) for one day.

Definition at line 1711 of file xshore.c.

References eh_require, and sed_rho_sea_water().

Referenced by get_max_erosion_profile().

double get_grain_size_threshold ( double  orbital_velocity,
double  wave_period 
)

Get the grain-size threshold for movement.

\[ D = \left( {\rho \over .21 g \left( \rho_s - \rho \right) } \right)^2 { u^4 \over d_0 } \]

where $ D $ is the grain size threshold, $ \rho $ is the density of sea water, $ \rho_s $ is the desity of quartz, $ g $ is acceleration due to gravity, $ u $ is orbital velocity, and $ d_0 $ is orbital diameter. Orbital diameter is calculated by,

\[ d_0 = u { T \over \pi } \]

where $ T $ is wave period.

Parameters:
orbital_velocity Wave orbital velocity in meters per second
wave_period Wave period in seconds
Returns:
The maximum grain diameter (in meters) that can be mobilized by the orbital velocity

Definition at line 1879 of file xshore.c.

References sed_gravity(), sed_rho_quartz(), and sed_rho_sea_water().

Referenced by get_sediment_flux(), and update_bruun_zone_data().

double get_h_c ( Sed_wave  wave  ) 

Definition at line 1697 of file xshore.c.

References sed_gravity(), sed_wave_height(), and sed_wave_period().

Referenced by xshore().

double* get_max_erosion_profile ( Sed_cube  p,
Sed_wave  w 
)

Definition at line 1722 of file xshore.c.

References eh_new, eh_require, get_erosion_depth(), get_near_bed_velocity(), sed_cube_n_y(), sed_cube_water_depth(), and sed_wave_break_depth().

Referenced by xshore().

double get_near_bed_velocity ( double  water_depth,
Sed_wave  w,
double  breaker_depth 
)

Calculate the near bed velocity of a given wave

If the water depth is less than the breaker depth, the orbital velocity is taken to fall off linearly from it breaker-depth value.

Parameters:
water_depth Water depth in meters
w A Sed_wave
breaker_depth The depth (in meters) of breaking waves
Returns:
The near bed orbital velocity in meters per second.

Definition at line 1767 of file xshore.c.

References near_bed_velocity_func_mean().

Referenced by get_constant(), get_diffusion_constant(), get_max_erosion_profile(), get_sediment_flux(), get_total_flux_outer_shelf(), and update_bruun_zone_data().

double ** get_sediment_flux ( Sed_cube  p,
Sed_wave  deep_wave,
double  u_0,
Bruun_data data,
Sed_cell  in 
)

Definition at line 1077 of file xshore.c.

References eh_dbl_array_set(), eh_free, eh_grid_data_start(), eh_grid_destroy(), eh_new, eh_new_2, eh_require, get_breaking_wave_depth(), get_grain_size_threshold(), get_near_bed_velocity(), get_total_flux(), Bruun_data::h_b, Bruun_data::ind, Bruun_data::ind_len, Bruun_data::k, S_SECONDS_PER_DAY, sed_cell_nth_fraction(), sed_cell_size(), sed_cube_col_y(), sed_cube_n_y(), sed_cube_water_depth_grid(), sed_cube_y_res(), sed_cube_y_slope(), sed_cube_y_slope_grid(), sed_gravity_wave_new(), sed_sediment_env_n_types(), sed_sediment_property(), sed_type_grain_size_in_meters(), sed_type_settling_velocity(), sed_wave_is_bad(), sed_wave_new(), sed_wave_period(), Bruun_data::x_0, Bruun_data::x_b, and XSHORE_BRUUN_M.

Referenced by diffuse_cols().

Sed_cube* get_shelf_zones ( Sed_cube  p,
double  z_0,
gssize **  shelf_ind 
)

Find the indices for the inner and outer shelf

Parameters:
[in] p A Sed_cube
[in] z_0 Water depth limit of the inner shelf
[in,out] shelf_ind Array of arrays of indices that make up each zone
Returns:
An array of Sed_cube's. One for each zone.

Definition at line 522 of file xshore.c.

References eh_clamp, eh_free, eh_new, eh_new0, eh_require, get_zones(), and S_WATER_DEPTH_FUNC.

Referenced by xshore().

double get_time_step ( Sed_cube  p,
Sed_wave  deep_wave,
double  u_0,
Bruun_data data 
)

Find the time step necessary for stability within a zone

The equation we are looking to solve can be written as,

\[ {\partial \eta \over \partial t} = c v_0 {\partial \over \partial x } \left( U_{om}^3 \right) + c {\partial \over \partial x } \left( U_{om}^5 {\partial \eta \over \partial x}\right) \]

For the diffusive term to be stable, we require,

\[ { 2 \left| c U_{om}^5 \right| \Delta t \over \left( \Delta x \right)^2} \le 1 \]

The advective term can be rewritten as,

\[ c v_0 {\partial \over \partial x } \left( U_{om}^3 \right) = c v_0 3 U_{om}^2 { \partial U_{om} \over \partial \eta } { \partial \eta \over \partial x } \]

Thus, for stability we require

\[ {\Delta t\over \Delta x } \left| 3 c v_0 U_{om}^2 {\partial U_{om} \over \partial \eta} \right| \le 1 \]

Parameters:
p A Sed_cube
deep_wave The incoming deep-water wave
u_0 Cross-shore current
data Date that describe the Bruun zone
Returns:
The time step in days

Definition at line 774 of file xshore.c.

References eh_free, eh_require, get_breaking_wave_depth(), get_diffusion_constant(), Bruun_data::h_b, S_SECONDS_PER_DAY, sed_cube_y_res(), sed_gravity_wave_new(), sed_sediment_env_n_types(), sed_sediment_property(), sed_type_settling_velocity(), sed_wave_destroy(), and sed_wave_is_bad().

Referenced by xshore().

double get_total_flux ( double  z,
double  dz_dx,
Sed_wave  w,
double  u_0,
double  w_s,
double  breaker_depth,
double  h_b,
double  x,
double  x_b,
double  max_qx 
)

Definition at line 947 of file xshore.c.

References get_total_flux_outer_shelf().

Referenced by get_sediment_flux(), and update_bruun_zone_data().

double get_total_flux_bruun_zone ( double  x,
double  dz_dx,
double  x_0,
double  k_0 
)

Get the total flux at the Bruun zone

Parameters:
x Position from shore
dz_dx Bathymetric slope
x_0 Distance from shore to breaker zone
k_0 Diffusion coefficient at the edge of the Bruun zone

Definition at line 937 of file xshore.c.

References eh_require, and XSHORE_BRUUN_M.

double get_total_flux_outer_shelf ( double  z,
double  dz_dx,
Sed_wave  w,
double  u_0,
double  w_s,
double  h_b 
)

Get the total sediment flux due to both diffusion and advection

\[ q_s = {16\over 3\pi} {\rho\over\rho_s-\rho} { C_{fs}\epsilon_{ss}\over g} I_s {U_{om}^3\over W_s} \left( v_0 + {U_{om}^2 \over 5 W_s} {\partial h\over\partial x} \right) \]

where $ rho $ is density of water, $ \rho_s $ is density of quartz, $ g $ is acceleration due to gravity, $ I_s $ is an intermittancy constant, $ U_{om} $ is the near-bed wave orbital velocity, $ W_s $ is settling velocity, $ v_0 $ is cross-shore current velocity, $ h $ is bathymetric elevation, and $ x $ is position.

Parameters:
z Water depth in meters
dz_dx Bathymetric slope
w A Sed_wave
u_0 Cross-shore current velocity in meters per second
w_s Settling velocity in meters per second
h_b Depth of breaking waves in meters
Returns:
Sediment flux in m^2/s

Definition at line 917 of file xshore.c.

References get_constant(), and get_near_bed_velocity().

Referenced by get_total_flux().

gssize get_zone_indices ( Sed_cube  p,
double  z_0,
double  z_1,
gssize  i_0,
Sed_grid_func  get_val,
gssize *  ind 
)

Definition at line 688 of file xshore.c.

References eh_require, and sed_cube_n_y().

Referenced by get_zones().

Sed_cube* get_zones ( Sed_cube  p,
double *  z,
gssize  n_zones,
Sed_grid_func  f,
gssize **  ind 
)

Find indices of depth-defined zones of a Sed_cube

Note:
The length of the array z will be one greater than the number of zones, n_zones since it defines the lower and upper boundaries of each zone.
Parameters:
p A Sed_cube
z Zone depth-boundaries
n_zones The number of zones
f Function that get a parameter from a Sed_cube
ind Array of arrays for the columns in each zone
Returns:
A array of Sed_cube's. One for each zone.

Definition at line 644 of file xshore.c.

References eh_dbl_array_is_monotonic(), eh_free, eh_new, eh_new0, eh_require, get_zone_indices(), sed_cube_cols(), sed_cube_is_1d(), and sed_cube_n_y().

Referenced by get_bruun_zones(), and get_shelf_zones().

Sed_cell move_sediment ( Sed_cube  p,
double **  du,
double *  erosion_limit,
double  z_0,
double  dt,
Bruun_data data,
Sed_cell  lost,
Sed_cell  added,
Sed_cell  in_suspension 
)

Definition at line 1231 of file xshore.c.

References eh_dbl_array_fabs(), eh_dbl_array_sum(), eh_free, eh_new, eh_new0, eh_require, eh_watch_dbl, eh_watch_int, Bruun_data::h_b, Bruun_data::ind, Bruun_data::ind_len, S_FACIES_WAVE, sed_cell_add(), sed_cell_copy(), sed_cell_destroy(), sed_cell_mass(), sed_cell_new_env(), sed_cell_new_sized(), sed_cell_set_age(), sed_cell_set_facies(), sed_column_add_cell(), sed_column_mass(), sed_column_separate_top_amounts_fill(), sed_column_thickness(), sed_cube_age_in_years(), sed_cube_col(), sed_cube_n_y(), sed_cube_water_depth(), sed_cube_y_slope(), sed_sediment_env_n_types(), Bruun_data::x_0, and Bruun_data::x_b.

Referenced by diffuse_cols().

double near_bed_velocity_func ( double  water_depth,
Sed_wave  w,
double  breaker_depth 
)

The near-bed orbital velocity for shoaling waves

\[ u = { \gamma_b \over 2 } \sqrt{ g h_b }\left( {h\over h_b} \right)^{-.75} \]

where $ h $ is water depth, and $ \gamma_b $ is a breaker index that relates breaker depth ($ h_b $) to the height of breaking waves.

Parameters:
water_depth Water depth in meters
w A Sed_wave
breaker_depth Breaking wave depth in meters
return The near-bed orbital velocity in meters per second

Definition at line 1808 of file xshore.c.

References sed_gravity().

Referenced by near_bed_velocity_func_mean().

double near_bed_velocity_func_komar ( double  water_depth,
Sed_wave  w,
double  breaker_depth 
)

Calculate the near bed orbital velocity using Komar's formula

\[ u = { \omega H \over 2 \sinh \left( \kappa h \right) } \]

where $ u $ is orbital velocity, $ \omega $ is wave frequency, $ \kappa $ is wave number, and $ h $ is water depth.

Parameters:
water_depth Water depth in meters
w A Sed_wave
breaker_depth Breaking wave depth in meters
return The near-bed orbital velocity in meters per second

Definition at line 1831 of file xshore.c.

References sed_wave_frequency(), sed_wave_height(), and sed_wave_number().

Referenced by near_bed_velocity_func_mean().

double near_bed_velocity_func_mean ( double  water_depth,
Sed_wave  w,
double  breaker_depth 
)

Definition at line 1782 of file xshore.c.

References near_bed_velocity_func(), near_bed_velocity_func_komar(), and sed_wave_height().

Referenced by get_near_bed_velocity().

double near_bed_velocity_func_stokes ( double  water_depth,
Sed_wave  w,
double  breaker_depth 
)

Calculate the near bed orbital velocity for Stokes' waves

\[ u = {c\over 2} \left( {\kappa H \over 2 \sinh \left( \kappa h \right) }\right)^2 \]

where $ u $ is orbital velocity, $ c $ is phase velocity, $ \kappa $ is wave number, and $ h $ is water depth.

Parameters:
water_depth Water depth in meters
w A Sed_wave
breaker_depth Breaking wave depth in meters
return The near-bed orbital velocity in meters per second;

Definition at line 1852 of file xshore.c.

References sed_wave_height(), sed_wave_number(), and sed_wave_phase_velocity().

void update_bruun_zone_data ( Bruun_data data  ) 

Definition at line 80 of file xshore.c.

References Bruun_data::dz_dx, eh_require, get_breaking_wave_depth(), get_diffusion_constant(), get_grain_size_threshold(), get_near_bed_velocity(), get_total_flux(), Bruun_data::h_b, Bruun_data::ind, Bruun_data::ind_len, Bruun_data::k, Bruun_data::p, S_SECONDS_PER_DAY, sed_cube_col_y(), sed_cube_water_depth(), sed_cube_y_slope(), sed_gravity_wave_new(), sed_sediment_env_n_types(), sed_sediment_property(), sed_type_settling_velocity(), sed_wave_destroy(), sed_wave_period(), Bruun_data::u_0, Bruun_data::w, Bruun_data::x_0, Bruun_data::x_b, and XSHORE_BRUUN_M.

Referenced by diffuse_cols(), and xshore().

double wave_break_helper ( double  z,
gpointer  user_data 
)

Definition at line 503 of file xshore.c.

References sed_gravity_wave_new(), and sed_wave_height().

Referenced by get_breaking_wave_depth().

Xshore_info xshore ( Sed_cube  p,
Sed_cell  along_shore_cell,
double  xshore_current,
Sed_ocean_storm  storm 
)

Erode/deposit sediment over a 1D profile.

Parameters:
p A Sed_cube ( must be 1 dimensional )
along_shore_cell A cell of the type of sediment to be introduced to the profile by long-shore transport
xshore_current Magnitude of any offshore current (m/s)
storm The ocean storm responsible for the cross-shore transport of sediment
Returns:
A Sed_cell list of the amount of sediment lost through the model boundaries

Definition at line 196 of file xshore.c.

References Xshore_info::added, diffuse_cols(), Xshore_info::dt, eh_free, eh_new, eh_new0, eh_require, eh_return_val_if_fail, eh_watch_dbl, get_bruun_a(), get_bruun_profile(), get_bruun_y_0(), get_bruun_y_b(), get_closure_depth(), get_h_c(), get_max_erosion_profile(), get_shelf_zones(), get_time_step(), Bruun_data::ind, Bruun_data::ind_len, Bruun_data::k, Xshore_info::lost, Bruun_data::p, sed_cell_add(), sed_cell_destroy(), sed_cell_mass(), sed_cell_new(), sed_cell_resize(), sed_cube_col(), sed_cube_free(), sed_cube_is_1d(), sed_cube_mass(), sed_cube_n_y(), sed_cube_water_depth(), sed_cube_x_res(), sed_cube_y(), sed_cube_y_res(), sed_ocean_storm_duration(), sed_ocean_storm_wave_freq(), sed_ocean_storm_wave_height(), sed_ocean_storm_wave_number(), sed_sediment_env_n_types(), sed_wave_destroy(), sed_wave_is_bad(), sed_wave_new(), Bruun_data::u_0, update_bruun_zone_data(), Bruun_data::w, and XSHORE_BRUUN_M.

Referenced by run_xshore().


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