Skip to content

Example for DG poisson #138

Open
Open

Description

@RemDelaporteMathurin

Hi @jorgensd

Are there plans to add a demo for solving the poisson equation using the DG method?

Thanks!
Rem

Activity

  1. jorgensd commented on Jul 6, 2023

    @jorgensd
    Owner

    Hi Rem,
    I made a notebook on this a long time ago (main...dokken/dg_tutorial), and it needs some tender love and care to be updated to the main branch, and maybe a review of the mathematics. Maybe @IgorBaratta or @jpdean is willing to help me with this?:)

  2. jpdean commented on Jul 6, 2023

    @jpdean

    Sounds good, happy to help. How about DG convection-diffusion though? The convection term doesn't add much difficulty (it's actually easier to understand than the diffusion term), and is often one of the main reasons to use DG. I could update this repo and use it as a starting point. I've also written a tutorial section on DG for convection-diffusion in my thesis which could be used too.

  3. jorgensd commented on Jul 6, 2023

    @jorgensd
    Owner

    Fine by me!

  4. RemDelaporteMathurin commented on Jul 6, 2023

    @RemDelaporteMathurin
    ContributorAuthor

    @jorgensd @jpdean Sure a convection diffusion problem would be even more complete!
    Let me know if I can give you a hand

    My personal agenda is to impose discontinuities at interfaces between materials, maybe one day we'll have a tutorial about this too! 😃

  5. jorgensd commented on Jul 6, 2023

    @jorgensd
    Owner

    My personal agenda is to impose discontinuities at interfaces between materials, maybe one day we'll have a tutorial about this too! smiley

    Hopefully when @jpdean merges his MeshView assembly into DOLFINx.

  6. RemDelaporteMathurin commented on Jul 6, 2023

    @RemDelaporteMathurin
    ContributorAuthor

    Hopefully when @jpdean merges his MeshView assembly into DOLFINx.

    I thought we could "just" specify the jump over some internal boundaries? What is MeshView?

  7. jorgensd commented on Jul 6, 2023

    @jorgensd
    Owner

    Hopefully when @jpdean merges his MeshView assembly into DOLFINx.

    I thought we could "just" specify the jump over some internal boundaries? What is MeshView?

    You could, But you would Need to use a DG space for everything. I would like a part mesh Lagrange (continuous) coupled with a continuous solution on another subdomain (with discontinuity between them).

  8. RemDelaporteMathurin commented on Jul 6, 2023

    @RemDelaporteMathurin
    ContributorAuthor

    Oh yes that would be the best!! Please keep me in the loop 🚀

  9. RemDelaporteMathurin commented on Jul 20, 2023

    @RemDelaporteMathurin
    ContributorAuthor

    @jorgensd @jpdean I think I'm almost there with my DG case, just having a hard time finding a tutorial for getting the weak form of the interface condition.

    Do you think this is something that could be added to a tutorial too?

  10. jorgensd commented on Aug 9, 2025

    @jorgensd
    Owner

    A "pure" DG convection difffusion code could be based of: https://scientificcomputing.github.io/fenics-in-the-wild/src/ucs/uc1_diffusion.html (without time dependency, i.e. https://doi.org/10.1093/imanum/drm050)
    and use the analytical solution from section 4.2 of: https://doi.org/10.1137/050634736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions