10.07.2015 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.

Chapter 4ADVANCED <strong>EGS5</strong> USER <strong>CODE</strong>SIn this chapter we present user codes which demonstrate some of the more advanced featuresand capabilities of the <strong>EGS5</strong> Code System. We will show how to transport charged particles ina magnetic field and how to produce and transport fluorescent photons following a photoelectricinteraction. A generalized multi-cylinder, multi-slab geometryis presented in which both splittingand leading particle biasing are used in order to reduce the variance and speed up the calculation ofenergy deposition in accelerator targets and surrounding devices. We also show how to incorporateinto <strong>EGS5</strong> combinatorial geometry(CG) subprograms derived from MORSE-CG.All of the user codes presented here are provided with the <strong>EGS5</strong> distribution and the readershould study the appropriate program listings themselves in order to gain a more complete understandingof what they have been designed to do.4.1 UCCYL - Cylinder-Slab Geometry and Importance Sampling4.1.1 Generalized Multi-Cylinder, Multi-Slab GeometryThe user code UCCYL provides an example of how to set up a geometry consisting of multiplecylindrical shells that are orthogonal to multiple slabs. The groundwork for this generalized schemewas provided in Tutorials 6 and 7 of Chapter 3, where the geometry subprograms PLANE1 andPLAN2P were presented. Several other geometry routines are required in the present case, includingCYLNDR, which is the cylinder analog to PLANE1. For a description of the implementation anduse of these and other auxiliary geometry routines provided with <strong>EGS5</strong>, the user is referred tothe document “How to Code Geometry: Writing Subroutine HOWFAR,” which is part of the <strong>EGS5</strong>distribution.188

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

Saved successfully!

Ooh no, something went wrong!