I am trying to solve linear elastic equation with discontinuous galerkin method, and in that i want to restrict the displacement in only one direction. But as BCs are weakly imposed in DG method i don't know how to restrict only one component. Any help is appreciated.