Heavy water (oxygen + deuterium) bonds slightly stronger then normal water (oxygen + hydrogen). So you cascade water over electrosis (pump voltage though water causing hydrogen and oxygen to separate). And you get a higher and higher percentage of deuterium with each stage.
This how the German's did it in WW2.