Specifying different names for the individual .vtu files when saving to .pvd
I'm running a simulation which consists of multiple stages, and I'm saving snapshots at various time steps to a .pvd file by doing something along the following lines (in pseudo-code):
f = dolfin.
for s in stages:
# do some computations, then at certain regular time steps save a snapshot:
f << some_data
This results in a collection of files called
sim000000.vtu
sim000001.vtu
sim000002.vtu
sim000003.vtu
...
However, what I would like to do is keep the 'global' filename sim.pvd the same while grouping the files within each stage together and mark with an extra suffix, like this:
sim_stage01_
sim_stage01_
sim_stage01_
...
sim_stage02_
sim_stage02_
sim_stage02_
...
Unfortunately, I can't find a way to change the names of the .vtu files (they seem to be derived automatically from the name of the .pvd file with sequential numbers added). Is there a way to explicitly specify these names somehow and thus to set them to something else than the default?
Many thanks for any suggestions, and in particular thanks for a great piece of software!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Garth Wells
- Solved:
- Last query:
- Last reply: