Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with FORTRAN 90 code

Status
Not open for further replies.

Aledl17

Technical User
Jun 26, 2013
1
IT
Hi, I'm a beginner of FORTRAN 90, I made some simple programs but now my prof asked me to simulate the chaotic motion of double pendulum. I' m desperate cause I don't know where to start, my prof didn't give me any help, I have only the theory of the problem, can someone help me? Thanks
 
If I remember correctly, a double pendulum is described by a system of two second-order non-linear ordinary differential equations. Because of the non-linear part, you'll need to resort to numerical techniques. There are many algorithms for solving ODEs. The easiest to code would probably be Euler's method, however this is relatively inaccurate. If you want something better, Runge-Kutta methods are pretty popular. I've coded up RK4 in C++ before. It shouldn't take much more than 20 lines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top