ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
5 stars 3 forks source link

Added a wrapper to fix Dirichlet BCs for Lagrange Nodes #222

Closed tarun-mitruka closed 7 months ago

tarun-mitruka commented 7 months ago

This PR basically adds a function called obtainLagrangeNodePositions that helps to obtain the global positions of the Lagrangian nodes. This is adapted from the Dune book (Section 8.3.1). This can then be combined with the member function fixIthDOF of the class DirichletValues to fix particular DOFs. This mainly helps if in case the user uses higher order elements with nodes living on the middle of the edges of elements, for example, to be fixed.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e7b4aaf) 91.32% compared to head (8bc3978) 91.32%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #222 +/- ## ======================================= Coverage 91.32% 91.32% ======================================= Files 45 45 Lines 1879 1879 ======================================= Hits 1716 1716 Misses 163 163 ``` | [Flag](https://app.codecov.io/gh/ikarus-project/ikarus/pull/222/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ikarus-project) | Coverage Δ | | |---|---|---| | [tests](https://app.codecov.io/gh/ikarus-project/ikarus/pull/222/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ikarus-project) | `91.32% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ikarus-project#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.