Skip to content

Conversation

@ZoeRichter
Copy link
Collaborator

Summary of changes

This PR adds the "pour" functionality to ghastly, i.e., the ability to fill a core with pebbles. It uses a combination of OpenMC to pack cylindrical regions, and LAMMPS to both allow the pebbles to fall under gravity, and add any remaining pebbles needed to fill the core to the desired packing fraction.

It does this using a series of jinja2 templates, which automatically create a LAMMPS input file based on the parameters in the input file, which is a JSON file. There are example input files for ghastly both in the tests and examples directories.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Associated Issues and PRs

Checklist for Reviewers

Reviewers should use this link to get to the
Review Checklist before they begin their review.

@ZoeRichter ZoeRichter added Comp:Core This issue has to do with the main bulk of the code or document. (methods, main content) Difficulty:2-Challenging This issue may be complex or require specialized skills. Priority:3-Desired This work is important, but not urgent. Status:5-In Review This issue has been handled, and the solution is being reviewed. (probably as a PR) Type:Feature New feature or feature request labels Nov 18, 2024
@ZoeRichter ZoeRichter self-assigned this Nov 18, 2024
Copy link
Contributor

@LukeSeifert LukeSeifert left a comment

Choose a reason for hiding this comment

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

Overall, looks good! I had a couple comments, mostly on docstrings and some whitespace for pep8 formatting. I think if you run autopep8, it'll probably automatically catch a couple of my comments.

Copy link
Member

@nsryan2 nsryan2 left a comment

Choose a reason for hiding this comment

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

Hi Zoe! Lots of good work here, I have some minor consistency comments and questions.

Before I approve, I'd love to see Pep8 run on this PR. I noticed several instances of missing white space around math operations and other things that it won't like.

ZoeRichter and others added 2 commits November 19, 2024 14:09
Co-authored-by: LukeSeifert <44068471+LukeSeifert@users.noreply.github.com>
Co-authored-by: Nathan Ryan <nathansean0@gmail.com>
@ZoeRichter
Copy link
Collaborator Author

It looks like trusty ol' autopep8 changed some lines I didn't anticipate - give me a bit to fix them and push that commit.

@ZoeRichter
Copy link
Collaborator Author

I think I saved it - sorry folks!

Co-authored-by: Nathan Ryan <nathansean0@gmail.com>
Copy link
Member

@katyhuff katyhuff left a comment

Choose a reason for hiding this comment

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

Minor changes suggested, most can be handled by creating issues to be dealt with in the future. In fact, I'm going to list this as "approve" so that you can merge as soon you feel you have completed the essential tasks (line lengths, etc.) and created the issues recommended. I see no fatal flaws in this PR, just some things you might consider changing.

@ZoeRichter
Copy link
Collaborator Author

I believe I have either made issues for or fixed issues in new comments! (Thanks all)

Co-authored-by: Nathan Ryan <nathansean0@gmail.com>
@nsryan2 nsryan2 self-requested a review November 26, 2024 20:14
@ZoeRichter
Copy link
Collaborator Author

Oops - I missed a few comments because I missed some hidden comments when I when through. Let me make a commit for splitting up functions into smaller sections, and THEN I think I actually covered everything.

@nsryan2
Copy link
Member

nsryan2 commented Nov 26, 2024

@katyhuff do you have any insight on why Pep8speaks might not have checked this PR? That would have caught some of each of our comments.

ZoeRichter and others added 2 commits December 2, 2024 10:37
Co-authored-by: Nathan Ryan <nathansean0@gmail.com>
@nsryan2 nsryan2 merged commit b6333d2 into arfc:main Dec 2, 2024
@nsryan2 nsryan2 removed the Status:5-In Review This issue has been handled, and the solution is being reviewed. (probably as a PR) label Dec 2, 2024
@katyhuff katyhuff added this to the Prelim milestone Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Comp:Core This issue has to do with the main bulk of the code or document. (methods, main content) Difficulty:2-Challenging This issue may be complex or require specialized skills. Priority:3-Desired This work is important, but not urgent. Type:Feature New feature or feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get LAMMPS input and results in didymus repo Update to pytest Add tests and determine testing guideline/standard

4 participants