Grid

class Grid(mesh, geo, max_num_ele=200)

This class is used to generate grids within the mesh that can be used for plotting and other post-processing.

Objects of this type are fed to various post-processing functions that use the information provided to do, e.g., finite element interpolation (which needs to know the element in which a given grid point lives, information provided by this object).

Parameters:
  • mesh (Mesh) – Mesh in which to embed this grid.

  • geo (GeometricClasses object) – The geometry forming the grid.

  • max_num_ele (int, optional) – For creation of an Octree object, the maximum number of elements in a ‘leaf.’ By default, 200.

mesh

Mesh used to create grid.

Type:

Mesh

octree

Octree of the mesh.

Type:

Octree

WIP
set_geo(geo)
Set / change the geometry to be used for this grid. Useful when you don’t want to recreate

an octree (which takes some time).

Parameters:

geo (GeometricClasses object)