Abstract-In this paper, a new spatial method has been implemented for the efficient calculation of the mixed potential Green's functions associated to electrical sources, when they are placed inside arbitrarily-shaped cylindrical cavities. The technique consists of placing electric dipole images and charges outside the cavity, imposing, at discrete points of the metallic wall, the appropriate boundary conditions for the potentials. Results show that the numerical convergence is attained fast. The cut-off frequencies and potential patterns for a trapezium-shaped waveguide are compared to those obtained by a standard finite elements technique, showing excellent agreement. Furthermore, a printed planar filter shielded in a square cavity has been analyzed with the new Green's functions, showing the practical value of the new theory.