Skip to content

Rckirby/timedep rb #4339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: release
Choose a base branch
from
Open

Rckirby/timedep rb #4339

wants to merge 15 commits into from

Conversation

rckirby
Copy link
Contributor

@rckirby rckirby commented May 27, 2025

Description

This is a demo solving the time-dependent Rayleigh-Benard convection problem using Irksome for time stepping and a monolithic multigrid solver for the algebraic systems.

@rckirby rckirby changed the base branch from master to release May 27, 2025 09:01
mh = MeshHierarchy(base_msh, ref_levels)
msh = mh[-1]

MC = MeshConstant(msh)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a little bit of explanation. I think the only reason to use the R space is to be able to take the adjoint of a simulation for variables that appear inside a Form and are updated at each time step. This example might be fine with just Constant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we had UFL manipulation errors internally with Constant?
Also, t += dt works great for MC but not for `Constant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try this out and see if it passes CI. Worked locally for me.

@rckirby rckirby marked this pull request as ready for review May 29, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants