Source#
module wntr.network.elements
- class Source[source]#
Bases:
object
Water quality source class.
Constructor
This class is intended to be instantiated through the
add_source
method.- Parameters:
name (string) – Name of the source.
node_name (string) – Injection node.
source_type (string) – Source type, options = CONCEN, MASS, FLOWPACED, or SETPOINT.
strength (float) – Source strength in Mass/Time for MASS and Mass/Volume for CONCEN, FLOWPACED, or SETPOINT.
pattern (Pattern, optional) – If None, then the value will be constant. Otherwise, the Pattern will be used (default = None).
Attributes
the name for this source
the node where this source is located
the source type for this source
timeseries of the source values (read only)
- property strength_timeseries#
timeseries of the source values (read only)
- Type: