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

Quadric surface small fixes #18

Merged
merged 3 commits into from
Nov 22, 2024
Merged

Conversation

fnovais11
Copy link
Contributor

I noticed a few problems when I was dealing with quadric surface types. The radius was off, and I tracked down some of the problems that were fixed by a small correction to the gqs.py that were affecting the calculation of radius in the rotation_to_axis_angle function.

@fnovais11 fnovais11 changed the base branch from main to refactor November 22, 2024 02:57
@fnovais11 fnovais11 changed the base branch from refactor to main November 22, 2024 02:57
@@ -58,7 +58,7 @@ def characterize_general_quadratic( surface ): #s surface

Aai = np.linalg.pinv( Aa )

C = Aai * B
C = np.dot(Aai, B)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good good catch. Thank you

Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

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

A small update providing names for the eigenvalues and eigenvectors as they come out of the numpy call for clarity and I think this looks good. Thank you for the corrections @fnovais11.

@pshriwise pshriwise merged commit a8eaed8 into openmc-dev:main Nov 22, 2024
1 check passed
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