Explained: NACA 4-Digit Airfoil MATLAB Code [Airplanes]

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

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

  • @dillonoreilly5867
    @dillonoreilly5867 6 лет назад +1

    Hey Josh, Thank you for the really great videos. They explain things very clearly and It's pretty hard to find video's on these topics that are good. Your doing a great job! Kepp it up!

  • @luizotaviocfg
    @luizotaviocfg 9 лет назад +3

    That's nice. Thank you for your videos.
    I'm working on airfoil optimization. I'm having some difficulties on using the softwares, cause I've never used MatLab or Xfoil, but I'm learning. I guess my idea is simple: I want to change the geometry of a 4-digit airfoil to get more specific and appropriate coefficients (cl and cd mainly). But I wanna take them as inputs. Do you have any idea of where I could start from? How can I make these two softwares get in touch?

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

    Help me please,
    My program says Index Exceeds Matrix Dimension. Although I copied everything from your code, it says that error.

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

    Hey Josh,
    How can I get the profile equation? I want to find the pressure distribution and for that, I need the streamfunction (which is the airfoil profile) to find the velocities and then plug it into Bernoulli to find the pressure distribution. Let me know if there is a more straightforward method. Thanks.

  • @rajibkudas123
    @rajibkudas123 6 лет назад +1

    Just what I was looking for...Ur explanation is v. Good....Can you pls suggest is it possible to programme Pressure distribution over the Aerofoil..

    • @JoshTheEngineer
      @JoshTheEngineer  6 лет назад +1

      Thank you! Yes, you can plot the pressure distribution if you use something called the Vortex Panel Method. That's a video I plan on making in the future, but there are already some good books and tutorials out there for how to code panel methods.

    • @rajibkudas123
      @rajibkudas123 6 лет назад

      JoshTheEngineer Thanks for your reply.....Actually the eqn for pressure distribution is in differentiation from unlike aerofoil thickness eqn...Please make a video on it...Thanks

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

    It says INDEX EXCEEDS MATRIX error. 😭😭😭

  • @Juanhcarlosma
    @Juanhcarlosma 8 лет назад

    +JoshTheEngineer Thanks for this great video! Had a quick question though, how did you determine the constants (lines 23-27). I know you mentioned that they were from the other video but I still don't know from where you got them. Thanks in advance and nice job with the videos!

    • @JoshTheEngineer
      @JoshTheEngineer  8 лет назад +3

      Thanks for watching! So first of all, if you don't already have it, I recommend getting the book Theory of Wing Sections by Abbott and Von Doenhoff if you're interested in wings/airfoils etc. In the section about the NACA 4-digit airfoils (section 6.4, page 113) they state the following:
      "When the NACA four-digit wing sections were derived, it was found that the thickness distributions of efficient wing sections such as the Gottingen 398 and the Clark Y were nearly the same when their camber was removed (mean line straightened) and they were reduced to the same maximum thickness. The thickness distribution for the NACA four-digit sections was selected to correspond closely to that for these wing sections and is given by the following equation"
      The equation stated is Eq. 6.2 on page 113, which includes these seemingly arbitrary coefficients that you're asking about. From the quoted selection, it seems like these coefficients were chosen to closely match the thickness distributions from other airfoils that were known to work well.
      You can mess around with the values and see how they change the geometry, keeping everything else the same. You can also load in the two airfoils they mention, remove their camber and compare the thickness distributions from these airfoils. It could be an interesting, informative experiment.

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

    Hey Josh, I followed your code step by step and am not getting the airfoil as expected. I’m getting a half weird square

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

      If you're using the same code as mine, then I don't know what would be going wrong. I would have to see the code to be able to check it for sure.

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

      JoshTheEngineer Sorry my bad. Works fine. Thanks for the reply! Love all your videos. I usually stop by your videos for reference. You in the industry?

  • @SatishNatarajan
    @SatishNatarajan 7 лет назад +1

    Thanks for the video. I have a question. Is there a way to verify if the aerofoil shape generated is correct or not?

    • @JoshTheEngineer
      @JoshTheEngineer  7 лет назад +1

      The best way to verify is to go to this website: m-selig.ae.illinois.edu/ads/coord_database.html
      You can download the coordinate files for the airfoils and check them against the ones produced by my code. If you choose the same number of points, the values should be identical (which I believe I check in this video for a certain airfoil). If you increase the number of points in my code, the shape should still be the same, it will just have a higher resolution.

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

    can you wrire a program to caculation simulation aerodynamics of naca airfoil 2d by matlab ???

  • @mirkoragni3118
    @mirkoragni3118 6 лет назад +1

    This is really an amazing program! Can you add the option of saving the airfoil as .svg or .dxf? Thank you very much

    • @JoshTheEngineer
      @JoshTheEngineer  6 лет назад

      Thanks! I'm sure it could be done, but I'm not familiar with the formatting of those files. For the CAD program though, you should be able to open up the text file with too much of a problem.

    • @mirkoragni3118
      @mirkoragni3118 6 лет назад

      JoshTheEngineer yes by exporting the xls format is not a very big problem working with them, svg or dxf are only easier to work with :-) Thank you very much

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

    Thanks a lot for video. İts helped to me make a decision shape. İf you have got videos for Naca5, Eppler and Gottingen you can share with us. Thank you.

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

      You're welcome! In a semi-recent video that I posted, I showed how you can download the UIUC airfoil database, and then also how you can read those airfoils into MATLAB or Python. You might want to check out those two videos (ruclips.net/video/nILo18DlqAo/видео.html and ruclips.net/video/xJYxMfGFrk8/видео.html)

  • @Contarius9
    @Contarius9 9 лет назад

    Thanks!
    Glad I found this channel :)

    • @JoshTheEngineer
      @JoshTheEngineer  9 лет назад

      Contarius9
      You're welcome! Thanks for watching.

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

    Hello. Thank you for your video! How can I plot the camber line?

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

      You're welcome! Since the code already calculates the camber line, you can just use the following code to plot it: plot(x,yc,'k-'); This plots a black line for the camber line.

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

    Hello @JoshThe Engineer your video is so amazing and meaning full . But I am getting some problem while I inserting same code as yours , I got Error like
    Expected H to be a vector of handles to one or more MATLAB graphics object .
    Can you please help me out .
    Thanks and waiting for your positive response 👍🏻

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

    Help me please.
    How to export that airfoil coordinate from Matlab to excel ??

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

      You could use the xlswrite function (which apparently isn't recommended anymore, see the documentation), or you could use fprintf, which is what I typically do.

  • @avrupadabiremir
    @avrupadabiremir 8 лет назад

    Hi :) First of all thanks for the video, it is very good. But i have a question.
    When i checked the wikipedia page of 4-digit airfoils, equations have chord length in it too. But you didn't use it. How could you do that or did i miss something?
    Thanks.

    • @JoshTheEngineer
      @JoshTheEngineer  8 лет назад +2

      You're right, the Wikipedia equations have the chord length, 'c', in them. Now just plug in a value of one (1) for chord length into those equations, and they should be the same as the ones I'm using. It's really just a non-dimensionalized version of the Wikipedia page.
      Here's why the way I write it might be better. You can find the correct airfoil you want to use, and output the data coordinates just once. Then if you have a program that puts them together into a swept wing (for example, because it has varying chord length), then you can just multiply the X and Y values in the coordinate file by the chord length and you're good to go. You'll see in the airfoil coordinate files that the X values go from 0 to 1 (technically from 1 to 0 to 1, but that's to define both the upper and lower surfaces). Multiplying by the desired chord length makes the X values go from 0 to 'c', and since the thickness (Y values) was also defined with respect to a non-dimensional chord length of 1, they will change accordingly.

    • @avrupadabiremir
      @avrupadabiremir 8 лет назад

      Thank you so much, that's a good idea. Actually i remembered we can use those coordinates in other programs as we took from matlab.
      Also i finished the series and that project was one of our teaching assistans suggested to me. Because i am an aerospace engineering student and i asked to him to how i can learn matlab depending on my education.Thank you so much again. And i want to ask if you have any suggestion to me like this project.

    • @JoshTheEngineer
      @JoshTheEngineer  8 лет назад

      The best way to learn MATLAB is to just keep using it. It doesn't necessarily have to be aerospace related. Think of something that might be cool to have automated, and code it up. For example, I'm usually indecisive when picking an episode of my favorite TV series to re-watch. So I decided to make a random episode picker. Then I expanded it to all the shows I watch. Then I put it into a GUI.
      If you're looking for a couple aerospace related MATLAB programs, check out my GitHub account here:
      github.com/jte0419
      In particular, the Rocket Nozzle Design and Taylor Maccoll codes are applicable to aerospace engineering. I'll be doing videos about the derivation and coding for those in the future, but you might be able to figure them out on your own.

    • @avrupadabiremir
      @avrupadabiremir 8 лет назад +1

      That was nice. I will try to do some basic things which comes to my mind. Thank you for your kind answer.

  • @leanghoa7442
    @leanghoa7442 9 лет назад

    thanks for your video. but where can i take the modul likes yours, because i don't know much about matlab , thank you

    • @JoshTheEngineer
      @JoshTheEngineer  9 лет назад

      hoa le dang
      You could take the basic outline of the code and use a language like C++ or Java if you are more familiar with them. You should also be able to make a spreadsheet in Excel that will calculate and plot an airfoil of your choosing.

    • @leanghoa7442
      @leanghoa7442 9 лет назад

      thank you so much

  • @anilkumarkaki8426
    @anilkumarkaki8426 6 лет назад

    Thank you for your videos.
    i am working on conformal mapping of an airfoil. I am having some difficulties i am not getting how to map NACA airfoil. Please could you help it.

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

      You're welcome! I had planned on doing some conformal mapping videos in the future, but I don't know when that will be. The book Fundamental Fluid Mechanics by Currie has some good information on this topic though.

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

    How do you plot a 3 digit airfoil?

  • @sushilkumarsingh3182
    @sushilkumarsingh3182 7 лет назад

    sir please provide me the code for how to make 3d wavy trailing edge for naca0012 aerofoil.

    • @JoshTheEngineer
      @JoshTheEngineer  7 лет назад

      I'm not sure I can help you with this, as I've never looked into it before. You can probably take a NACA 0012 airfoil, change the chord length in some sort of sinusoidal manner, and then extrude along the wing span between the various airfoils. That should get you started.

    • @sushilkumarsingh3182
      @sushilkumarsingh3182 7 лет назад

      can you please send me the sample code for that so that i can start

  • @SebastianGarcia-wf2iw
    @SebastianGarcia-wf2iw 5 лет назад

    hi! I loved your videos but I have a little question if I change my length chord, I mean I chose 1.47 instead 1 (m,ft) How can I fix it? I tried to change the limits and multiply by 1.47 but I feel that is something with ' ones'
    thanks for reading.

  • @coepmech6192
    @coepmech6192 7 лет назад

    Please explain 5 digit and six digit NACA series with program....

    • @JoshTheEngineer
      @JoshTheEngineer  7 лет назад +1

      Those videos are on my to-do list. It's been a crazy summer, but I'll be back to making videos soon.

  • @premkumarppithiya7434
    @premkumarppithiya7434 9 лет назад

    whats on x-axis & Y-axis?

    • @JoshTheEngineer
      @JoshTheEngineer  9 лет назад

      Premkumar P Pithiya
      Sorry, I didn't put units on the axes. It's just a unit length though. If you watch the video I posted in the description, I briefly mention that I'm using a length of one unit for the chord, and then the thickness is calculated accordingly. To get a different chord length, just multiply the X and Y values by whatever you want it to be.