COLUMN, RAFTER = "HEA300", "IPE400"
SPAN, EAVES, PITCH, BAY = 20.0, 6.0, math.radians(10.0), 6.0 # m, m, rad, m
# …
column = Section.from_name(COLUMN, steel)
rafter = Section.from_name(RAFTER, steel)
# …
column_left = Member(base_left, eaves_left, column, classification="Column")
rafter_left = Member(eaves_left, ridge, rafter, classification="Rafter")
# …
DistributedLoad(member, snow, magnitude=SNOW * BAY * math.cos(PITCH)) # per m of rafter
# …
model.add_unity_check(check)
model.save_to_json("portal.json", indent=2)
FERS 0.2.34 / fers_calculations 0.2.108
$ pip install FERS
$ python portal.py
wrote portal.json
$ fers validate portal.json
valid: 5 nodes, 4 members, 0 plates, 3 load cases, 3 combinations
$ fers check portal.json
ec3: Green, utilization 0.744, governing member 4 (Column, HEA300) in "ULS 1.35G+1.5S+EHF" (combination 2)
$ fers solve portal.json --out results.json
solved: 3 load cases, 3 combinations, 1 unity check in 0.0 s -> results.json (113.6 kB)
$ fers report results.json --out report.html
wrote report.html (3.6 kB)
Claude Code with the fers skillRecorded 2026-10-19 · FERS 0.1.100 · condensed
Check a 20 m steel portal frame to Eurocode 3 and verify the moments by hand.
span 20 m · eaves 6 m · roof 10° · frames at 6 m
HEA300 columns · IPE400 rafters · S355 · pinned bases
roofing 0.3 kN/m² · snow 0.8 kN/m²
- ● Bash(pip install FERS)⎿ Successfully installed FERS-0.1.100 fers_calculations-0.2.71
- …● Write(portal.py)⎿ 91 lines
- …● Bash(python hand_check.py)⎿ M eaves hand 265.0 kNm FERS 264.3 kNm -0.26 %
- ● Bash(fers check portal.json)⎿ ec3: Green, utilization 0.744, governing 4 in combination 2
Passes EN 1993-1-1: UC 0.74, right column, §6.3.3.
Eaves moment within 0.3 % of the closed form.
Hand-calc trace: report.html