How to open a result?

Are you using legacy fenics or fenicsx?

If you are using legacy fenics, the 2 ways to do this are

  1. Saving the solution in an XDMFFile with write_checkpoint and reading it back in with read_checkpoint. Some useful info can be found in this post.
  2. Saving the solution in a HDF5File with the 'w' (write) argument, which can then be read back into python using the 'r' (read) argument. Some relevant info is in this post.