https://groups.google.com/g/sundials-users/c/AFjXpOtdmME/m/jmIPhD-rBQAJ
Question:
Hi there,
before using CVODE I was writing single-step, implicit solvers with
variable time steps. And depending on the convergence criteria the
time step could get very small. However, in order not to break out the
solution I enforced a minimum time step (accepting the reduction in
accuracy).Can this be done with CVODE as well? I mean, force the solver to go on
even if he can’t converge at a certain time step which would normally
cause him to slow down?Thanks for any suggestions!
Bye - Andreas
CVODE在不收敛的时候,能否通过设置min step来跳过这些不收敛的点?
回答一
Although CVODE has an option for setting a minimum value for the step
size (CVodeSetMinStep), this will not help your problem. The hmin

博客讨论了在使用CVODE求解器时如何处理不收敛的步长问题。解答指出,虽然CVODE有最小步长设置,但这并不能强制求解器在不收敛时继续进行。建议使用更宽松的容差来允许在困难区域中损失精度,并在过后恢复精度。此外,给出了一个示例,说明如何在达到最小步长时动态调整容差,确保求解器能够继续推进并适时收紧容差。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



