CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] extract the cell center coordinates if the CELLID is know

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

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2013, 15:55
Default extract the cell center coordinates if the CELLID is know
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Hi All,

If I know the cell ID, how can I know the cell centroid coordinates in paraview? Thank you very much.
openfoammaofnepo is offline   Reply With Quote

Old   August 31, 2013, 14:02
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi openfoammaofnepo,

There are probably a few ways you can do this.

I suggest using the following steps:
  1. Use the "Threshold" filter and isolate the value in question for the field "cellID".
  2. Then apply to it the filter "Cell Centers", with the option "Vertex Cells" selected.
  3. Then use the view splitting button on the upper right corner of the 3D display and choose to see the spreadsheet view.
  4. On the spreadsheet view, make sure you are seeing the "CellCenters1" entry.
  5. You can also use from the menu "File -> Export data" to export the values from this entry "CellCenters1".
There is nonetheless a situation you have to be careful about. If you are using OpenFOAM data, then it is very likely that your mesh has been decomposed into tetrahedral cells. So make sure you turn on the "Polyhedron" option, so that it will not decompose the mesh cells.


Best regards,
Bruno
SHUBHAM9595 and reespanau like this.
__________________
wyldckat is offline   Reply With Quote

Old   January 12, 2017, 07:54
Default
  #3
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 11
t.oliveira is on a distinguished road
Hi,

Another way to obtain the cell center coordinates is to run the standard utility writeCellCentres. It creates fields ccx, ccy and ccz with the x, y and z components of the cell center coordinates, which can be loaded in Paraview.

The users interested in writeCellCentres may want to know that there is also the cellCenters utility created by @opedrofunk, which is "similar to the writeCellCentres utility[...], except that it outputs a single file with the vector coordinates of the cell center positions".

Best wishes,
Thomas
t.oliveira is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
find a cell from its centroid coordinates annan Fluent UDF and Scheme Programming 2 March 5, 2018 07:36
?? How to get cell center coordinates? erica FLUENT 0 May 11, 2005 23:02
Warning 097- AB Siemens 6 November 15, 2004 05:41
calculate cell volume, center...? Paul Main CFD Forum 5 June 21, 2003 13:55
About Cell Center Harry FLUENT 0 December 3, 2000 05:33


All times are GMT -4. The time now is 06:54.