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

WIP: New vector interpolations and mappings #798

Draft
wants to merge 192 commits into
base: master
Choose a base branch
from

Conversation

KnutAM
Copy link
Member

@KnutAM KnutAM commented Sep 23, 2023

Implements Hcurl (Nedelec) and Hdiv (RaviartThomas and BrezziDouglasMarini) interpolations and the associated mappings.

To ensure that the infrastructure works well, I would aim to have the following here

  • Tests for H(div) and H(curl) on reference element
  • Continuity testing for mapped H(div) and H(curl)
  • Test homogeneous Dirichlet BC for all interpolations
  • Tutorial with H(div) elements: preview
  • Tutorial with H(curl) elements preview

Finalization plan

The diff is too large for effective review, so this PR should not be merged, but I will split it into several smaller PRs.

@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2023

Codecov Report

Attention: Patch coverage is 78.36991% with 138 lines in your changes missing coverage. Please review.

Project coverage is 89.40%. Comparing base (951ec47) to head (d45b3c7).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/interpolations.jl 70.45% 39 Missing ⚠️
src/FEValues/EdgeValues.jl 58.22% 33 Missing ⚠️
src/FEValues/BoundaryValues.jl 0.00% 21 Missing ⚠️
src/FEValues/FunctionValues.jl 65.30% 17 Missing ⚠️
src/FEValues/boundary_integrals.jl 93.93% 12 Missing ⚠️
src/Dofs/ConstraintHandler.jl 92.62% 9 Missing ⚠️
src/Quadrature/quadrature.jl 75.00% 6 Missing ⚠️
src/iterators.jl 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #798      +/-   ##
==========================================
- Coverage   93.57%   89.40%   -4.18%     
==========================================
  Files          39       42       +3     
  Lines        6073     6739     +666     
==========================================
+ Hits         5683     6025     +342     
- Misses        390      714     +324     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

docs/src/devdocs/mapping.md Outdated Show resolved Hide resolved
Copy link
Member

@termi-official termi-official Jan 5, 2025

Choose a reason for hiding this comment

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

Can we put this feature (+ tests) in a separate PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it will.
Sorry that didn't update much on the plan with this PR, but it will need to be split into several sub-PRs. However, it is easier to work with the full one, and it can also serve as a reference when reviewing the sub-PRs later.

@@ -49,3 +49,24 @@ dofs defined on a specific entity. Hence, not overloading of the dof functions w
element with zero dofs. Also, it should always be double checked that everything is consistent as
specified in the docstring of the corresponding function, as inconsistent implementations can
lead to bugs which are really difficult to track down.

## Vector interpolation properties
### Hdiv interpolations
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
### Hdiv interpolations
### H(div) interpolations

Copy link
Member

Choose a reason for hiding this comment

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

It might make sense to add some comments about the De-Rahm complex here for readers not familiar with the topic.

KnutAM added a commit to KnutAM/FerriteAssembly.jl that referenced this pull request Jan 20, 2025
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.

Support for H(curl) and H(div) elements
5 participants