AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
546 stars 347 forks source link

View glyphs in Paraview? #1551

Open mattbement opened 3 years ago

mattbement commented 3 years ago

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.

pedro-ricardo commented 3 years ago

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”.
maikel commented 3 years ago

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 commented 3 years ago

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