the [notice] print result is different with simulation result #4358
Unanswered
benshang1997
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone
I am trying to run a degradation simulation and using the code "pybamm.set_logging_level("NOTICE")" to monitor the simulation.
I set the termination of expriement as"4.9 Ah capacity" in the model, however I found that the experiment is stopped since capacity is reached 4.9Ah, but the notice result shows that the capacity of the last cycle is 5.03,not 4.9.
so I wonder if it is correct? and by the way, I set the total cycle number is 100000, and every cycle include 5 steps, but the [notice] message seems to consider each step as a cycle, so it print cycle as 500000 and step is 1. it is inconvenient to read,how should i do?
here is my code:
pybamm.set_logging_level("NOTICE")
model = pybamm.lithium_ion.DFN(
{
"thermal": "lumped",
"SEI": "solvent-diffusion limited",
"SEI porosity change": "true",
"lithium plating": "partially reversible",
"lithium plating porosity change": "false", # alias for "SEI porosity change"
"particle mechanics": ("swelling and cracking", "swelling only"),
"SEI on cracks": "true",
"loss of active material": "stress-driven",
})
parameter_values = pybamm.ParameterValues("OKane2022")
parameter_values.update({
"Initial temperature [K]": 298.15, # 初始温度
"Ambient temperature [K]": 298.15, # 环境温度
"Total heat transfer coefficient [W.m-2.K-1]": 5,
"Upper voltage cut-off [V]": 4.5, },
check_already_exists=False, )
experiment = pybamm.Experiment(
[
"Discharge at 1C until 2.6 V",
"Rest for 1 hour",
"Charge at 1 C until 4.1 V",
"Hold at 4.1 V until 50 mA",
"Rest for 1 hour",
] * 100000, termination ="4.9 Ah capacity"
)
sim = pybamm.Simulation(model, parameter_values=parameter_values, experiment=experiment)
safe_solver = pybamm.IDAKLUSolver()
sol=sim.solve(solver=safe_solver, initial_soc=0.2)
thank you.
Beta Was this translation helpful? Give feedback.
All reactions