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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2013, 18: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: 14
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, 05:20
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
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, 07:19
Default
  #3
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cellZone not taking all the cells inside rahulksoni OpenFOAM Running, Solving & CFD 6 January 25, 2019 01:11
cellZone not taking all the cells inside rahulksoni OpenFOAM 0 January 16, 2019 02:16
Problem with divergence TDK FLUENT 13 December 14, 2018 07:00
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00: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 05:58


All times are GMT -4. The time now is 13:58.