# Velocity field in staggered grid

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
June 14, 2012, 18:38
Velocity field in staggered grid
#1
Senior Member

Join Date: Dec 2011
Location: Madrid, Spain
Posts: 133
Rep Power: 6
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.
Attached Images
 staggered grid.jpg (21.2 KB, 17 views)

Last edited by michujo; June 14, 2012 at 19:04.

 June 14, 2012, 19:24 #2 Senior Member     p ding Join Date: Mar 2009 Posts: 287 Rep Power: 9 yes interpolation

 June 15, 2012, 04:01 #3 Senior Member   Join Date: Dec 2011 Location: Madrid, Spain Posts: 133 Rep Power: 6 Ok, I will try and do that once I figure how to actually implement the SIMPLE algorithm. Thanks for your help man.

June 15, 2012, 06:09
#4
Senior Member

p ding
Join Date: Mar 2009
Posts: 287
Rep Power: 9
Quote:
 Originally Posted by michujo 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 .

 June 15, 2012, 07:42 #5 Senior Member   Join Date: Dec 2011 Location: Madrid, Spain Posts: 133 Rep Power: 6 I will check it out, thanks!

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post tH3f0rC3 OpenFOAM 16 April 20, 2011 10:53 alessio.nz OpenFOAM 5 April 20, 2011 08:44 asharma OpenFOAM Post-Processing 2 October 9, 2010 01:19 Subhadeep CD-adapco 3 December 21, 2008 04:40 Abhi Main CFD Forum 12 July 8, 2002 09:11

All times are GMT -4. The time now is 22:43.

 Contact Us - CFD Online - Top