The bridge simulation employs a mass-spring system. Each bridge component is modeled as:
1. Spring Dynamics: Governed by Hooke's Law:
Spring Force = (Stiffness Coefficient) × (Direction Vector) × (Current Length - Rest Length)
Where:
- Stiffness Coefficient (α) determines spring rigidity
- Direction Vector points between connected particles
- Rest Length (L) is the spring's unstretched length
2. Force Integration: Uses implicit Euler method:
New Velocity = Current Velocity + (Total Force / Mass) × Time Step
New Position = Current Position + New Velocity × Time Step
Phase 1: Force Accumulation
Gravity is applied to all movable particles. Vehicle forces distribute to nearest road beam particles using weighted position calculations.
Phase 2: Vehicle-Beam Collision and Reaction
Handles real-time interaction between vehicles and road surfaces:
Phase 3: Spring Network Processing/Resolution
Spring forces calculate in both directions, respecting fixed particles. Road beams receive extra downward forces from vehicle weights.
Phase 4: Spring reaction to high force (splitting)
Springs breaking point: (Current Length - Rest Length) / Rest Length > Threshold
Broken springs split into two segments with new midpoint particles
Phase 5: Integration (implicit Euler)
States update and all forces reset after calculation cycle.