discretize.utils.extract_core_mesh

discretize.utils.extract_core_mesh(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

mesh_typestr, optional

Unused currently

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

  • meshcore: core sdiscretize mesh