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

PMT Factory changes to accomodate mesh generation. #123

Merged

Conversation

JamesJieranShen
Copy link
Contributor

This PR includes modifications to the PMT Factories that allows triangulated geometries to be more easily generated:

  • There exist a "gap" volume in the PMT factories to avoid volume overlaps between the two inner volumes (one covered by photocathode, the other covered in mirror). This gap results in cylinders of very small height, resulting in numerical precision issues during mesh generation. The gap width is adjusted from 1e-07 to 1e-03 mm such that it is small enough to not greatly alter the PMT geometry, but alleviates the precision issues.

  • The revolution PMT geometry currently has overlap issues if no datapoint is specifically set at z=0, since there is no check in Z coordinate position when the inner volume is split in half. A check is added to insert an interpolated datapoint at z=0, if needed.

@tannerbk tannerbk merged commit 94634ae into rat-pac:main Mar 21, 2024
2 checks passed
@JamesJieranShen JamesJieranShen deleted the pr/pmt-factory-adjustments-for-meshgen branch November 12, 2024 23:31
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.

2 participants