Skip to content

Moment based reffes #1048

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

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

Moment based reffes #1048

wants to merge 233 commits into from

Conversation

JordiManyer
Copy link
Member

@JordiManyer JordiManyer commented Nov 8, 2024

So we've been having a look at the current implementation of Raviart-Thomas and Nedelec. It has become clear that the current implementation

  • has issues with high-order, that have to do with how we choose our basis/prebasis when computing the moments.
  • has issues related to scaling in mixed formulations.
  • is outright wrong when using high-order approximations for the geometry.
  • is very hard to read, modify and extend.

Moreover, there has been interest lately in implementing more types of moment-based discretisations like Crouzeix-Raviart.

We believe the best way to solve all these issues at once is to create some extendable machinery to easily create moment-based FEs.

TODOs:

  • Create the moment-based machinery
  • Create the pullback machinery Pullbacks #1067
  • Replicate RT and ND in 2D/3D with oriented meshes
  • Replicate RT and ND in 2D/3D with non-oriented meshes
  • Benchmark against current implementations
  • Change of basis needs to be transposed and inverted on pushforward.

New RefFEs:

  • Crouzeix-Raviart
  • Hellan-Herrmann-Jhonson
  • Mardal-Tai-Winther
  • Arnold-Winther

Other: Polynomial bases

The solution to the first issue requires extending Jacobi-type polynomial bases. Although it could be done blindly, I think we could try to merge a lot of code together. In the future we might want to have even more basis of polynomials, which would require a lot of copied code.

@JordiManyer JordiManyer self-assigned this Nov 8, 2024
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 69.80669% with 984 lines in your changes missing coverage. Please review.

Project coverage is 83.60%. Comparing base (7228ed3) to head (b6eb33e).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
src/ReferenceFEs/deprecated/RaviartThomasRefFEs.jl 0.00% 266 Missing ⚠️
src/ReferenceFEs/deprecated/NedelecRefFEs.jl 0.00% 197 Missing ⚠️
src/FESpaces/deprecated/DivConformingFESpaces.jl 0.00% 94 Missing ⚠️
src/ReferenceFEs/deprecated/BDMRefFEs.jl 0.00% 87 Missing ⚠️
src/ReferenceFEs/MomentBasedReferenceFEs.jl 75.93% 64 Missing ⚠️
src/ReferenceFEs/HHJRefFEs.jl 0.00% 55 Missing ⚠️
src/ReferenceFEs/AWRefFEs.jl 0.00% 38 Missing ⚠️
src/ReferenceFEs/MTWRefFEs.jl 0.00% 29 Missing ⚠️
src/ReferenceFEs/Pullbacks.jl 65.00% 28 Missing ⚠️
src/Fields/FieldArrays.jl 54.90% 23 Missing ⚠️
... and 27 more

❗ There is a different number of reports uploaded between BASE (7228ed3) and HEAD (b6eb33e). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (7228ed3) HEAD (b6eb33e)
6 5
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1048      +/-   ##
==========================================
- Coverage   89.27%   83.60%   -5.68%     
==========================================
  Files         210      228      +18     
  Lines       26652    27851    +1199     
==========================================
- Hits        23793    23284     -509     
- Misses       2859     4567    +1708     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Antoinemarteau and others added 30 commits June 17, 2025 09:46
In particular, addition/substraction of <:MultiValues is consistent with that of
Number and leverages the promotion API made for it.
- Disactivated WIP HHJ stuffs,
- `component_basis(::MultiValue)` has been moved in `TensorValues`,
  optimized and tested
- `dual_component_basis_representatives` has been renamed
  `representatives_of_componentbasis_dual`, has been fixed, optimized
  and tested
- inner product of `SymFourthOrderTensorValue` has been fixed and optimized
[Moment based reffes] merge Gridap 0.19.1
- fixed TensorValues test coverage
- better error message for ThirdOrderTensorValue constructor
- deprecated `TensorValues.data_index`, it is unused and not general
- fix adjoint of `SkewSymTensorValue`
- unified summary of TensorValues in TensorValues.md with its docstring,
  and fixed aliases links
- fixed Conversion with scalar, and SkewSymTensorValue / SMatrix
- fixed SkewSymTensorValue 2x2 inverse
[moment-based-reffe] HHJ WIP, SkewSymTensorValue and some TensorValues refactoring
Proposition: small Pushforward API rework for generality and flexibility
- fix `get_order` on BubbleRefFE
- Make BubbleRefFE consistent with the `ReferenceFE` API
- Better argument checks
- more test coverage
- documentation

and add one missing CellData docstring to fix broken links

Changed makedocs argument to error if now undocumented exported symbols
are introdued
[Moment based reffes] Fix broken links, BubbleRefFE improvements
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