Skip to content

Outputs

Tolosa-lib supports multiple output formats for visualization and post-processing.

  • Type: ASCII or Binary
  • Visualization: Paraview, Visit
  • Structure: type(VTK_file)
  • Type: ASCII or Binary
  • Visualization: Tecplot
  • Structure: type(Tecplot_file)
  • Type: ASCII
  • Visualization: Any plotting software
  • Use: Time series, 1D data
  • Type: Binary
  • Post-processing: PyTolosa
  • Use: 2D fields, time series

Configure outputs in input.txt:

# Output settings
output_frequency = 10
output_format = vtk
output_directory = ./res
output_variables = h,u,v,ssh
! Create VTK file
type(VTK_file) :: vtk
call vtk%initialize('output.vtk', mesh)
call vtk%write_field('water_depth', h)
call vtk%write_field('velocity_x', u)
call vtk%finalize()