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

Ksagiyam/add periodic hex mesh #3667

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

ksagiyam
Copy link
Contributor

@ksagiyam ksagiyam commented Jul 5, 2024

Add periodic hex box mesh.

Depends on https://gitlab.com/petsc/petsc/-/merge_requests/7677. Merged.

  • Use periodic + sparseLocalize=False in PETSc.DMPlex().createBoxMesh() (Firedrake requires DG coordinates on the entire domain),
  • Use RelabeledMesh for marking boundaries.

@ksagiyam ksagiyam force-pushed the ksagiyam/add_periodic_hex_mesh branch 5 times, most recently from 0eac3d0 to 2f847b8 Compare July 8, 2024 15:50
@juliusgh
Copy link
Contributor

Hi @ksagiyam, great that you are working on this!

I was just looking for this feature and saw your PR. In the meantime, the corresponding PETsc PR https://gitlab.com/petsc/petsc/-/merge_requests/7677 has been merged.

Do you know what is missing in your PR and do you intend to continue working on it? Otherwise, I could also take a look.

@ksagiyam
Copy link
Contributor Author

I need to make this branch up-to-date. I also noticed that I had not labeled boundaries correctly, so I need to fix that. I will work on this later today.

@juliusgh
Copy link
Contributor

Thank you very much for your quick reply @ksagiyam ! I would be very happy if that works. But of course no hurry either.

@ksagiyam ksagiyam closed this Dec 18, 2024
@ksagiyam ksagiyam force-pushed the ksagiyam/add_periodic_hex_mesh branch from 2f847b8 to 18a952f Compare December 18, 2024 16:15
@ksagiyam ksagiyam reopened this Dec 18, 2024
@ksagiyam ksagiyam marked this pull request as ready for review December 18, 2024 16:29
Copy link

github-actions bot commented Dec 18, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake real8145 ran7470 passed675 skipped0 failed

Copy link

github-actions bot commented Dec 18, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake complex8139 ran6665 passed1474 skipped0 failed

@ksagiyam ksagiyam force-pushed the ksagiyam/add_periodic_hex_mesh branch from 396c0e9 to 8ff54b5 Compare December 19, 2024 13:31
Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Generally looks pretty good to me

firedrake/utility_meshes.py Outdated Show resolved Hide resolved
firedrake/utility_meshes.py Show resolved Hide resolved
firedrake/utility_meshes.py Show resolved Hide resolved
@ksagiyam ksagiyam force-pushed the ksagiyam/add_periodic_hex_mesh branch from 8ff54b5 to 7b5c3c0 Compare December 19, 2024 16:01
Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

One trivial thing. With that please consider this as approved by me.

firedrake/utility_meshes.py Outdated Show resolved Hide resolved
@ksagiyam ksagiyam merged commit 6f8d49d into master Dec 19, 2024
20 checks passed
@ksagiyam ksagiyam deleted the ksagiyam/add_periodic_hex_mesh branch December 19, 2024 22:05
@ksagiyam
Copy link
Contributor Author

Thanks, Connor.

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.

3 participants