Can't change timestep on a decomposed case with python scripts
Hi everyone, need to postprocess a 140GB transient LES OpenFOAM case.
Basically what i'm doing is a bunch of 'for' cycles in python that pick a timestep, pick a slice plane, pick a parameter between U/p/vorticity, print the screenshot, then move the plane and so on, what i get is a lot of images of U/p/vorticity sliced in different positions and trough time. I've tried using the script on a decomposed case (i have included casefoam.CaseType = 'Decomposed Case' in the .py file, paraview opens it as a decomposed case) but it won't cycle timesteps. On a reconstructed case everything works fine except that it runs on a single core (I have a Xeon E5 2620 v3 CPU) I am on windows 10 with paraview 5.7.0 TL;DR I need to cycle timesteps on a decomposed transient case with a python script, the one i made only works with reconstructed and not decomposed cases. Thanks in advance |
I am facing the exact problem as yours. It seems that for a decomposed case, the variable casefoam.TimestepValues only lists [0.0]. It outputs the correct list for a reconstructed case allowing for selection.
Insterestingly, even with TimestepValues information missing in our reader, if I use the TemporalStatistics filter, it successfully traverses all timesteps (evident from some warnings that pop up in the process). |
All times are GMT -4. The time now is 01:14. |