CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Paraview & paraFoam

Cell selection with cylinder shape using frustum

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

Like Tree1Likes
  • 1 Post By JR22

LinkBack Thread Tools Display Modes
Old   May 3, 2013, 07:20
Default Cell selection with cylinder shape using frustum
New Member
Matthijs Zweemer
Join Date: Feb 2013
Posts: 5
Rep Power: 6
mzweemer is on a distinguished road
Dear all,

I'm currently analyzing my OpenFoam runs by the use of Paraview, which looks very nice. At this moment I want to analyze the change of some parameter on specific cells in my mesh; the outer cells of a cylinder. Hereby I want to view the data for these cells only and tried the use of frustum in the selection inspector. The problem is that I can only select a cubic shape in the 'Select Cells through' option, and I want to have a cylinder shape. I also implemented a cylinder source but am not able to get to the values herewith. Does someone how to tackle this?


mzweemer is offline   Reply With Quote

Old   May 5, 2013, 13:30
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,123
Blog Entries: 39
Rep Power: 110
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings Matthijs,

There is a filter in ParaView called "Extract Cells By Region". It's able to handle a plane, box or sphere surface as reference for the selection zone. But there isn't one for cylinders.

From your description, I think what you're looking for is to create a "cellZoneSet" or "cellSet", based on the geometry of a cylinder, by either selecting the inside or outside of the zone of interest. Search the forum for "setSet" and "topoSet", and you should find several points of interest.

As for later representing these zones/sets in ParaView, look carefully at the "Properties" tab on the lower left side of the screen. Activate the "zones" option, hit the button "Apply" and then select the respective zone/set on the lists on that tab, as if it were a patch name or field. Then hit the button "Apply" once again.

Best regards,
wyldckat is offline   Reply With Quote

Old   May 5, 2013, 15:16
Senior Member
JR22's Avatar
Jose Rey
Join Date: Oct 2012
Posts: 131
Rep Power: 11
JR22 will become famous soon enough
Hi Matthijs,

There are two other paths as well. Option 1 is in the case your cylinder comes from your model, option 2 is if your cylinder is created after your solver gave you results:
  1. To separate all pre-defined Regions: Export to VTK using OpenFOAM's foamToVTK utility (from the command line within your case directory). This will create folders/files with independent VTK's. Then use paraview to load the files independently.
  2. To extract a region within a paraview Source volume/surface: Follow the directions in post #13 of this thread: . The difference is that the thread's paraview Source element is a surface and not a volume, but it should work for your cylindrical source as well.
wyldckat likes this.

Last edited by JR22; May 5, 2013 at 16:35.
JR22 is offline   Reply With Quote


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
flow over a cylinder urgent! kevin FLUENT 8 August 11, 2015 13:00
interFoam running blowing up sandy13 OpenFOAM Running, Solving & CFD 2 May 5, 2015 07:16
Layers:problem with curvature giulio.topazio OpenFOAM Native Meshers: snappyHexMesh and Others 10 August 22, 2012 09:03
cell selection usker Siemens 2 December 19, 2008 05:50
selection of individual cells (not cell faces) kamal Siemens 0 January 17, 2008 02:00

All times are GMT -4. The time now is 21:51.