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

Issue: get_quadrature_order shouldn't be a physics functions #22

Open
bornhoft opened this issue Aug 11, 2021 · 3 comments
Open

Issue: get_quadrature_order shouldn't be a physics functions #22

bornhoft opened this issue Aug 11, 2021 · 3 comments
Labels
question Further information is requested

Comments

@bornhoft
Copy link
Collaborator

Currently the quad order is determined by the physics, but this should really be set in numerics somewhere as it is a function of the quadrature rule, not the physics that are being solved. Basically the action would be to move get_quadrature_order from physics to somewhere in numerics.

@ericjching
Copy link
Collaborator

I know I'm getting to this late, but I just want to point out that the original motivation for putting quad order in the physics module (which is how it's done in the old C code) is that different equation sets can have different nonlinear fluxes that would call for different quadrature orders. For instance, it's been found that for the Euler equations (whose fluxes are rational functions), a certain quadrature order (~2p+1) is required to achieve optimal accuracy in general. For an equation set with a different flux, that quadrature order can be different.

I wouldn't say moving it outside of physics (or at least having an option to override that or something) is a bad idea - it's ultimately up to the people actually actively working on the repo anyway - but just wanted to provide some context.

@bornhoft
Copy link
Collaborator Author

Thats helpful. Thanks for the clarity! I appreciate it. For example, when doing diffusion fluxes, is it typical to do a higher quad order than when just doing Euler equations? (Something I noticed in the DG-Legion code vs Quail)

@ericjching
Copy link
Collaborator

Not that I'm aware of, but it's definitely possible that the viscous fluxes should be computed with a higher quadrature order. What does DG-Legion do?

Also, to provide a bit more background (which you may already be aware of), using a high quadrature order (known as overintegration) can not only improve accuracy, but also increase robustness (particularly for underresolved flows - it won't stabilize shocks by itself) by reducing aliasing-induced instabilities. That's not to say that you absolutely need a quadrature order of at least 2p+1. Collocated schemes in general don't achieve that order, but optimal accuracy has still been reported for many test cases with such schemes.

@bornhoft bornhoft added the question Further information is requested label Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants