NGSPICE simulate coupled inductors

Asked by buleks

Hello,

I want to simulate coupled inductors in kicad with ngspice.
I do this in following way:
Create two inductors for example L1 and L2.
To create coupling between them additional line in net list is needed, for example k1 L1 L2 0.98.
From schematic i cant find way to do this because when i place text with:"k1 L1 L2 0.98" kicad not add this to netlist.
Eeschema exports to netlist only text which begin with character '.' which means directive.
I found workaround to do this using two line text, when first is with directive. Something like this
.title
k1 L1 L2 0.98

Is there any other possibility to do this?

Question information

Language:
English Edit question
Status:
Answered
For:
KiCad Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Wayne Stambaugh (stambaughw) said :
#1

It appears that you have found a flaw in our SPICE generation code and a subsequent work around. Since the SPICE mutual inductance circuit element has no symbol, the Eeschema spice export will have to be changed to support this unless there is something I am missing.

Can you help with this problem?

Provide an answer of your own, or ask buleks for more information if necessary.

To post a message you must log in.