Computational Design For Electromagnetic Simulations