|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
The previous tutorials showed you specific steps to visualize the flat_channel and bent_channel cases. This guide provides a more general introduction to ParaView, the recommended tool for analyzing PICurv's output.
Here, you will learn the fundamental skills needed to explore any simulation result you generate, from inspecting data fields to creating publication-quality images and animations.
After a successful run, the post-processor generates visualization files in the runs/your_run_name/viz/ directory. You will typically find two types of files:
.vts files):** These are VTK Structured Grid files (e.g., Field_000100.vts). They contain the computational mesh and any data fields that live on that grid, such as velocity and pressure. When you open them in ParaView, they will be grouped as a time series..vtp files):** These are VTK PolyData files (e.g., Particle_000100.vtp). They contain only the coordinates of the Lagrangian particles and any data fields associated with them.When you load a .vts file, you'll be able to color and analyze several data fields. The most common ones generated by the standard_analysis.yml recipe are:
Ucat_nodal: A 3-component vector representing the fluid velocity at the grid nodes. This is the primary field you will use for visualizing the flow.P_nodal: A scalar representing the pressure field at the grid nodes.Qcrit: A scalar representing the Q-criterion, a value used to identify vortices and turbulent structures in the flow.ParaView's interface has three key areas you will interact with constantly:
Let's walk through the most common visualization techniques for the Eulerian grid data. First, open your Field..vts time series in ParaView and click Apply.
By default, the object is shown as a solid color. To color it by pressure:
P_nodal.To see what's happening inside the domain:
Field..vts data is selected in the Pipeline Browser.X Normal gives a slice perpendicular to the x-axis).To visualize the direction and magnitude of the flow:
Field..vts data (or a Slice).Ucat_nodal. This tells ParaView to align the glyphs with the velocity vectors.Ucat_nodal. This will scale the glyphs by velocity magnitude.Field..vts data.Load your Particle..vtp time series to visualize the Lagrangian particles.
velocity and Magnitude.File -> Save Screenshot.File -> Save Animation. Choose your resolution and frame rate, and ParaView will generate a video file by playing through all the timesteps.You are now equipped with the basic skills to install, run, and analyze any simulation in PICurv.
The "Getting Started" section is complete. You are ready to become a Power User. Proceed to the User Guide to begin learning how to create your own custom simulations from scratch.