This paper describes a technique for the simulation of complex magnetic sys
tems intimately connected to any necessary drive electronics. The system is
split into two Kirchhoffian domains, one magnetic and one electric. Two-wa
y interaction between the domains is supported by a virtual device called a
magnetoelectric differential gyrator, With this technique, arbitrarily com
plex, nonlinear, hysteretic magnetic systems may be simulated in the time d
omain, coupled to any appropriate nonlinear electronics, at a fraction of t
he cost of a comparable finite-element calculation, The capabilities of the
system are demonstrated by the simulation of a feedback-controlled current
-sensing system, and the simulation tracks the measured behavior of the sys
tem well outside its linear region, to the point that the nonlinear hystere
tic core is being driven into and out of saturation, a consequence of a tim
e delay inherent in the electronics. This is compared with a "conventional"
electronic simulation of the same system, and the increased accuracy of th
is technique is clearly demonstrated.