Qucs / qucsator

Circuit simulator of the Qucs project
http://qucs.sourceforge.net
GNU General Public License v2.0
23 stars 10 forks source link

N Mutual Inductors does not accept variables #16

Open in3otd opened 7 years ago

in3otd commented 7 years ago

Usually one can specify the value of a component parameter thru a variable, e.g. for an inductor L=myLvalue, where myLvalue is defined in an Equation component. This does not work for the N Mutual Inductors component (MUTX in the qucsator netlist) : the netlist parser says syntax error, unexpected ScaleOrUnit, expecting ']', for both the inductance values and the coupling coefficients.

I have the impression this just requires some (small ?) changes to parse_netlist.ypp but I know nothing about yacc/bison...

See the enclosed schematic for a failing example (rename .txt in .sch)