Hello Fellow Members,
I am solving a 2D wave equation and saving the solution in pvd format. I then open the pvd/ pvtu output file in Paraview, and export the solution vector to .csv format for a particular time step, which is then read by MATLAB and imported as a matrix. Lets say the time step is 20th time step. My code runs many times in a loop, for different input values of physical parameters, thereby saving solutions for each run in a different folder. So, it is not convenient to open each folder and follow the process mentioned above.
Is there a way to shorten this process? Any help is highly appreciated.
The loop at the end of the code looks like this:
file = File("displacement.pvd")
while t <= T:
t += dt
solver.solve()
update(u)
file << u