CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Velocity field in staggered grid (https://www.cfd-online.com/Forums/main/103251-velocity-field-staggered-grid.html)

michujo June 14, 2012 18:38

Velocity field in staggered grid
 
1 Attachment(s)
Hi everybody, I am trying to write a simple 2D CFD code based on Patankar's book, 1980 (a.k.a. "The Bible"). I want to use a staggered grid and implement the SIMPLE algorithm. However I have a question (actually I have many but let's keep it simple):

- If there is one grid for pressure, one grid for u (x axis velocity) and one grid for v (y axis velocity), as sketched in the attached figure, how could I plot the velocity vector field, if u and v do not even share the same grid? do I have to, somehow, interpolate u and v onto the main grid?

Thanks a lot for your help.
Cheers.

ztdep June 14, 2012 19:24

yes interpolation

michujo June 15, 2012 04:01

Ok, I will try and do that once I figure how to actually implement the SIMPLE algorithm.

Thanks for your help man.

ztdep June 15, 2012 06:09

Quote:

Originally Posted by michujo (Post 366579)
Ok, I will try and do that once I figure how to actually implement the SIMPLE algorithm.

Thanks for your help man.

in my blog . i uploade a fortran 90 simple .

michujo June 15, 2012 07:42

I will check it out, thanks!


All times are GMT -4. The time now is 03:10.