Examples Classes

CircleSection(r[, label])

circle cross section

EggSection(r[, label])

egg shaped cross section

CircleSection

class shape_generator.example_cross_sections.CircleSection(r, label=None)[source]

circle cross section

circle

Circle Section (DWA-A 110, 2006)

__init__(r, label=None)[source]

init circle cross section

Parameters
  • r (float) – radius of the circle

  • label (str) – name/label/number of the cross section; dafault = “DN <diameter>”

  • description (str) – optional description of the cross section

EggSection

class shape_generator.example_cross_sections.EggSection(r, label=None)[source]

egg shaped cross section

egg

Egg Section (DWA-A 110, 2006)

__init__(r, label=None)[source]

init egg shaped cross section

Parameters
  • r (float) – radius of the egg

  • label (str) – name/label/number of the cross section; dafault = “Ei <width>/<height>”

  • description (str) – optional description of the cross section

SWMM Standard Shapes

shape_generator.example_cross_sections.swmm_std_cross_sections(shape, height=1)[source]

get a SWMM pre-defined cross-section

Parameters
  • shape (str) – name of the cross-section. one of: - ARCH - CIRCULAR - EGG - HORSESHOE - GOTHIC - CATENARY - SEMIELLIPTICAL - BASKETHANDLE - SEMICIRCULAR - HORIZ_ELLIPSE - VERT_ELLIPSE

  • height (float) – height of the cross-section

Return type

CrossSection