Skip to content

Lagrange Restrictions#79

Merged
chmerdon merged 20 commits intomasterfrom
feature/LM
Sep 25, 2025
Merged

Lagrange Restrictions#79
chmerdon merged 20 commits intomasterfrom
feature/LM

Conversation

@pjaap
Copy link
Copy Markdown
Member

@pjaap pjaap commented Aug 6, 2025

Seems to work for the two examples with periodic coupling

  • Added BlockArrays
  • Added Restrictons struct and a first CoupledDofRestriction

Problems:

@pjaap pjaap marked this pull request as draft August 6, 2025 10:34
@pjaap pjaap marked this pull request as ready for review September 11, 2025 09:06
@pjaap
Copy link
Copy Markdown
Member Author

pjaap commented Sep 11, 2025

Also added MeanValueRestriction to restrict a scalar variable to a certain mean value over the domain. Tested in Example 252.

Still missing:

  • doc strings
  • CHANGELOG

@chmerdon
Copy link
Copy Markdown
Member

Nice, but I think something is not working properly with the restriction_rhs. When I try to fix a nonzero pressure mean in Example252, it is still zero. When I stop after one iteration, the mean has the negative value of what I prescribed.

@chmerdon
Copy link
Copy Markdown
Member

I fixed something (in case not the full solution vector takes part in the solve) and added a BoundaryDataRestriction. Maybe we should reconsider the name MeanValueRestriction, since we are actually restricting a linear functional, so what about calling it a LinearFunctionalRestriction?

@chmerdon chmerdon merged commit 5b0ce16 into master Sep 25, 2025
8 checks passed
@pjaap pjaap deleted the feature/LM branch January 28, 2026 10:18
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