Example usage of firedrake.fml.form_manipulation_language #4061
-
I am interested in using form labeling to easily add/remove terms from a PDE. I searched the Firedrake site but found only the API reference and no examples. Are there examples on the site I'm missing? Alternatively, does anyone have an example script they would be willing to share? Thanks for the help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @jbigmanUT ! Apologies, creating an example for this is on my to do list - and has been for quite a while to be honest! Here's an example I've put together for a paper I'm writing on how we use this in Gusto. The example sets up an advection diffusion equation and uses a splitting scheme for time stepping where the advection (or transport) is done explicitly and the diffusion is done implicitly. I'm posting as-is in the interest of speed, but I'd be happy to send you also the text from the (not yet finished!) paper that describes what is actually happening.
|
Beta Was this translation helpful? Give feedback.
-
FYI, importing this mechanism into Irksome is a near-term todo on an undergrad research project.On Feb 21, 2025, at 4:29 PM, Joshua Bigman ***@***.***> wrote:
Thank you! I'm also working on operator splits and have an advection-diffusion test code, so this was very helpful.
Do you know if there's a way to add multiple labels to a term in one command? I'm adding multiple labels so I can switch on/off different phenomena and mark them as explicit/implicit.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi @jbigmanUT ! Apologies, creating an example for this is on my to do list - and has been for quite a while to be honest! Here's an example I've put together for a paper I'm writing on how we use this in Gusto. The example sets up an advection diffusion equation and uses a splitting scheme for time stepping where the advection (or transport) is done explicitly and the diffusion is done implicitly. I'm posting as-is in the interest of speed, but I'd be happy to send you also the text from the (not yet finished!) paper that describes what is actually happening.