Skip to content

Conversation

pjaap
Copy link
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
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
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
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
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