By filling their tanks with air again, coming from compressed air containers.
Buoyancy depends on weight versus volume. It’s basically the same as blowing up a balloons with helium (but the other way around here as you force heavy water out of the tanks and replace it with lightweight air without changing your volume)
Latest Answers