-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from openmc-dev/fix_plane
Plane arguments correction
- Loading branch information
Showing
3 changed files
with
111 additions
and
6 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
set echo off | ||
set info off | ||
set warning off | ||
graphics pause | ||
set journal off | ||
set default autosize off | ||
#CELL 1 | ||
create surface rectangle width 1000 zplane | ||
#{ id1 = Id("surface") } | ||
#{ id2 = Id("body") } | ||
# n3 0.7071067811865475 -0.7071067811865475 0.0 | ||
Rotate body { id2 } about 0 0 0 direction 0.7071067811865475 -0.7071067811865475 0.0 Angle -90.0 | ||
body { id2 } move -3.5355339059327373 -3.5355339059327373 -0.0 | ||
brick x 500 y 500 z 500 | ||
#{ id3 = Id("body") } | ||
section body { id3 } with surface { id1 } reverse | ||
del surface { id1 } | ||
create surface rectangle width 1000 zplane | ||
#{ id4 = Id("surface") } | ||
#{ id5 = Id("body") } | ||
# n3 0.7071067811865475 -0.7071067811865475 0.0 | ||
Rotate body { id5 } about 0 0 0 direction 0.7071067811865475 -0.7071067811865475 0.0 Angle -90.0 | ||
body { id5 } move 3.5355339059327373 3.5355339059327373 0.0 | ||
brick x 500 y 500 z 500 | ||
#{ id6 = Id("body") } | ||
section body { id6 } with surface { id4 } | ||
del surface { id4 } | ||
#{ id7 = Id("body") } | ||
intersect body { id3 } { id6 } | ||
#{ id8 = Id("body") } | ||
#{id9 = ( id7 == id8 ) ? id6 : id8} | ||
create surface rectangle width 1000 zplane | ||
#{ id10 = Id("surface") } | ||
#{ id11 = Id("body") } | ||
# n3 0.7071067811865475 0.0 0.0 | ||
Rotate body { id11 } about 0 0 0 direction 0.7071067811865475 0.0 0.0 Angle -45.0 | ||
body { id11 } move -0.0 -3.5355339059327373 -3.5355339059327373 | ||
brick x 500 y 500 z 500 | ||
#{ id12 = Id("body") } | ||
section body { id12 } with surface { id10 } reverse | ||
del surface { id10 } | ||
#{ id13 = Id("body") } | ||
intersect body { id9 } { id12 } | ||
#{ id14 = Id("body") } | ||
#{id15 = ( id13 == id14 ) ? id12 : id14} | ||
create surface rectangle width 1000 zplane | ||
#{ id16 = Id("surface") } | ||
#{ id17 = Id("body") } | ||
# n3 0.7071067811865475 0.0 0.0 | ||
Rotate body { id17 } about 0 0 0 direction 0.7071067811865475 0.0 0.0 Angle -45.0 | ||
body { id17 } move 0.0 3.5355339059327373 3.5355339059327373 | ||
brick x 500 y 500 z 500 | ||
#{ id18 = Id("body") } | ||
section body { id18 } with surface { id16 } | ||
del surface { id16 } | ||
#{ id19 = Id("body") } | ||
intersect body { id15 } { id18 } | ||
#{ id20 = Id("body") } | ||
#{id21 = ( id19 == id20 ) ? id18 : id20} | ||
create surface rectangle width 1000 zplane | ||
#{ id22 = Id("surface") } | ||
#{ id23 = Id("body") } | ||
# n3 0.0 -0.7071067811865475 0.0 | ||
Rotate body { id23 } about 0 0 0 direction 0.0 -0.7071067811865475 0.0 Angle -45.0 | ||
body { id23 } move -3.5355339059327373 -0.0 -3.5355339059327373 | ||
brick x 500 y 500 z 500 | ||
#{ id24 = Id("body") } | ||
section body { id24 } with surface { id22 } reverse | ||
del surface { id22 } | ||
#{ id25 = Id("body") } | ||
intersect body { id21 } { id24 } | ||
#{ id26 = Id("body") } | ||
#{id27 = ( id25 == id26 ) ? id24 : id26} | ||
create surface rectangle width 1000 zplane | ||
#{ id28 = Id("surface") } | ||
#{ id29 = Id("body") } | ||
# n3 0.0 -0.7071067811865475 0.0 | ||
Rotate body { id29 } about 0 0 0 direction 0.0 -0.7071067811865475 0.0 Angle -45.0 | ||
body { id29 } move 3.5355339059327373 0.0 3.5355339059327373 | ||
brick x 500 y 500 z 500 | ||
#{ id30 = Id("body") } | ||
section body { id30 } with surface { id28 } | ||
del surface { id28 } | ||
#{ id31 = Id("body") } | ||
intersect body { id27 } { id30 } | ||
#{ id32 = Id("body") } | ||
#{id33 = ( id31 == id32 ) ? id30 : id32} | ||
body { id33 } name "Cell_1" | ||
group "mat:void" add body { id33 } | ||
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