Rectifier bridge issue

Hello, good morning.

Im new in electrics and I’m having some issues to simulate a rectifier bridge in qspice. The simulator emmits some issues like that:

issues:

Warning: Singular matrix. Check node N03
Warning: Singular matrix. Check node N03
Warning: Singular matrix. Check node N03
Warning: Singular matrix. Check node N03
Warning: Singular matrix. Check node N03
Fatal error: Timestep too small(1.25e-19) at t=0

What Im doing wrong?

Try to add gnd at the output.

1 Like

Hello. Thank you for your feedback. Was an issue in the circuit I made, or a qspice issue?

I think that the issue is from your circuit side, please refer to my simulation that I tried.
forum_rectifier full bridge.qsch (5.4 KB)

1 Like

Thank you. I really appreciate.

@jgardona, Without your schematic, I am not exactly sure why you are getting a singular matrix and timestep error. However, the solution is NOT to add an extra GND. If you add a GND at R1, this will create a short circuit path for one of the diodes, resulting in half-wave rectification.

Your circuit is a full-wave rectifier; you can either have the GND at the source OR at the output, but not both. Here is a replication of your circuit from @macsky’s work, showing how to obtain a full-wave rectified output with these two GND locations.

Rectifier Full Bridge.qsch (10.4 KB)

2 Likes

Thank you. I really think it was strange, because in other simulators it will work. But qspice has better performance, and I was trying to solve this problem. Very nice examples you gave.

If you cannot identify what went wrong in your original schematic and still need help with it, you can consider uploading the schematic for review. If that is no longer important, this case can also be closed here.

1 Like

Yep, I think its better to upload. Here, one of these examples already has matrix issues.

Ops, new users cant upload … rs

This way it works

I think we cant have two different lables in same node.
Also, plot V(in, out) doesn’t works as expected for me. I think its a bug in latest update.

It seems the simulation encounter convergence issue in V(N03) during first few timesteps. You are calling a diode “D” directly without a physical or behavioral model. During a DC sweep test, the default “D” exhibits an extremely small reverse current. The discontinuity of the diode or extremely small reverse current seems to make it very difficult to solve this circuit.
There are several options you can try to get this simulation to run (any one of these options can work in my verification)

  • Add .option gmin=1e-10 , this add minimum conductance in parallel to diode and help solving in reverse direction
  • Add .option fastmath=0 , force to use Qspice80.exe for more precision math
  • Add .model D D Ron=1m Roff=100Meg Vfwd=0 , to give a model for D

But, the rule of thumb is to prevent discontinuity in the I-V curve. I don’t recommend just call a D as diode for simulation.

1 Like

This solves de circuit, but the waveform seems wrong in out node

You have to plot the differential voltage of R1! V(out) is the absolute voltage with respect to GND. Refer to my example.

1 Like

Yep, seems that is the correct answer. Thank all you people.