A Blender-modelled research submersible dives through stratified, compressible seawater with true Archimedes dynamics.
GraphsDepth versus simulated time (white dot: now)
Seawater density (blue) and the submersible mean density (amber) versus depth
Net downward force versus depth: zero crossings are neutral depths
The science
Archimedes. The upward force on a submerged body equals the weight of the displaced fluid, FB = ρ(z) g V(z). The vehicle sinks when its weight m g exceeds this, so the net downward force is F = m g - ρ g V. Neutral buoyancy means equal average density: m / V = ρ. Here the vehicle is a civilian research submersible (a yellow hull with syntactic foam, thrusters and a sampling arm); the same physics applies to any ballasted vessel.
Ballast. Variable ballast tanks hold water of mass ρ0 Vfill; pumping water in raises m at constant displaced volume, so the vehicle sinks, and blowing it out makes it rise. The Hover button solves m = ρ(z) V(z) for the fill that gives neutral buoyancy at the current depth.
Seawater. Density grows with depth through compressibility, ρ = ρ0(1 + βw ρ0 g z) with βw = 4.5e-10 per Pa, plus an adjustable smooth pycnocline (a density step of a few kg/m3 at a chosen depth). Pressure is the integral p(z) = patm + ∫ ρ g dz, tabulated every metre.
Hull compressibility. The displaced volume shrinks under pressure, V = V0(1 - βh Δp). If the hull is stiffer than water (βh < βw), buoyancy rises with depth and a neutral depth is stable; if the hull is softer, buoyancy falls with depth and neutral buoyancy is unstable, so the vehicle runs away to the seabed or the surface. The page finds the neutral depths from the sign change of the net force and labels each stable or unstable.
Motion. (m + ma) dv/dt = F - ½ ρ Cd A v|v|, where the added mass is ma = 0.8 ρ V plus a small structural share, A is the projected area (11 m2) and Cd is adjustable. At the surface the submerged fraction of the cylindrical hull follows the circular-segment area, with a wave-making damping term. The terminal speed under constant net force is vt = sqrt(2F / (ρ Cd A)).
Trim. A 400 kg trim mass shifted by x tilts the vehicle until the righting moment balances it: tan θ = mt x / (M · BG) with the centre-of-buoyancy to centre-of-gravity distance BG = 0.15 m.
Honest simplifications. Vertical motion only (cruise just scrolls the seabed), no currents or thermocline temperature effect on the hull, ballast water is taken at the surface density, no pump power limit beyond a fixed flow rate, no surface waves, and the vehicle is a rough cylinder for the surface-draft calculation. Not a safety or diving-procedure tool.
What to try: press Dive and watch the net-force curve; use Hover to stop at depth; add a +12 kg/m3 pycnocline at 40 m and see the vehicle stop on the density step; set hull compressibility to 8 and try to hover (unstable); release the drop weights and blow the tanks for an emergency ascent.