Skip to content

Conversation

@meltawila
Copy link
Contributor

closes #1255

@moosebuild
Copy link
Collaborator

moosebuild commented Dec 6, 2025

Job Documentation, step Sync to remote on 7ef0664 wanted to post the following:

View the site here

This comment will be updated on new commits.

@moosebuild
Copy link
Collaborator

Job Test nekRS on 5a186ff : invalidated by @meltawila

@moosebuild
Copy link
Collaborator

moosebuild commented Dec 6, 2025

Job Coverage, step Generate coverage on 7ef0664 wanted to post the following:

Coverage

06d42a #1256 7ef066
Total Total +/- New
Rate 93.08% 93.08% -0.00% 100.00%
Hits 9378 9430 +52 56
Misses 697 701 +4 0

Diff coverage report

Full coverage report

This comment will be updated on new commits.

@aprilnovak
Copy link
Collaborator

Since @lewisgross1296 is planning to use cell rotations, how about we generalize this object so that it does both translations and rotations? I'm thinking in line of the TransformGenerator mesh generator which does both translations and rotations. The input syntax could be something like

type = OpenMCCellTransform
transform_type = rotation # or translation
vector_value = 'pp_x pp_y pp_z'

@meltawila meltawila marked this pull request as draft December 7, 2025 18:57
@meltawila meltawila changed the title Adding OpenMCCellTranslator Adding OpenMCCellTransform Dec 8, 2025
@meltawila meltawila marked this pull request as ready for review December 8, 2025 04:43
params.addParam<MooseEnum>("transform_type",
transform_type,
"Type of transform to apply: 'translation' (dx,dy,dz) or 'rotation'"
"(φ, θ, ψ) in degrees.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

do these symbols show up correctly in the documentation when compiled? also it may be clearer to say rotation angles about x, y, z because not everyone is consistent about these symbols

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this follows the notation listed in the openmc.Cell documentation. I agree that there's so many different versions of which angles are rotating about which axis over internet and textbooks, so it might be clearer to call them rot_x rot_y and rot_z? At the very least, we should reference the openmc.Cell documentation and make sure it's consistent with it

Copy link
Contributor Author

@meltawila meltawila Dec 19, 2025

Choose a reason for hiding this comment

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

The symbols show up correctly in the documentation, and yes I wanted to be consistent with OpenMC documentation but lmk if you prefer otherwise. The "the rotation angles in degrees about x, y, and z axes." description is already in docs. under example input syntax.

https://mooseframework.inl.gov/cardinal/docs/PRs/1256/site/source/userobjects/OpenMCCellTransform.html

params.addParam<MooseEnum>("transform_type",
transform_type,
"Type of transform to apply: 'translation' (dx,dy,dz) or 'rotation'"
"(φ, θ, ψ) in degrees.");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this follows the notation listed in the openmc.Cell documentation. I agree that there's so many different versions of which angles are rotating about which axis over internet and textbooks, so it might be clearer to call them rot_x rot_y and rot_z? At the very least, we should reference the openmc.Cell documentation and make sure it's consistent with it

@meltawila
Copy link
Contributor Author

The VTB test failure is unrelated

@moosebuild
Copy link
Collaborator

Job Test VTB on f8908b8 : invalidated by @meltawila

Copy link
Contributor

@lewisgross1296 lewisgross1296 left a comment

Choose a reason for hiding this comment

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

Nothing major, just some more thoughts I had

@moosebuild
Copy link
Collaborator

Job Precheck, step Clang format on a3af5f8 wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/cardinal/docs/PRs/1256/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format 548ceb7393a15cd970aeed75cf8805df38212c99

@meltawila meltawila force-pushed the translate_openmc_cells branch from 5bd9b7b to 7ef0664 Compare January 6, 2026 13:59
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.

Control OpenMC universe translations

4 participants