Skip to content
Edit this page

ictdesigntools.pathways.ductbank

Concrete-encased duct bank layout.

A duct bank is a grid of conduits (rows from the top, columns from the left) set in a concrete envelope, optionally reinforced. Each column is as wide as its largest conduit and each row as tall as its largest, with spacing_mm of concrete between conduit walls and cover_mm from the outer conduits to the envelope's faces.

Dimensions are in mm, quantities in m, m³ and kg. Conduit sizes are metric designators (see sizes) and bar sizes are ASTM A615M soft-metric designations ("13" is #4). Conduit dimensions and bar sizes are published in inches and are converted when this module loads.

DuctBankInput dataclass

DuctBankInput(
    duct: str,
    rows: tuple[tuple[int | None, ...], ...],
    spacing_mm: float = DEFAULT_SPACING_MM,
    cover_mm: float = DEFAULT_COVER_MM,
    rebar: Rebar = NO_REBAR,
    depth_mm: float | None = None,
    min_depth_mm: float = DEFAULT_MIN_DEPTH_MM,
    cables: tuple[
        tuple[str, tuple[CableLine, ...]], ...
    ] = (),
    depth_requirement: str | None = None,
)

depth_source property

depth_source: str

Where the required depth comes from, for the result and exports.

PlacedDuct dataclass

PlacedDuct(
    row: int,
    column: int,
    size: int,
    cx_mm: float,
    cy_mm: float,
    outer_mm: float,
    inner_mm: float,
)

name property

name: str

Position as rows A, B, … from the top and columns 1, 2, … from the left.

DuctFill dataclass

DuctFill(duct: PlacedDuct, lines: tuple[CableLine, ...])

Cables in one conduit of the bank, against NEC Chapter 9 Table 1.

DuctBankResult dataclass

DuctBankResult(
    inp: DuctBankInput,
    duct_label: str,
    ducts: list[PlacedDuct],
    column_widths_mm: list[float],
    row_heights_mm: list[float],
    width_mm: float,
    height_mm: float,
    bars: list[PlacedBar] = list(),
    bar: BarSize | None = None,
    clashes: list[str] = list(),
    widest_bar_gap_mm: float = 0.0,
    fills: list[DuctFill] = list(),
)

concrete_area_mm2 property

concrete_area_mm2: float

Net concrete cross-section (envelope less the conduits).

tie_length_mm property

tie_length_mm: float

Length of one closed tie: around the bars, plus hooks.

counts property

counts: list[tuple[int, int]]

Conduits of each size (metric designator), largest first.

checked property

checked: bool

True when there is anything to pass or fail: bars, cables or a burial depth.

spares property

spares: list[str]

Conduits with no cables, by position name (A1, A2, ...).

trench_depth_mm property

trench_depth_mm: float | None

Grade to the bottom of the envelope.

bar_length_m

bar_length_m(length_m: float) -> float

Longitudinal bar in length_m of duct bank (laps not included).

Source code in src/ictdesigntools/pathways/ductbank.py
def bar_length_m(self, length_m: float) -> float:
    """Longitudinal bar in ``length_m`` of duct bank (laps not included)."""
    return len(self.bars) * length_m

tie_count

tie_count(length_m: float) -> int

Ties in length_m of duct bank, one at each end.

Source code in src/ictdesigntools/pathways/ductbank.py
def tie_count(self, length_m: float) -> int:
    """Ties in ``length_m`` of duct bank, one at each end."""
    if not self.tie:
        return 0
    return math.floor(length_m * 1000 / self.inp.rebar.tie_spacing_mm + 1e-9) + 1

excavation_m3

excavation_m3(length_m: float) -> float

For a trench as wide as the envelope with vertical sides.

Source code in src/ictdesigntools/pathways/ductbank.py
def excavation_m3(self, length_m: float) -> float:
    """For a trench as wide as the envelope with vertical sides."""
    return (self.trench_depth_mm or 0) * self.width_mm / 1e6 * length_m

backfill_m3

backfill_m3(length_m: float) -> float

Above the envelope.

Source code in src/ictdesigntools/pathways/ductbank.py
def backfill_m3(self, length_m: float) -> float:
    """Above the envelope."""
    return (self.inp.depth_mm or 0) * self.width_mm / 1e6 * length_m

position_name

position_name(row: int, column: int) -> str

Rows A, B, … from the top; columns 1, 2, … from the left.

Source code in src/ictdesigntools/pathways/ductbank.py
def position_name(row: int, column: int) -> str:
    """Rows A, B, … from the top; columns 1, 2, … from the left."""
    return f"{chr(ord('A') + row)}{column + 1}"