Skip to content

Conversation

cn-skywalker
Copy link
Contributor

@cn-skywalker cn-skywalker commented Sep 10, 2025

Description

This pull request is a continuation of #3516 .

The original PR by @liangjg introduced a valuable new module, but it had merge conflicts with the latest main branch. I have resolved these conflicts in this branch.

Once this PR is merged, the original PR #3516 can be closed as its work is completed here.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

liangjg and others added 8 commits August 3, 2025 17:13
Updates the documentation for the geometry format to include new
attributes for TRISO particle and virtual lattice handling. These
attributes specify whether a cell contains a TRISO particle, whether
a virtual lattice is used, and the lattice's shape if applicable.
Introduces functionality to calculate distances and locate cells within virtual lattice geometries. Refactors existing geometry handling logic to reduce code duplication and improve maintainability.

Key updates include:
- Addition of `distance_in_virtual_lattice` and `find_cell_in_virtual_lattice` methods for specialized handling.
- Integration of virtual lattice checks in standard cell distance computations.
- Refactoring of repetitive code in surface crossing handlers for improved clarity.

Enhances support for TRISO particle geometries within virtual lattices, ensuring accurate material and cell identification during particle transport.
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