Post-treatment
Once the simulation has finished, post-treat the outputs with PyTolosa (for CSV and binary files) and ParaView (for VTK files).
1D Outputs — Tide Gauges
Section titled “1D Outputs — Tide Gauges”The .csv files in res/gauge/ can be post-treated with PyTolosa. Replace the path with your working directory:
pytolosa -wdir /path/to/wdir/res/gauge -ssh -u -v -c1D -delThis creates post-treatment images for each tide gauge in res/gauge/post/, showing the time evolution of SSH and velocity components.
2D Outputs
Section titled “2D Outputs”VTK Files — ParaView
Section titled “VTK Files — ParaView”Open the VTK file bundles from res/vtk/ or res/field/Window_1/ in ParaView:
File > Openand select the first.vtkfile in the bundle- Click Apply in the Properties panel
- Choose a field (e.g.
ssh) in the display toolbar - Use the time controls to animate the sequence
Binary Files — PyTolosa
Section titled “Binary Files — PyTolosa”Binary files in res/bin/ or res/field/Window_2/ can be post-treated with PyTolosa:
pytolosa -wdir /path/to/wdir/res/field -ssh -u -v -c2D -del -conf basic_riverTo post-treat only a specific sub-window, point to its directory:
pytolosa -wdir /path/to/wdir/res/field/Window_2 -ssh -u -v -c2D -delBrowsing All Outputs at Once
Section titled “Browsing All Outputs at Once”PyTolosa can explore the entire res/ tree and post-treat all 1D and 2D outputs automatically:
pytolosa -wdir /path/to/wdir/res -ssh -u -v -c2D -del -conf basic_river -allThe -all flag triggers automatic discovery of all .csv and binary output directories.
PLT Files — Gnuplot
Section titled “PLT Files — Gnuplot”Post-treatment files (energy.plt, umax.plt, volume.plt) can be visualized with Gnuplot:
gnuplotplot 'res/energy.plt' using 1:2 with lines title 'Ekin'