  The generation of dark solitons in Bose-Einstein condensates with phase
imprinting is studied by mapping it into the classic problem of a damped driven
pendulum. We provide simple but powerful schemes of designing the phase imprint
for various desired outcomes. We derive a formula for the number of dark
solitons generated by a given phase step, and also obtain results which explain
experimental observations.
