There are several issues:
- You have no ground on the controlling side of the switch. I'm surprised the simulation starts.
- You are using a threshold voltage of
1vfor the switch, but a driving voltage of
1Vamplitude. Even if you have negative hysteresis (bravo!), the switch will not conduct the way you need.
- You are using zero rise/fall times, which does not mean instant times, that would be a physical impossibility. When they're zero, LTspice uses
Also, a minor warning: the default inductance, unless it has a coupling associated, has a series resistance of
1mOhm, which may, or may not be wanted. That's up to you to know.
Here's a reworked version of your circuit, I made several assumptions as I have no idea what is your purpose: