28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4<br />

ADVANCED <strong>EGS5</strong> USER <strong>CODE</strong>S<br />

In this chapter we present user codes which demonstrate some of the more advanced features<br />

and capabilities of the <strong>EGS5</strong> Code System. We will show how to transport charged particles in<br />

a magnetic field and how to produce and transport fluorescent photons following a photoelectric<br />

interaction. A generalized multi-cylinder, multi-slab geometryis presented in which both splitting<br />

and leading particle biasing are used in order to reduce the variance and speed up the calculation of<br />

energy deposition in accelerator targets and surrounding devices. We also show how to incorporate<br />

into <strong>EGS5</strong> combinatorial geometry(CG) subprograms derived from MORSE-CG.<br />

All of the user codes presented here are provided with the <strong>EGS5</strong> distribution and the reader<br />

should study the appropriate program listings themselves in order to gain a more complete understanding<br />

of what they have been designed to do.<br />

4.1 UCCYL - Cylinder-Slab Geometry and Importance Sampling<br />

4.1.1 Generalized Multi-Cylinder, Multi-Slab Geometry<br />

The user code UCCYL provides an example of how to set up a geometry consisting of multiple<br />

cylindrical shells that are orthogonal to multiple slabs. The groundwork for this generalized scheme<br />

was provided in Tutorials 6 and 7 of Chapter 3, where the geometry subprograms PLANE1 and<br />

PLAN2P were presented. Several other geometry routines are required in the present case, including<br />

CYLNDR, which is the cylinder analog to PLANE1. For a description of the implementation and<br />

use of these and other auxiliary geometry routines provided with <strong>EGS5</strong>, the user is referred to<br />

the document “How to Code Geometry: Writing Subroutine HOWFAR,” which is part of the <strong>EGS5</strong><br />

distribution.<br />

188

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

Saved successfully!

Ooh no, something went wrong!