Paraview time annotation question

@danlipsa

Hello Dan (and/or other ParaView experts),

I have a question about time annotation in ParaView. Here is the context for my visualization needs:

  1. The output files from my simulations (sher3d.5000, sher3d.10000, sher3d.15000, sher3d.20000) do not include simulation time information. Therefore, the annotate time feature in ParaView only displays 0, 1, 2, and 3.
  2. Given that the time step size is known (e.g., 1E-3 second), I would like to display the time in ParaView as 5000x1E-3=5s, 10s, 15s, 20s.
  3. I need assistance with automatically reading the extensions of the output files (5000, 10000, 15000, 20000) and converting them to the actual simulation time for annotation in ParaView.

Your insight is greatly appreciated!

Best regards,
Y. F.

Hi @fany1, welcome to the ParaView community.

The fastest way to proceed, assuming your times are evenly spaced as in your example here, is to use the Temporal Shift Scale filter.

There isn’t a general way to parse numeric values from file names in ParaView (some specific readers might).

1 Like

Let me amend that slightly. You could load your file series, then write some Python to parse the time values from the file names and set those times using the GenerateTimeSteps filter.

1 Like

If you have the control over the files before using ParaView, you can also write a .series file that will describe the time values for each file. See 2. Loading Data — ParaView Documentation 5.12.0 documentation

2 Likes