get cell indices in subdomain
Asked by
Chaffra Affouda
Waht is the correct way to find the cell indices belonging to a subdomain?
I am running the code below with works well in 1D but I am afraid it might not work for 2D/3D. Do the indices in the array of the cell function correspond to the cell indices in the mesh?
mesh = UnitSquare(10,10)
def inside(x, on_boundary):
return (x[0] >= 0.5)
region = AutoSubDomain(
subdomains = CellFunction(
subdomains.
region.
cells = numpy.where(
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.