How to assign a mesh function to a mesh's domains' marker
Asked by
Marie Rognes
What is the blessed way of assigning a certain mesh function to a mesh's domains' marker?
I'm thinking of something along the lines of the below, but have not been able to find
the suitable assign functionalities...:
from dolfin import *
mesh = UnitCube(2, 2, 2)
mf = FaceFunction(
mf.set_all(0)
# Want to accomplish something like this
# (Syntax is of course not valid)
mvc = MeshValueCollec
mesh.domains(
# Or maybe something like this
mesh.facet_
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply:
To post a message you must log in.