Skip to content
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

Allow use of SUPG for mixed function spaces #579

Closed
wants to merge 16 commits into from
Closed

Conversation

atb1995
Copy link
Collaborator

@atb1995 atb1995 commented Nov 26, 2024

Currently SUPG does not work for mixed function spaces. Here I have allowed for the altering of multiple test functions.

Note that MixedFSWrapper is not used, as altering a single test function in the tuple of test functions for a MixedFunctionSpace was difficult to do.

There is scope in future to not use SUPG as a wrapper, but this is not addressed in this pull request.
moist_bf_theta_e_-1
moist_bf_theta_e_supg3_-1

@atb1995 atb1995 self-assigned this Nov 26, 2024
@atb1995 atb1995 linked an issue Nov 26, 2024 that may be closed by this pull request
self.wrapper.setup(field_name)
new_test = self.wrapper.test
self.residual = self.residual.label_map(
lambda t: t.get(prognostic) == field_name and t.has_label(transport),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we change this so that we are testing whether the label is not time_derivative? I think it's better if the time discretisation to not know what terms it contains

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we apply it to the momentum eq, then it will try to replace the test function for all terms with u in, which will be problematic..

@atb1995 atb1995 closed this Nov 28, 2024
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.

SUPG for MixedFunction Spaces
2 participants