Inspiration

Structural analysis is easier to understand when forces become visible. A truss may look like a simple collection of triangles, but every member carries a different internal force depending on geometry, loading, and supports.

I wanted to create a tool that allowed anyone to build a structure and immediately understand how it behaves.

What It Does

TrussLab is an interactive structural engineering sandbox where users draw trusses by placing joints and members.

Users can add loads, pinned supports, and roller supports. The application calculates member axial forces, support reactions, and joint displacements. It distinguishes tension from compression and animates the calculated deformation.

It also includes example Pratt, Warren, and king-post trusses, plus CSV export of analysis results.

How I Built It

I developed TrussLab in JavaScript using the direct stiffness method.

Each member contributes an element stiffness matrix. The program assembles these matrices into a global structural system, applies support constraints, solves for displacements, and calculates internal forces.

I also created interactive editing tools for moving joints, adding structural members, and changing loading conditions.

Challenges and What I Learned

One major challenge was detecting unstable structures rather than returning unreliable numerical results. Missing supports or poorly connected members can make the structural system mathematically singular.

I also had to ensure that the geometry editor and calculation engine stayed synchronized.

I learned more about structural stability, numerical linear algebra, and the relationship between geometry and internal force distribution.

What's Next

Future improvements could include additional structural element types, buckling checks, and more detailed material models.

The current model is intended for education rather than real-world structural certification.

Built With

Share this project:

Updates

Submission history