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

added constant space and test #836

Merged
merged 2 commits into from
Oct 6, 2022
Merged

added constant space and test #836

merged 2 commits into from
Oct 6, 2022

Conversation

santiagobadia
Copy link
Member

@santiagobadia santiagobadia commented Oct 6, 2022

This PR implements ConstantFESpace, which represents constants defined on the whole domain.

This type allows us, e.g., to impose the mean value of the pressure via an additional equation/unknown (i.e., a Lagrange multiplier).

In order to test it, by now, we have just applied the imposition of the mean value of the FE solution to that of the analytical solution of a Poisson problem with Dirichlet boundary conditions on the whole domain. As expected, in this particular case, the constraint does not have any affect on the FE solution, its just imposing something which is already fulfilled by the solution.

@amartinhuertas amartinhuertas self-requested a review October 6, 2022 01:26
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2022

Codecov Report

Merging #836 (13c4880) into master (1dd2de1) will decrease coverage by 0.17%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #836      +/-   ##
==========================================
- Coverage   88.46%   88.29%   -0.18%     
==========================================
  Files         163      164       +1     
  Lines       19041    19079      +38     
==========================================
+ Hits        16845    16846       +1     
- Misses       2196     2233      +37     
Impacted Files Coverage Δ
src/FESpaces/ConstantFESpaces.jl 0.00% <0.00%> (ø)
src/FESpaces/FESpacesWithConstantFixed.jl 81.60% <0.00%> (+1.14%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amartinhuertas amartinhuertas merged commit 173e625 into master Oct 6, 2022
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.

3 participants