com1DFA.particleInitialisation.resetMassPerParticle

resetMassPerParticle(cfg, particles, dem, relRaster, relThField)[source]

recompute mass of particles according to their location with respect to relRaster

Parameters
  • cfg (configparser object) – configuration settings

  • particles (dict) – dictionary with particles properties

  • dem (dict) – dictionary with info on dem

  • relRaster (np.array) – raster of release thickness values

Returns

particles – updated particles dictionary with new mass

Return type

dict