SMS: Electricity and magnetism simulations