Level 4 — Numerical analysis

2D Truss Solver (Direct Stiffness Method)

Member forces (tension or compression), stresses, support reactions and joint displacements of any pin-jointed plane truss by matrix stiffness analysis, with a force diagram.

How it works — 2D Truss Solver (Direct Stiffness Method)

N = ±(EA/L)Δ

Inputs

E
Elastic modulus E (GPa)
A
Default member area A (mm²)

Formula

  • K = Σ (EA/L)·T ᵀ[1 −1; −1 1]T
  • K_ff·u_f = F_f
  • N = (EA/L)·Δ (direct stiffness method)

Results

N
Largest tension

One node per line: name, x (m), y (m).

One member per line: start node, end node and optionally its area in mm².

node, pin (x and y restrained), roller-y (vertical restraint) or roller-x (horizontal restraint).

node, Fx (kN), Fy (kN); downward loads are negative.

Reset

Results

Enter your values and press Calculate. The defaults are a worked example.

Formula

K = Σ (EA/L)·T ᵀ[1 −1; −1 1]T · K_ff·u_f = F_f · N = (EA/L)·Δ (direct stiffness method)

Show the math

Worked solution

Press Calculate to see every step with your values substituted.

Calculation level & design standard

Level 4 — Numerical analysis

A numerical solver: matrix analysis, iteration or time integration.

Preliminary engineering calculation — no jurisdiction-specific code compliance claimed. Verify the applicable requirements with a qualified professional.

Assumptions

  • Pin-jointed members carrying axial force only; loads applied at the joints.
  • Linear-elastic, homogeneous and isotropic material.
  • Small deflections and rotations (Euler–Bernoulli beam theory: plane sections remain plane).
  • Member buckling is not checked; verify compression members separately.

References

  • W. McGuire, R. H. Gallagher, R. D. Ziemian, Matrix Structural Analysis
  • R. C. Hibbeler, Mechanics of Materials

Results are for preliminary design and education. Verify against the governing code and have critical work checked by a licensed professional engineer.

Sign in

or with email

Forgot password?