Skip to content

Commit 5ead7f1

Browse files
committed
Updating the nested spheres gold file now that they are actually nested spheres.
1 parent 4ff7f5a commit 5ead7f1

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

test/gold/nested_spheres.jou

+27-9
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,38 @@ graphics pause
55
set journal off
66
set default autosize off
77
#CELL 3
8-
sphere radius 30.0
8+
sphere radius 20.0
99
#{ id1 = Id("body") }
10-
body { id1 } name "Cell_3"
11-
group "mat:void" add body { id1 }
10+
brick x 500 y 500 z 500
11+
#{ id2 = Id("body") }
12+
subtract body { id1 } from body { id2 }
13+
sphere radius 30.0
14+
#{ id3 = Id("body") }
15+
#{ id4 = Id("body") }
16+
intersect body { id2 } { id3 }
17+
#{ id5 = Id("body") }
18+
#{id6 = ( id4 == id5 ) ? id3 : id5}
19+
body { id6 } name "Cell_3"
20+
group "mat:void" add body { id6 }
1221
#CELL 2
22+
sphere radius 10.0
23+
#{ id7 = Id("body") }
24+
brick x 500 y 500 z 500
25+
#{ id8 = Id("body") }
26+
subtract body { id7 } from body { id8 }
1327
sphere radius 20.0
14-
#{ id2 = Id("body") }
15-
body { id2 } name "Cell_2"
16-
group "mat:void" add body { id2 }
28+
#{ id9 = Id("body") }
29+
#{ id10 = Id("body") }
30+
intersect body { id8 } { id9 }
31+
#{ id11 = Id("body") }
32+
#{id12 = ( id10 == id11 ) ? id9 : id11}
33+
body { id12 } name "Cell_2"
34+
group "mat:void" add body { id12 }
1735
#CELL 1
1836
sphere radius 10.0
19-
#{ id3 = Id("body") }
20-
body { id3 } name "Cell_1"
21-
group "mat:void" add body { id3 }
37+
#{ id13 = Id("body") }
38+
body { id13 } name "Cell_1"
39+
group "mat:void" add body { id13 }
2240
graphics flush
2341
set default autosize on
2442
zoom reset

0 commit comments

Comments
 (0)