com4FlowPy.flowClass.Cell
- class Cell(rowindex, colindex, dem_ng, cellsize, flux, z_delta, parent, alpha, exp, flux_threshold, max_z_delta, startcell, FSI=None, forestParams=None)[source]
Bases:
objectThis is the com4FlowPy ‘Cell ‘ class This class handles the calculation at the ‘cell level’ (vgl. D’Amboise et al., 2022)
- __init__(rowindex, colindex, dem_ng, cellsize, flux, z_delta, parent, alpha, exp, flux_threshold, max_z_delta, startcell, FSI=None, forestParams=None)[source]
constructor for the Cell class the constructor function is called every time a new instance of type ‘Cell’ is initialized. NOTE/TODO: parent can be of different data types still, maybe split into two separate variables
bool –> isStart
Cell –> startCell
Methods
__init__(rowindex, colindex, dem_ng, ...[, ...])constructor for the Cell class the constructor function is called every time a new instance of type 'Cell' is initialized. NOTE/TODO: parent can be of different data types still, maybe split into two separate variables * bool --> isStart * Cell --> startCell.
add_os(flux)add_parent(parent)calc_distribution()function calculates the travel-angle along the shortest flow-path from the start-cell to the current cell the trave-angle along the shortest flow-path is equivalent to the maximum travel angle along all paths from the startcell to this cell.
calc_persistence()calc_sl_travelangle()calc_tanbeta()function calculates zDelta to the eligible neighbours NOTE: forestFriction related mechanics are implemented here!
linear decrease of forest effect with regard to alpha increase and kinetic energy height This is the detrainment routine for forest.
- calc_fp_travelangle()[source]
function calculates the travel-angle along the shortest flow-path from the start-cell to the current cell the trave-angle along the shortest flow-path is equivalent to the maximum travel angle along all paths from the startcell to this cell.
- calc_z_delta()[source]
function calculates zDelta to the eligible neighbours NOTE: forestFriction related mechanics are implemented here!
- forest_detrainment()[source]
linear decrease of forest effect with regard to alpha increase and kinetic energy height This is the detrainment routine for forest. It should reduce the routing flux of the avalanche. NOTE: This is more or less copied+pasted from ‘foreste_detrainment’ branch in avaframe/FlowPy repo TODO: Definitely re-check/test this function!!