Hi all,
I have been running simulations for the Compressible navier stokes equations with time dependent boundary conditions, (they are periodic in time). To solve from the 0 initial condition, it takes 500 cycles to reach the expected periodic orbit. So I wanted to start at the last cycle and only solve 1 cycle to find the periodic orbit. I have tried that, but I did not get the periodic orbit. If I run for 10 cycles at the last cycle of the larger simulation I am able to recreate the periodic orbit, but I'd prefer to only need to run 1 cycle.
I figure that the errors come from the time stepping not having the previous iterations. I was sure how to exactly do this in dedalus. I did see there is load_state function in the solver class, but I wasn't able to figure how to use that to do what I want.
Anyway I have attached both the longer simulation script and the shorter simulation script, and my post processing script(this is finding the mean response and the oscillatory response of the velocity and the pressure). DNS_Small_Amplitude.py is the longer simulation script ,DNS_Small_Amplitude_Time.py is shorter simulation script, and PostProcessDNS.py is the post process script I use to find the mean and oscillatory responses of the velocity and pressure.
-Andrew