  We solve the problem of applying an external field in periodic boundary
conditions by choosing a sine potential. We present an implementation in the
Car-Parrinello molecular dynamics code (CPMD) and discuss applications to
electron and ion transfers in complex molecular systems.
