gnome.ops.density
Attributes
Functions
|
Initializes the density of the last num_rel elements of a spill container (sc), |
|
Recalculates the density of the elements in a spill container. This is necessary |
Module Contents
- gnome.ops.density.logger
- gnome.ops.density.init_density(sc, num_released, water=None, substance=None, aggregate=True)
Initializes the density of the last num_rel elements of a spill container (sc), taking into account environmental conditions.
- Parameters:
sc – spill container
num_released (int) – number of elements to be initialized
water – Water object to use. If None, uses default values
substance – gnome.spills.substance.Substance or subclass thereof
aggregate – Flag for whether to trigger mass balance updates in spill container
- gnome.ops.density.recalc_density(sc, water=None, aggregate=True)
Recalculates the density of the elements in a spill container. This is necessary if ‘mass_components’ have changed.
- Parameters:
sc – spill container
water – Water object to use. If None, uses default
aggregate – Flag for whether to trigger mass balance updates in spill container