1. A method comprising: modeling a structure having an inhomogeneous media represented as an open medium or an unbounded medium in terms of a spectral element; and apply a mapping and a deformation of a coordinate system to a contour in a complex plane, the mapping and the deformation applied to determine eigenvalues and eigenfunctions of the structure; and providing the eigenvalues and eigenfunctions to construct parameters for the structure.