Hi guys.
I am trying to run an LTSPICE simulation of an MRAM compact model. Basically, I have 4 sub circuits for each operation I am running.
A .param definition is giving me problem:
b:mtj1:llg§e_thste mtj1:llg:thste 0<<::0: v = -1.#IND
Folloing is the piece of code that generates this error. Bear in mind that this is inside a subcircuit definition:
.param NshX='1/pi*((ly^2-lx^2)/(2*ly*lx)*log((sqrt(lz^2+ly^2+lx^2)-lz)/(sqrt(lz^2+ly^2+lx^2)+lz))+(lz^2-lx^2)/(2*lz*lx)*log((sqrt(lz^2+ly^2+lx^2)-ly)/(sqrt(lz^2+ly^2+lx^2)+ly))+ly/(2*lx)*log((sqrt(lz^2+ly^2)+lz)/(sqrt(lz^2+ly^2)-lz))+lz/(2*lx)*log((sqrt(lz^2+ly^2)+ly)/(sqrt(lz^2+ly^2)-ly))+lx/(2*lz)*log((sqrt(ly^2+lx^2)-ly)/(sqrt(ly^2+lx^2)+ly))+lx/(2*ly)*log((sqrt(lz^2+lx^2)-lz)/(sqrt(lz^2+lx^2)+lz))+2*atan((lz*ly)/(lx*sqrt(lz^2+ly^2+lx^2)))+(lz^3+ly^3-2*lx^3)/(3*lz*ly*lx)+(lz^2+ly^2-2*lx^2)/(3*lz*ly*lx)*sqrt(lz^2+ly^2+lx^2)+lx/(lz*ly)*( sqrt(lz^2+lx^2)+sqrt(ly^2+lx^2))-((ly^2+lz^2)^(3/2)+(ly^2+lx^2)^(3/2)+(lz^2+lx^2)^(3/2))/(3*lz*ly*lx))'
.param Nx='4*pi*NshX'
.param iPMA='(2*pi*((tc/lz)-(Nz/(4*pi)))*Msi*Msi*lx*ly*lz*1e6)/(kb*Tmp0)' (this is where the error points to)
The lx, ly, lz parameters are provided in the definition of the subcircuit:
.subckt LLG Mx My Mz Is Ias Tmp thi lx='65n' ly='130n' lz='1.8n' Ms0='1075' P0='0.715' alpha='0.01' MA='0.0' ini='0' tc='1.5n' Tmp0='300'
Could you please explain to me what the -1.#IND part means and help mw debug it?
Best,
Nikolaos Barmpatsalos.