|
[Sponsors] |
June 21, 2017, 10:53 |
Construct cellZone based on a cellLabelList
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
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 |
|
June 21, 2017, 12:30 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hi all,
problem solved and it was easy as always (there might be a better way)
__________________
Keep foaming, Tobias Holzmann |
|
|
|
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 |