Simulation And Optimization Of High Temperature Superconductor Based Electromagnetic Systems