I'm simulating 4 different circuits, they are all power supplies, with loads, filter capacitors, rectifiers made by four 1N4007s, and transformers fed from 120VAC: They all have the same problem, which is that the voltage signal at the input of the rectifier has a strange clipping. It took me a while to figure out where it was coming from, I tried several things until I removed the series resistances from the inductor models themselves and the clipping went away, I then added the resistances as resistors in series (R1 and R2) but the clipping came back. The green plot is the voltage measured across L2 alone (series resistance left blank), the pink clipped plot is measured across R2+L2, the inductor plus it's wire resistance:
It makes sense that there is voltage loss in the wire resistance, but shouldn't it look like a sine wave but slightly scaled down instead of just a hard clean clipping at the peaks?
When I disconnect the circuits from the secondaries and connect R2+L2 directly to just R3 to simulate an open transformer measurement, the pink plot is no longer clipped and matches the green plot perfectly, like this:
Graph for the 4th circuit, with current plots for D1 and C1, no clipping ¿?