Similar results from other solvers #4
Replies: 5 comments 9 replies
-
|
Similarly, in rhythmite one can choose an implicit solver, like "BDF" and you find a similar result. |
Beta Was this translation helpful? Give feedback.
-
|
As @cedrict suggested at one of our meetings, the oscillations can possibly be associated with a change in sign of U. This is accommodated for in rhythmite through this line: and this line: This works nicely, until U becomes negative (i.e. upward motion). Then you need a bottom boundary condition for aragonite and calcite, but those are not available. The compromise chosen in rhythmite is to still use backward differentiation at the deepest node despite a negative U through this line: and this line: If were to mimic marlpde where the backward derivative is always applied independent of the sign of U, for the reason described above i.e. because of missing boundary conditions we would have to adjust the rhythmite code like this, i.e. just remove Applying these two code modifications makes the oscillations disappear: |
Beta Was this translation helpful? Give feedback.
-
|
thank you @HannoSpreeuw for carefully checking this code against yours and L'Heureux! |
Beta Was this translation helpful? Give feedback.
-
|
I am working on a plan of a manuscript and working through a series of runs we should document.
|
Beta Was this translation helpful? Give feedback.
-
|
We are comparing with Fortran, which also uses clamping, so it makes sense to keep it similar between implementations. Perhaps we could report on the effects of clamping for one of the implementations, for example marlpde, to assess their importance. But they don’t seem essential for the research question, since the existence of oscillations doesn’t depend on clamping.
…________________________________
From: Hanno Spreeuw ***@***.***>
Sent: Tuesday, July 23, 2024 4:39:32 PM
To: cedrict/rhythmite ***@***.***>
Cc: Jarochowska, E.B. (Emilia) ***@***.***>; Comment ***@***.***>
Subject: Re: [cedrict/rhythmite] Similar results from other solvers (Discussion #4)
CAUTION: This email originated from outside of Utrecht University. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I did not yet encounter the stability issue for other solvers over longer timescales.
Do you have an example for a derailed run at hand?
Any referee will probably ask questions about clamping, since it is a dubious measure.
—
Reply to this email directly, view it on GitHub<#4 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AELMSVAM722EHL3GGOPVIQTZNZTKJAVCNFSM6AAAAABKYY4AHWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMJSG43DENA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share that different solvers, i.e. different from "Euler" give similar results, at least wrt oscillations.
In rhythmite one can pick "Euler", "RK23", "RK45" or "DOP853".
The latter 3 call Scipy's solve_ivp and by default do not apply clamping of the rhs values.
This is with "DOP853" at 50 cm depth over 250 ka.
Beta Was this translation helpful? Give feedback.
All reactions