meshmode
meshmode copied to clipboard
Multiple boundary tags in meshmode export
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.
cc @benSepanski
@wence- Thanks for the heads-up!
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?
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.