Тёмный

Simulating Rocket Trajectories with Python 

Miscellaneous Bits
Подписаться 2,6 тыс.
Просмотров 10 тыс.
50% 1

Let's send some rockets into orbit... using Python.
I know that lots of the brightest coding minds on RU-vid are doing crazy things like making real time engine simulations or writing AI scripts that can learn how to commute to a 9 to 5 and pay taxes, but hopefully there's still some value in more approachable things like this. This is sort of more of a physics video than a coding video, and I (hopefully) explain everything you need to know about the equations and the concepts to jump in. If anyone tries to make their own code and space mission at home let me know how it turns out!
I'd like to improve this project in the future and add cool new stuff (like multiple planet bodies) but for near future I'm going to move on to some other stuff.
Miscellaneous Bits is a channel in which I post miscellaneous bits about things that interest me, probably mostly about engineering, space, or aviation, but I reserve the right to discuss underwater basket weaving if I want to. Sometimes I may just talk about things and sometimes I may make things. Please take a subscription under advisement if it would be pleasing to you.
Links and Social Media:
I don't have any but here's where I'd put it if I did

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@michaeldamolsen
@michaeldamolsen Год назад
1 minute in, and some Karen calls the cops on the singing birds. I like where this is going!
@harveythompson6197
@harveythompson6197 5 месяцев назад
One day I was already awake, and like many other normal people I wondered if there was a RU-vid video explaining how to simulate rocket launches, and here I am. Nice!
@theblackpinecooktop7767
@theblackpinecooktop7767 13 дней назад
Thank you for this! I knew next to nothing about python (I work in Ada and Fortran mainly) before watching this video and I had forgotten all of my orbital mechanics (I do atmospheric work) so I gave your code and methods a shot anyways as a refresher on both. I was able to reproduce your circular orbit results after some fumbling and algorithm tuning, and even learned some cool tricks along the way! I do, however need some clarification on the derivation: why is v/r = phi_dot and why does psi_dot = phi_dot - theta_dot? Probably something I am missing very fundamental, but figured I would ask anyhow! Thank you for this, you make it really easy to understand!
@dylanboyd6147
@dylanboyd6147 Год назад
This is an awesome video! Keep making stuff of this quality and you will have a huge following in no time!
@MiscellaneousBits
@MiscellaneousBits Год назад
Thank you!
@Asterism_Desmos
@Asterism_Desmos 7 месяцев назад
You’ve just got yourself another subscriber! Good work :D
@kai-fw6hq
@kai-fw6hq Год назад
Amazing video! I can't believe you have just 33 subscribers, you really deserve more. You earned one.
@MiscellaneousBits
@MiscellaneousBits Год назад
Thanks and welcome!
@caioveigapires5907
@caioveigapires5907 Год назад
Loved the video! Didn't know you could do all that with only 100-ish lines of code.
@MiscellaneousBits
@MiscellaneousBits Год назад
Thanks! The code ended up being about 150 lines, but the last 50 are just to generate all the plots so I didn't show them
@rostamr4096
@rostamr4096 6 месяцев назад
Great and very helpful video. Can you also make the codes available in some sort to text ? I would like to used it and add more function to it...
@rubenoconnor198
@rubenoconnor198 2 месяца назад
never related more with the first 6 seconds of a video haha :)
@JTanSC
@JTanSC Год назад
Love it
@_sh4512_
@_sh4512_ Год назад
Love the video I’m going into my second year of my physics with astronomy undergrad. And this video was really fun and interesting for me keep up the great work excited for more of ur stuff in the future
@MiscellaneousBits
@MiscellaneousBits Год назад
Glad you enjoyed, good luck at school!
@Livenewme
@Livenewme 7 месяцев назад
This stuff is interesting. I made a 6dof Excel rocket sim for a goddard level rocket. I'd like to bring it to Python, but i dont know where to start.
@MehrnazAshrafi
@MehrnazAshrafi 2 месяца назад
Amazing Video! would you please post the final code? Thank You
@markoj3512
@markoj3512 Год назад
Your equation for the drag ist not correct ist should be -abs(v)*v Instead of -v^2 It makes a huge difference ;)
@Livenewme
@Livenewme 7 месяцев назад
It's python "^" is a pack of lies, and it's unfortunate
@hafizuddinmohdlowhim8426
@hafizuddinmohdlowhim8426 2 месяца назад
Do you have a reference for your trajectory calculations?
@RobotoForgoto
@RobotoForgoto Год назад
This is fun! I want to make a program that predicts nerf gun dart trajectory. Then make some arduino projects that drop a dart on a predetermined coordinate. I'm a bit thick and can't figure it out!
@MiscellaneousBits
@MiscellaneousBits Год назад
Good luck on your project! RU-vid tutorials and guides for arduino and motion control will definitely help
@takayush6313
@takayush6313 Год назад
I subscribed 😤
@MiscellaneousBits
@MiscellaneousBits Год назад
Welcome 🙏
@galadler
@galadler 8 месяцев назад
Nice. Can you maybe post a link to the source code?
@donsoap3424
@donsoap3424 2 месяца назад
I need the full amazing code
@luigeribeiro
@luigeribeiro Год назад
It can become a nightmare to find out what the initial conditions are in order to achieve a specific orbit because the final values of the solution are sensitive to the initial ones. So, if the thrust is constant and gravity turn is what you're using then a TPBVP solver would give a solution more easily. In reality thrust isn't constant and this problem is a trajectory optimization problem.
@try7081
@try7081 6 месяцев назад
Can you please post the final code for this project? I'll be sure to make improvements if you do haha. Thanks.
@steveadams7550
@steveadams7550 14 дней назад
Yes, could you please post the code
@VectorCrafty
@VectorCrafty 4 месяца назад
Air resistance is also dependent upon atmospheric density which is dependent upon density, so performance is underestimated. See US Standard Atmosphere.
@alexartemov953
@alexartemov953 Месяц назад
Можно просто задать функцию изменения плотности в зависимости от удаления от земли и соотнести ее с удалением ракеты от поверхности по нормали от стартовой площадки.
@maxvanthart3128
@maxvanthart3128 Месяц назад
hey, im working on a schoolproject on a rocket that needs to bring a payload into orbit with a group of people, could you post the code file please?
@user-ep8jd5ob9z
@user-ep8jd5ob9z Год назад
Post the code file please.
@MiscellaneousBits
@MiscellaneousBits Год назад
I'm working on some updates and improvements that I'll make a video for some time soon (ish), I'll post the 'final' file then
Далее
Strut Structures and a Python Script to Calculate Them
16:19
Coding Adventure: Simulating Fluids
47:52
Просмотров 1,7 млн
치토스로 체감되는 요즘 물가
00:16
Просмотров 692 тыс.
Crazy Girl destroy RC CARS 👩🤪🚘🚨
00:20
Просмотров 4,2 млн
How to Perfect a Gravity Turn?
14:05
Просмотров 7 тыс.
Let's Build a Rocket with RocketPy | Orlando Python
1:14:07
How Do Planes Fly and How Is Lift Created?
12:23
Просмотров 1,1 тыс.
Solving The Rocket Equation: Optimal Way To Expel Fuel
20:59
Master the Complexity of Spaceflight
32:12
Просмотров 301 тыс.
치토스로 체감되는 요즘 물가
00:16
Просмотров 692 тыс.