[CFD] Rhie & Chow Interpolation (Part 1): Chequerboard Oscillations

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

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

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

    Thanks for your videos on CFD. Just for this video I think at minute 27:53 you should say that for the interpolation of the pressure at the w and e faces is Pw=(PW+PP)/2 and PE=(PP+PE)/2 and not Pw=(PW-PP)/2 and PE=(PP-PE)/2.

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

    This is the greatest lecture on Rhie-Chow type scheme I have ever came across. Thank you.

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

    Thanks a lot for always bringing the quality videos here for free.

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

    Thanks a lot for covering this topic in your talks, your content and delivery style helps me understand difficult concepts quite easily. Looking forward to remaining two part.

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

    Thanks for the video! Both your explanation and line of reasoning are quite enlightening!

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

    This was the topic I always had some problems with its understanding. I really appreciate your clear and detailed explanations. By the way, I am looking forward to watching the video on the rest of LES method. Thanks an ocean for your great videos.

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

    Best video on chequerboard oscillations

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

    4:45 I am not really sure why ideal gas law can not be used to compute the pressure field. The reasoning you give is that the change in density is small (are you referring to spatial change in density or temporal change in density or both?). Regardless, why would the numerical value of change in density make the ideal gas law inapplicable P =rho*r*T, for a particular flow regime? If the change in density is small or even zero, why would it matter in a numerical algorithm? I don't see a division by zero in the equations. I just can't seem to understand this reasoning, from a mathematical point of view. Could you please clarify?

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

      You can't always rely on the ideal gas law because .... what if your fluid is liquid water? The algorithm needs to be general for all fluids

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

      @@fluidmechanics101 Thanks! I see your point and that is kind of where I am getting at too - the numerical algorithm has to be general for all fluids. We should never be using ideal gas law, except for ideal gases. We have the unknowns (
      ho,
      ho u,
      ho v,
      ho w, p) but only four equations (1 continuity and 3 momentum). What is the most general equation that relates pressure-density-momenta and applies to all fluids (gas, air, water) and all flow regimes (compressible or incompressible)?

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

      Generally in a pressure based solver, this relationship can be anything of the form: rho = function (variables). Rho is calculated separately which leaves the unknowns in the momentum equation as u, v and w (leaving rho as a constant). Pressure is then calculated from a pressure correction equation. With this approach we can account for all constitutive relationships by leaving them as a variable for the user to define

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

    Very nice explaination, very usefull for me to understand the setting in some CFD software....

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

    great work, thank you Aidan!

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

    Very informative video. Thanks man

  • @CJ-nh5zi
    @CJ-nh5zi 3 ปีที่แล้ว +2

    Am I correct when assuming, if you would have selected an upwind discretization on the face velocities (Uf) the chequerboard oscillations would not occur: even if you do use central difference for pressure at the face?

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

      I haven't come across people using upwind for the face velocities before. I think it may be because we already know the velocities at the cell centroids, so we are doing an explicit calculation of the face velocities (Rhie Chow is not used to discretise the momentum equations, it is used afterwards so we don't need an implicit scheme here). But your point is still valid, I am not sure why they haven't tried upwind

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

    Hi Aidan, I wanted to know more about the formulation of matrix ap & an from final discretised Momentum Eq [Eq-19], 21:24 . Have you gone through this on CFD Fundamentals course - 3 on udemy? I would appreciate any sources.

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

      Found this in a book called:
      Computational Fluid Dynamics for Incompressible Flows - Roy Chowdhury

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

      I haven't been through the coefficients for the full Navier Stokes system yet. It's quite difficult! Fundamentals 3 on Udemy is still dealing with the heat conduction equation but in 3D on an unstructured mesh. I am hoping to get the full NS system sorted soon and then I can start teaching that one as well. I have mainly been using the famous book by Patankar but I will check out that book. Thanks for the reference ☺️

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

      Same question. Did you found a source with explanation?

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

      Yes! If you see my other comment I have left an explanation there

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

    ​ @Fluid Mechanics 101 Thank you for the video. I encoded a 2d laminar cfd solver myself, and at the very beginnig I had hard times defining the right staggered and scalar grids and also where to place the phsical domain in between those grids. Could you please record a video about it as well?

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

      Yes, this is the tricky part of writing the staggered grid solvers. Have you checked your pressure correction equation and interpolation of velocities and pressures onto the right grids? This is typically the difficult bit and I haven't go around to right a video for this yet

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

      @@fluidmechanics101Eventually I could manage that by placing the physical domain not to the edges but to just a half way inside of the scalar /main/grids. So the unit cells’ boundaries of staggered grids perfectly matched with the physical domain boundaries. It was tricky at first but then when applying the pressure correction to the scalar cell I appreciated how it was easily adapted since no interpolation needed as u also said. The weird part in the staggered grid was that I needed to solve momentum equation over u- and v- control volumes individually while I solved the pressure correction equation ( mass conservation) only one time over the scalar control volume.
      And indices was also tricky as you indicate because for any (i,j) location there are three different cell centers and as I named them (I,J) for scalar cell center; (I,j) for u- cell location of backward staggered of (I,J) cell; (i,J) for v- cell center of backward staggered of (I,J) cell.
      And the sad part is that my own code solves the equations slower than ANSYS Fluent :) Fluent solves the equations faster and converges much earlier. I guess I should apply the TDMA method for the solution of momentum equations instead of Under relaxed Gauss Seidel. I have also some suspicion about if the pressure correction equation converges in the iteration step. I use SOR method for the pressure correction. I still need to go further and dig into works and books :)

  • @ching-kaichou4486
    @ching-kaichou4486 2 ปีที่แล้ว +1

    ❤Thanks to your detailing introduction!
    However, the eq. 26 has typo for interpolation; but it’s not big deal for your brilliant work!🎉

  • @Dr.namanif
    @Dr.namanif 2 ปีที่แล้ว

    Thank you for your all amazing videos. Would you please describe more about the flows at moderate mach numbers-flows, somehow between the incompressible and compressible ranges.
    This caregory may happen through unstable flow regimes in tirbomachined i.e. axial fans or axial compressors near the stall conditions.
    Regards

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

    Thank you very much for the video and as usual you always come with amazing content. Could you please explain how we treat the boundary conditions for both staggered grid and riew chow interpolation. Mainly the pressure BC.

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

      In both collocated and staggered grids, pressure is calculated in the same cell so you can use the same boundary conditions. If you are using a pressure correction approach (SIMPLE, PISO) then the pressure correction on the wall faces is zero because you know the pressure there. This roughly translates into a neighbour coefficient of zero in the matrix equations (complicated I know)

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

      Thank you for the detailed explanation.

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

    Thanks a lot, very useful. I have a question. In your video about simple scheme, the continuity just contains the pressure and we can calculate the new pressure from continuity equation, then to calculate the new velocity. But in this video, continuity equation contains pressure and U~. So how can I calculate the pressure?

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

      This is quite a tricky question. I am going to do a full derivation soon with all the terms, as it can be quite confusing!

  • @shanwang8236
    @shanwang8236 17 วันที่ผ่านมา

    Thank you for this video!Can you make video to explain PRESTO!discretization method for pressure?

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

    Is this any better then the interpolation using H/a - grad(p)/a ? Can I make rhie and chow using H operator?

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

    Very interesting video. I'm dealing with a transient simulation problem where low mach number (0.3) and high mach number flow (14) occur together. I'm simulating with a implicit pressure-based segregated solver and get much better convergence and faster convergence comparing to a implicit density-based coupled solver. I experienced that the pressure based segregated solver deals much better with my kind of simulation when i use fine mesh and low cfl number. Although the solver is not made for such problems. Do you know why the density based coupled solver can not reach the same level of convergence per timestep like the segregated one?

  • @ПавелМашенькин-э8м
    @ПавелМашенькин-э8м 3 ปีที่แล้ว +1

    Thank you for this video. Can i ask you to do video about using simple algorithm in supersonic flow. Can this algorithm model shockwaves without oscilations without using artificial diffusion? You are doing very understanding lectures for very complicated things!!!

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

      It can do supersonic flow but you are probably better off using a density based solver or coupled solver instead 👍

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

    Nice talk

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

    Thanks for this wonderful video. I have confusions how do you derive from equation 18 to equation 19?

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

    Aidan, where I can find ap an coefficients for convection part of the Navier Stokes eq.? I have a question how the discretization works in that particular case because there is should be U^2 ? Can't find an answer in lectures or courses

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

      I will be covering this soon. In the meantime you could check out the book by Ferziger and Peric (computational methods for fluid dynamics). They cover ap in there.
      In short, ap has units of mass flow rate. The mass flow rate is taken from the previous iteration of the solver. Recall that mass flow rate = rhp U A (so this is one of the velocities in the U^2). The other velocity in the U^2 is the unknown in the momentum equation. Hence we are linearising U^2 by lagging one of the velocities
      Hope that helps for now 👍

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

      @@fluidmechanics101 Thank you! So one U is from previous iteration. Seems clear now to me. The only question is how this lag is justified mathematically. I will be waiting your lectures on this theme. Your videos are interesting to watch and easy to understand 👍 Best CFD material presentation I have ever found

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

    Thanks a lot. I had never really understood chequerboard problem, I knew it's name and never actually "understood" it from book. Also can't using one sided differencing, for pressure gradient, instead of central differencing, solve this issue?

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

      Yes Im sure one sided differencing could stop the oscillations but it might reduce the accuracy of the solution, in the same sort of way that 1st order upwind does for the convection term

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

      @@fluidmechanics101 thanks for the reply

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

    First of all, Thanks a lot for your work!
    It might be a dumb question. But i dont really understand the dimensions of equation 19. On the left hand side we have a velocity (m/s). On the right hand side we have a pressure gradient multiplied by a volume (m^3 * Pa/m = N). Does someone understand this issue?

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

      Also, i don't know exactly how to get ap and an in eq.19 or 20, If you already handle it, could you tell me how?

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

      Yes, the units for all the terms in the momentum equation should have units of N. So pressure gradient times volume does indeed give Pa /m = N. The left hand side is more tricky. The aP terms have units of mass flow rate (kg / s). You can ways check this because aN = mass flow rate through the face if we use the simple case of upwind differencing. Mass flow rate × velocity = momentum, which has units of N 👍

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

      aP and aN will depend on your choice of differencing scheme for convection and diffusion terms. I cover this in my course 'computational fluid dynamics fundamentals' on Udemy in a lot of detail if you are interested. (There is a link in the description of the vid)

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

      @@fluidmechanics101 Thanks a lot!

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

      @@Muuui What exactly is your issue?

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

    You ever though about making videos about inviscid flux schemes (FVS/FDS/etc)?

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

    What are you talking about that the flow variables vary linearly across a cell?

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

      Velocity, temperature, pressure, turbulent kinetic energy etc. are all calculated at the centroid of all the cells in the mesh. The value of these variables at positions between the cell centroids can be calculated using linear interpolation (this is used in the finite volume method to discretise the equations into algebraic form). Hence, we know that in the finite volume method, the flow variables all vary linearly across the cell (implicitly)

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

      @@fluidmechanics101 But a linear solution representation is just one choice. My point is, the true solution to the PDE is definitely nonlinear, so I was just baffled by the language you were using which seemed to suggest the exact solution varies linearly - definitely not the case.

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

      Of course. The true solution is non linear. The CFD solution is 'a piecewise linear approximation' that improves its accuracy as the mesh is refined. Sorry if this was confusing!

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

      @@fluidmechanics101 The vast majority of your viewers are without background in numerical analysis so perhaps it would be beneficial to articulate that more often. Your content is great though, thanks a lot.

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

      Good point. Thank you for the feedback. I will bear that in mind in future

  • @user-ms8tk2n8
    @user-ms8tk2n8 3 ปีที่แล้ว +2

    thank you

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

    thank you thank you thank you ...

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

    wow~ thanks alot

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

    Thank you so much

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

    这英国口音听着太舒服了

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

    👍