LTSpice "stuck" on simulation

Status
Not open for further replies.

ACharnley

Member
I have a fairly simple AC rectifier feeding a triac operating as a voltage shunt.

The simulation hangs on 0.4%, is there a way to change the "resolution" of a simulation?
 

Attachments

  • Screenshot_2018-04-21_10-08-10.png
    42.5 KB · Views: 483
  • ac_triac_shunt.asc
    3.3 KB · Views: 299
  • diodes-inc.lib.zip
    728 bytes · Views: 301
There may be a problem with the MOSFET models you're using. The sim runs ok using models from the standard MOSFET library.
 
There is a lot of "black magic" that goes into creating models that do not have discontinuities in their I/V characteristics. I have seen Spice get stuck with a third-party model of a 1n4007 where just replacing that with the standard Diode model (the one built-into the STD lib) will make the simulation run infinitely faster.
 
There may be a problem with the MOSFET models you're using. The sim runs ok using models from the standard MOSFET library.

I have seen this many times before where LTspice struggles with MOSFET models. If the simulation hangs as soon as the MOSFET tries to turn on, then this is normally indicative that the FET model is either too complex (and LTspice is struggling with it) or the model is wrong.

LTspice uses a simplified model for all of its MOSFETs. It models ON resistance and gate charge accurately, but pretty much ignores many of the other parameters in an effort to get the simulation to work fast.

As Alec suggests, I strongly recommend you use the LTspice models. Pick one with a similar VDS, QG and RDSON to the one you intend to use and run the simulation. It should run a lot faster. I would avoid trying to edit the model yourself - this is plagued with headaches.

Same applies to many other components in LTspice (diodes, bipolars), but MOSFETs are the worst offenders for causing your simulation to hang

Simon
 
I have a fairly simple AC rectifier feeding a triac operating as a voltage shunt.

The simulation hangs on 0.4%, is there a way to change the "resolution" of a simulation?

Hi

See below.

I think too much current into gate of triac. I believe max is 5ma.
I don't know what R3 is for so I removed it.
Also changed R9 to 10k.

I used a Z0103M Triac model from STMicro. It requires a symbol with a different pin order.

I'm attaching a zip file with circuit and symbol.
 

Attachments

  • ac_triac_shunt_fixed.zip
    7.3 KB · Views: 300
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…