CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

how to get the (x,y,z) coordinate of the cells created by blockMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 19, 2013, 17:35
Post how to get the (x,y,z) coordinate of the cells created by blockMesh
  #1
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi,

When we use blockMesh to create the mesh, the mesh files such as 'boundaries', 'faces', 'neighbours', 'owners', 'points' will be generated. Just wondering how could I determine the coordinates of each cell based on those files?

Many thanks in advance!
Sophie
sophie_l is offline   Reply With Quote

Old   April 20, 2013, 04:20
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,594
Rep Power: 24
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

You can directly use the utility

Code:
writeCellCentres -time 0
which will write the coordinates to the files ccx, ccy and ccz in the 0 time directory.

Kind regards

Niels
ngj is offline   Reply With Quote

Old   April 20, 2013, 06:19
Default
  #3
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

Thank you so much! It's fantastic!

best wishes,
Sophie
sophie_l is offline   Reply With Quote

Reply

Tags
blockmesh, cell centre, cells, points

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
BlockMesh CheckMesh error Help!!! deepaktbabu OpenFOAM 0 March 11, 2012 13:40
Question about ghost cells in parallel processing vishwas Main CFD Forum 3 March 12, 2006 22:46
coordinate frame Jackie CFX 2 March 6, 2003 01:22
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19
Dead cells created on edges when a grid file is generated in GAMBIT and imported into FLUENT4 Isaac Manohar Ch. FLUENT 1 June 2, 2000 04:58


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