I am running LTspice in batch mode on my Windows. However, I am now migrating to Linux, where the alternative to LTspice is Ngspice. The problem I am facing is the following:
In my LTspice netlist I have different behavioral voltages that are defined with lookup tables as follows:
V1 1 0 AC 1
XR1 1 0 Rskin
.subckt Rskin 1 2
R1 1 11 1n ; <= to avoid parallel voltage sources
V1 11 10 0
B2 10 2 V=I(V1) MAG FREQ=
.inc Rskin.inc
.ends
.ac dec 6 1 100k
Example taken from here. Where Rskin.inc file contains a table of (freq,mag,phase) of the frequency behavior of the resistance.
So, a part from the control section that ought be added in the NGspice netlist
.control
set filetype=binary
set ngbehavior = lta
run
write path_2my_netlist all
.endc
.end
where I specify that the ngspice behavior should be that of LTspice, what else is there to do to have this netlist sample run on Ngspice. I still get the error :
Undefined number [mag]
PS: Wine is not an option.