I want to plot a Bode diagram. LTSpice automatically plots the results as a function of frequency. I would like to multiply the frequency by 2*π, in order to obtain the angular frequency.
How can I modify the x-axis quantities?
I want to plot a Bode diagram. LTSpice automatically plots the results as a function of frequency. I would like to multiply the frequency by 2*π, in order to obtain the angular frequency.
How can I modify the x-axis quantities?
Maybe this is ugly, but it seems to provide the results you want:
The default ac sweep, which gives the result in Hz is commented at the bottom. Also note that the number of steps (100) appears in different places for the two commands.
.AC
simulations is fixed and cannot be changed. I think this has to do with avoiding the confusion of parametric plots with log axes, and whatnot, but a checkbox to select frequency or pulsation wouldn't have hurt. So @devnull's answer is one way to do it. It will be a tad slower, since it has to calculate the .OP
for every iteration. You could also divide the value of C (in this case) by \$2\pi\$, but if you have many states, or delays, you're out of luck.
\$\endgroup\$
Commented
Dec 7, 2021 at 17:50
It is also possible to add R
and C
to the .param f
calculation to always obtain the transfer values as a function of multiples of \$\omega_{\,\mathrm3dB}\$ for any RC combination.
To allow for an easy read-back of the actual \$f_{\,\mathrm3dB}\$ frequency a behavioural voltage source can be added to the schematic. For details on how to do this, please see this: Printing the results of calculated .params
.
Don't be fooled by the dimension! I.e. kV
should be understood as kHz
, and V
as Hz
more generally. But as far as LTspice is concerned you've created a behavioural VOLTAGE source, so its dimension will be V
.
If you're bothered about the .op
label displaying Volts
, you can add /1V
(i.e. divide by 1 Volt) to the end of your .op
expression to arrive at a dimensionless label.