Seeking Assistance with Electrode Solver #3966
-
Hey, I'm currently working on a piece of code where I need to update the volume fraction to reflect changes in the active material volume fractions and the amount of cyclable lithium. This is crucial for capturing the primary effects of degradation in later cycles. To accomplish this, I'm trying to use an ElectrodeSOHSolver to calculate the stoichiometries The challenge I'm facing is the need to start each simulation from the endpoint of the previous one, continuing from that specific state to recalibrate the stoichiometries. I attempted to utilize the statement esoh_solver.set_initial_conditions_from(esoh_sol) to preserve the last solution and restart from that juncture, but it hasn’t worked. Here's a snippet of my code for context:
Could you provide any advice or insights on how to resolve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't need to do that. Just do Q_n = solution["Negative electrode capacity [A.h]"].data[-1]
Q_p = solution["Positive electrode capacity [A.h]"].data[-1]
Q_Li = solution["Total lithium capacity in particles [A.h]"].data[-1]
inputs = {"Q_n": Q_n, "Q_p": Q_p, "Q_Li": Q_Li}
|
Beta Was this translation helpful? Give feedback.
You don't need to do that. Just do
Q_Li
captures the change in stoichiometries