# Simulating a magnetic field in Spice

I am trying to simulate a circuit that involves pickup coils in Spice. How would one simulate the magnetic fields that the pickup coils can sense? Additionally, how would one get a frequency response for such an input? (By frequency response, I mean output voltage vs input flux)

One idea I thought of is using a magnetic coupling (K) between the simulated coil and another "input" coil through which a known current can be passed. The current in the "input" coil would cause a current to flow through the simulated coil due to the coupling, and essentially simulate a field causing a current flow. The issue with this problem is that I am unable to get an output voltage frequency response based on the input current (I'm using MultiSim).

Any ideas?

• I know this is old, but it sounds like your issue is that you're not using a time varying signal on the magnetically coupled "input" coil. A constant current won't result in any response on the pickup coil using this model. Am I misunderstanding your question? May 12, 2014 at 20:35
• You might consider modelling it as an air core transformer
– user32885
May 22, 2014 at 8:32

Lleakage 1 N1 <value>