which directly applies the constraint to the displacement without external tensor ops. Patch contributed by Mattijs Janssens