Is it possible to create a multi-domain problem on FEniCS? I am trying to implement a contact between two deformable solids. So I need to calculate the shortest distance from one surface of the domain to the other, and whether a given point is inside a domain or not.
If it is too complicated/difficult, then I can assume that one of the body is rigid with a prescribed displacement. Then I don't even need two domains, as the displacement of the rigid body is known beforehand. However, I still need to calculate the shortest distance from some point to the surface of the body, and whether the point is inside the body or not.
The second option is a lot easier, but I still prefer the first option because it is more general and robust approach.
Does anybody have any ideas how to do this? Thanks!