Electrostatics and hydrodynamics