Simple "electrician's made" (joking) Python Bode Plotter, useful to fast check Magnitude and Phase of a transfer function.
Don't judge my code, i'm not @notfilippo (FR-ATM).
Tested on Python 3.8.10.
If you are running Windows or Linux simply move to the BodePlotter directory and lauch:
pip install -r requirements.txt
For MacOS you also need to launch:
brew install python-tk
Move to the BodePlotter directory and lauch:
python main.py
or if you are running Windows start BodePlotter.bat
Click on the "Change H(jw)" button and insert the function that you want to plot.
.
Insert Static Gain (left box), Numerator and Denominator (top right and bottom right boxes).
Rules:
- Imaginary number must be written in the form "aj" with "j" after the number and not multiplicated with asterisk "*" and with "a" integer.
You can always write "1j*(1/2)" if you want float number. - Variables are "s" (s=jw), "w" (w=2pif) and "f" and apart from "s" (s=Jw) they must be multiplicated with asterisk "*".
(e.g. "2s*(f**2)", "1j*2*f") - Allowed operations are sum "+", subtraction "-", multiplication "*", division "/" and power "**". Brackets "(", ")" are also allowed.