If it is possible to write multiple mesh-changed result into a single file of XDMF/VTX in FEniCSx?
I want to achieve the similar one as what I do in FEniCS: I change my mesh in time (e.g. adaptive mesh refinement or AMR) and output time dependent Function on that changed mesh to a single XDMF file as following:
# Pseudo code demonstrates functionality in FEniCS
mesh0 = Mesh() # initial mesh
XDMFFile(mesh_path).read(mesh0)
xdmf = XDMFFile(path)
# Time iteration
while t < t_end:
# Do AMR
mesh = refine(mesh0, material)
# Dump time dependent mesh-changed result `f`
f = Function(FunctionSpace(mesh))
xdmf.write(f, t)
t += dt