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

Construct cellZone based on a cellLabelList

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

Reply
 
LinkBack Thread Tools 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: Leoben (Austria)
Posts: 1,808
Blog Entries: 6
Rep Power: 32
Tobi 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: Leoben (Austria)
Posts: 1,808
Blog Entries: 6
Rep Power: 32
Tobi 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

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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 28 May 7, 2017 16:01
How to construct mesh based on the basic mesh JasonWang3 OpenFOAM Programming & Development 6 July 29, 2016 12:10
Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Native Meshers: snappyHexMesh and Others 50 March 7, 2016 03:35
Problems setting up case for running with chtMultiRegionFoam (mesh is from Salome) esujby OpenFOAM Pre-Processing 29 January 31, 2016 14:09
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 11:10.