Tanker in motion
A partly filled tanker when accelerating, braking and cornering. The liquid sloshes, the centre of gravity moves and the load shifts to the axles and wheels on the side the liquid rolls to. In a sharp curve the vehicle can roll over. Start a scenario, or drive yourself with the buttons or arrow keys.
Driving
Hold a button, or ↑ throttle, ↓ brake, space hard braking. Driving by hand stops a running scenario.
Scenarios
When braking, the same vehicle with a rigid load of the same mass drives alongside (dashed) to compare the braking distance. The curve and the avoidance use the speed and radius from the Steering panel.
Steering
Hold a button, or ← →. The vehicle turns along a curve with the radius below.
Load
Current values
- Vehicle acceleration
- 0
- Steady surface tilt θ
- 0°
- Liquid push on the tank
- 0 kN
- Shift of the liquid's centre of gravity
- 0 cm
- Shift of the total centre of gravity (horizontal / vertical)
- 0 / 0 cm
- Front axle
- 0 kN
- Rear axles
- 0 kN
- Sloshing period T₁ (lengthwise / across)
- 0 s
- Lateral acceleration ay = v²/R
- 0
- Rollover index (load transfer between wheels)
- 0 %
- Rollover limit (liquid / rigid load)
- 0 g
The braking distance is measured at the next braking from motion.
Last 30 seconds
Why the surface tilts
At a constant acceleration a the surface settles perpendicular to the resultant of gravity and the inertial force.
tan θ = a / gBraking at 6 m/s² gives a tilt of about 31°. The dashed line in the scene is this steady surface, the solid line is the real one.
Sloshing
The liquid does not reach the steady state at once. It overshoots and oscillates. For a compartment of length L and depth h:
ω² = (π g / L) · tanh(π h / L), T₁ = 2π / ωAfter stopping, the liquid hits the tank ends and the standing vehicle gets jolts. The middle graph shows them.
Why half a tank is the worst
A full tank behaves almost like a rigid body and an empty one has nothing to slosh. The centre of gravity moves most somewhere in between. Try the filling slider.
Baffles shorten the compartments. Less mass sloshes, the period is shorter and the shift of the centre of gravity smaller. Transverse baffles do not help in a curve, though: only a longitudinal baffle or less liquid limits sloshing sideways.
Curves and rollover
The lateral acceleration grows with the square of the speed: a 41 % higher speed means twice the acceleration.
ay = v² / RThe vehicle rolls over when the resultant of gravity and the centrifugal force through the centre of gravity points beyond the outer wheels (the dashed line in the rear view). The limit is roughly alim ≈ g · (t/2 − Δy) / h, where t is the track width, h the height of the centre of gravity and Δy its sideways shift.
vcrit = √(alim · R)The liquid rolls outwards, so Δy grows. When entering a curve or swerving quickly the lateral wave also overshoots, so the vehicle can roll over even below the static limit.
What the model simplifies
The tank is a box of 8 × 2 × 2 m. The vehicle is rigid, the suspension is only an approximate body roll of 7° per 1 g and tyre slip is not modelled.
Real tankers have a lower rollover limit because of compliant springs and tyres, typically around 0.35 to 0.45 g. The values are indicative.
How it is calculated
Several mathematical tools are behind the simulation. Everything is recalculated at every step from the current shape of the surface.
Centre of gravity of the liquid – an integral over the surface
The tank is divided into 200 vertical columns of width Δx. From the surface height h(x) the liquid's centre of gravity is a ratio of integrals (first moment over area):
xL = ∫ x·h(x) dx / ∫ h(x) dxzL = z0 + ∫ ½·h(x)² dx / ∫ h(x) dxThe integrals are sums over the columns (the rectangle rule); the centre of each column lies at half its height, hence ½h².
Centre of gravity of the vehicle – a weighted mean
xT = (M·xM + m·xL) / (M + m)M and xM are the mass and centre of gravity of the empty vehicle, m the mass of the liquid; the same vertically. The orange trace in the scene is the path of the point (xT, zT).
Axle loads – balance of moments
Nf = [M g (xM − xr) + m g (xL − xr) − M a zM + ML] / wMoments about the point where the rear axle touches the road: the weight of the vehicle and the liquid, the inertial force M·a at the height of the centre of gravity and the moment ML of the liquid pushing on the tank ends and baffles; w is the wheelbase. The rear axle carries the rest, Nr = (M + m) g − Nf.
Motion of the liquid – a partial differential equation
∂h/∂t + ∂(hu)/∂x = 0∂(hu)/∂t + ∂(hu² + ½ g h²)/∂x = −a·hThe shallow water equations – conservation of mass and momentum – in the frame of the tank, where the vehicle's acceleration a acts as an inertial force. They are solved numerically by the finite volume method: fluxes between the columns (HLL), reconstruction of the surface with a minmod limiter (MUSCL), time stepping by Heun's method and the step length set by the fastest wave (the CFL condition).
Accelerating and braking – Newton's law
M·a = Fb − Fres + FLThe driving or braking force, rolling and air resistance and the force FL of the liquid pushing on the tank ends. That is why the liquid still nudges the vehicle after it stops and the braking distance differs from a rigid load of the same mass.
Rollover – oscillations, moments and bisection
Across the tank the surface is modelled as a damped oscillator whose natural frequency is the sloshing frequency across the tank width. The wheel loads come from the balance of moments about the outer wheels:
LTR = (Nouter − Ninner) / (Nouter + Ninner)At LTR = 1 the inner wheels lift. The simulation finds the static rollover limit by bisection: the largest lateral acceleration at which the inner wheels still carry load.
A tanker problem with a step-by-step solution is also coming to the Mathtrace app.