<div dir="ltr">In the first place, I do not understand the difference between 3DRectMesh and 3DCoRectMesh.<div><br></div><div>I picked the following coordinate for testing:</div><div><br></div><div><div>Nz,Ny,Nx = [80, 90, 100]</div><div>z0,y0,x0 = [-3.,-2.,-1.]</div><div>lz,ly,lx = [Nz*3,Ny*2,Nx]</div><div>dz,dy,dx = [lz/(Nz-1), ly/(Ny-1), lx/(Nx-1)]</div><div><br></div><div>I found I have to use the following lines in the xdmf to get the correct grid to be shown in Paraview for 3DRectMesh and 3DCoRectMesh, respectively:</div><div><br></div><div><!--For 3DRectMesh --><br></div><div><div>      <Topology TopologyType="3DRectMesh" Dimensions=" 80 90 100"/></div><div>      <Geometry GeometryType="Origin_DXDYDZ"></div><div>        <DataItem Name="Origin" DataType="Float" Dimensions="3" Format="XML"> -1 -2 -3</DataItem></div><div>        <DataItem Name="DxDyDz" DataType="Float" Dimensions="3" Format="XML"> 1 2 3</DataItem></div><div>      </Geometry></div></div><div><br></div><div><!--For 3DCoRectMesh --><br></div><div><div>      <Topology TopologyType="3DCoRectMesh" Dimensions=" 80 90 100"/></div><div>      <Geometry GeometryType="Origin_DXDYDZ"></div><div>        <DataItem Name="Origin" DataType="Float" Dimensions="3" Format="XML"> -3 -2 -1</DataItem></div><div>        <DataItem Name="DxDyDz" DataType="Float" Dimensions="3" Format="XML"> 3 2 1</DataItem></div><div>      </Geometry></div></div></div><div><br></div><div>Note that, the Dimensions for Topology in both cases are in zyx order, while the Origin/DxDyDz arrays have different orders in the two cases:</div><div><br></div><div>3DRectMesh requires Origin=[x0,y0,z0], DX=[dx,dy,dz], i.e., xyz order</div><div>3DCoRectMesh requires Origin=[z0,y0,x0], DX=[dz,dy,dx], i.e., zyx order.</div><div><br></div><div>Am I writing the correct xdmf codes? How would you specify these data? Thanks.</div></div>