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

finite volume method #122

Closed
rveltz opened this issue Oct 23, 2023 · 3 comments
Closed

finite volume method #122

rveltz opened this issue Oct 23, 2023 · 3 comments

Comments

@rveltz
Copy link

rveltz commented Oct 23, 2023

Hi,

This is not an issue. I am wondering if you have an example of use of the finite volume method where the mass is conserved?

Thank you for your help,

Best

@luraess
Copy link
Collaborator

luraess commented Oct 24, 2023

Hi,
We don't have an example of using ParallelStencil with a Finite Volume methods yet. However, the staggered grid approach used in the mini apps would be conservative if equations are solved in divergent form. If you have any more specific example you are thinking of, fell free to start a thread on Discourse.
Thanks

@rveltz
Copy link
Author

rveltz commented Oct 24, 2023

I was asking this because I was looking at your fantastic lectures https://pde-on-gpu.vaw.ethz.ch/lecture5/#ol_start4_back_to_loops_ii where there is a function compute_flux!

@luraess
Copy link
Collaborator

luraess commented Oct 25, 2023

Ah - I see. We use conservative finite-differences there on a staggered grid which is close to FV and should be pretty conservative.

@omlins omlins closed this as completed Jul 30, 2024
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

No branches or pull requests

3 participants