Outputs
Outputs
Section titled “Outputs”Tolosa-lib supports multiple output formats for visualization and post-processing.
Supported Formats
Section titled “Supported Formats”VTK Format (.vtk)
Section titled “VTK Format (.vtk)”- Type: ASCII or Binary
- Visualization: Paraview, Visit
- Structure:
type(VTK_file)
Tecplot Format (.plt)
Section titled “Tecplot Format (.plt)”- Type: ASCII or Binary
- Visualization: Tecplot
- Structure:
type(Tecplot_file)
Text/CSV Format (.txt, .csv)
Section titled “Text/CSV Format (.txt, .csv)”- Type: ASCII
- Visualization: Any plotting software
- Use: Time series, 1D data
Binary Format (.bin)
Section titled “Binary Format (.bin)”- Type: Binary
- Post-processing: PyTolosa
- Use: 2D fields, time series
Output Configuration
Section titled “Output Configuration”Configure outputs in input.txt:
# Output settingsoutput_frequency = 10output_format = vtkoutput_directory = ./resoutput_variables = h,u,v,sshWriting Outputs in Code
Section titled “Writing Outputs in Code”! Create VTK filetype(VTK_file) :: vtkcall vtk%initialize('output.vtk', mesh)call vtk%write_field('water_depth', h)call vtk%write_field('velocity_x', u)call vtk%finalize()Next Steps
Section titled “Next Steps”- Mesh - Mesh structure details
- Common Tools - Utility functions