Modeling and simulation of stationary magnetically coupled devices