No video

[CFD] Residuals in CFD (Part 4) - Global Imbalance

  Рет қаралды 11,566

Fluid Mechanics 101

Fluid Mechanics 101

Күн бұрын

Part 4 of the lecture series on residuals in CFD. This talk discusses the global imbalances and how they are different to the local imbalance (residuals). The talk is divided into the following chapters:
0.00 Introduction
0:51 A recap of residuals and scaling
5:55 Global imbalances explained
12:00 Scaling the global imbalance
14:45 Global imbalance for complex (3D) geometries
17:27 Residuals (Local Imbalance) vs Global Imbalance
21:28 How to monitor the Global Imbalance
24:04 Point Monitors
28:40 Maximum and Minimum Values
31:50 Diagnosing convergence difficulties
35:29 Summary
37:07 Outro
#residuals #fluidmechanics101 #cfd
============================================
Want to learn more?
============================================
Grab a copy of my CFD Fundamentals Course (for beginners):
www.udemy.com/course/computat...
Learn how to write your own CFD code in MATLAB and python (for intermediates):
dr-aidan-wimshurst-s-school.t...
Learn how I draw my figures and diagrams in Inkscape (for everyone):
dr-aidan-wimshurst-s-school.t...
============================================
Did you like the video?
============================================
Download the lecture slides from my website:
www.fluidmechanics101.com/pag...
Buy me a coffee to say thanks:
www.buymeacoffee.com/NKEZrhvg0
Support the channel on Patreon (and get useful extras for your CFD studies):
/ fluidmechanics101
============================================
Donations:
============================================
1) PayPal
www.paypal.me/fluidmechanics101
==================================
Disclaimer
==================================
The methods, algorithms, equations, formulae, diagrams and explanations in this talk are for educational and demonstrative purposes only. They should never be used to analyse, design, accredit or validate real scientific / engineering / mathematical structures and flow systems. For such applications, appropriate trained, qualified and accredited (SQEP) engineers / scientists should be consulted along with the appropriate documentation, procedures and engineering standards. Furthermore, the information contained within this talk has not been verified, peer reviewed or checked in any way and is likely to contain several errors. It is therefore not appropriate to use this talk itself (or any of the algorithms, equations, formulae, diagrams and explanations contained within this talk) as an academic or technical reference. The reader should consult the original references and follow the verification and validation processes adopted by your company / institution when carrying out engineering calculations and analyses. Fluid Mechanics 101 and Dr. Aidan Wimshurst are not accountable or liable in any form for the use or misuse of the information contained in this talk beyond the specific educational and demonstrative purposes for which it was intended.

Пікірлер: 70
@jk463
@jk463 2 жыл бұрын
This series about residuals deserves every existing compliment. I've never seen any other lecture(not even in my univ) in this level in terms of not only context but also in visual/aural quality (although I know that I will still keep struggling dealing with my residuals, even after listening to this masterpiece... tough job to do). This lecture should be designated as an official introductory lecture for all CFD-newbies at schools and CFD software manuals.
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
Thank you so much for your kind words, it means a lot 😊
@mrfatah4510
@mrfatah4510 2 жыл бұрын
Thanks for bringing these fantastic lectures series to the small world of CFD (especially beginner) users!
@xuxu119
@xuxu119 2 жыл бұрын
thank you!!!!!!!!! your lectures are more useful than the ansys manual.
@wagdimahroussaieed
@wagdimahroussaieed 3 ай бұрын
i am was struggling with the assessing the solution convergence but after i watched your amazing videos i fount it quite easy process. thank you so much
@EclecticVibe
@EclecticVibe 2 жыл бұрын
Always happy to see FM101 video pop up! Thank you for your effort 👍
@zettaker2181
@zettaker2181 Жыл бұрын
Greetings from Russia! Thank you so much for such clear lectures. Love watch every of them and advise my friends at university/colleagues at work. It's pleasure that now everyone can get simple explanation on CFD topics just on KZfaq. Good luck with your work! 🙂
@sergniko
@sergniko 2 жыл бұрын
This was an amazing journey to residuals world! Very useful and helpful! Than you very much!
@denniii09
@denniii09 2 жыл бұрын
This series was insanely interesting. Although I already knew to not only care about residuals (RMS or MAX) but also about Imbalances, the theory behind of it all was making it even more clear for me. Thank you for these detailed and informative videos! Really excited for the next video...any hints, what topic you'll cover next ? :D
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
... maybe relaxation
@mdshupto183
@mdshupto183 Жыл бұрын
you are the best teacher. Love you Dr. Aiden
@alekseisorokin4723
@alekseisorokin4723 Жыл бұрын
Good job, Aidan! Thanks. It's a common advice when you have a convergence problem during the calculation try to simplify the model - exclude some equations, supersonic flow, polynomials in gas properties etc - and add this features consequently. Of course, it will not help completely if you have bad mesh cells. Good luck!
@rahulchopde2289
@rahulchopde2289 2 жыл бұрын
Thank you Dr. Aidan for this wonderful lecture series. Your lucid explaination of these complex topics will help us in perfecting our CFD simulations.
@botonb4eg1
@botonb4eg1 2 жыл бұрын
Thanks a lot for these series of lectures! Appreciate a lot!
@juliocesarortiz1770
@juliocesarortiz1770 9 ай бұрын
Thank you so much for your effort. Your videos are very useful. I will share your lectures in office :)
@Mercredification
@Mercredification 2 жыл бұрын
This lecture series is pure gold. Just the right mix of practical tips and mathematical background to understand the different concepts. I wonder if there exists a "solver specific" database with threshold recommendations for local and global imbalances in general and maybe for certain applications to provide some guidelines towards more credible simulation results or if they are too much simulation type or intent dependent in general. Anyways, really great work, appreciate it a lot!
@kimiyakasaei1661
@kimiyakasaei1661 Жыл бұрын
Many thanks for these set of helpful lectures!
@hebaalaaeldin2596
@hebaalaaeldin2596 Жыл бұрын
Thank you so much for this great effort!
@ilhantalih9949
@ilhantalih9949 2 жыл бұрын
Thanks sir, I look forward to seeing next lectures.
@Rau379
@Rau379 11 ай бұрын
Awesome Content!
@nac9494
@nac9494 2 жыл бұрын
Great series. Thank you so much!
@turalsuleymanov4529
@turalsuleymanov4529 2 жыл бұрын
Thank you very very much THat was amazing) I have watched all of the series and they are so useful.
@pietromaccari1968
@pietromaccari1968 10 ай бұрын
Great! Thanks for the video
@akshayghorpade8624
@akshayghorpade8624 9 ай бұрын
Great Lecture.
@debayanmazumdar7615
@debayanmazumdar7615 Жыл бұрын
nice and helpful video. quite detailed god bless you !!!
@markonabiy6632
@markonabiy6632 Жыл бұрын
Very helpful, thanks
@nishantbhatta9081
@nishantbhatta9081 2 жыл бұрын
Thank you so much for this residual series Dr. Wimhurst. I would be really grateful if you can explain about Multiphase flows especially VOF methods in some lecture series.
@user-fw9ej9gj1h
@user-fw9ej9gj1h 2 жыл бұрын
Thank you!
@omerkorcanates2150
@omerkorcanates2150 Жыл бұрын
Thank you very much, it was very usefull
@hungnguyenthanh8833
@hungnguyenthanh8833 11 ай бұрын
Your lectures were very fine! Although I am not able to understand alls. But I am also capable of improving my analyses in my CFD problems thanks to your lectures. Thank you very much and good luck for your channel!
@sarojmandal981
@sarojmandal981 2 жыл бұрын
Great video. Load of information for me doing Phd in mechanical engineering. Also, as a suggestion to learn more, can you also instruct us how to reduce residuals using ansys fluent, and what are the magnitudes when round-off error also propagates in the solution. A demonstration would be very helpful.
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
Good suggestions. Thanks!
@lizarettflavour
@lizarettflavour 2 жыл бұрын
great!
@abdelhak.keddouda
@abdelhak.keddouda 2 жыл бұрын
Great series of talks as always, thank you Dr. Aidan, I just have a question about if there is any plans for videos on how to account for Nanofluids in the Navier Stokes and Energy equations, thanks again for your efforts.
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
I haven't considered nano fluids before but I imagine they are more difficult because you are at a scale where the continuum assumption starts to break down
@mohamedshaaban2920
@mohamedshaaban2920 3 ай бұрын
thank you
@Asim408
@Asim408 2 жыл бұрын
Hi. I have one request. Kindly can you make a video about initialization and statistical data analysis in transient simulation. Thanks!
@denniii09
@denniii09 2 жыл бұрын
statistical data analysis in transient sims. sounds great!!!
@riebi34
@riebi34 2 жыл бұрын
Thank you so much for your work. It's highly appreciated. Please don't stop what you are doing 👏
@8cold8hot
@8cold8hot 2 жыл бұрын
This series of videos are extremely clear and practical! May I ask for a special case about residuals: If I run a DPM case with the continuous phase starting from the stagnant state, but the injected Lagrangian particles will bring in extra momentum and interact with the continuous phase, then what is the suitable criterion to judge whether the residuals for the continuity equation of continuous phase are small enough that the case is already converged?
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
I would probably look at other metrics besides just the residuals. Can you think of any monitors that might be appropriate for your case?
@8cold8hot
@8cold8hot 2 жыл бұрын
@@fluidmechanics101 Thank you for the answer. I agree with you, I might look for other quantities like wall temperature...
@KToMmi
@KToMmi 2 жыл бұрын
Hello Dr. Aidan! Even though I'm a more experienced user, this series was a pleasure to watch. If you don't mind a suggestion, in my opinion it would be well worth it to expand the topic of convergence issues diagnosis. Maybe discuss some advanced tool to identify where the issue lies in the domain and how to solve it - for example some tricks to improve mesh quality without necessarily simplifying the underlying geometry. I often find myself struggling with inflation layers quality when trying to reach very low (
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
Yes, thanks for the suggestion! I think this would be very useful for many CFD users
@metoosti5987
@metoosti5987 2 жыл бұрын
Hello Aidan, I do have a question about residuals as well which is provided by ANSYS. I was analyzing the multi element front wing of an F1 car in ground effect and I was able to validate my results for a certain case. My residuals were quite okay (about 1e-4) but when I decreased the ground clearance of the wing, the residuals increase to the level of 1e+1 which is possibly the result of having large velocity gradients. I also get higher residuals when I increase inlet air velocity. I want to use a steady state solution to find a result but the residuals are just too high when I use it. When I use unsteady state solution, residuals actually decrease but I'm not sure if it's necessary to use an unsteady solution there since I'm just trying to find the average value of drag and lift coefficients. Do you have any ideas about how I can decrease my residuals when I use a steady state solution? I did try to refine my mesh and I couldn't see any difference at all.
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
It sounds like you either have 1) a problem with the mesh (when the clearance reduces the cells are getting skewed and the solver is falling over) or 2) there is some real flow unsteadiness which is trying to develop and the solver is trying to go unsteady. My advice would be to have a look at the mesh quality and flow field and see what you can see. That should point you in the right direction. Have you tried plotting the residual contours? Maybe you can find the cells with the high residuals and work out what is going on
@soroushasadian9100
@soroushasadian9100 Жыл бұрын
Dear Dr. Wimshurst, Thank you for the series, now I have a better understanding of residual plots. Could prepare a video and explain UDF? Because many problems require user-defined functions for input Such as cardiovascular models require pulsative inlet velocity
@fluidmechanics101
@fluidmechanics101 Жыл бұрын
UDFs are tricky. That is a great idea. Maybe a new series?
@soroushasadian9100
@soroushasadian9100 Жыл бұрын
@@fluidmechanics101 Sure! Why Not?!
@mohitraje5901
@mohitraje5901 Жыл бұрын
I am trying to simulate high-velocity flow (using k-e model) through porous media in unsteady state. Initially, the residuals decrease for nearly 15000 iterations. Then they start to increase and create fluctuations in my output parameters. How can I tackle this issue?
@fluidmechanics101
@fluidmechanics101 Жыл бұрын
Have a look at the flow field and try and work out what is happening. Maybe look at the solution in iteration 14000, 15000 and 16,000 and try and work out what is happening
@AirChaser97
@AirChaser97 2 жыл бұрын
Is the shock one of the transient flow?
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
You could have a steady shock (in that the shock itself stays in the same position) but most often you will need some type of transient solution to allow the shock to develop and move into the correct position
@class8007
@class8007 2 жыл бұрын
This may or may not involve global imbalance, but if a particular residual (e.g. Velocity/momentum in u direction) does not converge satisfactorily, but others that I am more interested in for a particular simulation do converge well (e.g. heat flux), is it safe to assume the heat flux results values are as accurate as the residuals lead us to expect? Or could the imbalance in u momentum lead the heat flux to still possibly converge, but to a value not representative of the real solution? If it is case specific, is there a good way of telling how much residual convergence is affecting other residuals?
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
I wouldn't trust your residuals. I would look at global imbalances and surface monitors and have a closer look. Energy residual does always seem to be lower than momentum, it does not necessarily mean that the heat flux balance is better converged
@class8007
@class8007 2 жыл бұрын
Thanks! It was just a hypothetical situation, I've yet to encounter such a situation but its good to know when and what to trust.
@gerhardbekker646
@gerhardbekker646 2 жыл бұрын
What do you think about using steady-state solvers for flows that have some unsteadiness? Like the backwards-facing step you looked at? Do you think the results still provide valuable information or are they actually misleading and wrong?
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
Yes, the steady state solver will still provide valuable understanding (and it is often useful to do one before the transient anyway because it is a great initial condition for the transient). The steady state result will normally be pretty close to the actual result for the broad flow field. A useful comparison is to compare the steady state with the transient and actually see for yourself what the differences are. Maybe 10-20% difference would be expected but you are unlikely to get 100-200% difference
@gerhardbekker646
@gerhardbekker646 2 жыл бұрын
@@fluidmechanics101 Thanks for coming back to me. Your suggestions make sense. Appreciate it!
@gksrbqls91
@gksrbqls91 2 жыл бұрын
What's the implication of residual stabilizing but not decreasing anymore to something like 1e-3? does it mean it's converged but accuracy is not ideal?
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
Yes thats the one. It is indicating that you should probably look at the global imbalances and try to work out what your overall conservation error is. Your mesh / boundary conditions / pseudo time step size could then do with some improvement. But be careful, residuals can be deceiving and don't show the whole picture!
@gksrbqls91
@gksrbqls91 2 жыл бұрын
@@fluidmechanics101 Thank you! Your videos were super helpful!
@Jialei-dw3li
@Jialei-dw3li 8 ай бұрын
When assessing convergence, if the variable of interest is flattened out, but the residuals are still decreasing, do I need to continue iterating until the residuals are also flattened out?
@fluidmechanics101
@fluidmechanics101 8 ай бұрын
If the variable of interest is the only thing you are reporting, then you can stop. But if you are looking at lots of aspects of the case (flow field, wakes, turbulence generation) then I would keep going until the residuals are flat as well
@Jialei-dw3li
@Jialei-dw3li 6 ай бұрын
@@fluidmechanics101 What about the transient case? Must the residuals also be flattened out as well in each time step?
@fluidmechanics101
@fluidmechanics101 6 ай бұрын
Ideally yes. But usually what we do is compare the result of interest (i.e. drag coefficient) with different number of iterations per time step. For example, compare the results with 5, 10 and 15 iterations per time step and see if there is a significant difference in drag coefficient
@Jialei-dw3li
@Jialei-dw3li 6 ай бұрын
@@fluidmechanics101 Really thank you for your guidance.
@pawankhanal8472
@pawankhanal8472 2 жыл бұрын
Great. hey , I really enjoyed your turbulence modeling .how hard it is to do thesis on new turbulence modeling like combining k epsilon with something to improve for boundary layer effect (this is already done but like that ) . can we modified on some existing model ? please give me suggestion I really want to do thesis on turbulence modeling but wanna be sure that can I do or not. And of course I will do lot of literature review but I really want to know your suggestions.
@fluidmechanics101
@fluidmechanics101 2 жыл бұрын
It depends on the application. The existing turbulence models are pretty well calibrated for the applications they were designed for and the coefficients are specified for them. You could modify the existing models for a new application (either by adding additional source terms or recalibrating the existing coefficients) but it would depend on your application. So I would choose your application first and then see how good the existing models are and whether you could improve them. This is definitely something worth discussing with an academic advisor or tutor
@hungnguyenthanh8833
@hungnguyenthanh8833 11 ай бұрын
Can I ask you question? What is the residuals in CFX that display in Solution part? Local imbalance. So how they are calculated?
[CFD] The Spalart-Allmaras Turbulence Model
23:22
Fluid Mechanics 101
Рет қаралды 30 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 117 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 122 МЛН
[CFD] Pyramids, Prisms & Stair-Stepping
32:31
Fluid Mechanics 101
Рет қаралды 8 М.
[CFD] Hexcore Meshes for CFD
30:55
Fluid Mechanics 101
Рет қаралды 9 М.
[CFD] The k-omega Turbulence Model
25:28
Fluid Mechanics 101
Рет қаралды 68 М.
[CFD] Meshing Guide for Pipes and Ducts (O-grid, hexcore, polyhedra)
53:40
Fluid Mechanics 101
Рет қаралды 17 М.
The Mystery of Spinors
1:09:42
Richard Behiel
Рет қаралды 864 М.
[CFD] What is Mesh Non-Orthogonality?
32:27
Fluid Mechanics 101
Рет қаралды 27 М.
Terry Tao, Ph.D. Small and Large Gaps Between the Primes
59:24
What is Convergence in CFD? | Aidan Wimshurst
4:50
Jousef Murad LITE
Рет қаралды 17 М.
Wavelets: a mathematical microscope
34:29
Artem Kirsanov
Рет қаралды 618 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 117 МЛН