46.3. Creating the Shield
Table of Contents
Choosing the Role of the Shield
In this example the shield is the central object that attenuates photons between the source and a detector. Its role is simple: it partially blocks or transmits the radiation so that you can measure transmission and compare it with the exponential attenuation law in a later section. When you create the shield you must decide where it sits relative to the source and detector, what shape you will use, and how thick it will be along the beam direction. All of these choices affect how easily you can interpret the transmission results.
For a first shielding example it is easiest to work in a simple, almost one dimensional geometry. Place a monoenergetic gamma source on one side, a detector region on the other side, and the shield in between, all along the same axis. In GATE this typically means aligning everything along the $z$ axis or the $x$ axis. The shield then becomes a slab of material with a known thickness $d$ that photons must cross before reaching the detector.
It is important to treat the shield as a separate logical volume, with its own name and material, so that you can change only the shielding properties without touching the rest of the geometry later in the project.
Choosing a Simple Shield Shape
For attenuation studies you do not need a complex shape. A rectangular slab is usually the most convenient choice. In GATE, and in the underlying Geant4, this is implemented with a box solid. A box is defined by its half lengths along each axis, so if you want a slab of thickness $d$ along $z$, you will define a box with half length $d/2$ in the $z$ direction and much larger half lengths in $x$ and $y$ so that the beam is always completely inside the shield cross section.
You can think of the slab as an infinite plane from the point of view of the beam. To approximate that in a finite world, make the shield cross section several times larger than the field size of your beam and larger than the sensitive detector region behind it. For instance, if your detector covers a 10 cm by 10 cm area, you might create a shield with 20 cm by 20 cm transverse dimensions so that edge effects are minimized.
In Python with GATE you will typically create a volume dictionary for the shield. The important properties are the type set to a box geometry, the full or half dimensions along $x$, $y$, $z$, the parent volume which is usually the world, the material which you will select in the next step of the project, and the placement position.
Placing the Shield in the Geometry
Once you have a shield shape, you must place it between the source and the detector. The goal is to create a clean beam that passes through the shield and then is counted by your detector or by an actor that records transmitted photons. To achieve this you need a clear coordinate convention. Suppose you place the source at negative $z$, the detector at positive $z$, and the world center at the origin. The shield slab then resides somewhere near the origin.
If the shield thickness is $d$, and you want its central plane at $z = 0$, then you position the shield volume with its center at $z = 0$. The front surface is then at $z = -d/2$ and the back surface at $z = +d/2$. Every photon that travels from the source at negative $z$ to the detector at positive $z$ along the $z$ axis must traverse exactly the same path length $d$ inside the shield. This is ideal for a simple attenuation measurement.
In practice you might want some distance between the source and the shield, and between the shield and the detector, so that the beam is not too divergent and you can still treat it as approximately parallel. For a point source, the farther away it is, the more parallel the rays are over the limited detector area. For this reason, place the source several times the shield size away from the shield. Likewise, place the detector some distance downstream so that scattered photons have space to leave the beam before reaching the sensitive region, if you want to focus mainly on primary transmission.
Consistent placement is important, because later you will compute the shield thickness explicitly and compare your measured transmission with the analytical formula.
For a slab-shaped shield used in attenuation studies, always place it so that the beam traverses a well defined thickness $d$ for all photons that you will count. Misalignment between source, shield, and detector leads to mixed path lengths and incorrect transmission estimates.
Defining Shield Thickness and Field Coverage
The key geometric parameter for a shielding study is the shield thickness along the beam direction. In this project you will vary this thickness to observe how the transmission changes. This means you must define the shield in a way that allows you to change the thickness easily, preferably through a single parameter.
A convenient approach is to store the full thickness in a variable in your Python script, such as shield_thickness = 5 cm, and then use that variable to set the box dimension along the beam axis. The other two dimensions can be defined as shield_xy = 20 cm, for example, and you keep these fixed for all runs so that only the thickness changes between simulations.
You must also ensure that the shield is larger than the beam cross section. If your beam is modeled as a parallel beam with a certain radius or a finite field size, choose the shield transverse dimensions to be at least two or three times larger. If your source is a point with isotropic emission and you only count photons that pass through a small detector region, again size the shield so that all counted photons necessarily pass through its material. This preserves the simple geometry needed for exponential attenuation.
The effective path length for each photon is then equal to the shield thickness, provided that the beam is approximately perpendicular to the shield surface. If you tilt the shield or spread the beam over an angle, the path length is no longer constant and the measured transmission will not follow a single exponential in a straightforward way. For beginner studies it is best to keep the shield normal to the beam direction and to avoid rotations.
Separate Shield Volumes for Multiple Materials
In later parts of this practical example you will change the material of the shield to study different attenuators, such as lead, aluminum, or concrete. There are two main strategies for doing this in GATE. You can either change the material of the same shield volume between simulation runs, or you can create multiple shield volumes and enable only one at a time.
If you are running separate simulations for each material, it is generally simpler to keep a single shield volume and change its material property through a configuration parameter or a command line argument. You can define shield_material = "G4_Pb" or shield_material = "G4_CONCRETE" in different runs. This ensures the geometry, the thickness, and the alignment remain exactly the same, and only the physics of the attenuating medium changes.
An alternative is to define several overlapping shield volumes in the same location, each with a different material, and then selectively enable only one by setting a visibility or active flag. For beginners this is less transparent and risks geometry overlaps if volumes are accidentally active at the same time. For this course it is better to avoid overlapping shields and to keep a single, well defined shield volume whose material and thickness are controlled by parameters.
Keep only one active shield volume in the beam path. Avoid overlapping shields with different materials in the same region, because this creates geometry overlaps that can invalidate your attenuation results.
Checking the Shield Placement with Visualization
After defining the shield volume, its dimensions, material, and position, it is strongly recommended to inspect the geometry visually before you run long simulations. Use GATE visualization tools to display the world, source, shield, and detector. Rotate and zoom the view until you can see clearly that the beam will cross the shield slab and then reach the detector.
Look for the following features. The shield should sit exactly between the source and detector along the beam axis. The shield transverse size should fully cover the detector and the beam field. There should be no obvious overlaps with other volumes. The thickness should visually match your expectations relative to other objects.
If you find that the beam would miss part of the shield, or that part of the detector lies outside the shield projection, adjust the shield size or position until the coverage is complete. This step prevents subtle geometry mistakes that would otherwise appear later as inconsistent transmission values or unexpected scatter patterns.
In summary, creating the shield for this project consists of choosing a simple slab shape, defining its thickness and transverse dimensions, placing it between a source and detector so that all counted photons travel the same path length, and preparing the geometry so that the material and thickness can be varied in later sections.
Views: 12
KAHIBARO