# Simulation of a double rods system.

This topic is 2124 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello guys,

I'm new about analytic mechanic, so i'm try to model simple systems and then simulate their behaviour.

Suppose to have two rods 'A' and 'B', of the same lenght 'l' and of same mass 'm'. Let's call P1 and P2 the A's end point, and P2 and P3 the B's end point, they have P2 in common. Moreover let's fix a framework {O,i,j}, and suppose a force F(t) (time depedent) is applied to P3, a generic time dependent but no positional dependent.

I specify the system is holonomic, ideal and bilateral constraits.

It's better for such system either write the lagrangian of the system and the solve the equation related numerically or write the dynamic cardinal equations and then solve it numerically?

PS. The whole system A U B is unconstrained.

PPS. Does this forum use latex for write equation? So i post my doubt.

Thank you

##### Share on other sites

I think for your example computing the Lagrangian and numerically solving your systems of equations would be simplest. Also, the forums support LaTeX math markup via MathJax. Read the article on how to use it:

http://www.gamedev.net/page/resources/_/gdnethelp/embedding-math-equations-in-articles-r3320

Example: $\left [ - \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$

##### Share on other sites

If i write you the lagrangian i derived can you see if it is correct?

##### Share on other sites

Post the lagrangian you have derived.

Edited by apatriarca

• 18
• 29
• 11
• 21
• 16