Problem with initialisation of a custom model #5022
-
Hi, I am trying to code Yang's model, as described in this paper. I am running into a strange problem, in which the model does not initialise. The surface concentration is estimated from the average concentration using the following equations,
which leads to the following error,
This is apparently caused by the presence of Does anyone have any ideas for a workaround? Thanks, Isaac MWE below.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @isaacbasil, can you please provide a minimum working example? |
Beta Was this translation helpful? Give feedback.
It's not immediately clear to me what the issue is. But, if I add a tiny perturbation to the time in the offending line, like
then it works for me.