An open API service indexing awesome lists of open source software.

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

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.