Importing meshfunction from pvd file

Hello everyone,

I performed some simulations and stored the results. I want to make some postprocessing (integration of fluxes and such) separatedly. To do so, I import the solutions I saved in .xdmf files, but I would also like to import the meshfunction of the problem with the marked boundaries. The meshfunction is stored in a .pvd file:

boundary_file = File("boundaries/boundaries.pvd")

boundary_file << bound_mshfunc

However I have not found a way to import such pvd files into fenics.

Is it possible to import pvd files?

If not, is it possible to save meshfunctions as any other importable format?

Thanks in advance.

save the meshfunctions to xdmf, see: Bitbucket

Great, thanks @dokken