Matlab's Simulink program may allow you to model it with the block diagrams and the tools and then you can extract the script from that or just run the model there.
If you know more of the physical properties you can create a script from scratch but you would have to have a more detailed knowledge of the system