Hi,
I have a time dependent differential equation where I am interested in plotting the difference between the initial values and the solution after a given time. Is there an easy way to do this?
Thanks in advance!
Hi,
I have a time dependent differential equation where I am interested in plotting the difference between the initial values and the solution after a given time. Is there an easy way to do this?
Thanks in advance!
If the initial solution and the solution at the final time is in the same function space you can create a new function
udiff=Function(V)
udiff.assign(u_end-u_init)
and plot this function using matplotlib or paraview