com1DFA.com1DFAΒΆ
Main functions for python DFA kernel
Functions
Perform time loop for DFA simulation |
|
create analysis plots during simulation run |
|
append fields and optionally particle dictionaries to list for export |
|
Run main model |
|
compute next time step using an euler forward scheme |
|
compute next time step using a Leap Frog scheme |
|
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 |
|
Define available simulation types of requested types |
|
Initialize mass for entrainment |
|
Create rectangular mesh |
|
Initialize DFA simulation |
|
Initialize resistance matrix |
|
create simulaton report dictionary |
|
Create particles in given cell |
|
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 pickles within a directory and return List of dicionaries read from pickle |
|
Release secondary release area if trigered |
|
Add time and mass info to report |
|
Save each particle dictionary from a list to a csv file; works also for one dictionary instead of list |
|
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 |
|
write mass balance info to file |