CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Understanding the coordinates of sample utility

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 25, 2010, 12:17
Default Understanding the coordinates of sample utility
  #1
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 8
vishwa is on a distinguished road
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
vishwa is offline   Reply With Quote

Old   March 25, 2010, 12:41
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Quote:
Originally Posted by vishwa View Post
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!"
sega is offline   Reply With Quote

Old   March 25, 2010, 12:45
Default
  #3
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 8
vishwa is on a distinguished road
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
vishwa is offline   Reply With Quote

Old   March 25, 2010, 12:56
Default
  #4
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Quote:
Originally Posted by vishwa View Post
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!"
sega is offline   Reply With Quote

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

Regards,
vishwa
vishwa is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample Utility not working in OpenFoam 1.6 titio OpenFOAM Post-Processing 6 November 15, 2014 19:04
ICC compiler and sigFpe for sample utility cfdmarkus OpenFOAM Installation 3 June 25, 2010 14:31
Sample Utility not working in OpenFoam 1.6 titio OpenFOAM Post-Processing 0 February 5, 2010 13:12
Sample utility not working in OpenFoam1.5 dev titio OpenFOAM Post-Processing 1 December 10, 2009 03:38
Problem with sample utility roberthino OpenFOAM Post-Processing 6 August 23, 2007 15:29


All times are GMT -4. The time now is 15:26.