# Understanding the coordinates of sample utility

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

March 25, 2010, 12:17
Understanding the coordinates of sample utility
#1
Member

vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 9
Hi,
i am using sample utility to get the velocity data on a plane after my simulation is completed.

I make a quick 2 x 2 grid and ran the sample utility and was not sure where the data is actually saved.

Here is the sample dict and the blockMesh dict for your reference.
sampleDict
Quote:
 setFormat raw; surfaceFormat vtk; interpolationScheme cellPoint; fields ( U ); sets ( ); surfaces ( constantPlane { type plane; // always triangulated basePoint (5 5 0); normalVector (0 0 1); //- Optional: restrict to a particular zone // zoneName zone1; } );
blockMesh
Quote:
 convertToMeters 1; vertices ( (0 0 0) (10 0 0) (10 10 0) (0 10 0) (0 0 1) (10 0 1) (10 10 1) (0 10 1) ); blocks ( hex (0 1 2 3 4 5 6 7 ) (2 2 1) simpleGrading (1 1 1) );
the output of the sample utility is below
Quote:
 # "U" FACE_DATA 8 # x y z "U"_x "U"_y "U"_z 1.66667 3.33333 0 0.003 0 0 3.33333 1.66667 0 0.003 0 0 6.66667 1.66667 0 0.003 0 0 8.33333 3.33333 0 0.003 0 0 1.66667 8.33333 0 0.003 0 0 3.33333 6.66667 0 0.003 0 0 6.66667 8.33333 0 0.003 0 0 8.33333 6.66667 0 0.003 0 0
How do I save the coordinates of cell centers?

Regards,
Vishwa

March 25, 2010, 12:41
#2
Senior Member

Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 12
Quote:
 Originally Posted by vishwa How do I save the coordinates of cell centers?
Does this mean you just want to have the velocities on the cell centers (and not on the points)?

Well, I guess this should be possible if you switch of the interpolation.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"

 March 25, 2010, 12:45 #3 Member   vishwanath somashekar Join Date: Apr 2009 Posts: 41 Rep Power: 9 Hi, Thanks for the response...I checked the switches that are present for interpolationScheme in sampleDict cell, cellPoint and cellPointFace. And, I know that I can use cell to save the cell center values. But what I don't understand are the x and y coordinates it saves.. At least in the case that i just posted, the x, y coordinates don't match the cell centers. any help? Regards, Vishwa

March 25, 2010, 12:56
#4
Senior Member

Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 12
Quote:
 Originally Posted by vishwa At least in the case that i just posted, the x, y coordinates don't match the cell centers.
Is this the case with 'cell' as interpolationScheme? Thats strange ...
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"

 March 25, 2010, 13:51 #5 Member   vishwanath somashekar Join Date: Apr 2009 Posts: 41 Rep Power: 9 Yes, This is output when the interpolationScheme is set to cell. I changed it to cellPoint and the result is the same. Regards, vishwa

 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 titio OpenFOAM Post-Processing 6 November 15, 2014 19:04 cfdmarkus OpenFOAM Installation 3 June 25, 2010 14:31 titio OpenFOAM Post-Processing 0 February 5, 2010 13:12 titio OpenFOAM Post-Processing 1 December 10, 2009 03:38 roberthino OpenFOAM Post-Processing 6 August 23, 2007 15:29

All times are GMT -4. The time now is 09:33.

 Contact Us - CFD Online - Top