Drain#

class Drain(model, lidcontrol)[source]#

Methods and properties of the under drain layer associated with an LID

Layer

Parameter

Setter Before Sim

Setter During Sim

Drain

coefficient

enabled

enabled

Drain

exponent

enabled

enabled

Drain

offset

enabled

enabled

Drain

delay

enabled

enabled

Drain

open_head

enabled

enabled

Drain

close_head

enabled

enabled

from pyswmm import Simulation, LidControls

with Simulation('lid_model.inp') as sim:
    lid_control = LidControls(sim)['LID_C1']

    # Handles to get/set params for each layer
    lid_control_drain = lid_control.drain

    print(lid_control_drain.coefficient)
    lid_control_drain.coefficient = 0.05
    print(lid_control_drain.coefficient)

Methods

Attributes

close_head

Get lid control drain layer head when drain closes (ft)

coefficient

Get lid control drain layer underdrain flow coefficient

delay

Get lid control drain layer rain barrel drain delay time (sec)

exponent

Get lid control drain layer underdrain head exponent

offset

Get lid control drain layer offset height of underdrain

open_head

Get lid control drain layer head when drain opens (ft)