Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/viewtopic.php?t=27]pendulum [/url] for another simulation. I hope it is what you want.