Handling time-derivative source terms in heterogeneous media

27 views
Skip to first unread message

Yi-De Liou

unread,
May 16, 2025, 6:58:18 AM5/16/25
to Dedalus Users
Dear Developer,

I’ve noticed that in the spectral framework, time derivatives are typically restricted to terms with spatially uniform coefficients and are generally placed on the left-hand side of the equations. I’m wondering if you could share your experience or suggestions for handling source terms that include time derivatives—particularly when these terms may have spatial dependence or nonlinear behavior. Examples include heterogeneous polarization currents in Maxwell’s equations or electrochemical reactions involving charge accumulation.

Any insights or recommended approaches would be greatly appreciated.

Best regards,
Yi-De Liou

Daniel Lecoanet

unread,
May 28, 2025, 9:13:57 PM5/28/25
to dedalu...@googlegroups.com
Hi Yi-De,

You can do this by defining auxiliary variables for the time derivatives of the usual variables, and putting nonlinear terms involving them on the RHS of the equations. If you have further questions it might be useful to provide a simple example of what you’re trying to do.

Daniel

On May 16, 2025, at 05:58, Yi-De Liou <leave...@gmail.com> wrote:

Dear Developer,
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dedalus-users/58238893-4708-44c7-8295-d3e4701fea9bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages