com1DFA.com1DFA.initializeParticles
- initializeParticles(cfg, releaseLine, dem, inputSimLines='', logName='', relThField='', thName='rel', timestep=0.0)[source]
Initialize DFA simulation
Create particles and fields dictionary according to config parameters release raster and dem
- Parameters
cfg (configparser) – configuration for DFA simulation
releaseLine (dict) – dictionary with info on release
dem (dict) – dictionary with dem information
inputSimLines (dictionary) – info on input files; real releaseline info required for iniStep
relThField (2D numpy array) – if the release thickness is not uniform, give here the releaseRaster
thName (str) – name rel, secondaryRel
timestep (float) – for log: timestep at which particles are released
- Returns
particles (dict) – particles dictionary at initial time step
fields (dict) – fields dictionary at initial time step