com1DFA.com1DFAΒΆ
Main functions for python DFA kernel
Functions
Perform time loop for DFA simulation |
|
append fields and optionally particle dictionaries to list for export |
|
remove particles laying outside the polygon |
|
Run main com1DFA model |
|
preprocess information from ini and run all desired simulations, create outputs and reports |
|
compute next time step using an euler forward scheme |
|
Compute the travel angle associated to the particles |
|
create simulaton report dictionary |
|
export result fields to Outputs directory according to result parameters and time step that can be specified in the configuration file |
|
get release thickness for initialising particles - use max value |
|
Define available simulation types of requested types |
|
Initialize fields and update particles flow depth |
|
Initialize mass for entrainment |
|
Create rectangular mesh |
|
Initialize DFA simulation |
|
Initialize resistance matrix |
|
create simulaton report dictionary |
|
find particles within a polygon |
|
convert line to raster |
|
convert shape file polygon to raster |
|
Fetch input data |
|
get Simulation to run for a given release |
|
Prepare a dictionary with simulations that shall be run with varying parameters following the variation dict |
|
Read ascii files within a directory and return List of dictionaries |
|
Release secondary release area if trigered Initialize particles of the trigured secondary release area and add them to the simulation (particles dictionary) |
|
Add time and mass info to report |
|
Save each dictionary from a list to a pickle in outDir; works also for one dictionary instead of list |
|
set origin of DEM to 0,0 |
|
Add thickness values in configuration file according to thickness flags, ini settings or shapefile attributes and create one cfgFile for each releaseScenario |
|
set thickness in line dictionary of release, entrainment, second. |
|
track particles from initial area |
|
update saving time step list |
|
write mass balance info to file |