discretize.utils.ExtractCoreMesh

discretize.utils.ExtractCoreMesh(xyzlim, mesh, mesh_type='tensor')[source]

Extracts Core Mesh from Global mesh

Parameters
xyzlim: numpy.ndarray

2D array [ndim x 2]

mesh: BaseMesh

The mesh

Returns
tuple
This function ouputs::
  • actind: corresponding boolean index from global to core

  • meshcore: core sdiscretize mesh