13. Navier-Stokes with the Finite Volume Method - Part 3

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

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

  • @sriramulunakka4348
    @sriramulunakka4348 3 หลายเดือนก่อน

    your video helped me a lot . Iam in a confusion for indexing for u,v,p. and boundary condition , the way you arranged staggered grid reduce my effort to compute boundary cell values . thank you a lot sir.

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

    how can the divergence be zero if the wall boundary is zero, if only 1 cell of x and 2 cells of y have value?

  • @navsquid32
    @navsquid32 4 ปีที่แล้ว

    How did the sor_solver function have access to all the coefficient arrays (Ap, Ae, etc)? They weren't passed in as arguments, and so they shouldn't be in the function scope. Must be a feature of Jupyter Notebooks I wasn't aware of.

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

      Yes, once declared at global scope, they are visible everywhere at global scope in the notebook.

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

    Can someone tell me by which term I can replace b[j,i] ?

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

      Are you referring to the b[j,i] in the sor_solver routine? That's the RHS of the Poisson equation that the SOR solver is solving and is passed into the routine as an argument: sor_solver(p, b, dx, dy). You do not replace it with anything.

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

      @@ProfessorSaadExplains Yes sir, but I am asking that b[j,i] is the source term of the poisson equation and that should be replaced by a function . In this whole code b is the unknown quantity , then how can it be run ????

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

      @@sudeephalder8792 Yes, that RHS is passed on to the sor_solver in the argument when we have built the RHS for the pressure. See time: 1:16:48. Good luck

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

      @@ProfessorSaadExplains Thanks sir. Just the last question , can you please explain the indexing in last two lines for u and v. You were referring to some sort of " slice " in tha diagram , what does that exactly mean ??? It was not clear to me .. thank you

  • @abdelhak.keddouda
    @abdelhak.keddouda 4 ปีที่แล้ว +1

    Dear sir, would you please help me writing the code using matlab, I really need it and tried to do it by my self but I found some difficulties .. thank you

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

      Hello, I also want to have a MATLAB code, have you prepared it? Could you please send me a code in matlab. thanks a lot!

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

      Also want to have the matlab Code , could you please send it if you have done it , thanks

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

      Sorry, I do not have the code for matlab. But with some effort you can reproduce everything I did here. Good luck.

    • @abdelhak.keddouda
      @abdelhak.keddouda ปีที่แล้ว

      @Professor Saad Explains Thank you professor. Best wishes.