https://github.com/dipto9999/ece_analysis_tools
Analysis Tools for Electrical Engineering
https://github.com/dipto9999/ece_analysis_tools
control hp-prime matplotlib phasor python root-locus
Last synced: 11 months ago
JSON representation
Analysis Tools for Electrical Engineering
- Host: GitHub
- URL: https://github.com/dipto9999/ece_analysis_tools
- Owner: Dipto9999
- Created: 2024-09-17T19:01:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T05:56:42.000Z (over 1 year ago)
- Last Synced: 2025-07-13T03:48:12.349Z (12 months ago)
- Topics: control, hp-prime, matplotlib, phasor, python, root-locus
- Language: Python
- Homepage:
- Size: 975 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Analysis Tools : Electrical and Computer Engineering
## Contents
* [Overview](#Overview)
* [HP Prime](#HP-Prime)
* [Poles](#Poles)
* [Root Locus](#Root-Locus)
* [Phasors](#Phasors)
## Overview
I wrote these **Python** scripts and **HP PPL** programs as complementary tools in courses I took as part of The University of British Columbia Electrical and Computer Engineering undergraduate program.
These made my life easier in analyzing data and producing reports. Please feel free to contribute to this repo and use these tools as part of your degree.
### HP Prime
These **Computer Algebra Systems (CAS)** programs are used in the **HP-Prime Graphing Calculator** to make it easier to perform circuit analysis with **Modified Nodal Analysis (MNA)**.
You can import the code in [`HP_Prime`](HP_Prime) to your virtual / physical device with the **HP Connectivity Kit**
### Poles
The [`poles.py`](Scripts/poles.py) script can be used to generate a phasor plot of a filter with `matplotlib`. The `plot_poles(poles, real_lim, imag_lim)` function can be modified with the chart limits.
### Root Locus
The [`root_locus.py`](Scripts/root_locus.py) script can be used to generate root locus plots with `matplotlib`. The `root_locus(R, C, Am)` function can be modified with the resistance, capacitance, midband gain values.
Note that this is for the predetermined transfer function below. This is implemented as part of the script, but a few changes to the underlying formulas and calculations can be used to generate plots for like transfer functions.
$$ H(s) = \frac{1}{(R \times C)^{2} \times s^{2} + \frac{(3 - A_m)}{(R \times C)} \times s + \frac{1}{(R \times C)^{2}}} $$
### Phasors
I have added a [`phasors.py`](Scripts/phasors.py) script for helping with three-phase system calculations and visualizing current-voltage relationships.