CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Paraview & paraFoam (
-   -   View Refinemet Regions in Paraview (

stark22 November 30, 2012 16:16

View Refinemet Regions in Paraview
Hello Everyone,

Is it possible to view the refinement regions in paraview without viewing the mesh?

My goal is to simply see my .stl file with the corresponding refinement regions.

Thank you!

wyldckat December 2, 2012 07:58

Greetings stark22,

I'm not certain of what you're asking... what exactly do you want to see? Is it:
  1. View the refinement before running snappyHexMesh? If this is the case, you can try SwiftSnap:
  2. View mapped colors on the STL surface of the refinement levels?
  3. View 3D contours of the refinement regions?
  4. View only the mesh refined on the STL surface?
  5. Something else?
Best regards,

stark22 December 3, 2012 10:34


Thank you for the response. I'm looking for a wire frame view of the refinement regions with respect to the imported geometry. So what I would like to see is the imported STL file along with the refinement boxes that I have created.

Also, if it's not to much trouble I'm interested in options 2 and 3 if you would care to elaborate.

Thank you.

wyldckat December 3, 2012 17:56

2 Attachment(s)
Hi stark22,

Attached is the basis for most of the examples.
  1. You choose to also load the "cellLevel" volume field.
  2. You can use the "Threshold" filter for isolating the cells that are using a certain refinement level.
Viewing contours is a bit pointless... so the "Threshold" filter is best for this. And make sure you use the cell mode (the orange cube in the "Scalars" line on the second image), not the point mode.

As for mapping the values onto the STL surface, you can use the filter "Resample with Dataset". Keep in mind that this filter requires both a "Source" and an "Input"... which I always confuse the two, so you better do some trial-and-error.

Last but not least, you've also got the filter "Extract Cells By Region", which might come in handy.

Best regards,

All times are GMT -4. The time now is 17:55.