I'm trying to create a 3D mesh with subdomains. Following what was done in the post http://fenicsproject.org/qa/3981/creating-a-rectangular-domain-with-a-circular-hole dealing with 2D, I tried:
from dolfin import *
domain = Box(0., 0., 0., 1., 1., 1.)
domain.set_subdomain(1, Box(0., 0., 0., 1., 1., 1.))
domain.set_subdomain(2, Box(0.5, 0., 0., 1., 1., 1.))
mesh3d = Mesh(domain, 25)
plot(mesh3d, "3D mesh")
interactive()
but the resulting mesh shows no indication of the subdomains. Is there something different that has to be done to create subdomains in 3D?