Best practices of define the boundary. #2860
-
|
Hello, everyone. If the boundary is complex, could anyone tell me what is the best practice of defining the boundary? For example, considering the case I need to distinguish the left, right, top, and bottom boundary. Can I use a python function to define the different boundary just like in fenics: Or in this way to modified the facet markers directly like in fenics: Or in this way like in fenicsx: Thanks~ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.
RelabeledMesh(https://www.firedrakeproject.org/firedrake.html#firedrake.mesh.RelabeledMesh) lets you make a new mesh with new labels; see https://github.com/firedrakeproject/firedrake/blob/master/tests/regression/test_mark_entities.py for examples.