Double Pendulum Simulation in Python! || Simulating Physics with Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 18

  • @kellyaquinastom
    @kellyaquinastom 2 หลายเดือนก่อน

    This is perfect.Can't put my finger on exactly WHERE it is perfect - but trust me this is perfect.

  • @kellyaquinastom
    @kellyaquinastom 2 หลายเดือนก่อน +1

    is this similar different than Luke Polsons solution?

  • @clovistanganelli9850
    @clovistanganelli9850 6 หลายเดือนก่อน

    Really impressive!! Congrats.

  • @amineaissiou
    @amineaissiou ปีที่แล้ว +2

    That's quite impressive thanks !

    • @YounesLab
      @YounesLab  ปีที่แล้ว +1

      Thank you for your feedback @amine !

  • @kellyaquinastom
    @kellyaquinastom 2 หลายเดือนก่อน

    Is it possible to use the same libraries to create an smoother animation with higher fps? I assume the results would have to be precalculated and perhaps smoothed. That would mean more compute time and a fixed timeframe...

    • @kellyaquinastom
      @kellyaquinastom 2 หลายเดือนก่อน +1

      manim? blitting? vpython?

    • @YounesLab
      @YounesLab  2 หลายเดือนก่อน

      ​@@kellyaquinastom there is actually a way to make the animation smoother by setting the `blit` parameter within the `FuncAnimation` function to `True` this will allow matplotlib to optimize in a way the animation by ignoring some aspects that might slow it down (for example updating each time the title, position, and so on...)
      I made recently a git-hub repo that contain some animations, by saving them as .gif / or using blitting it results to a very satisfying visual 🤔feel free to check them about! :)
      Git-Hub Link: github.com/Younes-Toumi/Modeling-and-Simulating-Complex-Chaotic-Systems
      This video might also help: th-cam.com/video/nT16-yQrnFk/w-d-xo.html&ab_channel=YounesLab
      By using manim and saving the results as an .mp4, (or .gif?) might also make the animation seems very smooth.

  • @hakankosebas2085
    @hakankosebas2085 7 หลายเดือนก่อน

    Could you make truck trailer dynamic system simulation?

    • @YounesLab
      @YounesLab  6 หลายเดือนก่อน

      If you elaborate, I can have a look at it ^^'

  • @derekleviston409
    @derekleviston409 ปีที่แล้ว +2

    Ii is micrto see dbodychallengging the give solution if you identify the. Problem is probability in the calcuus

  • @JakobWierzbowski
    @JakobWierzbowski ปีที่แล้ว

    Sehr cool! Danke

  • @koushikvijayakumar7924
    @koushikvijayakumar7924 11 หลายเดือนก่อน

    The code works fine but there is no animation

    • @YounesLab
      @YounesLab  11 หลายเดือนก่อน +3

      Be sure to run the regular python file (not the .ipynb) and at the end of the file is there is the `update(...)´ function, I am running the code on python 3.12.
      If you still are getting troubles getting the animation you can save it as a gif at the end before showing the plot doing:
      animation.save("animation.GIF")

  • @swedishpsychopath8795
    @swedishpsychopath8795 ปีที่แล้ว +2

    It seems to me that the solution isn't correct. Can't put my finger on exactly WHERE you made the mistake - but trust me this isn't correct.

    • @YounesLab
      @YounesLab  ปีที่แล้ว +5

      If you can be a bit more specific, I can review and fix any mistake and let everyone know.

    • @jillebit8105
      @jillebit8105 11 หลายเดือนก่อน +1

      It seems to me that you are not correct. Can‘t put my finger on exactly WHERE you are not correct - but trust me you are not correct.

    • @kellyaquinastom
      @kellyaquinastom 2 หลายเดือนก่อน +2

      obviously M1 and M2 should be allowed to be negative LOL