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

Add divergence conforming discontinuous Galerkin demo for the Navier-Stokes equations #2390

Merged
merged 54 commits into from
Jan 26, 2023

Conversation

jpdean
Copy link
Member

@jpdean jpdean commented Oct 3, 2022

This PR adds a divergence conforming discontinuous Galerkin demo for the Navier-Stokes equations.

It demonstrates:

  • how to implement DG methods
  • how to use predefined and custom restriction operators
  • how upwinding can be implemented
  • the use of H(div) elements in a non-conforming context

As far as I'm aware, none of the other demos demonstrate the above functionality.

I still need to so some tidying. Any feedback would be much appreciated.

@jpdean
Copy link
Member Author

jpdean commented Oct 3, 2022

If anyone feels this would be better kept outside the main repository, it could be added to the FEniCSx tutorial instead if @jorgensd is happy

Co-authored-by: Nate <[email protected]>
# $\Omega \subset \mathbb{R}^d$, $d \in \{2, 3\}$, and time interval
# $(0, \infty)$, given by
# $$
# \partial_t u - \nu \Delta u + (u \cdot \nabla)u + \nabla p = f
Copy link
Contributor

Choose a reason for hiding this comment

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

Does \nu actually get used in the discretisation?

Copy link
Member Author

Choose a reason for hiding this comment

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

The discretisation uses the dimensionless form, where \nu is incorporated into the Reynolds number. I'll make this clearer

@garth-wells garth-wells merged commit 5d43791 into main Jan 26, 2023
@garth-wells garth-wells deleted the jpdean/div_con_navier_stokes branch January 26, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo New demo or demo enhancements/improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants