Soil#

class Soil(model, lidcontrol)[source]#

Methods and properties of the soil layer associated with an LID

Layer

Parameter

Setter Before Sim

Setter During Sim

Soil

thickness

enabled

disabled

Soil

porosity

enabled

disabled

Soil

field_capacity

enabled

disabled

Soil

wilting_point

enabled

disabled

Soil

k_saturated

enabled

disabled

Soil

k_slope

enabled

disabled

Soil

suction_head

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_soil = lid_control.soil

    print(lid_control_soil.porosity)
    lid_control_soil.porosity = 0.5
    print(lid_control_soil.porosity)

Methods

Attributes

field_capacity

Get lid control soil layer field capacity

k_saturated

Get lid control soil layer saturated hydraulic conductivity

k_slope

Get lid control soil layer slope of log(k) v.

porosity

Get lid control soil layer void volume / total volume

suction_head

Get lid control soil layer suction head at wetting front

thickness

Get lid control soil layer thickness

wilting_point

Get lid control soil layer wilting point