Model and Simulate Elastic Pendulum in Python (Lagrangian Mechanics)

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 15

  • @Daniboy370
    @Daniboy370 10 месяцев назад +1

    Your videos are stunning

  • @StonedBored
    @StonedBored Год назад +2

    Thanks for the video and explanation man! I wish I had this available 8 years ago.

  • @Clipaholick
    @Clipaholick Год назад +1

    This is sick! Great video, I like how you also went into the math as well :}.

  • @AllRounder-vc1yl
    @AllRounder-vc1yl Год назад +1

    Great 👍 video , make video like this

  • @makdavian3567
    @makdavian3567 Год назад +1

    Assuming total length to be L, is the Lcos theta pointing down and Lsin theta pointing towards right? So y is negatiive and x is positive?

    • @logandihel
      @logandihel  Год назад

      Yes, but only because we defined the origin to be at the pivot, with the x axis to the right and the y axis vertical, and theta being counterclockwise from the downward position.
      So at resting position, x is zero and y is negative. At 0 < theta < pi/2, x >0 and y

  • @hariharanramamurthy9946
    @hariharanramamurthy9946 Год назад

    Hi, can you use statespace method next time , for any other system, I could see you use diff equation, which I could follow up easily, but for controls part, I am dealing with state space matrices, thanks for the content , very intuitive

    • @logandihel
      @logandihel  Год назад

      You can convert any ordinary differential equation into a state space model. You just need to choose your state variables as theta, theta_dot, ell, and ell_dot

    • @hariharanramamurthy9946
      @hariharanramamurthy9946 Год назад

      @@logandihel yeah doing that now, thanks for the info

    • @hariharanramamurthy9946
      @hariharanramamurthy9946 Год назад

      hi logan, I have a doubt ,I am trying to solve a nonlinear differential equation, I am looking for closed solution as a function of time , I couldn't solve with dsolve in sympy, raising error->" cannot be solved by the factorable group method "
      using scipy integrate gives me the array of t and q(differential parameter) values, I want to simulate the model for t-> tends to infinity, how can I do that?

    • @logandihel
      @logandihel  Год назад +2

      You can very rarely solve a nonlinear system. Most of the time it is actually impossible (like for the pendulum). You need to simulate starting with some initial conditions

  • @riccvven2078
    @riccvven2078 Год назад +1

    brilliant; too bad channel seems bad, hope you'll make more

  • @AJ-et3vf
    @AJ-et3vf Год назад

    Very low volume