Replies: 3 comments 3 replies
-
I tried this both locally and on Google Colab and it worked fine (Google Colab had a small error as it is installing v23.5 but running the example from develop branch, but running the next cells worked fine). Please try again and check that you haven't modified the notebook inadvertently. Transferring this to a discussion, we can continue the conversation there. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Ah yes I did do that when doing the code, sorry forgot to mention. the error I reported still comes up.
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Saransh Chopra ***@***.***>
Sent: Monday, August 7, 2023 6:35:48 PM
To: pybamm-team/PyBaMM ***@***.***>
Cc: rb902 ***@***.***>; Author ***@***.***>
Subject: Re: [pybamm-team/PyBaMM] CSV file from tutorial 4 not working [Bug]: (Discussion #3246)
I faced an error in the develop branch while updating the parameter values. Should they instead be updated like this? -
parameter_values.update({"Current function [A]": 10})
parameter_values.update({"Open-circuit voltage at 100% SOC [V]": 3.4}, check_already_exists=False)
parameter_values.update({"Open-circuit voltage at 0% SOC [V]": 3.0}, check_already_exists=False)
—
Reply to this email directly, view it on GitHub<#3246 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWOEUOA4YQEMHGHQGMBI6QDXUERPJANCNFSM6AAAAAA3HJ3CE4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm sure i was running them in the right order but I will have a look and get back to you tomorrow - I was just copying and pasting them into jupyter notebook but didn't have any issues eith any of the other tutorials
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Saransh Chopra ***@***.***>
Sent: Monday, August 7, 2023 7:29:14 PM
To: pybamm-team/PyBaMM ***@***.***>
Cc: rb902 ***@***.***>; Author ***@***.***>
Subject: Re: [pybamm-team/PyBaMM] CSV file from tutorial 4 not working [Bug]: (Discussion #3246)
Which notebooks are you using, the develop one or the main one? For me, both of them are working fine. Make sure you are running the cells in the same order, or else jupyter will change the variable values.
—
Reply to this email directly, view it on GitHub<#3246 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWOEUOFWKTNYHKG2YDPIJZDXUEXXVANCNFSM6AAAAAA3HJ3CE4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PyBaMM Version
23.5
Python Version
3.11 (64-bit)
Describe the bug
In tutorial 4, a csv file ("pybamm/input/drive_cycles/US06.csv") is pulled. Then the next step is the following code:
model = pybamm.lithium_ion.SPMe()
sim = pybamm.Simulation(model, parameter_values=parameter_values)
sim.solve()
sim.plot(["Current [A]", "Voltage [V]"])
It's supposed to return these graphs, according to the tutorial:
![image](https://private-user-images.githubusercontent.com/94128696/258783617-2dddcff0-f959-4c76-ab8a-a11330b330fd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MzI1NDEsIm5iZiI6MTczODgzMjI0MSwicGF0aCI6Ii85NDEyODY5Ni8yNTg3ODM2MTctMmRkZGNmZjAtZjk1OS00Yzc2LWFiOGEtYTExMzMwYjMzMGZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA4NTcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTliOTNjMjgxZGU1YzMxMmM4MzczOGQzZGFmMDIzNDk5M2IwZmQzZTcyOGI1MWI1YjA3NGU4NWNkZDNiMjhiNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2CJJNNCZjMNlrfV32KJQ08Kb_29nbTJfMKe7P9z7oVg)
but I get this error:
SolverError: 't_eval' must be provided if not using an experiment or simulating a drive cycle. 't_eval' can be provided as an array of times at which to return the solution, or as a list [t0, tf] where t0 is the initial time and tf is the final time. For a constant current (dis)charge the suggested 't_eval' is [0, 3700/C] where C is the C-rate. For example, run
for a 1C discharge.
the first time I tried it was also having issues with the voltage beingnegative at points. I plotted a quick graph of the voltage too:
![image](https://private-user-images.githubusercontent.com/94128696/258783904-9b18e134-42a3-4e91-be7f-12f7c1fda4db.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MzI1NDEsIm5iZiI6MTczODgzMjI0MSwicGF0aCI6Ii85NDEyODY5Ni8yNTg3ODM5MDQtOWIxOGUxMzQtNDJhMy00ZTkxLWJlN2YtMTJmN2MxZmRhNGRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA4NTcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2ZWE2YTUxZTBmMmFlODhhY2M4NmE1ZDZhMzhlZjU5NDkyNzczZTMzMDEzZjU4NTNlY2NmNmI2ZTQ1MzkwZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.fDYkPtuuR5OVy4u-QvxFPSD1N6KStEf7TbPmG63Anvc)
Could you advise what is going on? Thanks!
Steps to Reproduce
I was literally just following tutorial 4: https://docs.pybamm.org/en/latest/source/examples/notebooks/getting_started/tutorial-4-setting-parameter-values.html
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions