28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

necessary geometry input. The following data, which is in the familiar MORSE-CG format [168]<br />

and which is included as file ucsampcg.data of the <strong>EGS5</strong> distribution, is used by UCSAMPCG<br />

to model with CG the same geometry treated by UCSAMPL5 in a non-CG implementation.<br />

RPP 1 -1.5 1.5 -1.5 1.5 0.0<br />

3.0<br />

RPP 2 -2.5 2.5 -2.5 2.5 -1.0<br />

4.0<br />

END<br />

Z1 +1<br />

Z2 +2 -1<br />

END<br />

1 0<br />

The HOWFAR routine supplied with UCSAMPCG is general and can be used for any CG geometry<br />

which can be specified by the five types of bodies listed above. All that is required of the user is<br />

the creation of an appropriately formatted input data file. It must be noted, though, that because<br />

of the computational overhead introduced in generalizing HOWFAR, for problems involving simple,<br />

regular geometries (such as cylindrical slabs or rectangular pixels), <strong>EGS5</strong> user codes using CG will<br />

execute 1-2 times more slowly than user codes tailored to the particular problem geometries. (This<br />

is a substantial improvement relative to the CG implementation in EGS4, which was “significantly<br />

less efficient than the macro-geometry methods” [171].) For many problems, the greatly facilitated<br />

ease in setting up the simulation geometry with CG will more than offset the slight penalty in<br />

computational efficiency.<br />

To facilitate the construction of CG geometry input files and to provide for the display of particle<br />

trajectories from <strong>EGS5</strong> simulations, Namito and co-workers [123] developed a stand-alone visual<br />

interface program, cgview, which is freely distributed on the Internet at:<br />

http://rcwww.kek.jp/research/egs/kek/cgview/.<br />

The geometry used in UCSAMPCG and some sample output particle trajectories drawn with<br />

cgview are shown in Fig. 4.5.<br />

Cgview can also be used to assist in the construction of CG input data files. For geometries<br />

with simple shapes, users can select and position volume elements visually using tools provided<br />

with cgview, and later have the program create output data files in the correct MORSE-CG format.<br />

Additionally, the integrity of existing CG input data files can be checked through the use of the<br />

cgview pseudo particle feature. This function allows the user to specify locations and directions for<br />

pseudo source particles, which are then tracked by cgview through the input geometry, searching<br />

for regions of overlapping and undefined zones. Thus, errors in geometry specification may be<br />

corrected prior to being used in Monte Carlo simulations.<br />

199

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!