I called VTKIO(mesh).write_equation_systems (file_name.str(),
equation_systems) in a libmesh example code to dump an adaptive mesh with
solutions to VTK files. I ran three time steps and dumped the mesh every
time step. I got those files

out.001.pvtu
out.002.pvtu
out.003.pvtu
out_0.vtu

I am not sure when out_0.vtu was generated since I did not have such file
name.  I found out.001.pvtu~out.003.pvtu had the SAME content like this:

<?xml version="1.0"?>
<VTKFile type="PUnstructuredGrid" version="0.1" byte_order="LittleEndian"
header_type="UInt32" compressor="vtkZLibDataCompressor">
  <PUnstructuredGrid GhostLevel="1">
    <PPointData>
      <PDataArray type="Float64" Name="u"/>
    </PPointData>
    <PCellData>
      <PDataArray type="Int32" Name="libmesh_elem_id"/>
      <PDataArray type="Int32" Name="subdomain_id"/>
      <PDataArray type="Int32" Name="processor_id"/>
    </PCellData>
    <PPoints>
      <PDataArray type="Float64" Name="Points" NumberOfComponents="3"/>
    </PPoints>
    <Piece Source="out_0.vtu"/>
  </PUnstructuredGrid>
</VTKFile>

I also found out_0.vtu only contained the mesh of the last time step. So,
how can I get the mesh every time step so that I can see how the mesh is
adaptively refined in ParaView?

Thank you!

--Junchao Zhang
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to