Electromagnet Simulator