Apply potentials to a structure