amrex icon indicating copy to clipboard operation
amrex copied to clipboard

View glyphs in Paraview?

Open mattbement opened this issue 4 years ago • 3 comments

Sorry - more a question than an issue. Has anyone been able to visualize glyphs (e.g., arrows) on an AMR mesh in Paraview? Even in the most recent paraview (5.9.RC1), but also applies to 5.8.0, I load an AMReX plotfile, use the calculator to create a vector-valued, cell-centered variable which is just ihat+jhat+khat. I then create a glyph using this variable as the orienting vector. It never complains, but I don't see any glyphs. If I open up one of the example paraview datafiles (can.ex2) and do the same thing, it works fine.

mattbement avatar Nov 17 '20 20:11 mattbement

Hello @mattbement, I found this in the AMReX documentation for paraview, it is for iso-surface ... but maybe the same applies for vectors.

Note that Paraview is not able to generate iso-surfaces from cell centered data. To build an iso-surface (or iso-line in 2D):

  1. Perform a cell to node interpolation: “Filters” → “Alphabetical” → “Cell Data to Point Data”.
  2. Use the “Contour” icon (next to the calculator) to select the data from which to build the contour (“Contour by”), enters the iso-surfaces values and click “Apply”.

pedro-ricardo avatar Mar 04 '21 15:03 pedro-ricardo

Paraview has fixed some issues with AMReX plotfiles within its latest Release with huge improvements compared to its release candidates. It is worth trying that again with a newer Paraview version. I tested it and I have no issues viewing arrow glyphs of vectors.

maikel avatar Mar 04 '21 16:03 maikel

I just tested it against the current branch and hit the same issues, i.e. seeing no glyphs. It helped me to first apply an "Extract Surface" filter before using the Calculator and Glyph filters.

HTH, Maikel

maikel avatar Mar 07 '21 20:03 maikel