ictdesigntools.pathways.conduit¶
Conduit fill calculations (NEC Chapter 9, Tables 1 and 4).
Cables are treated as circles of their outside diameter. Conduit internal areas are the
published NEC Table 4 values (in²), converted to mm² when this module loads. Sizes are keyed
by metric designator (see sizes).
SubductSpec
dataclass
¶
SubductSpec(
type_slug: str,
kind: str,
label: str,
inner_mm: float,
outer_mm: float,
limit_pct: float = DEFAULT_SUBDUCT_LIMIT,
name: str = "",
)
A subduct, modelled as a round tube of the given inside and outside diameters.
Mesh fabric ducts (for example MaxCell) are flat when empty and open as cables are pulled
in, so the inside diameter is the size the loaded duct is expected to open to; their
wall is very thin, so the outside diameter defaults to the inside diameter. Make one with
SubductSpec.preset or SubductSpec.custom.
ConduitFillResult
dataclass
¶
ConduitFillResult(
conduit_slug: str,
conduit_label: str,
reference: str,
size: int,
conduit_area_mm2: float,
lines: list[CableLine],
subducts: list[Compartment],
subduct_specs: list[SubductSpec],
all_lines: list[CableLine],
total_count: int,
total_area_mm2: float,
occupied_area_mm2: float,
fill_pct: float,
limit_pct: float,
outer_passes: bool,
passes: bool,
max_area_mm2: float,
remaining_area_mm2: float,
min_size: int | None,
pull: PullSummary | None = None,
)
fill_limit ¶
Maximum fill fraction per NEC Chapter 9, Table 1.
calculate ¶
calculate(
conduit_slug: str,
size: int,
lines: Sequence[CableLine],
subducts: Sequence[Subduct] = (),
run: Run | None = None,
) -> ConduitFillResult
Fill of a conduit of size (metric designator) with loose cables or subducts.