You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define experiment as follows, where total_cells is 8000, 15500, or certain other values
full_wattage = [
419875.07810354204,
290671.67288570706,
178324.67752738303,
105603.195907928,
-12925.2048255579,
195046.73170923634,
419875.07810354204
]
cell_wattage = np.array(full_wattage)/total_cells
experiment = pybamm.Experiment(
[
"Discharge at {} W for 15.0 s".format(cell_wattage[0]),
"Discharge at {} W for 30.0 s".format(cell_wattage[1]),
"Discharge at {} W for 108.109091 s".format(cell_wattage[2]),
"Discharge at {} W for 1431.639227 s".format(cell_wattage[3]),
"Discharge at {} W for 108.10909100000003 s".format(cell_wattage[4]),
"Discharge at {} W for 30.0 s".format(cell_wattage[5]),
"Discharge at {} W for 45.45454500000005 s".format(cell_wattage[6])
]
)
Error appears SolverError: Could not solve for summary variables, run `sim.solve(calc_esoh=False)` to skip this step
Expected behaviour
Would've expected the simulation to run for this number of cells, it can run some values above and below without adding calc_esoh = False.
Additional context
Running on Collab and ran this pip install jax==0.2.11 after pip install pybamm to fix compatibility issue.
Error is resolved by setting calc_esoh = False
The text was updated successfully, but these errors were encountered:
$ python -m pip show pybamm
:Name: pybamm
Version: 21.11
Summary: Python Battery Mathematical Modelling.
Home-page: https://github.com/pybamm-team/PyBaMM
Author: None
Author-email: None
License: UNKNOWN
Location: /usr/local/lib/python3.7/dist-packages
Requires: pybtex, jupyter, casadi, imageio, pandas, anytree, scikit-fem, sympy, matplotlib, numpy, scipy, autograd
Required-by:
$ python --version
:Python 3.7.12
Describe the bug
Could not solve for summary variables when using certain values in the experiment steps.
To Reproduce
Steps to reproduce the behaviour:
{'1 + dlnf/dlnc': 1.0,
'Ambient temperature [K]': 298.15,
'Cation transference number': 0.2594,
'Current function [A]': 5.0,
'Electrode height [m]': 0.065,
'Electrode width [m]': 1.58,
'Electrolyte conductivity [S.m-1]': <function electrolyte_conductivity_Nyman2008 at 0x7fb443d06050>,
'Electrolyte diffusivity [m2.s-1]': <function electrolyte_diffusivity_Nyman2008 at 0x7fb443ce25f0>,
'Initial concentration in electrolyte [mol.m-3]': 1000.0,
'Initial concentration in negative electrode [mol.m-3]': 30170.0,
'Initial concentration in positive electrode [mol.m-3]': 16653.0,
'Initial temperature [K]': 298.15,
'Lower voltage cut-off [V]': 2.5,
'Maximum concentration in negative electrode [mol.m-3]': 33133.0,
'Maximum concentration in positive electrode [mol.m-3]': 63104.0,
'Negative electrode Bruggeman coefficient (electrode)': 1.5,
'Negative electrode Bruggeman coefficient (electrolyte)': 1.5,
'Negative electrode OCP entropic change [V.K-1]': 0.0,
'Negative electrode active material volume fraction': 0.75,
'Negative electrode conductivity [S.m-1]': 215.0,
'Negative electrode diffusivity [m2.s-1]': 3.3e-14,
'Negative electrode electrons in reaction': 1.0,
'Negative electrode exchange-current density [A.m-2]': <function graphite_LGM50_electrolyte_exchange_current_density_Chen2020 at 0x7fb443d060e0>,
'Negative electrode porosity': 0.25,
'Negative electrode thickness [m]': 8.52e-05,
'Negative particle radius [m]': 5.86e-06,
'Nominal cell capacity [A.h]': 5.0,
'Number of cells connected in series to make a battery': 1.0,
'Number of electrodes connected in parallel to make a cell': 1.0,
'Positive electrode Bruggeman coefficient (electrode)': 1.5,
'Positive electrode Bruggeman coefficient (electrolyte)': 1.5,
'Positive electrode OCP entropic change [V.K-1]': 0.0,
'Positive electrode active material volume fraction': 0.665,
'Positive electrode conductivity [S.m-1]': 0.18,
'Positive electrode diffusivity [m2.s-1]': 4e-15,
'Positive electrode electrons in reaction': 1.0,
'Positive electrode exchange-current density [A.m-2]': <function nmc_LGM50_electrolyte_exchange_current_density_Chen2020 at 0x7fb443d06170>,
'Positive electrode porosity': 0.335,
'Positive electrode thickness [m]': 7.56e-05,
'Positive particle radius [m]': 5.22e-06,
'Reference temperature [K]': 298.15,
'Separator Bruggeman coefficient (electrolyte)': 1.5,
'Separator porosity': 0.47,
'Separator thickness [m]': 1.2e-05,
'Typical current [A]': 5.0,
'Typical electrolyte concentration [mol.m-3]': 1000.0,
'Upper voltage cut-off [V]': 4.2}
total_cells
is 8000, 15500, or certain other valuesSolverError: Could not solve for summary variables, run `sim.solve(calc_esoh=False)` to skip this step
Expected behaviour
Would've expected the simulation to run for this number of cells, it can run some values above and below without adding
calc_esoh = False
.Additional context
Running on Collab and ran this
pip install jax==0.2.11
afterpip install pybamm
to fix compatibility issue.Error is resolved by setting
calc_esoh = False
The text was updated successfully, but these errors were encountered: