You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just playing around a LOBSTER box model (basically the first example in the docs) and noticed that I was getting some super negative values. Turns out it's probably numerical instability due to the time step because reducing the time step eventually leads to convergence (although sometimes blowup at intermediate time step sizes).
I'm curious if there's a way to determine the maximum stable time step for biogeochemistry dynamics (e.g. LOBSTER). This way we could take it into account when computing time step sizes for adaptive time-stepping.
If not, maybe the solution is an equivalent of the NaNChecker that stops a simulation if a tracer becomes too negative?
As far as I'm aware it's not generally possible to determine a stable timestep and it would be very involved to compute it.
This is why I came up with the ScaleNegativeTracers modifier, but I think in a box model it makes sense to error on negatives. Maybe it would be good to have a callback for that in the source code.
I was just playing around a LOBSTER box model (basically the first example in the docs) and noticed that I was getting some super negative values. Turns out it's probably numerical instability due to the time step because reducing the time step eventually leads to convergence (although sometimes blowup at intermediate time step sizes).
I'm curious if there's a way to determine the maximum stable time step for biogeochemistry dynamics (e.g. LOBSTER). This way we could take it into account when computing time step sizes for adaptive time-stepping.
If not, maybe the solution is an equivalent of the
NaNChecker
that stops a simulation if a tracer becomes too negative?cc @suki-atdepthmrv @almacarolina
MWE:
With a time step of 15 mins (super negative NO3, Alk, and DIC):
With a time step of 5 mins (crash and NaNs after ~0.5 days):
With a time step of 1 min (seems fine):
With a time step of 10 seconds (seems converged):
Environment:
OceanBioME.jl
main
branch withThe text was updated successfully, but these errors were encountered: