def METHOD_NAME(self, Z):
    METHOD_NAME = [DirichletBC(Z.sub(0), self.analytical_solution(Z.ufl_domain()), "on_boundary"),
           DirichletBC(Z.sub(1), zero(), "on_boundary")]
    return METHOD_NAME