Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • dune-functions dune-functions
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • staging
  • dune-functionsdune-functions
  • Merge requests
  • !305

Add refined-LagrangeBasis as alternative to P2 basis

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Simon Praetorius requested to merge feature/refined-lagrange-basis into master Jul 08, 2021
  • Overview 10
  • Commits 3
  • Pipelines 7
  • Changes 5

Summary

The RefinedLagrangeBasis is based on the RefinedP[0|1]LocalFiniteElement and represents piecewise constant/linear Lagrange finite elements on a refined simplex element. The implementation is based on the code for LagrangeBasis.

Example

Construct the RefinedLagrangeBasis using the basis factory refinedLagrange<k>() for k in {0,1}:

using namespace Dune::Functions::BasisFactory;
auto basis1 = makeBasis(gridView, refinedLagrange<1>());
// or with specified range type:
auto basis2 = makeBasis(gridView, refinedLagrange<1,float>());

Limitations

  • The local finite-element implements only a 1-level refinement. Probably this could be extended to multi-level refinement (maybe also future work)

TODO

  • Add changelog entry
  • Maybe simplify the code using mcmg mappers directly
Edited Apr 20, 2023 by Simon Praetorius
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/refined-lagrange-basis