Petrov-Galerkin spectral element method for mixed inhomogeneous boundary value problems on polygons