  In this paper, a generalized macromodeling approach is presented to simulate
complex electromagnetic (EM) surfaces consisting of unit cells with connected
conductors. Macromodels of each unit cell are produced by applying the
equivalence principle on fictitious surfaces encapsulating them. Unit cells
often consist of multiple dielectric layers and conductor traces, featuring
multiscale structures. Challenges arise when a current-carrying conductor trace
traverses the fictitious surface. Hence, a new method based on half
Rao-Wilton-Glisson basis functions is proposed to accurately ensure the
continuity of the surface currents and avoid singularities at the
intersections. The accuracy of the proposed approach is validated by comparing
the results with commercial solvers for different EM surfaces.
