Fix kappa dt bug
Closed this issue · 3 comments
shoumikdc commented
For a SingleModeSystem
with kappa = 0
and some gamma
, we expect to see some exponential decay. However, if we make gamma
very small (~0.0001), then we see some spurious exponential growth in the time dynamics. We saw this bug previously when the step size dt was too large.
It seems that the value of gamma
or kappa
influences the optimal dt by quite a bit. So maybe we need to do some validation to choose the optimal dt based on some bounds on the params?
Phionx commented
We can find an optimal dt
using SolverOptimizer
, as demonstrated in demos/analysis/SolverOptimizer.ipynb
.
Does this help @shoumikdc ?