rybchuk / amr-wind-tutorial

An unofficial guide on how to use AMR-Wind
8 stars 2 forks source link

plotting files in ParaView #3

Closed AsimUdel closed 4 months ago

AsimUdel commented 4 months ago

Hi @rybchuk , Just a quick question, here (https://github.com/rybchuk/amr-wind-tutorial/blob/main/03_turbines.md) when you plotted files in ParaView to first see the mesh and then the time-averaged x-component of velocity, did you plot (plt files or the (sampling or abl statistics files))? I have tried to plot these files in ParaView but the file extension did not support ParaView.

rybchuk commented 4 months ago

Hi Asim,

I was plotting the plt#####/ files. These files are based off the AMReX plotfiles data format (which itself is built off the BoxLib data format), and they have some docs on how to visualize plotfiles here.

To open a plotfile, I hit OK in the below image: image

and then I open with the AMReX/BoxLib Grid Reader: image

and that pulls the data into Paraview: image

Are you getting the AMReX/BoxLib Grid Reader prompt? I would guess that's where the error is happening. I'm running this in Paraview 5.10.1 by the way.

AsimUdel commented 4 months ago

Thank you so much, you were on point, I was using Paraview 5.12.1 and I think AMReX/BoxLib Grid Reader was causing error, I have used Paraview 5.10.1 and able to plot files. https://amrex-codes.github.io/amrex/docs_html/Visualization.html#paraview is very helpful, need to explore this more.