PENELOPE 2003 - OECD Nuclear Energy Agency
PENELOPE 2003 - OECD Nuclear Energy Agency
PENELOPE 2003 - OECD Nuclear Energy Agency
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5.7. A short tutorial 173<br />
MODULE ( )<br />
1111111111111111111111111111111111111111111111111111111111111111<br />
OMEGA=(+0.000000000000000E+00, 0) DEG (DEFAULT=0.0)<br />
THETA=(+0.000000000000000E+00, 0) DEG (DEFAULT=0.0)<br />
PHI=(+0.000000000000000E+00, 0) RAD (DEFAULT=0.0)<br />
X-SHIFT=(+0.000000000000000E+00, 0) (DEFAULT=0.0)<br />
Y-SHIFT=(+0.000000000000000E+00, 0) (DEFAULT=0.0)<br />
Z-SHIFT=(+0.000000000000000E+00, 0) (DEFAULT=0.0)<br />
0000000000000000000000000000000000000000000000000000000000000000<br />
INCLUDE<br />
FILE= (filename.ext)<br />
0000000000000000000000000000000000000000000000000000000000000000<br />
Then, to generate a new element, we just duplicate the corresponding data set, modify<br />
the parameter values and eliminate the lines that are unnecessary (i.e. those of parameters<br />
that take their default values). Of course, the defining data set must be placed<br />
before the end-line. The progressing geometry can be visualized with gview2d as<br />
soon as the first complete body has been defined. If gview2d stops before entering<br />
the graphics mode, the geometry definition is incorrect and we should have a look at<br />
the GEOMETRY.REP file to identify the problem. Normally, the conflicting parameter or<br />
element appears in the last line of this file.<br />
The basic elements of the geometry definition are quadric surfaces. These can be<br />
visualized by using the following simple file, which defines the inner volume of a reduced<br />
quadric as a single body,<br />
----------------------------------------------------------------<br />
Visualization of reduced quadric surfaces.<br />
Define the desired quadric (surface 1) by entering its indices.<br />
The region with side pointer -1 (inside the quadric) corresponds<br />
to MATERIAL=1.<br />
0000000000000000000000000000000000000000000000000000000000000000<br />
SURFACE ( 1) Reduced quadric. One sheet hyperboloid.<br />
INDICES=( 1, 1,-1, 0,-1)<br />
0000000000000000000000000000000000000000000000000000000000000000<br />
BODY ( 1) The interior of the quadric.<br />
MATERIAL( 1)<br />
SURFACE ( 1), SIDE POINTER=(-1)<br />
0000000000000000000000000000000000000000000000000000000000000000<br />
END 0000000000000000000000000000000000000000000000000000000<br />
Notice that, in this case, the body is infinite in extent. There is no objection to using<br />
infinite bodies, as long as the enclosure contains all material bodies. When only a single<br />
body is defined, pengeom identifies it as the enclosure, and this requirement is met.<br />
Otherwise, we must define a proper enclosure (since all bodies and modules must have<br />
a common ancestor).<br />
The following example describes a sphere with an inner arrow (fig. 5.2):<br />
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
Sphere of 5 cm radius with an arrow.<br />
0000000000000000000000000000000000000000000000000000000000000000<br />
SURFACE ( 1) PLANE Z=4.25<br />
INDICES=( 0, 0, 0, 1,-1)