Hi guys,
I have a mesh constituted of 3d cubes. I want to mark all facets on the plane x[0]=a that are located between x1min and x1max along the direction x[1] and between x2min and x2max along the direction x[2].
The code below,
Facets_domain = FacetFunction('size_t', mesh)
class Bndry_(SubDomain):
def inside(self, x, on_boundary):
return (abs(x[0]-a) < tolerance_boundary_location
and x[1] > x1min-tolerance_boundary_location
and x[1] < x1max+tolerance_boundary_location
and x[2] > x2min-tolerance_boundary_location
and x[2] < x2max+tolerance_boundary_location)
Bndry_().mark(Facets_domain,1)
marks correctly the facets as i want, except that only the facets at the exterior are marked. Actually, i want to mark the facets within the volume to specify later a flux as an internal boundary condition.
Someone can tell me what's wrong on the code?
Thanks.