FUNCTION REFERENCE

pde.FEMesh.findElements

Find element indices in a pde.FEMesh matching a geometric query.

Find element indices in a pde.FEMesh matching a geometric query.

Syntax

ids = findElements(mesh, 'box', xlim, ylim)

Syntax

ids = mesh.findElements('radius', center, r)

Syntax

ids = mesh.findElements('attached', nodeIDs)

Syntax

ids = mesh.findElements('region', 'Face', faces)

Returns 1-based triangle element indices in mesh matching the geometric, attached-node or face-region query.

Example

m = createpde; geometryFromEdges(m, decsg([3;4;0;1;1;0;0;0;1;1])); mesh = generateMesh(m, 'Hmax', 0.5); ~isempty(mesh.findElements('box', [0 0.5], [0 0.5]))   % true

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.