meshmode icon indicating copy to clipboard operation
meshmode copied to clipboard

Multiple boundary tags in meshmode export

Open wence- opened this issue 3 years ago • 3 comments

https://github.com/inducer/meshmode/blob/6b2bd65e66c7b7ec9c0de2f4b747df6cbc1ac053/meshmode/interop/firedrake/mesh.py#L802-L805

FWIW, since firedrakeproject/firedrake#2007 entities can be marked with multiple tags and it all works. After building the plex, create a "Face Sets" label (or if you don't like that literal, a firedrake.cython.dmcommon.FACE_SETS_LABEL) (or CELL_SETS_LABEL for cells) and mark the points.

wence- avatar May 18 '21 20:05 wence-

cc @benSepanski

@wence- Thanks for the heads-up!

inducer avatar May 19 '21 16:05 inducer

The examples in utility meshes seem to only tag each face label with one tag (e.g. plex.setLabelValue(FACE_SETS_LABEL, face_id, label_id)). Are there any examples of tagging with multiple tags?

benSepanski avatar May 27 '21 00:05 benSepanski

I don't think so. You can make a gmsh mesh that does multiple tags. Or just copy one of those functions and do multiple marking.

wence- avatar May 27 '21 08:05 wence-