cvode-不收敛与min step的问题

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 wil

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值