What kind of repulsing force you're interested in? In other words, what is the nature of the force depicted by the yellow arrow?
If you don't really care about the nature of the force you can use damped harmonic oscillator to achieve the wanted effect. Otherwise you need to be more specific.