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.
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.
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.
@@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 ????
@@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
@@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
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
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.
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?
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.
Yes, once declared at global scope, they are visible everywhere at global scope in the notebook.
Can someone tell me by which term I can replace b[j,i] ?
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.
@@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 ????
@@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
@@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
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
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!
Also want to have the matlab Code , could you please send it if you have done it , thanks
Sorry, I do not have the code for matlab. But with some effort you can reproduce everything I did here. Good luck.
@Professor Saad Explains Thank you professor. Best wishes.