StructLab
2D & 3D Structural Mechanics
Undergraduate Mechanics of Materials & Structural Dynamics

Interactive 2D & 3D Stress and Dynamic Deflection Simulator

Explore how geometry, cross-section thickness, boundary conditions, and material properties govern internal stresses, static deflections, shear & bending moment diagrams, and natural vibration mode shapes across beams, flat plates, and 2D/3D trusses.

Governing Equations & Theoretical Basis

All models assume linear-elastic, homogeneous, isotropic materials and small-deflection theory.

01

Euler–Bernoulli Beam Theory

Relates transverse deflection w(x), flexural rigidity EI, and distributed load q(x):

EI d4wdx4 = q(x),    M(x) = −EI d2wdx2,    V(x) = dMdx
σx(x, y) = −M(x) · yI,    τxy = V(x) · QI · b

Reference maximum static deflections (uniform load w or mid/tip point load P):

  • Simply Supported: δP,mid = PL3 / (48EI),   δw = 5wL4 / (384EI)
  • Cantilever (Fixed–Free): δP,tip = PL3 / (3EI),   δw = wL4 / (8EI)
  • Fixed–Fixed: δP,mid = PL3 / (192EI),   δw = wL4 / (384EI)

Natural frequencies of transverse vibration (mode n):

fn = λn22π L2 √E Iρ A
λ1..3: Simply Supported (π, 2π, 3π); Cantilever (1.875, 4.694, 7.855); Fixed–Fixed (4.730, 7.853, 10.996).
02

Kirchhoff–Love Thin Plate Theory

Biharmonic governing equation for a thin rectangular plate (a × b, thickness t):

D ∇4w = D (∂4w∂x4 + 2∂4w∂x2∂y2 + ∂4w∂y4) = q(x, y)
D = E t312(1 − ν2)

Navier double-sine series solution for Simply Supported (SSSS) edges:

w(x, y) = ΣmΣn qmnπ4D[(m/a)2 + (n/b)2]2 sin(mπxa) sin(nπyb)

Surface bending stresses (z = ±t/2) and natural frequencies (SSSS):

σx = 6 Mxt2,   σy = 6 Myt2,   fmn = π2[(ma)2 + (nb)2]√Dρ t
Clamped (CCCC) plates use a Rayleigh–Ritz / clamped-beam eigenfunction product approximation for both static bending and modal shapes.
03

Direct Stiffness Method (2D & 3D Trusses)

Pin-jointed truss members carry purely axial tension or compression. Global equilibrium:

[K]{u} = {F},    ke = E ALe [T]T [ 1  −1 ; −1  1 ] [T]

Member axial force Ne, strain ϵe, and axial stress σe:

ϵe = ΔLeLe,    σe = E ϵe = NeA

Undamped free vibration generalized eigenvalue problem (lumped nodal mass matrix [M]):

([K] − ωn2 [M]) {φn} = {0},    fn = ωn2π
Positive axial stress (+σ) indicates Tension (red); negative (−σ) indicates Compression (blue).
04

Failure Criteria & Modeling Assumptions

Plane-stress von Mises equivalent stress and static Factor of Safety (SF):

σvm = √σx2 − σxσy + σy2 + 3τxy2
SF = σyieldσmax
  • Small Deflections: Deformations are visually scaled by an adjustable exaggeration factor for clarity; geometric nonlinearity and buckling are not modeled.
  • Linear Elasticity: Stress–strain remains proportional (σ = Eϵ) even when SF < 1.0 (a yield warning is displayed instead of plasticity).
  • Modal Amplitudes: Natural mode shapes {φn} have arbitrary normalized amplitude; dynamic stresses shown in modal view are relative.