The library
Abacus: a week of frames, grids and honest labels
Six days on my structural engineering toolkit, from editing frames on a phone to tracing a steel section back to the Blue Book and checking grid conversions against PROJ.
Abacus is a toolkit of structural engineering tools I’m building, all sharing one workspace. You set up a project and its buildings once, and every tool works against them:
- Stage 2 Carbon compares concept design schemes by embodied carbon.
- Frame 2D solves plane frames and trusses.
- Load Takedown follows column loads floor by floor.
- Calculations holds calc sheets.
- Knowledge Base holds the standards the other tools are built on.
From 31 October to 5 November I made 29 commits ahead of a planned beta. The most useful changes came from putting the software in awkward situations: a file that reopened but couldn’t be edited, a steel check with an incomplete load combination, and a map coordinate that needed to round-trip. Each exposed a different way software can look right while doing the wrong thing.
Building for the phone in my hand
Most of the week’s UI work was done with the app running in development and open on my phone over Tailscale. That changed what “mobile-ready” meant: not a narrow desktop window, but a thumb on a real screen.
A few decisions only came out of that:
- Icon size. I tried 28px for the Frame 2D toolbar icons to give the grid more room. It was too small to hit reliably, so they went to 32px.
- Panels become sheets. On a compact screen, side panels collapse into bottom sheets, and selecting something on the canvas shows a small action bar instead of covering the drawing.
- Nothing gets clipped. One fix was simply “keep every screen inside a phone”. A child wider than the viewport was stretching the layout, and
overflow: hiddenwas cutting text off mid-word. Wide rows now stack and tables scroll inside their own box.
Abacus also became an installable PWA, so on a phone it opens like an app rather than a browser tab.
Frame 2D: from drawing tool to something you could design with
Frame 2D started the week as a solver with a canvas. By the end it had:
- Coordinate rulers along both axes, so you always know where you are on the grid.
- Member kinds. Every member is a beam, a column or a truss element, and behaves like one. Organising it now means design checks have the right member type to work from later.
- A loading diagram. The load menu shows the frame with its loads drawn on, so you can see what you have applied.
- Extract to Frame 2D. From a Stage 2 scheme, you can pull a frame line straight into Frame 2D, loaded and ready to solve. It is a copy: it records which scheme and grid line it came from, but later changes to the scheme don’t follow it. That is deliberate. An analysis model that silently changes under you is worse than one that is out of date.
Then I did a beta readiness review and recorded 21 findings. The most important was embarrassing: reopened frames ignored every edit. The saved model came in as a reactive prop, only its top level was copied, and the undo history’s structuredClone then threw. The editor now takes a plain copy. Saving now validates first and names the problem in plain words, so a broken model can’t be saved and then fail to reopen.
Eurocode member checks, labelled as unverified
The biggest single addition was steel member checks to BS EN 1993-1-1:2005+A1:2014 with the UK National Annex. That covers bending, shear, lateral-torsional buckling, stability and deflection, with a calculation sheet and a PDF pack.
They are shipped as an administrator-only preview. They haven’t been independently checked by another engineer yet, and every calculation sheet says so. Where a rule has no clause behind it, it is listed as a design assumption rather than presented as code.
Reviewing the checks against the printed pages and some deliberately awkward models caught real ways a member could wrongly pass:
- an I-section whose dimensions had been edited by hand
- a load case that sat in no ULS combination
- the C_my factor used where a brace could split the moment diagram
- runs that continued through a moment release
- deflection quietly left unchecked
None of these would have shown up on a tidy textbook frame.
Frame 2D also got browser tests: Pest’s browser plugin and Playwright, driving the built page in Chromium. The reopening test was confirmed to fail when the bug was put back, which is the only way I trust a regression test. One side-discovery: the full test suite had been dying silently at PHP’s default 128 MB memory limit.
Stage 2: trusses, beams and the data behind them
Stage 2 Carbon had real numbers for steel portal frames and placeholder tables for everything else. This week pushed trusses and flat slabs towards the same level.
Trusses. One-way or two-way became a checkbox, secondary centres became a slider, and two-way grids can now reach 120 m in both directions. The overlay shows forces in the columns and secondary members as well as the truss itself, with tension and compression shown differently, as in Frame 2D. Chords and webs are sized from the Blue Book hollow section tables. Top and bottom chords are one member sized to the worse case, because that’s how they would be specified.
Speed. The two-way truss designer became badly laggy when dragging sliders. The optimiser, which sweeps depth against panel count, now runs in a Web Worker, and sliders commit when you release them rather than on every pixel.
Steel beams. Primary and secondary beams are now sized from the Blue Book S355 UB tables. Secondaries are sized on bending resistance and primaries on buckling resistance between restraints. Deflection limits are L/360 for floors and L/200 for roofs, and self-weight is iterated.
Show the data. The most useful change for checking may be the simplest: a Design data view that shows the source tables each system uses (P399, the Blue Book, purlin and rail tables, carbon and cost factors), with the rows and cells the current scheme actually read highlighted. An engineer can now trace a member size back to the line of the table it came from.
The week also added a full cost breakdown next to the carbon breakdown, a redesigned PDF report compiled in the browser with Typst, and a QA register. The QA register is a document for whoever checks the engineering, listing every implemented system and material, the checks to accept, hand-checkable figures and a sign-off block.
British National Grid, to the millimetre
If a structural tool is going to be useful to geospatial engineers in the UK, it has to work in British National Grid. They need to see, type and export eastings and northings, at survey-grade accuracy.
Abacus now converts between GPS coordinates and British National Grid using Ordnance Survey’s own OSTN15 transformation, stored unmodified in the repository. It agrees with PROJ, the standard open-source library, to 0.011 mm. Against the OS test points, it matches to within 4.9 and 8.5 mm, the same residual PROJ itself shows. Building coordinates are stored to nine decimal places, so a grid reference you type in reads back the same to the millimetre.
On top of that:
- IFC exports are georeferenced to EPSG:27700, so a model lands in the right place in other software.
- GeoPackage export opens in QGIS on the correct coordinate reference system without reprojection.
- The map shows only the UK. Everything else is painted in the basemap’s water colour, and place and road labels are replaced with UK-only ones, road number badges included. A building can only be placed in Great Britain, because that is where the grid transformation is valid.
The aim was to make sure an export arrives in the right coordinate system and the right place. The sub-millimetre agreement above is a comparison between implementations of the transformation. It is separate from the residuals at the test points and doesn’t tell you how accurately the original position was measured.
How the week was run
Looking back over the sessions, a few habits did most of the work:
- Build, then review and refine. Nearly every feature had a second pass whose only job was to find bugs in what had just been built. The reopening bug, the member-check false passes and the slider lag all came out of those passes, not first drafts.
- Docs with hand calculations. Every engineering change updates the guide with a worked example by hand, and tests pin the numbers those examples quote. If the software and the worked example drift apart, the build fails.
- Label what isn’t verified. Placeholder tables, unreviewed checks and unconfirmed sources are marked as such in the app, in the PDFs and in the QA register. It’s less impressive in a demo, but it’s the only honest way to put engineering software in front of engineers before it has been checked.
What this left open
- Technical review of the Frame 2D member checks, before they leave preview.
- Steel columns sized properly, not from the placeholder table.
- Open ground data and borehole logs in Stage 2, so a scheme can start from something better than a guess before site investigation.
- Set a beta scope that people can test without mistaking the preview checks for verified design tools. I wrote more about that in What beta means in Abacus.