Open DavidMStraub opened 3 years ago
Can anyone reproduce this?
Yes, there are two possible fixes, either
1) edit processed variable so that 3D variables are allowed
or
2) add a hack to set_initial_conditions_from
to avoid needing to call processed variable in 3D
The latter is probably easier. If the 3D variable is already a state in the system (which it will be in most cases), we can just directly call solution.y[slice]
instead of solution[var.name]
. The reason set_initial_conditions_from
calls solution[var.name]
by default is so you can initialize a model using a different model which does not have all the same states
Hi, I was wondering if you eventually managed to solve the issue with the experiment protocol with either of the above suggestions? I didn't manage to make it work.
This has not been done yet
Describe the bug
Simulation of 2D pouch cell model fails when experiment has more than one step.
This is almost the same code as in #1547, but I believe it's a different error.
To Reproduce
It works when removing the second step in the experiment (see #1547).
Expected behaviour
Solve
Screenshots