Use it from Python
Every result on this site comes from ictdesigntools, an open-source (MIT) Python library.
pip install ictdesigntools
The library is metric: lengths in millimetres, quantities in cubic metres and kilograms per a length in metres. Trade sizes are metric designators (103 is trade size 4) and bars are A615M sizes ("13" is #4, "10" is #3).
from ictdesigntools.pathways import ductbank
r = ductbank.calculate(
ductbank.DuctBankInput(
"pvc40",
((103, 103, 103), (103, 103, 103)),
rebar=ductbank.Rebar("perimeter", "13", tie="10"),
depth_mm=762,
)
)
round(r.width_mm, 1), round(r.height_mm, 1) # (647.7, 457.2)
len(r.bars) # 10
round(r.concrete_m3(30.48), 2) # 7.15
round(r.bar_kg(30.48), 1) # 303.0
r.tie_count(30.48) # 51
r.trench_depth_mm # 1219.2
r.passes # True
Use None in a row for an empty position. Cables go in cables= as
(("A1", (CableLine.of("cat6", 12),)),). Pass depth_requirement= a key of
ductbank.DEPTH_REQUIREMENTS ("nec-rmc", "nec-nonmetallic", "nec-roadway", "owner")
instead of min_depth_mm=. Input outside the limits raises FillError, whose message says
what to fix.
Result fields
| Field | Example | Notes |
|---|---|---|
duct_label |
'PVC Schedule 40' |
|
width_mm, height_mm |
647.7, 457.2 |
The envelope |
ducts |
[PlacedDuct, …] |
Position name, trade size, centre and diameters |
bars, bar, tie |
[PlacedBar, …], BarSize, BarSize |
|
widest_bar_gap_mm, spacing_ok |
190.5, True |
Against the largest spacing |
concrete_area_mm2 |
234563.5 |
Envelope less conduits |
concrete_m3(length_m), bar_kg(length_m) |
7.15, 303.0 |
For a length of duct bank |
tie_count(length_m), tie_kg(length_m) |
51 |
|
trench_depth_mm, depth_passes |
1219.2, True |
Depth is None, and passes, without a burial depth |
inp.required_depth_mm, inp.depth_source |
609.6, 'As entered' |
The least depth and where it comes from |
fills |
[] |
A DuctFill for each conduit that has cables |
spares |
['A1', …] |
Conduits with no cables |
passes |
True |
Every check together |
Web API
A web API with the same inputs and results is planned as an invite-only beta. Until then, a result's link is the way to share one.