Skip to content

Post-treatment

Once the simulation has finished, post-treat the outputs with PyTolosa (for CSV and binary files) and ParaView (for VTK files).

The .csv files in res/gauge/ can be post-treated with PyTolosa. Replace the path with your working directory:

Terminal window
pytolosa -wdir /path/to/wdir/res/gauge -ssh -u -v -c1D -del

This creates post-treatment images for each tide gauge in res/gauge/post/, showing the time evolution of SSH and velocity components.

Open the VTK file bundles from res/vtk/ or res/field/Window_1/ in ParaView:

  1. File > Open and select the first .vtk file in the bundle
  2. Click Apply in the Properties panel
  3. Choose a field (e.g. ssh) in the display toolbar
  4. Use the time controls to animate the sequence

Binary files in res/bin/ or res/field/Window_2/ can be post-treated with PyTolosa:

Terminal window
pytolosa -wdir /path/to/wdir/res/field -ssh -u -v -c2D -del -conf basic_river

To post-treat only a specific sub-window, point to its directory:

Terminal window
pytolosa -wdir /path/to/wdir/res/field/Window_2 -ssh -u -v -c2D -del

PyTolosa can explore the entire res/ tree and post-treat all 1D and 2D outputs automatically:

Terminal window
pytolosa -wdir /path/to/wdir/res -ssh -u -v -c2D -del -conf basic_river -all

The -all flag triggers automatic discovery of all .csv and binary output directories.

Post-treatment files (energy.plt, umax.plt, volume.plt) can be visualized with Gnuplot:

Terminal window
gnuplot
plot 'res/energy.plt' using 1:2 with lines title 'Ekin'