Usage of contact planes to model a special boundary condition