Finding nodes/edges that are on the boundary of a 3D domain
Hi,
I'm trying to find all the edges that lie on the boundary of a 3D domain. finding the faces works the normal way:
import dolfin
mesh = dolfin.
class Boundary(
def inside(self, x, on_boundary):
print on_boundary
return on_boundary
boundary_subdomain = Boundary()
face_meshfunction = dolfin.
face_meshfuncti
boundary_
but if I try
edge_meshfunction = dolfin.
edge_meshfuncti
boundary_
no edges are marked. It seems as if on_boundary is never true for edges or nodes.
In the mean time I'll work aroud it by first finding the faces and then taking their edges, but it would be nice if I could do it in one step.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Neilen Marais
- Solved:
- Last query:
- Last reply: