I've made a LTspice model of a diode bridge rectifier, but when I simulate my circuit the output voltages are oscillating.
Here is my schematic, along with the simulation result of the voltage at node 3 (marked with an arrow.)
When I zoom in on these weird parts, I can see that it is definitely some kind of oscillation:
I've already tried changing the position of the ground, changing the solver to an alternate solver, and introducing ESR to the capacitor.
The problem seems to be correlated with the capacitor, since when I set a lower capacitance, the output gets better. The output also gets better when I set the capacitor ESR to a few ohms, but that is not very realistic.
I also tried with different diode models, and the problem persists.
Does anyone have an idea what could be the problem?