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

Invalid coarse mappings in multigrid #614

Merged
merged 6 commits into from
Dec 4, 2023

Conversation

nfehn
Copy link
Member

@nfehn nfehn commented Dec 1, 2023

For the poisson/sine test case, I added a new "boundary-layer" manifold (typical of CFD applications to resolve turbulent boundary layers around bodies), which is described analytically by a tanh() function in wall-normal direction and a dealii::ChartManifold, and approximated in the numerical simulation by a quadratic mapping.

Then, using our default multigrid implementation with the same mapping degree on all h-levels (equivalent to the fine level mapping degree), will lead to invalid Jacobians on coarser multigrid levels, which is shown by the present test case. For the chosen parameters and the chosen grid stretch factor, refine level 2 (set in the input.json file) leads to a valid mapping on the fine grid (level 2), while coarser grids (level 1) have an invalid mapping.

The present PR proposes a test case that fails on purpose. Potential solutions to this problem are to be addressed by upcoming PRs.

@nfehn nfehn added grid multigrid Multigrid implementation labels Dec 1, 2023
@nfehn nfehn force-pushed the invalid_coarse_mappings_in_multigrid branch from 641783e to 7e1b47f Compare December 4, 2023 09:21
@nfehn
Copy link
Member Author

nfehn commented Dec 4, 2023

With deal.II PR dealii/dealii#16317, an assert is now triggered in matrix_free/mapping_info.templates.h.

@peterrum
Copy link
Member

peterrum commented Dec 4, 2023

With deal.II PR dealii/dealii#16317, an assert is now triggered in matrix_free/mapping_info.templates.h.

Great! Thanks for checking!

@nfehn nfehn merged commit b651712 into exadg:master Dec 4, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid multigrid Multigrid implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants