nickabattista / IB2d

An easy to use immersed boundary method in 2D, with full implementations in MATLAB and Python that contains over 75 built-in examples, including multiple options for fiber-structure models and advection-diffusion, Boussinesq approximations, and/or artificial forcing.
GNU General Public License v3.0
167 stars 91 forks source link

Inconsistent dimensions between u.0000.vtk and later indices #12

Open mountaindust opened 4 years ago

mountaindust commented 4 years ago

Steps to reproduce: Run the MATLAB version of Example_Channel_Flow/Example_Flow_Around_Cylinder. Compare the dimensions of u.0000.vtk and any of the other u.####.vtk files. The DIMENSIONS field is switched.

For some reason, the first vtk output seems to be the transpose of all the later ones. I'm not sure if this issue is confined to this one example (though I'm inclined to doubt it), or if it is only in the MATLAB version. The problem does not seem to be occurring in Omega.0000.vtk, P.0000.vtk, or uMag.0000.vtk