Initial SOC #3071
Unanswered
HamidHamed1990
asked this question in
Q&A
Initial SOC
#3071
Replies: 2 comments 8 replies
-
When you solve a simulation you can use the argument |
Beta Was this translation helpful? Give feedback.
6 replies
-
Dear Ferran, import pybamm
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
file_path = (
"C:\\Users\\lucp9593\\Anaconda3\\Lib\\site-packages\\pybamm\\input\\parameters\\"
"lithium_ion\\data/nmc_LGM50_ocp_Chen2020.csv"
)
model = pybamm.lithium_ion.DFN()
params = pybamm.ParameterValues("Chen2020")
ocp_NMC = pd.read_csv(file_path, comment="#", header=None).to_numpy()
ocp_NMC_interpol = pybamm.Interpolant(ocp_NMC[:, 0], ocp_NMC[:, 1], pybamm.t)
params["Positive electrode OCP [V]"] = ocp_NMC_interpol
solver = pybamm.CasadiSolver(mode="fast")
sim = pybamm.Simulation(model, parameter_values=params, solver=solver)
sim.solve([0, 3600])
sim.plot() But I get this error: Solver failed because the following interpolation bounds were exceeded: ["Interpolant 'interpolating_function' lower bound"]. You may need to provide additional interpolation points outside these bounds. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
How can I chnage the initial state of charge of the postivite/negative electrodes in the DFN model?
Beta Was this translation helpful? Give feedback.
All reactions