I have a simple RL circuit with a MOSFET, as shown, with the FET switching at 200 kHZ and 50% duty cycle. I expect, for a given input voltage V2, to have an output about half the voltage (thanks to the 50% duty cycle), so in this case an average amperage of about 7.5A. Instead the actual circuit and my spice simulation show a current of only ~60 mA, and bizarre current behavior at the source of the FET. The FET is an IXFB210N30P3, and the signal generator is in reality a PWM controller and MOSFET driver, separated by an optocoupler.
The current through the resistor and inductor, according to a spice model, look like this.
but incomprehensibly, the current at the source looks like this
with enormous current spikes as the MOSFET switches, but no current when the MOSFET should be on (where green is the gate voltage and red is the source current, see clearer image in link).
I am trying to understand, first of all, why there is so little current in the circuit (a hundredth of what I'd expect), and also why the ground current doesn't seem consistent with the current in the rest of the circuit. This is what the drain voltage looks like, with large voltage spikes due to the inductance of the circuit. I'd discount this as a simulation error if it weren't consistent with what I'm seeing in my scope. I'm happy to attach scope readings or the model itself if they would be helpful (not sure what the SE policy on file uploads is).