# TSTRAJECTORYVISUALIZATION
Stores each solution of the ODE/DAE in a file Saves each timestep into a separate file in Visualization-data/SA-%06d.bin

This version saves only the solutions at each timestep, it does not save the solution at each stage,
see `TSTRAJECTORYBASIC` that saves all stages

$PETSC_DIR/share/petsc/matlab/PetscReadBinaryTrajectory.m and $PETSC_DIR/lib/petsc/bin/PetscBinaryIOTrajectory.py
can read in files created with this format into MATLAB and Python.




## See Also
 [](chapter_ts), `TSTrajectoryCreate()`, `TS`, `TSTrajectorySetType()`, `TSTrajectoryType`, `TSTrajectorySetVariableNames()`,
`TSTrajectoryType`, `TSTrajectory`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/visualization/trajvisualization.c.html#TSTRAJECTORYVISUALIZATION">src/ts/trajectory/impls/visualization/trajvisualization.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/trajectory/impls/visualization/trajvisualization.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
