I'd like to add a trace for the magnetic field for a coil to my waveform plotting, and not sure how to do that.
I have created a parameterized "step" simulation which steps over the inductance of a coil. I calculate a parameter for the number of turns for the coil, which I call N.
I'd like to plot coil current * N, along with other circuit varibles.
I thought maybe a user defined function could be used, but I don't know how to reference my variable N to pass it to the function in the "Add Trace" dialog box.
My paramter definitions for the simulation are:
.step param Lcoil list 1m 2m 4m 6m 10m 16m
.param Rcoil = 9.8 * sqrt(Lcoil * 1000)
.param Cres = 1 / (4 * pi * pi * Lcoil * 14.5k * 14.5k)
.param C2 = 1.1 * Cres
.param C1 = 10 * C2
.param N = Rcoil * 100.0 / 24.0
.meas Rcoil_ param Rcoil
.meas Cres_ param Cres
.meas C1_ param C1
.meas C2_ param C2
.meas N_ param N
Can anyone suggest how to do this?
Regards,
-SAS