Boundary conditions

Hello to all,

is there any way to enable the boundary conditions of gluing between bodies?

For example, if there are two boundaries, then the displacements u | [sub]Г[sub]1[/sub][/sub] = u | [sub]Г[sub]2[/sub][/sub] should be equal at these boundaries. Tell me please.