Skip to content

feat: build Gigatruss v0.1 2D truss solver - #1

Merged
leo-aa88 merged 10 commits into
mainfrom
feature/v0.1-truss-solver
Aug 20, 2026
Merged

feat: build Gigatruss v0.1 2D truss solver#1
leo-aa88 merged 10 commits into
mainfrom
feature/v0.1-truss-solver

Conversation

@leo-aa88

Copy link
Copy Markdown
Member

Summary

Builds the first working Gigatruss milestone entirely in Brainrot.

  • canonical 3-node triangular truss
  • 2D element stiffness matrix and global assembly
  • zero-displacement boundary conditions
  • Gaussian elimination with partial pivoting
  • nodal displacements
  • support reactions
  • member axial forces and stresses
  • tension/compression classification
  • Newton-Raphson square root in Brainrot
  • theory documentation
  • CI against current Brainrotlang/brainrot with numerical oracle checks

Reference result

The canonical 10 kN symmetric triangular truss should produce approximately:

  • U2x = +6.66667e-5 m
  • U3x = +3.33333e-5 m
  • U3y = -1.52423e-4 m
  • R1y = R2y = +5000 N
  • member 1: +3333.333 N tension
  • members 2/3: -6009.252 N compression

Notes

The v0.1 model is intentionally hard-coded. The goal of this PR is to prove the numerical kernel using current Brainrot features before adding general model input, SVG output, or more elaborate data structures.

@leo-aa88
leo-aa88 marked this pull request as ready for review August 20, 2026 10:12
@leo-aa88
leo-aa88 merged commit 4be6db6 into main Aug 20, 2026
1 check passed
@leo-aa88
leo-aa88 deleted the feature/v0.1-truss-solver branch August 20, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant