impedance.py icon indicating copy to clipboard operation
impedance.py copied to clipboard

Not getting the expected result

Open BertdeBok opened this issue 3 years ago • 2 comments

image Fitting

What I am getting is:

Name: ZL 0934EP 0024.z Circuit string: R0-p(R1,CPE) Fit: True

Initial guesses: R0 = 1.00e+02 [Ohm] R1 = 1.00e+06 [Ohm] CPE_0 = 1.00e-06 [Ohm^-1 sec^a] CPE_1 = 9.00e-01 []

Fit parameters: R0 = 6.40e+05 (+/- 3.77e-11) [Ohm] R1 = 5.67e+08 (+/- 4.11e-12) [Ohm]

CPE_0 = 1.17e-08 (+/- 2.08e-10) [Ohm^-1 sec^a] CPE_1 = 4.99e-01 (+/- 4.31e-03) []

ZL 0934EP 0024.txt

BertdeBok avatar Jan 09 '22 13:01 BertdeBok

It's been a little while since I've used Zview but it looks like only a selected subset of the data is being fit, whereas with impedance.py the whole data set is being fit.

Two more things: 1) The negative value of Re is suspicious... 2) Can you verify the mathematical meanings of Qc-T and Qc-P? I think they can be found in the manual under the Help tab, but I no longer have access to that software.

On Sun, Jan 9, 2022, 5:41 AM BertdeBok @.***> wrote:

[image: image] https://user-images.githubusercontent.com/36850238/148684496-aad9fc5e-6720-4925-b715-c0c873cf9a1e.png [image: Fitting] https://user-images.githubusercontent.com/36850238/148684677-8bdbfdd2-4bdd-44a2-832d-b66cade3cadb.jpg

What I am getting is:

Name: ZL 0934EP 0024.z Circuit string: R0-p(R1,CPE) Fit: True

Initial guesses: R0 = 1.00e+02 [Ohm] R1 = 1.00e+06 [Ohm] CPE_0 = 1.00e-06 [Ohm^-1 sec^a] CPE_1 = 9.00e-01 []

Fit parameters: R0 = 6.40e+05 (+/- 3.77e-11) [Ohm] R1 = 5.67e+08 (+/- 4.11e-12) [Ohm]

CPE_0 = 1.17e-08 (+/- 2.08e-10) [Ohm^-1 sec^a] CPE_1 = 4.99e-01 (+/- 4.31e-03) []

ZL 0934EP 0024.txt https://github.com/ECSHackWeek/impedance.py/files/7835153/ZL.0934EP.0024.txt

— Reply to this email directly, view it on GitHub https://github.com/ECSHackWeek/impedance.py/issues/190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIFL6JRVAMUPM5YI2RSPXLUVGGAZANCNFSM5LR3YLDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

BGerwe avatar Jan 10 '22 23:01 BGerwe

Dear Brian,

Thank you for the quick response.

If I fit over the complete range a have a poor fit but still with a lower Chi_squared

CPE = Constant Phase Element #1 ELEM-CPE

   Z = 1 / [T(I*w)^P]



   Parameters: CPE-T, CPE-P

The CPE is defined by two values, CPE-T and CPE-P. If CPE-P equals 1 than the equation is identical to that of a capacitor. If CPE-P equals 0.5, a 45 degree line is produced on the Complex-Plane graph. When a CPE is placed in parallel to a resistor, a Cole-Element (depressed semi-circle) is produced.

Often a CPE is used in a model in place of a capacitor to compensate for non-homogeneity in the system. For example, a rough or porous surface can cause a double-layer capacitance to appear as a constant phase element with a CPE-P value between 0.9 and 1. In fact, a capacitor is actually a constant phase element - one with a constant phase angle of 90 degrees.

A CPE with CPE-P value of 0.5 can be used to produce an Infinite Length Warburg element. A Warburg element occurs when charge carrier diffuses through a material. Lower frequencies correspond to diffusion deeper into the material. If the material is thin, low frequencies will penetrate the entire thickness, creating a Finite Length Warburg element. If the material is thick enough so that the lowest frequencies applied do not fully penetrate the layer, it must be interpreted as infinite. The CPE produces the same spectrum as the ‘high frequency’ portion of a Finite Length Warburg when CPE-T = sqrt(W-T) / W-R.

QPE = Constant Phase Element #2 ELEM-CPE

   Z = 1 / [I*wQ)^n]



   Parameters: CPE-Q, CPE-n

This Constant Phase element has the equation format used by Dr. Bernard Boukamp in his EQUIVCRT program. It will fit exactly the same spectrums as the CPE element, but the Q parameter values will be different from the T parameter values in Constant Phase Element #1.

The Q parameter is inside the exponent, while the T value is outside the expoenent. The n and P parameters are identical. The Q and T parameters may translated using the equation T = (Q)^n

Just for fun I did a fit with both types of Constant Phase Element, not much difference to be seen.

I agree that a negative electrolyte fysically does not n=make any sence but my total fit is better that way and I do not care about the electrolyte, I am only interested in the Constant Phase Element.

The sqi-squared as reported by Z-view is much, much lower than with impedance.py and that worries me.

Kind regards,

Bert de Bok, Technical Manager Transocean Coatings,

Huygensstraat 3

2652 XK

Berkel en Rodenrijs, The Netherlands http://www.transocean-coatings.com www.transocean-coatings.com

Office Tel; +31-10-4134477 Skype; bertdebok

Disclaimer.

The information contained in this message is intended to be exclusively for the addressee. No part of this message may be made public, retransmitted, disseminated or for any other use by persons or entities (including the intended recipient) without prior written permission from Transocean.

Transocean cannot be held liable for the contents of this message, nor can any rights be derived from it.

From: Brian Gerwe @.> Sent: 11 January 2022 00:24 To: ECSHackWeek/impedance.py @.> Cc: BertdeBok @.>; Author @.> Subject: Re: [ECSHackWeek/impedance.py] Not getting the expected result (Issue #190)

It's been a little while since I've used Zview but it looks like only a selected subset of the data is being fit, whereas with impedance.py the whole data set is being fit.

Two more things: 1) The negative value of Re is suspicious... 2) Can you verify the mathematical meanings of Qc-T and Qc-P? I think they can be found in the manual under the Help tab, but I no longer have access to that software.

On Sun, Jan 9, 2022, 5:41 AM BertdeBok @.*** mailto:***@***.*** > wrote:

[image: image] https://user-images.githubusercontent.com/36850238/148684496-aad9fc5e-6720-4925-b715-c0c873cf9a1e.png [image: Fitting] https://user-images.githubusercontent.com/36850238/148684677-8bdbfdd2-4bdd-44a2-832d-b66cade3cadb.jpg

What I am getting is:

Name: ZL 0934EP 0024.z Circuit string: R0-p(R1,CPE) Fit: True

Initial guesses: R0 = 1.00e+02 [Ohm] R1 = 1.00e+06 [Ohm] CPE_0 = 1.00e-06 [Ohm^-1 sec^a] CPE_1 = 9.00e-01 []

Fit parameters: R0 = 6.40e+05 (+/- 3.77e-11) [Ohm] R1 = 5.67e+08 (+/- 4.11e-12) [Ohm]

CPE_0 = 1.17e-08 (+/- 2.08e-10) [Ohm^-1 sec^a] CPE_1 = 4.99e-01 (+/- 4.31e-03) []

ZL 0934EP 0024.txt https://github.com/ECSHackWeek/impedance.py/files/7835153/ZL.0934EP.0024.txt

— Reply to this email directly, view it on GitHub https://github.com/ECSHackWeek/impedance.py/issues/190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIFL6JRVAMUPM5YI2RSPXLUVGGAZANCNFSM5LR3YLDQ . You are receiving this because you are subscribed to this thread.Message ID: @.*** mailto:***@***.*** >

— Reply to this email directly, view it on GitHub https://github.com/ECSHackWeek/impedance.py/issues/190#issuecomment-1009450479 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZEUPT2XFHSIMVTS4MWFKDUVNTALANCNFSM5LR3YLDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIZEUPX64GB7AX6Z6GGSYJLUVNTALA5CNFSM5LR3YLD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHQVP33Y.gif Message ID: @.*** @.***> >

BertdeBok avatar Jan 11 '22 06:01 BertdeBok

Going to go ahead and close this one @BertdeBok, but if you have any other questions or issues please feel free to open reopen the issue or post in the discussion section

mdmurbach avatar Feb 02 '23 04:02 mdmurbach