The simulation of violent free-surface dynamics at sea and in space