I am trying to make a model of a diode bridge rectifier in LTspice (it has to be connected to a transformer as it's part of a larger project).
I have tested the transformer and the rectifier independently and they seem to work. However, when I put them together, they don't work as expected (images attached).
The problem I'm facing seems to be the placement of the ground: when I place it near the transformer, so its AC ground, I am getting some waveforms, though not very clean. A little digging around suggested that I should have placed the ground at the DC side, but this does not give me any output at all. Any help would be appreciated.
When Ground is placed near the transformer:
The green waveform in the first image is the output of the transformer; the blue and red waveforms are at the top and bottom of the resistor respectively.
When Ground is placed near the resistor:
Scale is only upto 33 microseconds, there is a statement at the bottom which says that the analysis is 0% done.