-
Notifications
You must be signed in to change notification settings - Fork 7
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
Replace missing block for outside of sphere surface #15
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
516d0ac
Adding block for positive side of spheres and adding a nested spheres…
pshriwise 983bb3d
Adding openmc id reset decorator
pshriwise 4d96968
Update test/test_local.py
pshriwise 4ff7f5a
Update test/test_local.py
pshriwise 5ead7f1
Updating the nested spheres gold file now that they are actually nest…
pshriwise e2a95d3
Ensuring all tests are run in CI
pshriwise File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
set echo off | ||
set info off | ||
set warning off | ||
graphics pause | ||
set journal off | ||
set default autosize off | ||
#CELL 3 | ||
sphere radius 20.0 | ||
#{ id1 = Id("body") } | ||
brick x 500 y 500 z 500 | ||
#{ id2 = Id("body") } | ||
subtract body { id1 } from body { id2 } | ||
sphere radius 30.0 | ||
#{ id3 = Id("body") } | ||
#{ id4 = Id("body") } | ||
intersect body { id2 } { id3 } | ||
#{ id5 = Id("body") } | ||
#{id6 = ( id4 == id5 ) ? id3 : id5} | ||
body { id6 } name "Cell_3" | ||
group "mat:void" add body { id6 } | ||
#CELL 2 | ||
sphere radius 10.0 | ||
#{ id7 = Id("body") } | ||
brick x 500 y 500 z 500 | ||
#{ id8 = Id("body") } | ||
subtract body { id7 } from body { id8 } | ||
sphere radius 20.0 | ||
#{ id9 = Id("body") } | ||
#{ id10 = Id("body") } | ||
intersect body { id8 } { id9 } | ||
#{ id11 = Id("body") } | ||
#{id12 = ( id10 == id11 ) ? id9 : id11} | ||
body { id12 } name "Cell_2" | ||
group "mat:void" add body { id12 } | ||
#CELL 1 | ||
sphere radius 10.0 | ||
#{ id13 = Id("body") } | ||
body { id13 } name "Cell_1" | ||
group "mat:void" add body { id13 } | ||
graphics flush | ||
set default autosize on | ||
zoom reset | ||
set echo on | ||
set info on | ||
set warning on | ||
set journal on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the order that the cells are listed in going to have an impact? I was expecting to see the outputs in the cubit journal file ordered by cell ID, but it looks reversed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could also be worth tacking on a vacuum boundary condition to the outer sphere so that it makes a viable geometry that could ostensibly be run in openmc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe they'll be generated in the order they appear in the iterable passed to the Geometry object. Corresponding IDs on the volume objects in the resulting CAD would be great, but might be difficult to manage based on how Cubit handles ID spaces. An easier short-term solution would be to place each cell in it's own group with the ID in the name for reference to the original model.
Agreed that it would be nice and I'm happy to include those changes here. Right now I'm planning on spending my time covering and verifying more geometry capabilities in the test suite (hopefully correctly in the future) than every test case being runnable in OpenMC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super thanks!