#include <stdio.h>
#include <math.h>
#include <string.h>
#include <utils/utils.h>
#include <sed/sed_sedflux.h>
#include <inflow.h>
#include "my_processes.h"
#include "sakura.h"
Go to the source code of this file.
#define DAY_IN_SECONDS (86400.0) |
Definition at line 75 of file run_turbidity_current.c.
#define DEFAULT_OUT_TIME (30) |
Definition at line 78 of file run_turbidity_current.c.
#define DEFAULT_PHEBOTTOM (0.2) |
Definition at line 79 of file run_turbidity_current.c.
#define DEFAULT_SUPPLY_TIME (1000) |
Definition at line 77 of file run_turbidity_current.c.
#define DENSITY_OF_SEA_WATER 1028. |
Definition at line 47 of file run_turbidity_current.c.
#define DENSITY_OF_SEDIMENT_GRAINS 2650. |
Definition at line 50 of file run_turbidity_current.c.
#define DENSITY_OF_WATER 1000. |
Definition at line 44 of file run_turbidity_current.c.
#define EH_LOG_DOMAIN SED_TURBIDITY_CURRENT_PROC_NAME |
Definition at line 22 of file run_turbidity_current.c.
#define FLOW_CONCENTRATION 0.08 |
Definition at line 54 of file run_turbidity_current.c.
#define FLOW_DURATION 7200. |
Definition at line 57 of file run_turbidity_current.c.
#define S_KEY_C_D "drag coefficient" |
#define S_KEY_CHANNEL_LENGTH "length of channel" |
#define S_KEY_CHANNEL_WIDTH "width of channel" |
#define S_KEY_E_A "entrainment constant, ea" |
#define S_KEY_E_B "entrainment constant, eb" |
#define S_KEY_SUA "sua" |
#define S_KEY_SUB "sub" |
#define S_KEY_TAN_PHI "internal friction angle" |
#define SED_TURBIDITY_CURRENT_PROC_NAME "turbidity current" |
Definition at line 21 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_ALGORITHM_INFLOW (0) |
Definition at line 72 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_ALGORITHM_SAKURA (1) |
Definition at line 73 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_CONCENTRATION_RANGE (0.04) |
Definition at line 67 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_GRAIN_DENSITY (2650.0) |
Definition at line 68 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_GRID_SPACING (100.0) |
Definition at line 60 of file run_turbidity_current.c.
Referenced by run_plume_hyper_inflow(), run_plume_hyper_sakura(), run_turbidity_inflow(), and run_turbidity_sakura().
#define TURBIDITY_CURRENT_INITIAL_CONCENTRATION (0.01) |
Definition at line 66 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_INITIAL_FLUID_DENSITY (DENSITY_OF_SEA_WATER) |
Definition at line 71 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_INITIAL_HEIGHT (6.0) |
Definition at line 65 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_INITIAL_VELOCITY (1.0) |
Definition at line 62 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_INITIAL_WIDTH (1000.0) |
Definition at line 64 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_NO_DEPOSIT_LENGTH (0.) |
Definition at line 70 of file run_turbidity_current.c.
Referenced by run_plume_hyper_inflow(), and run_plume_hyper_sakura().
#define TURBIDITY_CURRENT_SPREADING_ANGLE (14.0) |
Definition at line 69 of file run_turbidity_current.c.
#define TURBIDITY_CURRENT_TIME_INTERVAL (3.0) |
#define TURBIDITY_CURRENT_VELOCITY_RANGE (3.0) |
Definition at line 63 of file run_turbidity_current.c.
#define VISCOSITY_OF_WATER 1.3e-6 |
Definition at line 41 of file run_turbidity_current.c.
#define WITH_SAKURA |
Definition at line 33 of file run_turbidity_current.c.
gboolean destroy_inflow | ( | Sed_process | p | ) |
Definition at line 742 of file run_turbidity_current.c.
References eh_free, and sed_process_user_data().
gboolean dump_turbidity_current_data | ( | gpointer | ptr, | |
FILE * | fp | |||
) |
gboolean init_inflow | ( | Sed_process | p, | |
Eh_symbol_table | tab, | |||
GError ** | error | |||
) |
Definition at line 682 of file run_turbidity_current.c.
References Inflow_t::C_d, Inflow_t::channel_length, Inflow_t::channel_width, Inflow_t::E_a, Inflow_t::E_b, eh_check_to_s(), eh_return_val_if_fail, eh_set_error_strv(), eh_symbol_table_dbl_value(), eh_symbol_table_require_labels(), Inflow_t::mu, Inflow_t::rhoSW, S_KEY_C_D, S_KEY_CHANNEL_LENGTH, S_KEY_CHANNEL_WIDTH, S_KEY_E_A, S_KEY_E_B, S_KEY_SUA, S_KEY_SUB, S_KEY_TAN_PHI, S_RADS_PER_DEGREE, sed_process_new_user_data, SEDFLUX_ERROR, SEDFLUX_ERROR_BAD_PARAM, Inflow_t::sua, Inflow_t::sub, and Inflow_t::tan_phi.
gboolean load_turbidity_current_data | ( | gpointer | ptr, | |
FILE * | fp | |||
) |
Sed_process_info run_plume_hyper_inflow | ( | Sed_process | proc, | |
Sed_cube | p | |||
) |
Definition at line 215 of file run_turbidity_current.c.
References Inflow_t::C_d, Inflow_const_st::c_drag, Inflow_const_st::channel_len, Inflow_t::channel_length, Inflow_t::channel_width, Inflow_const_st::channel_width, Inflow_const_st::dep_start, Inflow_t::E_a, Inflow_const_st::e_a, Inflow_t::E_b, Inflow_const_st::e_b, eh_require, Sed_process_info::mass_added, Inflow_t::mu, Inflow_const_st::mu_water, PLUME_HYDRO_DATA, Inflow_const_st::rho_river_water, Inflow_const_st::rho_sea_water, Inflow_t::rhoSW, sed_cube_is_in_domain_id(), sed_cube_river_mouth_1d(), SED_EMPTY_INFO, sed_hydro_destroy(), sed_hydro_suspended_load(), sed_inflow(), sed_mode_is_2d(), sed_process_use(), sed_process_user_data(), sed_rho_fresh_water(), sed_river_hydro(), Inflow_t::sua, Inflow_const_st::sua, Inflow_t::sub, Inflow_const_st::sub, Inflow_t::tan_phi, Inflow_const_st::tan_phi, TURBIDITY_CURRENT_GRID_SPACING, and TURBIDITY_CURRENT_NO_DEPOSIT_LENGTH.
Sed_process_info run_plume_hyper_sakura | ( | Sed_process | proc, | |
Sed_cube | p | |||
) |
Definition at line 266 of file run_turbidity_current.c.
References Inflow_t::C_d, Sakura_const_st::c_drag, Sakura_const_st::channel_len, Inflow_t::channel_length, Inflow_t::channel_width, Sakura_const_st::channel_width, Sakura_const_st::dep_start, Sakura_const_st::dt, Inflow_t::E_a, Sakura_const_st::e_a, Inflow_t::E_b, Sakura_const_st::e_b, eh_require, Sed_process_info::mass_added, Inflow_t::mu, Sakura_const_st::mu_water, PLUME_HYDRO_DATA, Sakura_const_st::rho_river_water, Sakura_const_st::rho_sea_water, Inflow_t::rhoSW, sed_cube_is_in_domain_id(), sed_cube_river_mouth_1d(), SED_EMPTY_INFO, sed_hydro_destroy(), sed_hydro_suspended_load(), sed_mode_is_2d(), sed_process_use(), sed_process_user_data(), sed_rho_fresh_water(), sed_river_hydro(), sed_sakura(), Inflow_t::sua, Sakura_const_st::sua, Inflow_t::sub, Sakura_const_st::sub, Inflow_t::tan_phi, Sakura_const_st::tan_phi, TURBIDITY_CURRENT_GRID_SPACING, TURBIDITY_CURRENT_NO_DEPOSIT_LENGTH, and TURBIDITY_CURRENT_TIME_INTERVAL.
Sed_process_info run_turbidity_inflow | ( | Sed_process | proc, | |
Sed_cube | p | |||
) |
Definition at line 116 of file run_turbidity_current.c.
References Inflow_t::C_d, Inflow_const_st::c_drag, Inflow_const_st::channel_len, Inflow_t::channel_length, Inflow_t::channel_width, Inflow_const_st::channel_width, Inflow_t::E_a, Inflow_const_st::e_a, Inflow_t::E_b, Inflow_const_st::e_b, eh_require, FAILURE_PROFILE_DATA, inflow_flood_from_cell(), Inflow_t::mu, Inflow_const_st::mu_water, Inflow_const_st::rho_river_water, Inflow_const_st::rho_sea_water, Inflow_t::rhoSW, sed_cell_destroy(), sed_cube_col_y(), sed_cube_n_y(), sed_cube_to_cell(), sed_cube_x_res(), sed_cube_y_res(), SED_EMPTY_INFO, sed_inflow(), sed_mode_is_3d(), sed_process_use(), sed_process_user_data(), Inflow_t::sua, Inflow_const_st::sua, Inflow_t::sub, Inflow_const_st::sub, Inflow_t::tan_phi, Inflow_const_st::tan_phi, and TURBIDITY_CURRENT_GRID_SPACING.
Sed_process_info run_turbidity_sakura | ( | Sed_process | proc, | |
Sed_cube | p | |||
) |
Definition at line 166 of file run_turbidity_current.c.
References Inflow_t::C_d, Sakura_const_st::c_drag, Sakura_const_st::channel_len, Inflow_t::channel_length, Inflow_t::channel_width, Sakura_const_st::channel_width, Inflow_t::E_a, Sakura_const_st::e_a, Inflow_t::E_b, Sakura_const_st::e_b, FAILURE_PROFILE_DATA, Inflow_t::mu, Sakura_const_st::mu_water, Sakura_const_st::rho_river_water, Sakura_const_st::rho_sea_water, Inflow_t::rhoSW, sakura_flood_from_cell(), sed_cell_destroy(), sed_cube_col_y(), sed_cube_n_y(), sed_cube_to_cell(), sed_cube_x_res(), sed_cube_y_res(), SED_EMPTY_INFO, sed_mode_is_3d(), sed_process_use(), sed_process_user_data(), sed_sakura(), Inflow_t::sua, Sakura_const_st::sua, Inflow_t::sub, Sakura_const_st::sub, Inflow_t::tan_phi, Sakura_const_st::tan_phi, and TURBIDITY_CURRENT_GRID_SPACING.