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
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.
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.
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.