Boundary value problems for partial differential equations and applications