Spring-mass system with electric field