The following simulation show gravitation field as function of r.
You can change the radius of the planet with the slider.
You can also drag mouse to any position and the simulation will show gravitation field at the new mouse position.
I hope this is what you need!

translate strings in simulation to different language format before download
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1099.4kB):double click downloaded file to run it. (55 times by 18 users) , Download EJS source View EJS source