-
Notifications
You must be signed in to change notification settings - Fork 6
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 #15 from pshriwise/nested-spheres
Replace missing block for outside of sphere surface
- Loading branch information
Showing
4 changed files
with
67 additions
and
1 deletion.
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