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
inner(u, div(w)) * dx
incorrect for non-affine geometric mappings
#373
Comments
inner(u, div(w)) * dx
incorrect on general quadrilateral meshes
This issue appears to be related to the |
The The following is the simplest test that I can think of that demonstrates the problem:
|
This issue also seems to affect curved triangles |
inner(u, div(w)) * dx
incorrect on general quadrilateral meshesinner(u, div(w)) * dx
incorrect for non-affine geometric mappings
I think I've figured out the problem. The ufl for |
@jpdean Can you move this issue to ffcx? When you say it gets expanded in UFL, did you check after all preprocessings steps (apply pullbacks and derivatives)? |
Sure! I think it could be a UFL issue though? When I check After talking to @mscroggs, it looks like ffcx should just be checking there aren't any global derivatives and throwing and error if so: see this Line 210 in df0284b
I'll create a branch adding this check back in and see what else breaks. @michalhabera are you happy for me to move this issue to UFL rather than ffcx? |
I'll move this issue to FFCx and create a new issue in UFL demonstrating the problem. |
I've managed to fix this issue by removing the line https://github.com/FEniCS/ffcx/blob/main/ffcx/analysis.py#L163. PR #374 does this and adds back the check to make sure there are no global derivatives of the Jacobian present. @mscroggs, is there a reason why |
preprocessed_form
FEniCS/ufl#63
The following test assembles the matrix corresponding to
inner(u, div(w)) * dx
on a mesh of two square elements and two trapezium shaped elements, whereu
is from a"DQ"
space andw
is from an"RTCF"
space. Due to the properties of the Piola transform, these matrices should be equal, however, the test fails.I believe this issue is causing the vector unknown in a mixed Poisson problem to not converge in the L^2-norm (at all) on general quadrilateral meshes. There are, however, no issues on meshes of affine quadrilaterals. Note that this issue is not related to FEniCS/dolfinx#1455.
The text was updated successfully, but these errors were encountered: