Пікірлер
@mohammadsteitieh5673
@mohammadsteitieh5673 12 күн бұрын
This is exactly the video I was looking for! Thank you very much!!!
@pawjast
@pawjast 19 күн бұрын
Really good primer on how to start doing the animations in Python!
@DevelopersHutt
@DevelopersHutt 21 күн бұрын
Clear and concise. Ty
@gabrielzuercher820
@gabrielzuercher820 25 күн бұрын
Hey man, thank you for your great videos, they have helped speeding up the process of animating the results of my simulation a lot! When adapting your code from the Lorenz-Attractor video, I noticed that you use indexing to separate the x, y, z values for further usage. While this works, I would recommend you to use .T to transpose your array, effectively having all x values along the 0th, all y values along the 1st and all z values along the 2nd axis. When assigning to x, y, z = array.T, where array.T is of shape (3, n), it automatically gets split up into three arrays of length n, which is more elegant than using x, y, z = array[:, 0], array[:, 1], array[:, 2]. We could improve even further by removing x, y, z totally from the program and only manipulating array. When calling a function that expects the values to be separate, array.T doesn't automatically unpack the array for the function. For this we can use the * (unpack) operator. Hence a function def f(x, y, z): [...] could be called using f(*array.T), which further helps remove the x, y, z variables making your code more readable. 😁 Thanks again for providing the example code!
@youcefkenane8973
@youcefkenane8973 Ай бұрын
This was very helpful. Thank you !
@AngusBro
@AngusBro Ай бұрын
'pip install pyopengl' is needed btw
@AngusBro
@AngusBro Ай бұрын
this is so cool!
@AyiAgboglo
@AyiAgboglo Ай бұрын
can you use this method if one of your boundary conditions is on T'(x=L), not T(x=L)?
@dioutoroo
@dioutoroo Ай бұрын
Greaat videos! I hope I can make something like those
@ShivanshTiwari-yn8wd
@ShivanshTiwari-yn8wd Ай бұрын
Thank you so much
@DrSimulate
@DrSimulate Ай бұрын
Nice one! :)
@mateosaenzm
@mateosaenzm Ай бұрын
Hello Sir is there the possibility you can help me with a project in which I will need to use BTCS for a heat transfer problem ?!
@dtmt502
@dtmt502 2 ай бұрын
QT really needs padding
@ucluong718
@ucluong718 2 ай бұрын
You can do list video about how to design beautiful UI with this , it will be very good
@ucluong718
@ucluong718 2 ай бұрын
Helpful Can you make more videos :>
@MarcosJD25
@MarcosJD25 2 ай бұрын
Amazing work!
@Джозд
@Джозд 2 ай бұрын
@instituteformaritimeandoce5945 please make a video about the Maritime Zones Act and the sea lanes act.
@kellyaquinastom
@kellyaquinastom 2 ай бұрын
is this similar different than Luke Polsons solution?
@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 ай бұрын
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: kzbin.info/www/bejne/pIWUZ2CvhtehfM0&ab_channel=YounesLab By using manim and saving the results as an .mp4, (or .gif?) might also make the animation seems very smooth.
@kellyaquinastom
@kellyaquinastom 2 ай бұрын
This is perfect.Can't put my finger on exactly WHERE it is perfect - but trust me this is perfect.
@uniqueramya3632
@uniqueramya3632 2 ай бұрын
Thanks for the wonderful explanation. Can we convert the Binary file to ASCII STL file?
@YounesLab
@YounesLab 2 ай бұрын
Thank you! :) Yes, you can convert a binary STL file to an ASCII STL file using the numpy-stl library in Python. You can read the binary file with mesh.Mesh.from_file(), then save it as an ASCII file using mesh_data.save(output_file, mode=mesh.Mesh.ASCII). ```python def binary_to_ascii_stl(binary_file, ascii_file): # Read the binary STL file using numpy-stl mesh_data = mesh.Mesh.from_file(binary_file) # Write the mesh data to an ASCII STL file mesh_data.save(ascii_file, mode=mesh.Mesh.ASCII) ```
@uniqueramya3632
@uniqueramya3632 2 ай бұрын
@ Thank you so much. Really appreciate it. I saw that u mentioned for larger data it’s better to go with binary form. But with the birnary form it’s not easy to get the coordinates. Is there any way to do that ?
@spontinimalky
@spontinimalky 2 ай бұрын
Thank you, very useful and well presented!
@punkgaming375
@punkgaming375 2 ай бұрын
great video ! thanks
@Maryam-os7es
@Maryam-os7es 2 ай бұрын
Just joined the course, Thank you very much!
@YounesLab
@YounesLab 2 ай бұрын
Wish you all the best in your learning journey! :)
@YounesLab
@YounesLab 3 ай бұрын
More insights on chaotic systems: github.com/Younes-Toumi/Modeling-and-Simulating-Complex-Chaotic-Systems
@aliffahrizi
@aliffahrizi 3 ай бұрын
Amazing video! Any tips on make the gif faster ? I got 4000 frames and it run soooo slow. Can python render it every 10 frames so it will run faster? Thanks for the video!
@YounesLab
@YounesLab 3 ай бұрын
Thank you for your feedback @aliffahrizi 😄 There actually is a trick to make the animation go faster! Here the trick: (I discovered it recently 😅) The main idea is to tweak the `frames` argument within the `FuncAnimation` function: - Setting `frames = len(t_points)` will render every frame (slower) you can also set it to an array `frames = range(1, len(t_points))`. Now both of these are equivalent, meaning in both cases we are considereing all the frames. - However we can also do something like `frames = range(1, len(t_points), n)` saying we want to render a portion of it, skipping every `n` frame. This should make the animation n-times faster! Note: The classical way the range function works: range object range(start, stop, step)
@sarthakv1030
@sarthakv1030 3 ай бұрын
Cool !! I've also made some animations on planar 3 body problem , they're quite stable.... Check my channel
@malikjavadov366
@malikjavadov366 3 ай бұрын
bravo!
@edudomingos
@edudomingos 3 ай бұрын
Super interesting... so is it just a chaos theory problem? (I'm not really aware about this 3-body's problem)
@YounesLab
@YounesLab 3 ай бұрын
Yes exactly! Chaos theory revolves around dynamical systems that are highly sensitive to initial conditions. Some other popular example include: - Lorenz Attractor - The double pendulum If you want to know more about it, I recommend checking my Git-Hub repo: github.com/Younes-Toumi/Modeling-and-Simulating-Complex-Chaotic-Systems
@skills169
@skills169 3 ай бұрын
I have another 3 body problem. I need to hide them
@edudomingos
@edudomingos 3 ай бұрын
🤣🤣🤣🤣
@JakobWierzbowski
@JakobWierzbowski 3 ай бұрын
Super Videos :) Mach weiter so :)
@djamelkellal4631
@djamelkellal4631 3 ай бұрын
Congratulations Younès. Keep going. Very clair my friend.
@YounesLab
@YounesLab 4 ай бұрын
Interested in learning Python for #science and #Engineering applications? Enroll in my #Udemy course for a complete bootcamp on mastering the essentials! www.udemy.com/course/python-for-science-engineering-the-bootcamp/?referralCode=24D9604B8C46B65E9E7E
@YounesLab
@YounesLab 4 ай бұрын
🚀 Interested in learning Python for #science and #Engineering applications? Enroll in my #Udemy course for a complete bootcamp on mastering the essentials! 🔗www.udemy.com/course/python-for-science-engineering-the-bootcamp/?referralCode=24D9604B8C46B65E9E7E
@ramyhadid
@ramyhadid 4 ай бұрын
The course that literally everyone will need, has the 2 most used/important libraries in python matplotlib and numpy, that everyone is looking to learn... An absolute fire to master the snake language !
@antongoransson5484
@antongoransson5484 4 ай бұрын
Fantastic video, you are putting out quality content
@YounesLab
@YounesLab 4 ай бұрын
Thank you!! It's all thanks to the quality feedback I am getting from all of you! 😄
@jonathanbaincosmologyvideo3868
@jonathanbaincosmologyvideo3868 4 ай бұрын
The formula for 3 bodies is no simpler than for 100 or more. Here is the full solution applied to numerous questions: www.flight-light-and-spin.com/n-body/n-body-build.htm (it is in basic so you may need to translate it a little bit) Here are a few places it has already been applied: www.flight-light-and-spin.com/n-body/3d-quantum-gravity.htm
@toumiaissa-c6x
@toumiaissa-c6x 4 ай бұрын
Bon courage mister
@solounomas0
@solounomas0 4 ай бұрын
Keep it going bro amazing work I am also trying to do science videos it is amazing the work
@YounesLab
@YounesLab 4 ай бұрын
Thank you I am glad to hear it Sharing Knowledge is honorable, I encourage you to continue doing it! 👏 And all the best in your video making ^^
@dzfeverframe6787
@dzfeverframe6787 4 ай бұрын
your videos are very great with neat explanations and examples 🥰
@zacharyip5769
@zacharyip5769 4 ай бұрын
This video is the clearest explanation of FuncAnimation that I’ve seen thank you so much! I’d love you if you made another video going into how to make 3D animations with Matplotlib as well!
@YounesLab
@YounesLab 4 ай бұрын
I appreciate it! Thank you I did somewhat of a simple 3d animation with the lorenz attractor you can check it out: kzbin.info/www/bejne/fZWxm4eAj9OHo68&ab_channel=YounesLab And I am currently working on the 3 body problem so be sure to stick around!
@midnightsat1989
@midnightsat1989 4 ай бұрын
This is absolutely amazing, thank you!!!
@cpravn
@cpravn 4 ай бұрын
Formula for dx is incorrect, it should be dx = length / (nodes-1)
@YounesLab
@YounesLab 4 ай бұрын
That true thank you for letting me knoy, I will fix it in the Git-Hub code. If we have `n` interval we always have `n+1` nodes. When considering the simple example of a 1 meter long rod with two nodes, lenght = 1, and dx = 1 meaning nodes = lenght//dx + 1
@zealot4325
@zealot4325 5 ай бұрын
Great video! Thank you
@amineaissiou
@amineaissiou 5 ай бұрын
Congratulation Can't wait to discover your course !
@abzrg
@abzrg 5 ай бұрын
Thank you! This is very few tutorials on this on youtube. btw, isn't that supposed to be 'axes' not 'axis' (fig, axis = ...)?
@YounesLab
@YounesLab 5 ай бұрын
True, 'axis' refers to a single object, where 'axes' refer to multiple ones within one figure. Thank you for pointing this one out! :)
@datagigs5478
@datagigs5478 5 ай бұрын
Congratulations! We hope to see your physics-informed machine learning course in the future.
@YounesLab
@YounesLab 5 ай бұрын
This might be happening in a near future hopefully 😁
@datagigs5478
@datagigs5478 5 ай бұрын
@@YounesLab will it be a separate course or integrated modules within an existing course?
@YounesLab
@YounesLab 5 ай бұрын
It will likely be a seperate course. However, I might include a small recap (summary) and integrate a small portion as a module in my Python existing course (to give an overall tool kit for engineers) Being a seperate course, it will have some prerequisites such as a deep understanding of Python when it comes to computational physics, calculus, and so on. More about it soon! 😄