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

code for obtaining subcell fluxes with desired sparsity pattern #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HennesHajduk
Copy link
Collaborator

As discussed, I've added code for obtaining subcell fluxes from an element vector that sums to zero. Note that there is an option bool UseDiagonalNbrs. If this is set to false, the dense stencil of a Q_1 element reduces to a cross stencil, similar to collocated methods. If true, the stencil of Q_1 remains unchanged, in either case the stencil is generally sparse.

Since I wanted to have this option and the integrals to be computed are non-standard, I found it easier to hard-code the entries, after tedious pen-and-paper calculations.

I'm performing the "assembly" on the reference element, and omitting the multiplication and subsequent division with the transformation constant. I strongly believe that this can also be done for severely curved elements, because Manuel observed that such integration errors are way less important than obtaining the right sparsity pattern.

The new functions are called from the main routine to illustrate how to use them. I haven't worked with Remhos in a while, so somebody else needs to apply this code where it's needed.

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

Successfully merging this pull request may close these issues.

2 participants