VolMesh.from_meshgrid

classmethod VolMesh.from_meshgrid(dx=10, dy=None, dz=None, nx=10, ny=None, nz=None)

Construct a volmesh from a 3D meshgrid.

Parameters
  • dx (float, optional) – The size of the grid in the x direction.

  • dy (float, optional) – The size of the grid in the y direction. Defaults to the value of dx.

  • dz (float, optional) – The size of the grid in the z direction. Defaults to the value of dx.

  • nx (int, optional) – The number of elements in the x direction.

  • ny (int, optional) – The number of elements in the y direction. Defaults to the value of nx.

  • nz (int, optional) – The number of elements in the z direction. Defaults to the value of nx.

Returns

VolMesh