Bascically I am using an 'S' electric switch instead of a MOSFET. I also use VPULSE to turn ON and OFF the switch. However I have a problem with the result as they are incorrect! I have attached the image of my circuit. Please help me find what is wrong with my circuit.
Thank you
You have made wrong connections. You need to connect vpulse between controlling node (one denoted by switch) , connect a DC source between GND & Switch node + (denoted by + sign), connect switch node - (denoted by - sign) to inductor. It should work.