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

Discuss triangular meshes in step-1. #17001

Merged
merged 1 commit into from
May 23, 2024

Conversation

bangerth
Copy link
Member

@bangerth bangerth commented May 11, 2024

In reference to #16944.

Fixes #16944.

Comment on lines +101 to +103
for (const auto i : triangulation_quad.get_manifold_ids())
if (i != numbers::flat_manifold_id)
triangulation.set_manifold(i, triangulation_quad.get_manifold(i));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit unfortunate to have in the first tutorial. Isn't it possible to attache a spherical manifold?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's why a say the thing about "magic we're not yet ready to explain" above. I think attaching a manifold would not be clearer either, though. We only get to manifolds in step-9.

Do you remember why the function that subdivides cells into triangles doesn't do this itself? The documentation says you have to do it, so why not do it internally?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you remember why the function that subdivides cells into triangles doesn't do this itself? The documentation says you have to do it, so why not do it internally?

Copying manifolds between triangulations is problematic, since might depend on the underlying triangulation. See TransfineManifold.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. Yes, not much we can do about it.

My inclination is to leave the text as is, including stating that we're doing some magic, because it doesn't require substantial changes for people to play around with.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to introduce a helper function in GridTools that we call here? It would reduce the amount of magic to a single function call.

Copy link
Member

@kronbichler kronbichler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the pros and cons discussed here, I agree with the PR.

@bangerth
Copy link
Member Author

bangerth commented May 21, 2024 via email

@bangerth
Copy link
Member Author

Anyone want to take a chance here?

@kronbichler kronbichler merged commit 64994cc into dealii:master May 23, 2024
12 of 16 checks passed
@bangerth bangerth deleted the todo-step-1-triangle branch May 23, 2024 12:45
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

Successfully merging this pull request may close these issues.

Mention triangles/tets somewhere early on in the tutorials.
4 participants