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

mg

miligrams; EPANET as “mg/L” or “mg/min”

ug

micrograms; EPANET as “ug/L” or “ug/min”

g

grams

kg

kilograms; WNTR standard

Enum Member Attributes

factor

The scaling factor to convert to kg.


property factor#

The scaling factor to convert to kg.

Type:

float

g = (3, 0.001)#
kg = (4, 1.0)#
mg = (1, 1e-06)#
ug = (2, 1e-09)#