PySpice-org / PySpice

Simulate electronic circuit using Python and the Ngspice / Xyce simulators
https://pyspice.fabrice-salvaire.fr
GNU General Public License v3.0
641 stars 169 forks source link

How to write spice .model statement in python style #330

Closed Li-Huakang closed 1 year ago

Li-Huakang commented 1 year ago

Like

D1 1 2 D1model
.model D1model D(Ron=0.025 Roff=1Meg Vfwd=0.5)

how to translate into the pyspice style, like

circuit.D(1, 1, 2, something else***)
benedictjones commented 1 year ago

Check this video out: https://youtu.be/znaERIx1tL8