Skip to content

hailegroup/ECIF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Impedance-Fitting

This program fits impedance data with equivalent circuit models using a least-sqares fitting method through python. This program will provide fitted variables along with a fitted pattern corresponding with those variables. Additionaly, an error of these fitted variables is provided via a bootstrapping error calculation method.

Steps to run the program

  1. Install Python 3.x or greater on your computer.
  2. Install all the necessary libraries
  3. Download all files here into a file location on your local computer.
  4. Format your data into a three column format csv file with frequency in the first column, the real component of impedance in the second column, and the imaginary component of impedance in the third column.
  5. Place this file in /main/General_Circuit.
  6. In /main/General_Circuit/config.py type the model you want to fit to inside the quotes. Available circuits are: R, RRC, RRCRC, RRCRCRC, RRQ, RRQRQ, and RRQRQRQ.
  7. Type in an initial guess for each parameter to be fit inside the brackets.
  8. Open a python console.
  9. Change your working directory to /main/General_Circuit.
  10. Run Test_Fitting.py.

Running the Example

If you ran the script with the default values using the test data you should have the following figures in the fitting result report in your working directory:

Image of Z vs. F Image of Z vs. theta Image of Nyquist Plot Image of Correlation matrix

Releases

No releases published

Packages

No packages published

Languages