|
From: <lo...@mu...> - 2007-05-23 20:51:54
|
Hello all,
I need to deal with some large libs from Pspice that looks like this:
.SUBCKT Scr anode gate cathode PARAMS:
+ Vdrm=400v Vrrm=400v Idrm=10u
+ Ih=6ma dVdt=5e7
+ Igt=5ma Vgt=0.7v
+ Vtm=1.7v Itm=24
+ Ton=1u Toff=15u
[...]
* Main conduction path
Scr anode anode0 control 0 Vswitch ; controlled switch
Dak1 anode0 anode2 Dakfwd OFF ; SCR is initially off
Dka cathode anode0 Dkarev OFF
VIak anode2 cathode ; current sensor
* dVdt Turn-on
Emon dvdt0 0 TABLE {v(anode,cathode)} (0 0) (2000 2000)
CdVdt dvdt0 dvdt1 100pfd ; displacement current
Rdlay dvdt1 dvdt2 1k
VdVdt dvdt2 cathode DC 0.0
EdVdt condvdt 0 TABLE {i(vdVdt)-100p*dVdt} (0 0 ) (.1m 10)
RdVdt condvdt 0 1meg
and continues.
And other subcircuits that call to these macromodel in this form:
subckt C106M anode gate cathode
* Min and Max parameters
X1 anode gate cathode Scr params:
+ Vdrm=600v Vrrm=600v Ih=5ma Vtm=2.2v Itm=1
+ dVdt=1e7 Igt=5ua Vgt=1v Ton=1.2u Toff=40u
+ Idrm=10u
.ends C106M
There are any form (easy as possible) to convert it in a way that
Ngspice can use it?
I looking for in mail list archives and web with no success. Well I
encounter spicepp.pl from Tclspice but don't work.
Thanks in advance.
Salud y Revolución.
Lobo.
--
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org
--
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org
|