Skip to content

BaseModel and Events #3882

Answered by martinjrobins
veera-visw asked this question in Q&A
Mar 11, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

so you are not inserting the values in param into your model. The easiest way to do this is use the pybamm.Simulation class like so:

sim = pybamm.Simulation(model, parameter_values=param)
sol = sim.solve(t_eval)

without the Simulation class, you can use the ParameterValues class directly:

param.process_model(model)
param.process_geometry(geometry)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@martinjrobins
Comment options

Answer selected by veera-visw
Comment options

You must be logged in to vote
1 reply
@martinjrobins
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants