How to add additional time steps to exodus file

I am trying to read an exodus file, add a new variable and some additional time steps with potentially Python Calculator or regular Calculator , and export it in exodus format again?

More details about the problem and what I am trying to achieve:

We are using ArborX in a CFD solver. ArborX reads the pointData from the external file at given time steps and CFD solver uses the pointData during the run time. In this procedure, in order to recover the expected order of convergence, I need to export the exodus file in specific nonuniform time steps in Paraview. As of now, what I am doing is that:

  1. I am generating exodus file with uniform time steps by using our CFD solver.
  2. Reading it in Paraview and using a PythonCalculator to calculate a variable with an expression, let’s say tanh(2*t_value - 5.0).
  3. Export it again with the original uniform time steps.

I want to add some additional nonuniform time instances to the original exodus file that I read in Step 1 and export it because generating an exodus file with the target nonuniform time steps in our CFD solver is not trivial.

GenerateTimeSteps filter may do the trick.

Until your message, I thought Generate Time Steps filter is not doing what I want because I tried it on a Windows machine and there was no data generated. After your message, I wanted to give it a try on a linux machine as well and it worked! I never thought the problem might be platform specific.

For future readers, I am using Paraview 5.11.0 on my Windows 11 machine and Generate Time Steps filter is not working as intended.

Please share the issue you have on Windows, this is unexpected.

Here is what I do to test on a simple data:
On windows:


This is Generate Time Steps filter:

When I repeated the exact same procedures on a linux machine, this is what I get:

The plot is correct. It is not just plotting issue because I tried to save the data in exodus format on both machine and, in linux, everything was expected while, in Windows, the exported file did not have any data in it.

Probably it is not relevant but, in linux, when I export the data with time steps of 1.23456789, the exported data will export up to 4 significant digits, which leads to a time=1.235 in the exported data. This is not just a visualization problem. I actually read the file on my CFD solver and it reads as 1.235 despite it needs to be 1.23456789.

Attached is the simple data if you would like to test it on your end. Please let me know if you need any further information.

test.e (11.4 KB)

Works perfectly fine on Windows with ParaView 6.0.1.

Here is a statefile:
state.pvsm (536.8 KB)

I tested your state file on my computer and it is not working. However, I tested on a different Windows 11 computer and it was working fine. It looks like my computer somehow messing things up. Win 11 upgrade led to many issues overall. I would not be surprised if this issue is because of Win 11 as well. I can try a fresh installation on my free time.

I was using win11 fyi.