Rocket Engine Design with MATLAB and SolidWorks - Method of Characteristics Nozzle Tutorial!

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • NOTE: Please watch the 2023 updated video:
    • Create a Rocket Engine...
    Hey Everyone,
    If you're a student in Mechanical or Aerospace Engineering, this tutorial will teach you how to design a custom rocket engine nozzle in a programming language (MATLAB) and create a CAD model of it in SolidWorks (or any other CAD software). You can use this as a means to design, build and potentially test your own rocket engine.
    You can then import this nozzle into ANSYS to perform a fluid dynamic simulation as I have done here:
    • ANSYS Fluent: Rocket E...
    This algorithm uses the Method of Characteristics (MoC) which is a very popular tool to design a rocket engine. It is used by academics as well as industry professionals to design rocket engine nozzles for optimum flight performance!
    Topics covered in this video include
    - Compressible Flow Basics (Overexpanded, Under expanded, Shock waves, Isentropic Flow)
    - MATLAB Fundamentals (For Loops, If Statements, Importing from Excel using xlsread)
    - Method of Characteristics Algorithm (Mach Angle, Expansion Fans, Prandtl-Meyer Function)
    - Exporting to SolidWorks
    - Designing the 3D CAD model of the Nozzle
    - SolidWorks Fundamentals (Sketching, Offset, Loft, Importing csv files)
    Watch my other rocket engine videos for a more clear understanding of the code!
    How a Rocket Engine Works: • How does a Rocket Engi... and • How does a Rocket Engi...
    Rocket Nozzle Structural Analysis: • ANSYS: Rocket Nozzle F...
    Thank you for watching! Be sure to subscribe for more videos like this.
    VDEngineering
    ~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
    www.udemy.com/...
    My Instagram: / vinayak_desh
    My Website: www.vinayakd.com/
  • НаукаНаука

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

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

    Please watch the 2023 updated video of the Method of Characteristics!
    ruclips.net/video/WJkTGog_aK0/видео.html
    In this video I had made a lot of assumptions and I realized I did not very clearly explain the algorithms. There are also numerous inaccuracies which will lead to potentially incorrect results.

  • @jasonchen5761
    @jasonchen5761 5 лет назад +17

    Great video and I love what you do. Could you try going into a bit more detail on how these lines are generated? Perhaps show a thorough calculation for one characteristic? That would be really helpful, thanks so much.

    • @user-bq1js4vd2d
      @user-bq1js4vd2d 2 года назад +1

      You can watch the video posted by ANSYS Learning. Explains the theory very well along with the calculation derivations.

  • @craiggas
    @craiggas 5 лет назад +5

    Love this video mate, wish our projects got to to use so many industry tools

    • @VDEngineering
      @VDEngineering  5 лет назад

      Your university probably has student licenses, that's what I used pretty much

  • @renanmonteirobarbosa5761
    @renanmonteirobarbosa5761 3 года назад

    you probably consolidated lots of the main topics and words in a simple package. So helpful. It made my life easier to find the topics in academia.
    Just wish you also had links to lectures, books and more source material since some topics grow in complexity beyond what you can cover on youtube.

  • @francescorenzulli389
    @francescorenzulli389 3 года назад

    VD you are the best, clear and specific at the same time . Your video are very balanced in theory background and practice , really a precious resource
    Respect

  • @JohnJaggerJack
    @JohnJaggerJack 2 года назад +1

    Great video, thanks a lot.

  • @hasatamashi
    @hasatamashi 5 месяцев назад

    The coefficient of heats should be lower due to the pressure and temperature. The value 1.4 is at standard conditions

  • @JDRacing-j2v
    @JDRacing-j2v 5 лет назад +1

    Really useful mate, great video. i'm currently in my third year of an Aerospace degree and i'm doing a project about rocket nozzles.

    • @pawekaminski5110
      @pawekaminski5110 4 года назад

      If I want to change the code to axisymmetric should i put radius^2 in every formulas?

    • @user-bq1js4vd2d
      @user-bq1js4vd2d 2 года назад

      @@pawekaminski5110 Were you able to find the answer to this question ? I need to do axisymmetric as well .

  • @AzatYucel
    @AzatYucel 2 года назад

    Very nice video bro :)

  • @jednecro4939
    @jednecro4939 3 года назад

    u r king bro really.

  • @serhiimyrnyi1480
    @serhiimyrnyi1480 5 лет назад +7

    Can you advise some books where MOC is described, please. Thank you for the great job.

  • @toufikkhattara4406
    @toufikkhattara4406 5 лет назад +1

    First, thank you so much for your help
    please can you point us to some references in order to understand more the characteristics methode

  • @nadavram7322
    @nadavram7322 4 года назад +6

    Any recommended books to learn about this kinda stuff? I'm in high school rn and I barely understood anything but I really want to learn!📖

    • @delphipascal
      @delphipascal 3 года назад +1

      A degree in mechanical/aerosapce engineering

    • @baacco.3658
      @baacco.3658 3 года назад +2

      Yes- specifically for engine design; modern engineering design of liquid propellant rocket engines by Huzel and Huang. It’s great

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

      You can also read rocket propulsion by george p. sutton

  • @vasanthakumar0639
    @vasanthakumar0639 2 года назад

    Super bro

  • @its_Duperman
    @its_Duperman 3 года назад +1

    Can you show the code for shifting equilibrium? Also do you know how to find the right converging contour and how to do combustion chamber sizing? Your contents are much appreciated.

    • @VDEngineering
      @VDEngineering  3 года назад +2

      Hello, this project is from a while ago, if I find it yes I will share for sure, thanks for your comments:). The combustion chamber sizing is not that critical, as long as it maintains the pressure initially (when t = 0) right before the engine is started, and that it's structure (pressure vessel) can withstand the stress. The converging contour shape is any which minimizes drag (or does not lead to wakes), and is dependent on the rocket size etc.

  • @ZGMFxBERSERKER
    @ZGMFxBERSERKER 4 года назад +2

    Is it possible to find the area and throat area if I have the Force it needs to produce? I also have the specific impulse.
    Also, why is R = 355?

  • @ullasb8115
    @ullasb8115 7 месяцев назад

    Sir could you make the related video of measurement of quantity of fuel flow from the Central fuel tank in the fuselage of aircraft

  • @Darth_Sai
    @Darth_Sai 3 года назад +1

    Would you be able to explain how to do this for a dual bell nozzle.

  • @MOQAZI
    @MOQAZI 3 года назад

    Why every parameter in the inputs of the excel file is in the 30s where the temperature is given 1200K and pressure 2.27e6 Pa in the design problem?
    Can somebody kindly guide me?

  • @cyprienbreton1795
    @cyprienbreton1795 3 года назад

    Amazing video.... I just have one question can you make a video that explain how create the geometrie of the nozzle ? please

  • @loretacancela5297
    @loretacancela5297 2 года назад

    Hi! You're video is saving my life, I have a question, can OCTAVE also work?

  • @GracjaFrakcja
    @GracjaFrakcja 5 лет назад

    Please do code for axisymmetric nozzle using method of characteristic. You r the best C:

  • @aniltamang7506
    @aniltamang7506 3 года назад +1

    I am having difficulty exporting graph data to excel .can you explain how the xslwrite command works.

  • @soniyaseby341
    @soniyaseby341 5 лет назад

    Thank you for your effort. I need to do MOC for combustor design.Can you please give me some suggestions to start with?

  • @Sammad73
    @Sammad73 4 года назад

    Hello sir, such valuable content and helped us a lot, quick question please;
    what if i want to simulate the separation of an overflow case, what modifications should be taken into consideration while designing? Or is it just a matter of pressure boundary conditions?
    Thanks in advance.

  • @gaganjvalliveti716
    @gaganjvalliveti716 3 года назад

    So this is a bell-shaped nozzle that you have designed. How can we design a dual bell nozzle using the method of characteristics? Is there any way we can make changes in the code to make it a dual bell nozzle?

  • @ivy3618
    @ivy3618 2 года назад

    i wanna be a rocket scientist when i geow up

  • @kevint5020
    @kevint5020 4 года назад +2

    Why do you have n=T_max*2 in 8:11

    • @VDEngineering
      @VDEngineering  4 года назад

      It's the number of divisions. It ran fine on my PC. If you're getting error convert n into an int.

  • @terencecostigan4585
    @terencecostigan4585 5 лет назад +1

    Just wondering, in the equation: pt=((2/(g+1))^(g/(g-1)))*2.068 what exactly is that 2.068? Is this a mach number for the midline of the nozzle according to the parameters? Just trying to understand more fully

    • @terencecostigan4585
      @terencecostigan4585 5 лет назад

      Love the video though really helpful in trying to get my own code to work. Forgot to say this in the above comment.

    • @toufikkhattara4406
      @toufikkhattara4406 5 лет назад

      @@terencecostigan4585 please, have you found an answer for your question above 2.068 ?

    • @terencecostigan4585
      @terencecostigan4585 5 лет назад +1

      @@toufikkhattara4406 Not yet. I haven't seen that equation for critical throat pressure either. So I don't know.

    • @pawekaminski5110
      @pawekaminski5110 5 лет назад

      ​@@terencecostigan4585 Did you found the answer?

    • @pawekaminski5110
      @pawekaminski5110 5 лет назад

      ​@@toufikkhattara4406 have you found an answer for 2.068 ?

  • @andrewamoretti
    @andrewamoretti 4 года назад +1

    Has anyone solved the throat temperature problem at 5:19 minutes? is the formula correct? thank you all!

  • @johnh6184
    @johnh6184 4 года назад +1

    The Excel sheet will not grant me permission to edit it for my parameters. What should I do?

  • @user-er9ik7do6c
    @user-er9ik7do6c 8 месяцев назад +1

    Hello. Could you please upload the MATLAB code?

  • @nawaf8099
    @nawaf8099 2 года назад

    The chamber pressure depends on the nozzle design, so how you calculate it ?

  • @jamesquinn6662
    @jamesquinn6662 4 года назад

    Isn't this assuming Mach number varies linearly through the x direction of the nozzle?

  • @dhrumil7654
    @dhrumil7654 2 года назад

    Hey, if I want to simulate flow in the cd nozzle for merlin engine, but I take inviscid flow and air instead of the real propellants, will my chamber tmeperature and pressure be the same as the real values used in the engine?

  • @user-bq1js4vd2d
    @user-bq1js4vd2d 2 года назад

    I dont understand the calculations for exit pressure such as T = -131.21 + 0.00299*ALT ; and T = 15.04 - 0.00649*ALT. Why -131 and 0.00299*ALT. I have been searching for the formula off the nasa website but couldn't see it either. I hope you will see my question and explain. Thank you in advance

  • @martinaformidabile8956
    @martinaformidabile8956 4 года назад +1

    Given that n is computed as n = 2*T_max, and assuming that is a float, how can you run a loop that goes from 2 to n+1? It surely given an error...

    • @viralstock2784
      @viralstock2784 4 года назад

      Did u find why it gave an error@martina formidabile

    • @martinaformidabile8956
      @martinaformidabile8956 4 года назад +1

      @@viralstock2784 yes, it says n is a float and it cannot run the loop with the index being a float. It must be an integer...

    • @viralstock2784
      @viralstock2784 4 года назад

      How Did u solved it then..?@martina formidabile...

    • @VDEngineering
      @VDEngineering  4 года назад

      It ran fine on my computer, m goes to 56 and n is 55.3, to fix this just use floor to make n an integer.

    • @David24476
      @David24476 3 года назад

      @@VDEngineering Bro, thanks for this explanation and for taking the time to explain the code, but I have a question, why you take n=2*T_max? I believe the length of the for loop vector should be n=1*T_max. the final T(m) should be equal to T_max no 2*T_max. that's twice the deflection of the wall. Am I missing something?

  • @jednecro4939
    @jednecro4939 3 года назад

    what is chamber pressure here ? i could not find where it really defines

  • @aviationengineeringandtrav6250
    @aviationengineeringandtrav6250 7 месяцев назад +1

    The link to the code please do provide

  • @lolQ459
    @lolQ459 5 лет назад

    Im having trouble exporting the points into excel file. seems like the transpose function isnt working properly..... please help!

  • @TiffQ3
    @TiffQ3 4 года назад

    line 111 gives an error message of an unrecognized function or variable "LAST"

  • @gkastofficial8357
    @gkastofficial8357 3 года назад

    [HELP!!! ] I have another Matlab code that gives me non-dimensional coordinates, how do I properly convert them to match my design, please help

  • @MsDehane
    @MsDehane 5 лет назад

    hi
    first think you for your help
    so i try to run your programme but a get this message errore
    You can either set desired thrust OR mass flow rateError using fzero (line 290)
    The function values at the interval endpoints must differ in sign.
    Error in MOC (line 66)
    M(m) = fzero(func,x_int);
    can you help me to fix it

    • @ssaikrishnasubudhi3373
      @ssaikrishnasubudhi3373 5 лет назад

      i too face d same prblm..did u got any solution to fix it...
      if yes plzz help me out..
      thank you!!

  • @andreimadalin6207
    @andreimadalin6207 3 года назад +1

    There is no reason to have thrust or mass flow rate in your code. It doesnt affect the nozzle exit mach at all, so I replaced Me as =FT/(m_dot*sqrt(g*R*T_e)); .

  • @kevint5020
    @kevint5020 4 года назад

    Hello, can you explain how you got the exit pressure equation, which was dependent on altitude?

  • @pawekaminski5110
    @pawekaminski5110 5 лет назад

    Which documents / books did you use during writing this code? I found many MOC codes and every of them is different.

  • @adrianc9692
    @adrianc9692 5 лет назад

    Hey man, another question, at 5:19 you explain how to get the throat temperature. When I run the MATLAB code, the throat temperature comes out to be 2982000 which doesn´t make sense. Sorry if im bothering you, I´m just trying to understand.
    When doing a dimensional analysis, the units come out to be kJ/kg, not kelvin as one would expect.

    • @ssaikrishnasubudhi3373
      @ssaikrishnasubudhi3373 5 лет назад

      i too have d same doubt...the formula izz wrong..
      n i have a question that when we calculate exit mach from area ratio we get different value which is much different in exit mach we get from code.
      cn u suggest e smthing..

    • @pawekaminski5110
      @pawekaminski5110 4 года назад

      If I want to change the code to axisymmetric should i put radius^2 in every formulas?

    • @andrewamoretti
      @andrewamoretti 4 года назад

      Has anyone solved the throat temperature problem at 5:19???

    • @Sammad73
      @Sammad73 4 года назад

      Try to put TT = 2*T_1/(g+1) instead

  • @jayjay2791
    @jayjay2791 2 года назад

    It does NOT seem the code has been validated comparing it with other sources, doesn't it?

  • @cams1365
    @cams1365 5 лет назад +1

    Is the thrust parameter measured in newtons or kilonewtons?

    • @theawsomedude37
      @theawsomedude37 5 лет назад

      It's in Newtons, cause everything else in the rocket thrust equation is in SI units.

    • @cams1365
      @cams1365 5 лет назад +1

      @@theawsomedude37 Thanks man, much appreciated.

    • @pawekaminski5110
      @pawekaminski5110 4 года назад

      If I want to change the code to axisymmetric should i put radius^2 in every formulas?

  • @jenithjohn3248
    @jenithjohn3248 5 лет назад

    Can you please help on how to design a Mach 2 nozzle design using MOC?

    • @VDEngineering
      @VDEngineering  5 лет назад +1

      Use my code and set your pressure parameters to produce Mach 2 at the exit!

  • @adrianc9692
    @adrianc9692 5 лет назад

    Also, what about the converging section? are the dimensions pretty much arbitrary?

  • @dhrumil7654
    @dhrumil7654 2 года назад

    Why is R = 355 ? What are the units?

  • @pawekaminski5110
    @pawekaminski5110 4 года назад

    Hi.
    If I want to change the code to axisymmetric should i put radius^2 in every formulas?

    • @VDEngineering
      @VDEngineering  4 года назад

      You could try, but just use planar for now

    • @pawekaminski5110
      @pawekaminski5110 4 года назад

      @@VDEngineering Just wondering what are differences. I would like to compare both methods, but dont know how to change the code

  • @pranaykumarreddysuram4691
    @pranaykumarreddysuram4691 2 года назад

    Hey guys why iam getting area ratio 0.3! Is there any bug in the code? Please help me out!

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

    Hi! I have a question what does the green line in the graphic represent. Thank you!

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

      that's the first generated wall point at 11:18

  • @Sarathsodisetty_6
    @Sarathsodisetty_6 5 лет назад

    sir can u make again the video of matlab and flightgear because so many members will understand clearly.please sir

  • @johnh6184
    @johnh6184 4 года назад

    What unit is thrust and R in?

  • @gkastofficial8357
    @gkastofficial8357 3 года назад

    How good is the parabolic approximation of a bell nozzle?

    • @VDEngineering
      @VDEngineering  3 года назад

      Good enough

    • @gkastofficial8357
      @gkastofficial8357 3 года назад

      @@VDEngineering I'm currently part of a university team that's designing their own rocket engine, do you think the parabolic approximation is good enough for such projects?. Also thank you for replying

  • @pawekaminski5110
    @pawekaminski5110 5 лет назад

    pt=((2/(g+1))^(g/(g-1)))*2.068 what exactly is that 2.068?

  • @parthaggarwal1684
    @parthaggarwal1684 4 года назад

    is the chamber pressure stagnation or static?

  • @yashrajverma7289
    @yashrajverma7289 2 месяца назад

    Where do i get this code from ?

  • @user-dq4eb6tw8i
    @user-dq4eb6tw8i 9 месяцев назад

    Hello there,
    I referred your video and facing an issue in the same can you please help me out. Please tell where can I get in touch with you.

    • @VDEngineering
      @VDEngineering  8 месяцев назад

      ruclips.net/video/WJkTGog_aK0/видео.html&ab_channel=VDEngineering

  • @Cryptoadz531
    @Cryptoadz531 2 года назад

    Hi Sir, are you available to tutor?

  • @strangesupreme7606
    @strangesupreme7606 5 месяцев назад

    Where is the code

  • @Filipcorobivblenderi
    @Filipcorobivblenderi 3 года назад

    5:54 isnt that a mistake? shouldnt be m_dot=FT*v_e; ?

  • @jednecro4939
    @jednecro4939 3 года назад +1

    throat temp = 2982000 :) this is impossible.

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

    Your code works great, I've got to give you credit for that! But I can tell that you had a very poor understanding of what the variables were, and what they meant. Under "%% begin calculation," you said that TT is a temperature value, but R is not dimensionless, it's a specific enthalpy. Also, PR2 isn't a pressure ratio, it's temperature.
    I think it would be great if you knew this so you could improve your code and documentation!

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

      Also, I just saw your updated video. I started modifying your code well before you made that comment. Thx!

  • @mojtabakarimi2590
    @mojtabakarimi2590 5 лет назад

    are you iranian ??

  • @jayjay2791
    @jayjay2791 2 года назад

    Don't waste your time trying a code with errors.

  • @aniketkadam8563
    @aniketkadam8563 10 месяцев назад

    where is the code

    • @VDEngineering
      @VDEngineering  8 месяцев назад

      ruclips.net/video/WJkTGog_aK0/видео.html&ab_channel=VDEngineering