-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very confused about fitting #276
Comments
Where do you obtain this data (filei.csv') from?
Please answer these, I may be able to help, after knowing this. I think maybe the possible problems can be, Let me know if there is any progress or further problems. I will be happy to help. |
You are more interested in the semicircle part (that forms because of the p(R2,C1) part of the total circuit), I don't have any idea at the moment about how you can just get R2 and C1 values by fitting just the semicircle region of the experimental EIS data, because when you will try to take only the semicircle like-looking region for fitting, you may expect only R2 and C1 be the only two parameters the reason for the semicircle, but as in the overall circuit there are other elements as well, what you will get as the value of R2 and C1, will not be the true value of R2 and C1 in the actual circuit, but rather it will have influences from the other elements like W1, L1, R1 as well. But if you want to fit a circuit to the complete experimental data that is there in your paper, I can give some suggestions.
also you can send me the EIS data of the paper in a csv file containing (freq, Zreal, Zimag) |
So I am trying to fit the nyquist plot to the model R0-p(L1,R2)-p(R1,C1). I need these values to confirm similar model used in another plot. Even if i trim the data for 1st quadrant the result is the same.
frequencies, Z = preprocessing.readCSV('filei.csv')
frequencies = frequencies[1:35]
Z = Z[1:35]
circuit = 'R0-p(L1,R2)-p(R1,C1)'
initial_guess = [12e-3, 2e-7, 1e-3, 1.23e-3, 0.2e-1]
circuit = CustomCircuit(initial_guess=initial_guess, circuit=circuit)
circuit.fit(frequencies, Z)
Z_fit = circuit.predict(frequencies)
The text was updated successfully, but these errors were encountered: