─ This paper presents a new method to model inhomogeneous media in commercial electromagnetics software, especially FEKO. In this method, the inhomogeneous medium is fragmented to some homogeneous pieces. If the size of these pieces is chosen correctly, then the electromagnetic behaviors of them and inhomogeneous medium are the same. Since creating these homogeneous pieces in FEKO manually is v...