[CFD] Residuals in CFD (Part 1) - Understanding Residuals

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

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

  • @fluidmechanics101
    @fluidmechanics101  3 ปีที่แล้ว +52

    Hi Everyone, I just wanted to say thank you to those of you who noticed the sign errors on Slides 6 and 7. The coefficients A21 and A23 should be - k L / Delta x. In general for the Laplacian operator, the coefficient of the diagonal (A22) should equal -1 times the sum of the other coefficients, and so the coefficients A21 and A23 should have a - sign! In Equation 1 and 2, Qsource should be negative, as the sign convention here is positive heat fluxes denote heat leaving the cell (so Qsource should be -Qsource as heat is entering the cell). For those of you who support the channel on Patreon, the PDF slides have been corrected there. For everyone else, I have pinned this post so that you are aware of the typos if you go through the derivation in your own work. Thanks again for watching the lectures and supporting the channel :) Aidan

    • @jimeshpitroda937
      @jimeshpitroda937 3 ปีที่แล้ว +4

      can you make how to study transient residuals? big thank you . you are doing great work sir

    • @Hari2100
      @Hari2100 3 ปีที่แล้ว

      I hope youtube provides a way to re-upload with corrections in slides to the video in a much quicker way. It helps everyone. This is because not everyone sees both videos and comments. @Aidan: It may help everyone.

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

      Yes, me too! I haven't found a better way of doing this yet. It would be really good if there was a way of having a 'living lecture' that we can update with corrections and improvements. The best I can think of so far is to pin a comment with corrections / include the corrections in the description

    • @jacks.554
      @jacks.554 10 หลายเดือนก่อน +3

      ​@@fluidmechanics101 Hello there, I think that the explanation stated above could be rather misleading for someone. There are strict rules that should be followed during the calculation procedure. First, we need to specify a positive direction for the heat flux (let´s assume a positive direction for heat flowing INTO the element). Therefore, any heat flowing out of the element will have a minus sign. Then, we need to stick to the second rule which is the fact that heat flows from a higher temperature to a lower one. So, according to our specified diagram, the temperature differences should always be written as follows: (temperature at the tail of the arrow - temperature at the head of the arrow). The trick is that we can specify the directions of the arrows in the diagram arbitrarily as long as we stick to these rules. Hope it helps! Thanks for the great work!

    • @mohammedtosifahmed3730
      @mohammedtosifahmed3730 8 หลายเดือนก่อน

      Sir were can I get 3d navier stock equations in python

  • @edoardolucianobrunetto7819
    @edoardolucianobrunetto7819 3 ปีที่แล้ว +46

    It’s just great to see how you manage to unfold the less intuitive concepts into a super clear explanation based on understanding rather than learning definitions by heart. Keep it up man!

  • @atakan716
    @atakan716 ปีที่แล้ว +7

    Your mastery over the topic is so great that everything challenging about CFD becomes easy to grasp thanks to your beautifully chosen examples during the lecture.

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

    You r my new cfd mentor.

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

    I give you the Nobel of engineering on behalf of the CFD community. Respect!

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

    Super clear explanation! Congrats for bring to us a very useful topic in an easyful manner.

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

    thank you ,you are great

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

    Hello from Russia. it's really cool that you record such informative and explanatory videos, thank you very much, I really want you to release your videos more often, as they help to better understand the work of cfd code. I'm really looking forward to the second part about the residuals. thank you!

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

    You are the best thing happened to CFD guys. Thanks a lot!

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

    What a great video!!! We brazillians are gratefully with your great explanation about residuals in CFD simulation with a clarify inglish.

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

    Good grief! What a perfectly wonderful explanatory video. After four years of engineering I didn't get it half as well as I got it from your presentation. Thank you!

  • @titox7754
    @titox7754 8 หลายเดือนก่อน +1

    Awesome video buddy! You break down super complex concepts into easy-understanding, bearable videos! Keep it up.

  • @AliMostafazadeAbolmaali
    @AliMostafazadeAbolmaali 3 หลายเดือนก่อน +1

    Another amazing video! The way you explain the equations is truly impressive, making them easy to remember.

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

    Not only useful, extremely useful.

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

    Amazing lecture. Now I am able to understand what residual actually is. Thanks a lot for such a wonderful talk.

  • @thunder852za
    @thunder852za 3 ปีที่แล้ว +3

    Very good talk, and well explained. I like the physical intuition, it is exactly the way I interpret residuals as well. For a typical incompressible solver, the residual normally represents how 'divergence free' your flow is. For our code, we actually use both L_2 and L_inf and have relations between them to assess convergence.
    I am sure you will touch on this in the next parts but felt I would just add the below:
    Another added approach I have seen to residual normals is volume weighting. Here, every cell's residual is multiplied by the volume of the cell, and then the domain volume is divided through instead of N. This allows for small stiff cells to not hold up a simulation. This can be useful on unstructured meshes.
    Yet another thing to do is to divide your residual by b, this normalises the residual in a way that makes the problem less dependent on the dimensionality of the simulation. In this case, the interpretation is more along the lines of how many orders do you want to drop the residual 'relative to the starting point'. This can provide more consistent convergence tolerances being applied.

  • @jaswindersingh3715
    @jaswindersingh3715 4 หลายเดือนก่อน

    Thanks a lot Aidan. I really enjoyed the whole series. It really explains all the important nuisances one needs to know. Great work.

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

    Best explanation I have seen on this; thank you so much!

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

    This is great! Finally residuals are being addressed..went through some cfd manuals but there was never really a clear explanation about what or how..thanks for the awesome video. Can't wait to see the next one

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

    Really enjoying the talks on the slightly deeper theory behind the more general CFD concepts that people run into!

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

    Many thanks for your detailed clarifications. Excited to watch the next part.

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

    Great video! I've never seen any other media(clip, text, manual, whatever) describing the basics of residuals as much as this.

  • @ssss4391
    @ssss4391 3 ปีที่แล้ว

    Brilliant how you chose a simple heat conduction problem to explain residuals. Excellent talk. Look forward to the next in the series

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

    Great video!! Your breakdowns are extremely easy to understand and implement!

  • @bhavin_patel4917
    @bhavin_patel4917 2 ปีที่แล้ว

    Its is very good that someone can simplfy the complex information and present in a beautiful way .

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

    Very helpful! I have been waiting for you to make videos on residuals! Looking forward to the next videos!

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

    Terrific presentation, great visuals and excellent pace. Big thumbs up!

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

    It was a great talk indeed. Can't wait for the next parts.

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

    clear, concise explantion. Looking forward for the next ones.

  • @elainepenguind3481
    @elainepenguind3481 3 ปีที่แล้ว +4

    your crystal clear explanation just saved my day! thank you so much for the effort! :D

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

    Thanks for this helpful video. Excited about the other parts!

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

    Well organized and explained deeply. Thanks a lot.

  • @rajendrakumar-bn7ch
    @rajendrakumar-bn7ch 3 ปีที่แล้ว +1

    Great video (part 1). Looking forward eagerly to the coming parts.

  • @botonb4eg1
    @botonb4eg1 3 ปีที่แล้ว

    Just a few words. Simply the best explanation I have ever heard! Thank you very much!

  • @喬きょう-e1l
    @喬きょう-e1l 3 ปีที่แล้ว +9

    Thanks a lot. It’s just very impressive. can't wait watching part 2 3 and 4!

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

    Great! It really helps to have a good understanding of what residuals mean! Thanks!

  • @joseoswaldoc.2068
    @joseoswaldoc.2068 3 ปีที่แล้ว +2

    Excelente lecture. Waiting for next videos.

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

    it was very useful to understand the behavior of residuals during execution

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

    Thanks Aidan, I've really enjoyed it and found it quite useful.

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

    Thank you so much for the explanation. Eagerly waiting for part II. Keep it up!

  • @mark.hates.u
    @mark.hates.u 3 ปีที่แล้ว +1

    Q: In practice, what do you think is the acceptable range of representative residual values to say that you have good results in your CFD? Some papers say around 10^-4 and below for all transport parameters.
    Can't wait for the next parts of your lecture.

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

      Yes, 10^-4 seems to be pretty good in most CFD solvers (just from personal experience and the experience of others). But as always ... please check other quantities to check you have convergence (forces, moments, point monitors etc). Residuals are not enough by themselves!

  • @disinlungkamei2869
    @disinlungkamei2869 8 หลายเดือนก่อน +1

    Excellent explanation loved it

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

    Great explanation!! Looking forward to many such talks.

  • @dmitriykogan8879
    @dmitriykogan8879 4 หลายเดือนก่อน +1

    Thank you so much for such a detailed and perfect explanation!

  • @sarojmandal981
    @sarojmandal981 2 ปีที่แล้ว

    Very useful video. Cleared all concepts for me.

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

    As always thanks a lot for such a detailed explanation on residuals. Looking forward to learn more on this.

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

    I found this video very helpfull and got more understanding in that resudials mean. Going to part 2.

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

    This video made me feel just WOW!
    Great explanation sir.
    Loved it!!

  • @86gamemachine
    @86gamemachine 3 ปีที่แล้ว +1

    What a wonderful and beautifully simple explanation! Thank you, sincerely!
    Eagerly awaiting for the next parts.

  • @ashutoshsingh-et7vm
    @ashutoshsingh-et7vm 3 ปีที่แล้ว +4

    Eagerly waiting and excited to hear your talks they are great and help me out very much in my masters studies it an request can you please make some video on Aeroacoustics cfd simulation basics

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

    Very good talk, and well explained. Thank you.

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

    Fantastic explanation of residuals. I finally know what Φ represents. I can't wait for your residual scaling explanation (local v global)

  • @hahahaha-hn4qu
    @hahahaha-hn4qu 2 ปีที่แล้ว +1

    awesome video couldn't have explained it better

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

    Thank you for these lectures once again, you are such a good pedagog on this subject! There is a slight error on the slide at 4:15 where you go through the numerical calculation. The T2 term should be negative overall, following all the algebra.

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

    Thanks a lot, Aidan! It's a perfect explanation

  • @manishankaryadav7307
    @manishankaryadav7307 3 ปีที่แล้ว

    Your lucid way of explanation is just awesome.
    When I have question like how can I get just a value for the residual that may represent residuals of each cells.? And there you explain.
    I do not even recognise that the video has ended.
    Thank you so much for your hardwork.

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

    So enlightening talk and thank you very much

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

    thanks a lot for these valuable lessons ..

  • @dawnnee267
    @dawnnee267 2 ปีที่แล้ว

    Thanks, Aidan, for your brilliant explanation on the practice residuals! It really helps me to understand the part of CFD!

  • @mareksawicki9070
    @mareksawicki9070 3 ปีที่แล้ว

    Thank You Sir i finally understood what is all about. You are supertalended teacher!

  • @gsambuko
    @gsambuko 3 ปีที่แล้ว

    u are just a god! Thank you for a such incredible explanation of a not so homogen information in different sources!

  • @sudhanshumaurya2860
    @sudhanshumaurya2860 3 ปีที่แล้ว

    its good to be back here learning basics of CFD, always the best and informative videos.
    thanks

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

    This is exactly what I needed! Thanks

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

    Спасибо! Жду следующее видео!

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

    Nicely Explained. Thanks for such informative video.

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

    Amazingly explained, thank you

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

    Thanks for making such a brilliant video

  • @CP-zi3eg
    @CP-zi3eg 3 ปีที่แล้ว +3

    Great explanation...thank you.

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

    Thanks for sharing! Great explanation. 🙂

  • @dinnaruto
    @dinnaruto 3 ปีที่แล้ว

    Thank you so much for the explanation. I'm used to follow what my lecturer does since he doesn't explain anything abt residual concept. Now I really understand it after watching this vid. Looking forward for Part II. Keep it up man!

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

    Excellent talk!!!

  • @danielmartin4995
    @danielmartin4995 3 ปีที่แล้ว

    It’s just disappointing, that there are not all parts of your already out! Awesome how easy cou can deliver that complicated stuff in an easy manner. Thanks a lot!

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

    Thsnk you, please continue the topic

  • @mercurial152
    @mercurial152 3 ปีที่แล้ว

    thanks a lot for sharing your knowledge, I hope to see next videos soon.

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

    Great explanation Bro…

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

    Thanks Man for the informative work, this kind of work over youtube may not be benifitial to you compared to the youtubers who provide silly content but, the gold stays gold and whatever else is whatever else. keep the good work up, we are excited for more !

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

    Great work!

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

    That is Great Mate, really helpful cheers!

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

    I really really appreciate your videos, these are so informative and very very helpful

    • @fluidmechanics101
      @fluidmechanics101  2 ปีที่แล้ว

      Fantastic 🙂 I'm glad you are finding them useful

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

    Do you have a video focussing on how iterative methods get to the correct result? How does an iterative solver solve Ax=b for example, and why would it converge to some value and not just spit out random results in every iteration?

    • @fluidmechanics101
      @fluidmechanics101  2 ปีที่แล้ว

      For this we would need to look at the solvers themselves (Gauss Seidel, conjugate gradient, algebraic multigrid). I haven't had a chance to make videos on these yet. In the meantime, you could always check out the wiki for these solvers?

  • @michaelb.5399
    @michaelb.5399 13 วันที่ผ่านมา

    excellent video! so easy to understand! thanks so much for all your videos :)

  • @rafaortwein6646
    @rafaortwein6646 4 หลายเดือนก่อน

    Fantastic lecture, many thanks.

  • @Hari2100
    @Hari2100 3 ปีที่แล้ว

    Good info on type of norms

  • @dustin3291
    @dustin3291 3 ปีที่แล้ว

    Beautifully structured presentation! Thank you so much!

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

    Very useful indeed!
    Perhaps in later parts, you could talk about residuals in an unsteady simulation! (especially OpenFOAM!).
    Thank you!

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

    Thank you sou much for explaining these concepts in a simple and understandable way. Also can you please tell ne how you make your slides look so good? How do you make thise images for the cells and plots?

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

      Its all in inkscape 👍 (and a bit of practice)

  • @kshitijghormode8788
    @kshitijghormode8788 3 ปีที่แล้ว +3

    Thanks for this amazing video. Residuals topic can be very confusing at times and it’s difficult to interpret the residual line plots.
    Eagerly looking forward for the subsequent parts.
    Also it would be helpful if you could address oscillating residual plots which I had once encountered in my CFD simulation.

  • @basaruoz7127
    @basaruoz7127 2 ปีที่แล้ว

    Thank You so much for this wonderful and beautifully simple explanation, Thank you, sincerely!

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

    Great video! Thank you very much for sharing this!

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

    Thank you very much for all you taught me!

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

    Fantastic video! Really helped me in better understanding those funny wobbly lines 😁

  • @gokhantasdemir891
    @gokhantasdemir891 3 ปีที่แล้ว

    I found that video series really useful ,and what I would say is I have better understanding of residual plots and convergence process :)
    Thanks

  • @Millie_the_Scammer
    @Millie_the_Scammer 2 ปีที่แล้ว

    YOU "R" A LIFESAVER. Thank you so much.

  • @prakashthirunavukkarasu29
    @prakashthirunavukkarasu29 3 ปีที่แล้ว

    Great presentation! I appreciate for putting in so much effort. Thank you!

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

    Thanks very much. The videos are very helpful.

  • @mohamedsalem3671
    @mohamedsalem3671 3 ปีที่แล้ว

    you're amazing ... one million thumbs up

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

    Thank you. This is a very useful video to have a deep understanding of the CFD. But I have a question, could you tell me if we have the equations for AT=B and solve the vector T. Why we still have residuals when we go back to calculate the AT-B?

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

      You calculate the residual AT-B using T from the previous iteration, before solving AT=B. Of course, when you solve AT=B the residual will be close to zero when you solve it, as you pointed out ☺️

    • @zifanli1276
      @zifanli1276 2 ปีที่แล้ว

      @@fluidmechanics101 Thanks for your answer. But I am still confused. For example for the first iteration, using the AT=B to solve the first T1 vector. And for the second iteration, using the T1 vector to solve the AT1-B to get the residuals. Is that process right? If yes, what has changed so that makes AT1≠B, Since the T has been solved by the equations in the first iteration? :)

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

      Yes you are correct. In the case we looked at here, the system is linear and there is no real need for iteration. In a real system you may have non linear conductivity or you may have a flow field which is affected by buoyancy forcing from the temperature field. Indeed for most fluid systems convection carries most of the heat transfer and conduction is small, so the residuals might change significantly while the flow field is still updating

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

      @@fluidmechanics101 Thank you! Now i understand it, the real system usually can't be solved easily so that we need to use the iteration to approximate like for example Gauss Seidel Methods. Your videos are very useful and I will keep watching it. I hope more and more people can watch your videos!

  • @MrSmith-vy1em
    @MrSmith-vy1em ปีที่แล้ว +1

    Please, one question.
    If the heat source inside the bar FV 2 is a nonlinear problem, why do you use a linear equation solver to solve the temperature matrix?

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

      Normally we have to solve a set of equations (not just the energy equation) together. For stability we locally linearise each equation and then proceed slowly using relaxation/ time stepping. Non linear solvers tend to be more expensive (particularly computing that determinant) and the set of equations are all non linear together

    • @MrSmith-vy1em
      @MrSmith-vy1em ปีที่แล้ว +1

      @@fluidmechanics101 Thanks for the help. Excellent content.

  • @EclecticVibe
    @EclecticVibe 3 ปีที่แล้ว +11

    Just a few days back was researching the residual outputs from solvers in OF! Thank you. Can you please also consider making videos on linear solvers and compressible solves.

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

    Thank you very much for the explanation! 👍