mnucci32 / aither

Repository for an in-progress 3D, block structured, explicit/implicit, Navier-Stokes solver.
GNU General Public License v3.0
56 stars 27 forks source link

How to visualize output with Paraview #6

Closed nyue closed 6 years ago

nyue commented 6 years ago

Issue Type (bug, feature request, other)

other

Description of Issue

Could you write up a set of simple steps to visualize the output from one of the sample simulation using Paraview which is able to load Plot3D files, using a simple sample e.g. couette ?

Steps to Reproduce Issue

System Details (OS, compiler, number of processors, etc)

mnucci32 commented 6 years ago

When you run a simulation like the couette example, the code will output .p3d, .fun, and .xyz files. The .xyz file is a Plot3D grid file, the .fun file is a Plot3D function file, and the .p3d file is a meta file for ParaView. To visualize a solution in ParaView choose File->Open and pick the .p3d file. That's all there is to it!

The .p3d file points to the .xyz and .fun files, so ParaView knows to load them as well. When a simulation is run in a steady state manner, the .p3d file points to a single solution (the last one). When a simulation is run time accurate the .p3d file points to a series of solutions so multiple .fun files are loaded into ParaView and an animation of the simulation can be visualized. ParaView 5.3 or newer is required for visualization.

I hope this helps. Let me know if you have further questions.