MassUnits#
module wntr.epanet.util
- class MassUnits[source]#
Bases:
Enum
Mass units used by EPANET, plus SI conversion factor.
Mass units are defined in the EPANET INP file when the QUALITY option is set to a chemical. This is parsed to obtain the mass part of the concentration units, and is used to set this enumerated type.
Enum Members
miligrams; EPANET as “mg/L” or “mg/min”
micrograms; EPANET as “ug/L” or “ug/min”
grams
kilograms; WNTR standard
Enum Member Attributes
The scaling factor to convert to kg.
- g = (3, 0.001)#
- kg = (4, 1.0)#
- mg = (1, 1e-06)#
- ug = (2, 1e-09)#