dycove.sim.simulation_data.HydrodynamicStats
- class dycove.sim.simulation_data.HydrodynamicStats(n_hydro_substeps: int, n_cells: int, fl_dr: float = 0.15, h_min: ndarray | None = None, h_max: ndarray | None = None, v_maxs: ndarray | None = None, flood_counts: ndarray | None = None, bedlevel_0: ndarray | None = None, bedlevel_f: ndarray | None = None)[source]
Stores hydrodynamic model outputs used to compute vegetation responses.
Tracks water depths, velocities, and flood statistics across the computational grid.
- n_hydro_substeps
Number of hydrodynamic steps per ecological step. Passed from
SimulationTimeStateinstance.- Type:
int
- n_cells
Number of grid cell areas (length of model quantity arrays)
- Type:
int
- fl_dr
Wet/dry threshold [m]; passed from constants.py).
- Type:
float
- h_min
Minimum water depth observed in each cell during the hydrodynamic interval.
- Type:
numpy.ndarray
- h_max
Maximum water depth observed in each cell during the hydrodynamic interval.
- Type:
numpy.ndarray
- v_maxs
2-D array of max velocities observed during the hydrodynamic interval (
n_hydro_substeps,n_cells).- Type:
numpy.ndarray
- flood_counts
Number of timesteps each cell was flooded during the hydrodynamic interval.
- Type:
numpy.ndarray
- bedlevel_0
Bed elevations per cell before the hydrodynamic interval.
- Type:
numpy.ndarray
- bedlevel_f
Bed elevations per cell after the hydrodynamic interval.
- Type:
numpy.ndarray
- Properties
- ----------
- bedlevel_diff
Change in bed elevation (
bedlevel_f - bedlevel_0).- Type:
numpy.ndarray
- update(i, vel, depth)[source]
Update minimum/maximum values and flood counts using new hydrodynamic data.
- __init__(n_hydro_substeps: int, n_cells: int, fl_dr: float = 0.15, h_min: ndarray | None = None, h_max: ndarray | None = None, v_maxs: ndarray | None = None, flood_counts: ndarray | None = None, bedlevel_0: ndarray | None = None, bedlevel_f: ndarray | None = None) None
Methods
__init__(n_hydro_substeps, n_cells[, fl_dr, ...])dry_frac()reset()update(i, vel, depth)Attributes