I've found that using .nodeset helps a lot with this problem. If your output node is labeled as out, then you can add the following to help with convergence:
.nodeset v(out)=5
With this extra line, my simulation converges with either version of CCM-DCM2.
This comment has been removed by the author.
ReplyDeleteCCM-DCM2 model has 2 lines for Ga.
ReplyDeleteTry one or the other.
I works with:
Ga 0 a value={MAX(i(Et),0)}
It doesn't work with:
Ga 0 a value={i(Et)}
Good point - thanks. I have updated switch.lib so that:
ReplyDeleteGa 0 a value={MAX(i(Et),0)}
is now default, which works fine in the HW7 example. Note, however, that this version may result in convergence problems in other examples.
Thank you all. It works now.
ReplyDeleteI've found that using .nodeset helps a lot with this problem. If your output node is labeled as out, then you can add the following to help with convergence:
ReplyDelete.nodeset v(out)=5
With this extra line, my simulation converges with either version of CCM-DCM2.