SMS: Numerical methods in electromagnetism