Surface#

class Surface(model, lidcontrol)[source]#

Methods and properties of the surface layer associated with an LID

Layer

Parameter

Setter Before Sim

Setter During Sim

Surface

thickness

enabled

disabled

Surface

void_fraction

enabled

disabled

Surface

roughness

enabled

enabled

Surface

slope

enabled

disabled

Surface

side_slope

enabled

disabled

Surface

alpha

enabled

disabled

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_surface = lid_control.surface

    print(lid_control_surface.roughness)
    lid_control_surface.roughness = 0.5
    print(lid_control_surface.roughness)
>>> 0.03
>>> 0.5

Methods

Attributes

alpha

Get lid control surface layer swale side slope (run/rise)

roughness

Get lid control surface layer surface Mannings n

side_slope

Get lid control surface layer swale side slope (run/rise)

slope

Get lid control surface layer land surface slope (fraction)

thickness

Get lid control surface layer thickness

void_fraction

Get lid control surface layer available fraction of storage volume