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

Construct cellZone based on a cellLabelList

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2017, 10:53
Default Construct cellZone based on a cellLabelList
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi everybody,

I am trying to build a cellZone which has no physical meaning but I want to check it out in paraview. The cellZone I am trying to create has arbitrary (random) cells. E.g. by using the bounding box of the geometry and the Random object class, I make arbitrary positions which I then use to check if there is a cell at that position (mesh.findCell()). After that I have the cellLabels in a labelList which I want to transform to a cellZone now in order to visualize the cells that are selected.

Right now, I cannot find anything in Doxygen but I will go to setSets in order to see how it is done there. However, maybe someone is faster and know it already
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 21, 2017, 12:30
Arrow
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

problem solved and it was easy as always (there might be a better way)

  • label list of cells are used to construct a cellSet
  • cellSet is used to write the cellSet
  • topoSet is used to change the cellSet into a cellZone
That is fine for me
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
How to construct mesh based on the basic mesh JasonWang3 OpenFOAM Programming & Development 6 July 29, 2016 12:10
OF-2.2.x: Derived class from cellZone and "undefined symbol error" A_Pete OpenFOAM Programming & Development 6 April 28, 2014 01:53


All times are GMT -4. The time now is 00:56.