n = mphselectball(model, geomtag, coord, entity) finds geometry entity numbers that are inside a ball defined by its coordinates and radius.
geomtag is the geometry tag of the geometry where the search should be performed.
coord is a column vector with the coordinates of the sphere.
mphselectball uses the Ball Selection that is built into COMSOL. This method is similar to
mphselectcoords, but the latter function does not offer the same possibilities for the
include option.