Electronic – Ltspice Transformer Simulation

ltspicetransformer

enter image description here

I am trying to simulate a transformer with a turn ratio of 1:1. The voltage of the primary and secondary are equal but I am getting a different current in the winding (why?). Also I see some DC offset in the primary current (why?). Please correct me if I am simulating design wrong.
Thanks

Best Answer

I am getting different current in winding(why?)

The primary current contains the load current AND the magnetization current. The secondary current is only the load current.

Magnetization current is due to the voltage supply being attached to an inductor (with secondary open circuit).

You'll need to be clearer about what DC offset you are seeing but i suspect it doesn't really exist after the first few cycles of AC have passed.