6
\$\begingroup\$

Below two Bode plots are identical just that in the second one the option "unravel branch wrap" is unticked for the phase plot:

enter image description here

enter image description here

What does this option do to the phase plot?

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Note that +180° == -180°. \$\endgroup\$ Nov 26, 2018 at 15:39

1 Answer 1

10
\$\begingroup\$

It adds or subtracts multiples of \$2\pi\$ (360 degrees) to each point in the phase plot so that the phase is plotted continuously rather than having jumps in it.

We know that physically the phase is going to be continuous from frequency to frequency. However as the output of the analysis is a vector gain at each frequency, all angles are reduced to the base range of +/- 180 degrees, so the graph has no way of knowing at any one frequency how many times phase has wrapped around the circle.

\$\endgroup\$
4
  • \$\begingroup\$ Hello Neil, I am using the ltspice package in python so as to read the rawfiles. How can ask the 'ltspice' package to tick the 'unravel wrap branch' for me? \$\endgroup\$
    – Wallflower
    Oct 25, 2021 at 12:00
  • \$\begingroup\$ Solved! I found a "unwrap" function in the numpy package :D \$\endgroup\$
    – Wallflower
    Oct 25, 2021 at 12:14
  • 1
    \$\begingroup\$ @Wallflower That's a handy library for python! You can use numpy unwrap, but a 'manual' unwrap function is trivial to write - pseudocode (possibly wrong, but you get the general idea); outphase = inphase+offset; offset += 360 degrees if inphase-lastinphase > 180 degrees; offset -= 360 degrees if inphase-lastinphase < 180 degrees \$\endgroup\$
    – Neil_UK
    Oct 25, 2021 at 13:04
  • \$\begingroup\$ Understood, thank you ^_^ \$\endgroup\$
    – Wallflower
    Oct 25, 2021 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.