This eSeminar discusses advances in modeling ESD generators using CST Studio Suite®. Direct transient analysis is used to simulate the ESD test waveforms defined by the IEC 61000-4-2 standard. We demonstrate the importance of modeling the physical geometry of the generator, including the ground strap. We simulate a direct contact discharge to an enclosure and predict the resulting current paths and radiated electromagnetic fields. Finally, we investigate the effect of attaching cables to the enclosure.