landlab.components.erosion_deposition.erosion_deposition¶
- class ErosionDeposition[source]¶
Bases:
_GeneralizedErosionDeposition
Erosion-Deposition model in the style of Davy and Lague (2009).
Erosion-Deposition model in the style of Davy and Lague (2009). It uses a mass balance approach across the total sediment mass both in the bed and in transport coupled with explicit representation of the sediment transport lengthscale (the “xi-q” model) to derive a range of erosional and depositional responses in river channels.
This implementation is close to the Davy & Lague scheme, with a few deviations:
A fraction of the eroded sediment is permitted to enter the wash load, and lost to the mass balance (
F_f
).Here an incision threshold
omega
is permitted, where it was not by Davy & Lague. It is implemented with an exponentially smoothed form to prevent discontinuities in the parameter space. See theStreamPowerSmoothThresholdEroder
for more documentation.This component uses an “effective” settling velocity,
v_s
, as one of its inputs. This parameter is simply equal to Davy & Lague’sd_star * V
dimensionless number.
Erosion of the bed follows a stream power formulation, i.e.:
E = K * q**m_sp * S**n_sp - omega
Note that the transition between transport-limited and detachment-limited behavior is controlled by the dimensionless ratio (
v_s / r
) wherer
is the runoff ratio (Q=Ar
).r
can be changed in the flow accumulation component but is not changed within ErosionDeposition. Because the runoff ratior
is not changed within the ErosionDeposition component,v_s
becomes the parameter that fundamentally controls response style. Very smallv_s
will lead to a detachment-limited response style, very largev_s
will lead to a transport-limited response style.v_s == 1
means equal contributions from transport and erosion, and a hybrid response as described by Davy & Lague.Unlike other some other fluvial erosion componets in Landlab, in this component (and
SPACE
) no erosion occurs in depressions or in areas with adverse slopes. There is no ability to pass a keyword argumenterode_flooded_nodes
.If depressions are handled (as indicated by the presence of the field
"flood_status_code"
at nodes), then deposition occurs throughout the depression and sediment is passed out of the depression. Where pits are encountered, then all sediment is deposited at that node only.Component written by C. Shobe, K. Barnhart, and G. Tucker.
References
Required Software Citation(s) Specific to this Component
Barnhart, K., Glade, R., Shobe, C., Tucker, G. (2019). Terrainbento 1.0: a Python package for multi-model analysis in long-term drainage basin evolution. Geoscientific Model Development 12(4), 1267–1297. https://dx.doi.org/10.5194/gmd-12-1267-2019
Additional References
Davy, P., Lague, D. (2009). Fluvial erosion/transport equation of landscape evolution models revisited Journal of Geophysical Research 114(F3), F03007. https://dx.doi.org/10.1029/2008jf001146
Examples
>>> import numpy as np >>> from landlab import RasterModelGrid >>> from landlab.components import FlowAccumulator >>> from landlab.components import DepressionFinderAndRouter >>> from landlab.components import ErosionDeposition >>> from landlab.components import FastscapeEroder >>> np.random.seed(seed=5000)
Define grid and initial topography:
5x5 grid with baselevel in the lower left corner
All other boundary nodes closed
Initial topography is plane tilted up to the upper right + noise
>>> nr = 5 >>> nc = 5 >>> dx = 10 >>> grid = RasterModelGrid((nr, nc), xy_spacing=10.0) >>> grid.at_node["topographic__elevation"] = ( ... grid.node_y / 10 ... + grid.node_x / 10 ... + np.random.rand(grid.number_of_nodes) / 10 ... ) >>> grid.set_closed_boundaries_at_grid_edges( ... bottom_is_closed=True, ... left_is_closed=True, ... right_is_closed=True, ... top_is_closed=True, ... ) >>> grid.set_watershed_boundary_condition_outlet_id( ... 0, grid.at_node["topographic__elevation"], -9999.0 ... ) >>> fsc_dt = 100.0 >>> ed_dt = 1.0
Check initial topography
>>> grid.at_node["topographic__elevation"].reshape(grid.shape) array([[0.02290479, 1.03606698, 2.0727653 , 3.01126678, 4.06077707], [1.08157495, 2.09812694, 3.00637448, 4.07999597, 5.00969486], [2.04008677, 3.06621577, 4.09655859, 5.04809001, 6.02641123], [3.05874171, 4.00585786, 5.0595697 , 6.04425233, 7.05334077], [4.05922478, 5.0409473 , 6.07035008, 7.0038935 , 8.01034357]])
Instantiate Fastscape eroder, flow router, and depression finder
>>> fr = FlowAccumulator(grid, flow_director="D8") >>> df = DepressionFinderAndRouter(grid) >>> fsc = FastscapeEroder(grid, K_sp=0.001, m_sp=0.5, n_sp=1)
Burn in an initial drainage network using the Fastscape eroder:
>>> for _ in range(100): ... fr.run_one_step() ... df.map_depressions() ... flooded = np.where(df.flood_status == 3)[0] ... fsc.run_one_step(dt=fsc_dt) ... grid.at_node["topographic__elevation"][0] -= 0.001 # uplift ...
Instantiate the E/D component:
>>> ed = ErosionDeposition( ... grid, K=0.00001, v_s=0.001, m_sp=0.5, n_sp=1.0, sp_crit=0 ... )
Now run the E/D component for 2000 short timesteps:
>>> for _ in range(2000): # E/D component loop ... fr.run_one_step() ... df.map_depressions() ... ed.run_one_step(dt=ed_dt) ... grid.at_node["topographic__elevation"][0] -= 2e-4 * ed_dt ...
Now we test to see if topography is right:
>>> np.around(grid.at_node["topographic__elevation"], decimals=3).reshape( ... grid.shape ... ) array([[-0.477, 1.036, 2.073, 3.011, 4.061], [ 1.082, -0.08 , -0.065, -0.054, 5.01 ], [ 2.04 , -0.065, -0.065, -0.053, 6.026], [ 3.059, -0.054, -0.053, -0.035, 7.053], [ 4.059, 5.041, 6.07 , 7.004, 8.01 ]])
Initialize the ErosionDeposition model.
- Parameters:
grid (ModelGrid) – Landlab ModelGrid object
K (str or array_like, optional) – Erodibility for substrate (units vary).
v_s (str or array_like, optional) – Effective settling velocity for chosen grain size metric [L/T].
m_sp (float, optional) – Discharge exponent (units vary)
n_sp (float, optional) – Slope exponent (units vary)
sp_crit (str or array_like, optional) – Critical stream power to erode substrate [E/(TL^2)]
F_f (float, optional) – Fraction of eroded material that turns into “fines” that do not contribute to (coarse) sediment load. Defaults to zero.
discharge_field (str or array_like, optional) – Discharge [L^2/T]. The default is to use the grid field ‘surface_water__discharge’, which is simply drainage area multiplied by the default rainfall rate (1 m/yr). To use custom spatially/temporally varying rainfall, use ‘water__unit_flux_in’ to specify water input to the FlowAccumulator.
solver ({"basic", "adaptive"}, optional) –
Solver to use. Options at present include:
”basic” (default): explicit forward-time extrapolation. Simple but will become unstable if time step is too large.
”adaptive”: adaptive time-step solver that estimates a stable step size based on the shortest time to “flattening” among all upstream-downstream node pairs.
- property K¶
Erodibility of substrate (units depend on m_sp).
- __init__(grid, K=0.002, v_s=1.0, m_sp=0.5, n_sp=1.0, sp_crit=0.0, F_f=0.0, discharge_field='surface_water__discharge', solver='basic', dt_min=0.001)[source]¶
Initialize the ErosionDeposition model.
- Parameters:
grid (ModelGrid) – Landlab ModelGrid object
K (str or array_like, optional) – Erodibility for substrate (units vary).
v_s (str or array_like, optional) – Effective settling velocity for chosen grain size metric [L/T].
m_sp (float, optional) – Discharge exponent (units vary)
n_sp (float, optional) – Slope exponent (units vary)
sp_crit (str or array_like, optional) – Critical stream power to erode substrate [E/(TL^2)]
F_f (float, optional) – Fraction of eroded material that turns into “fines” that do not contribute to (coarse) sediment load. Defaults to zero.
discharge_field (str or array_like, optional) – Discharge [L^2/T]. The default is to use the grid field ‘surface_water__discharge’, which is simply drainage area multiplied by the default rainfall rate (1 m/yr). To use custom spatially/temporally varying rainfall, use ‘water__unit_flux_in’ to specify water input to the FlowAccumulator.
solver ({"basic", "adaptive"}, optional) –
Solver to use. Options at present include:
”basic” (default): explicit forward-time extrapolation. Simple but will become unstable if time step is too large.
”adaptive”: adaptive time-step solver that estimates a stable step size based on the shortest time to “flattening” among all upstream-downstream node pairs.
- static __new__(cls, *args, **kwds)¶
- cite_as = '\n @article{barnhart2019terrain,\n author = {Barnhart, Katherine R and Glade, Rachel C and Shobe, Charles M\n and Tucker, Gregory E},\n title = {{Terrainbento 1.0: a Python package for multi-model analysis in\n long-term drainage basin evolution}},\n doi = {10.5194/gmd-12-1267-2019},\n pages = {1267---1297},\n number = {4},\n volume = {12},\n journal = {Geoscientific Model Development},\n year = {2019},\n }\n '¶
- property coords¶
Return the coordinates of nodes on grid attached to the component.
- property current_time¶
Current time.
Some components may keep track of the current time. In this case, the
current_time
attribute is incremented. Otherwise it is set to None.- Return type:
current_time
- definitions = (('flow__link_to_receiver_node', 'ID of link downstream of each node, which carries the discharge'), ('flow__receiver_node', 'Node array of receivers (node that receives flow from current node)'), ('flow__upstream_node_order', 'Node array containing downstream-to-upstream ordered list of node IDs'), ('sediment__influx', 'Sediment flux (volume per unit time of sediment entering each node)'), ('sediment__outflux', 'Sediment flux (volume per unit time of sediment leaving each node)'), ('surface_water__discharge', 'Volumetric discharge of surface water'), ('topographic__elevation', 'Land surface topographic elevation'), ('topographic__steepest_slope', 'The steepest *downhill* slope'))¶
- classmethod from_path(grid, path)¶
Create a component from an input file.
- property grid¶
Return the grid attached to the component.
- initialize_optional_output_fields()¶
Create fields for a component based on its optional field outputs, if declared in _optional_var_names.
This method will create new fields (without overwrite) for any fields output by the component as optional. New fields are initialized to zero. New fields are created as arrays of floats, unless the component also contains the specifying property _var_type.
- initialize_output_fields(values_per_element=None)¶
Create fields for a component based on its input and output var names.
This method will create new fields (without overwrite) for any fields output by, but not supplied to, the component. New fields are initialized to zero. Ignores optional fields. New fields are created as arrays of floats, unless the component specifies the variable type.
- Parameters:
values_per_element (int (optional)) – On occasion, it is necessary to create a field that is of size (n_grid_elements, values_per_element) instead of the default size (n_grid_elements,). Use this keyword argument to acomplish this task.
- input_var_names = ('flow__link_to_receiver_node', 'flow__receiver_node', 'flow__upstream_node_order', 'surface_water__discharge', 'topographic__elevation', 'topographic__steepest_slope')¶
- property m_sp¶
Discharge exponent (units vary).
- property n_sp¶
Slope exponent (units vary).
- name = 'ErosionDeposition'¶
- optional_var_names = ()¶
- output_var_names = ('sediment__influx', 'sediment__outflux', 'topographic__elevation')¶
- run_one_step_basic(dt=1.0)[source]¶
Calculate change in rock and alluvium thickness for a time period ‘dt’.
- Parameters:
dt (float) – Model timestep [T]
- run_with_adaptive_time_step_solver(dt=1.0)[source]¶
CHILD-like solver that adjusts time steps to prevent slope flattening.
- Parameters:
dt (float) – Model timestep [T]
- property sediment_influx¶
Volumetric sediment influx to each node.
- property shape¶
Return the grid shape attached to the component, if defined.
- property sp_crit¶
Critical stream power to erode substrate [E/(TL^2)]
- unit_agnostic = True¶
- units = (('flow__link_to_receiver_node', '-'), ('flow__receiver_node', '-'), ('flow__upstream_node_order', '-'), ('sediment__influx', 'm3/s'), ('sediment__outflux', 'm3/s'), ('surface_water__discharge', 'm**2/s'), ('topographic__elevation', 'm'), ('topographic__steepest_slope', '-'))¶
- property v_s¶
Effective settling velocity for chosen grain size metric [L/T].
- classmethod var_definition(name)¶
Get a description of a particular field.
- Parameters:
name (str) – A field name.
- Returns:
A description of each field.
- Return type:
tuple of (name, *description*)
- classmethod var_help(name)¶
Print a help message for a particular field.
- Parameters:
name (str) – A field name.
- classmethod var_loc(name)¶
Location where a particular variable is defined.
- var_mapping = (('flow__link_to_receiver_node', 'node'), ('flow__receiver_node', 'node'), ('flow__upstream_node_order', 'node'), ('sediment__influx', 'node'), ('sediment__outflux', 'node'), ('surface_water__discharge', 'node'), ('topographic__elevation', 'node'), ('topographic__steepest_slope', 'node'))¶