You should expect a 64 X 64 point grid having a length of 3.2 units.

Have a look at the values of the cell centers rather than the length of
the array.

Good luck.

On Oct 15, 2009, at 5:08 PM, Ranjit Chacko wrote:


I'm confused by the output of the Grid2D() method. When I do this:

  mesh=Grid2D(dx=0.05, dy=0.05, nx=64, ny=64)

I expect to get a rectangular mesh that is 1280 x 1280.

But when I check the size of the mesh like this:

  len(mesh.getCellCenters()[0])

it seems like the mesh is only 64 x 64. In fact what I put in for dx
and dy doesn't seem to matter. Why is this?




Reply via email to