Skip to content

River Outputs

After running Tolosa-sw, all results are written under the res/ subdirectory of the working directory. The structure reflects the outputs configured in input.txt and savefield.yaml.

/res
run_YYYY-MM-DD_HH:MM:SS ! run information file
energy.plt ! energy balance (if w_post = 1)
energy_init_final.csv
umax.plt
volume.plt
/bin ! full-domain binary outputs
/vtk ! full-domain VTK outputs
/gauge ! tide gauge time series
/field
/Window_1 ! VTK sub-window
/Window_2 ! binary sub-window

Tide gauge time series are stored in res/gauge/ as .csv files, one per gauge:

/gauge
TIDE_G_1.csv
TIDE_G_2.csv
TIDE_G_3.csv
TIDE_G_4.csv

Each file contains the time evolution of the requested fields (ssh, u, v, etc.) at the specified cell, written at the configured interval.

Written to res/vtk/ at interval dtw:

/vtk
result_000000.vtk
result_000001.vtk
...
result_XXXXXX.vtk

Each file contains the sea surface height, bathymetry, and velocity components at all cell centers for one time step. Open the file bundle in ParaView to visualize and animate.

Window_1 was defined without format: bin, so it uses VTK by default:

/field
/Window_1
Window_1_000000.vtk
...
Window_1_XXXXXX.vtk

These files contain the same fields as the full-domain output but restricted to the Window_1 spatial extent.

Written to res/bin/ at interval dtb:

/bin
result_data_000001.bin
...
result_data_XXXXXX.bin
result_data_minmax.txt
result_gmsh_element.bin
result_info.txt
result_mesh.bin
result_lon_lat_degrees.bin
result_lon_lat_radians.bin
FileContent
result_info.txtSummary of fields, dates, and key values
result_mesh.binMesh connectivity (links data to mesh nodes)
result_gmsh_element.binGlobal cell indices as defined in Gmsh
result_lon_lat_degrees.binNode coordinates in longitude/latitude (degrees)
result_lon_lat_radians.binNode coordinates in longitude/latitude (radians)
result_data_XXXXXX.binField values at each cell center (one file per time step)
result_data_minmax.txtMin/max of each field at each time step

Binary files are readable by PyTolosa.

Window_2 was defined with format: bin:

/field
/Window_2
Window_2_data_000000.bin
...
Window_2_data_XXXXXX.bin
Window_2_data_minmax.txt
Window_2_gmsh_element.bin
Window_2_info.txt
Window_2_mesh.bin
Window_2_lon_lat_degrees.bin
Window_2_lon_lat_radians.bin

Same structure as the full-domain binary output but restricted to the Window_2 spatial extent.

If w_post = 1, Tolosa-sw writes global diagnostic time series to the res/ root:

FileContent
energy.pltKinetic energy, potential energy, total energy
energy_init_final.csvEnergy at first and last time step
umax.pltMaximum velocity over time
volume.pltTotal water volume over time

These can be visualized with Gnuplot (.plt files) or any CSV reader.