Help required for custom thyristor simulation model

Hello members,

I am stuck with a thyristor module simulation model and facing some errors while running the simulation.
I am trying to implement https://www.rd-ebusiness.com/media/pdf/MFC40.pdf this thyristor diode module in a circuit and simulate it.

My .lib file looks like this

.subckt MFC4014 A G K
X1 A G K Thyristor params:
+ Vdrm=1400
+ Itrms=63 
+ Itsm=900
+ Igt=100m 
+ Vgt=2.5 
+ IH=120m
+ IS=8m
.ends MFC4014


This is what my circuit looks like. I’m able to simulate the waveforms properly up to the transformer’s secondary, but when I’m adding the thyristor in the circuit and trying to run the simulation it shows this error -
Error: unknown subckt: xd5.x1 probe_int_probe_int_net-_d5-a__xd5_1_xd5_1 probe_int_probe_int_net-_d2-k__xd5_2_xd5_2 probe_int_probe_int_gnd1_xd5_3_xd5_3 xd5.thyristor xd5.vdrm=1400 xd5.itrms=63 xd5.itsm=900 xd5.igt=100m xd5.vgt=2.5 xd5.ih=120m is=8m

where am I doing it wrong?

Best regards
Subhadeep

I am no good at this spice stuff, but my guess is that your circuit is searching for a subcircuit with the name “xd5.x1” while the name of the subcircuit itself is “MFC4014”.

And why a subcircuit?
Best I know a subcircuit is an actual circuit with resistors, capacitors, transistors etc, while your subcircuit only has one part in it.

A siple search finds Thyristor_SCR_Sx01_E_Sx_N1_A_SPICE_Model_lib.htm
which has thyristors made out of BJT’s.

**********************************
**********************************
**
** Littelfuse, LP
** SCR SPICE Models
** Sx01E-SxN1
**
** T. Chenoski
** Irving Technical Center
**
** A 06/14/08
**
**********************************
**********************************
.SUBCKT S401E      1  2             3
*       TERMINALS: A  G             K
Qpnp    6          4  1             Pfor      OFF
Qnpn    4          6  5             Nfor      OFF
Rfor    6          4  5G
Rrev    1          4  5G
Rshort  6          5  50
Rlat    2          6  2.64
Ron     3          5  364.6m
Dfor    6          4  Zbrk
Drev    1          4  Zbrk
Dgate   6          5  Zgate
.MODEL  Zbrk       D  (IS=10F       IBV=1U    BV=400)
.MODEL  Zgate      D  (IS=10F       IBV=100U  BV=10      VJ=0.3)
.MODEL  Pfor       PNP(IS=10P       BF=1.0    CJE=5p     CJC=2p     TF=0.3U)
.MODEL  Nfor       NPN(IS=10P       ISE=1E-9  BF=100.0   RC=13.6M   CJE=30p     CJC=2p      TF=0.3U)
.ENDS

.SUBCKT S4N1       1  2             3
*       TERMINALS: A  G             K
Qpnp    6          4  1             Pfor      OFF
Qnpn    4          6  5             Nfor      OFF
Rfor    6          4  5G
Rrev    1          4  5G
Rshort  6          5  50
Rlat    2          6  2.64
Ron     3          5  364.6m
Dfor    6          4  Zbrk
Drev    1          4  Zbrk
Dgate   6          5  Zgate
.MODEL  Zbrk       D  (IS=10F       IBV=1U    BV=400)
.MODEL  Zgate      D  (IS=10F       IBV=100U  BV=10      VJ=0.3)
.MODEL  Pfor       PNP(IS=10P       BF=1.0    CJE=5p     CJC=2p     TF=0.3U)
.MODEL  Nfor       NPN(IS=10P       ISE=1E-9  BF=100.0   RC=13.6M   CJE=30p     CJC=2p      TF=0.3U)
.ENDS

.SUBCKT S601E      1  2             3
*       TERMINALS: A  G             K
Qpnp    6          4  1             Pfor      OFF
Qnpn    4          6  5             Nfor      OFF
Rfor    6          4  5G
Rrev    1          4  5G
Rshort  6          5  50
Rlat    2          6  2.64
Ron     3          5  364.6m
Dfor    6          4  Zbrk
Drev    1          4  Zbrk
Dgate   6          5  Zgate
.MODEL  Zbrk       D  (IS=10F       IBV=1U    BV=600)
.MODEL  Zgate      D  (IS=10F       IBV=100U  BV=10      VJ=0.3)
.MODEL  Pfor       PNP(IS=10P       BF=1.0    CJE=5p     CJC=2p     TF=0.3U)
.MODEL  Nfor       NPN(IS=10P       ISE=1E-9  BF=100.0   RC=13.6M   CJE=30p     CJC=2p      TF=0.3U)
.ENDS

.SUBCKT S6N1       1  2             3
*       TERMINALS: A  G             K
Qpnp    6          4  1             Pfor      OFF
Qnpn    4          6  5             Nfor      OFF
Rfor    6          4  5G
Rrev    1          4  5G
Rshort  6          5  50
Rlat    2          6  2.64
Ron     3          5  364.6m
Dfor    6          4  Zbrk
Drev    1          4  Zbrk
Dgate   6          5  Zgate
.MODEL  Zbrk       D  (IS=10F       IBV=1U    BV=600)
.MODEL  Zgate      D  (IS=10F       IBV=100U  BV=10      VJ=0.3)
.MODEL  Pfor       PNP(IS=10P       BF=1.0    CJE=5p     CJC=2p     TF=0.3U)
.MODEL  Nfor       NPN(IS=10P       ISE=1E-9  BF=100.0   RC=13.6M   CJE=30p     CJC=2p      TF=0.3U)
.ENDS

This is not a thyristor model. There are some parameters, but there are no equations which describe the current versus voltage behavior. There is a call to another subcircuit (X1 A G K Thyristor) which is not given.

Plase post the complete project here as a *.zip file, including all models used. I could then have a look.

Hi,
Sorry for the late reply.
The zipped project is attached.
SCR triggering.zip (18.3 KB)

Thanks

Several issues:

There is no adequate spice model for the thyristor Q3.

In the transformer model there are resistors parallel to the windings, instead of serial.

There is no current flow possible through the primary transformer windings.

Each part of the circuit (for spice simulator reasons) needs a dc path to GND, so also yor left side part.

A capacitor cannot be open on one end like C3.

Thank you for marking out the errors. I’ll look into it and update you on it for review.
The open end of the C3 is going to a trigger transformer, which is not modeled yet. So, I want to see what pulses I’m getting on the TRIGGER_PRI net.
I’m still not clear on the thyristor thing.

ngspice (like all other spices) requires a model and associated model parameters to simulate a device. For diodes or bipolar or MOS devices there are intrinsic models integrated into ngspice. These will require model parameteres given by a .model line (as you have provided). Sometime however one will not use the intrinsic models, but attach to ngspice vendor provided subcircuit models for the specific vendor devices.

Unfortunately there are no intrinsic models for a SCR integrated into ngspice.

So simulating a thyristor will require a subcircuit model, like the ones paulvdc has shown above.

You have provided a .model line for an unknown model, but no model itself. Just having model parameters, but no model, is not sufficient.

And please have a look at the BT169B data sheet. The maximum voltage stated there is 200V. If WeEn does not provide a spice model on their web pages, you may ask them if they can supply such a model to you.

Thanks, I’ll get back on this

This topic was automatically closed after 90 days. New replies are no longer allowed.