Difference between revisions of "CodyMilne G4Proj"

From New IAC Wiki
Jump to navigation Jump to search
m
 
(76 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
=Photon Energy deposition in a pure Ge crystal=
 
=Photon Energy deposition in a pure Ge crystal=
  
 +
Here is the mass attenuation cross sections for Germanium ------ [[File:massattenuation.gif | 200 px]]
  
Determine the deposition of photons ranging in energy from 10 eV to 3 MeV in a pure Germanium crystal assuming an infinite block.
+
Here is the total photon attenuation for Germanium ------------- [[File:photoattenuationGe.png | 200 px]]
  
 +
Here is the range of electrons in Ge as a function of energy --- [[File:eRangeGe.png | 200 px]]
  
 +
Perform a fit to the 2nd hit distribution using an exponential fitting function.  Do this for 100keV, 500keV, 1MeV, 3Mev and for this test, please run some 10 MeV gammas.
 +
—the result of the fit should be equal to the mass attenuation coefficient multiplied by the density of Ge.  Therefore, dividing the fit result by 5.323 yields the mass attenuation coefficient at each energy and we can compare them directly with the NIST database values for validation of the GEANT4 total cross sections and sampling.
  
Create file containing Photon Energy, ProcessID, step #, Energy Lost, Position for each step a photon takes through the Germanium crystal.
+
Using S2WN.Fit("expo");
 +
  I got for  
 +
  3MeV constant: -1.88934 and slope: -1.84926e-02 +/- 1.63709e-02.
 +
  1MeV: -2.852121 slope: -3.04127e-02 +/- 4.63910e-02
 +
  500k: -3.66350 slope: -4.25739e-02 +/- 1.10890e-01
 +
  Research shows this says these values are on a "log scale", not sure how exactly to read this.
  
Start with<math> E_{gamma}</math> = 500 keV 
+
=Simulation Set Up - Detector Construction =
 +
A pure block of 50x50x50cm Germanium is placed in front of a lead cylinder, inner radius 0.75cm, outer radius 50cm of height 55cm. There is a 1mmx1cm hole (made of Argon) from the center of the lead cask to the outside, pointed toward the middle of the Germanium crystal.
  
 +
[[File:CM_Detectorsetup.png | 200 px]]
  
[[File:CM_500keVDepE_012716]]
+
Photons are fired from a cylindrical gps from within the inner radius of the lead cask. This cylinder has a height of 40.25 cm and a radius of 0.5 cm. The goal of this gun is to simulate decay from a fuel rod on the inside of the lead cylinder. Angular cuts are made on the gun to limit wasteful gammas from being calculated. There is a phi (x direction) cut of 22 degrees, centered on the hole leading to the Germanium block, and a theta cut of about 45 degrees. The phi coincides with the 1mm side of the hole, and the theta coincides with the 1cm side of the hole.
  
{| border="1"  |cellpadding="20" cellspacing="0
+
=Energy Deposition=
|-
 
|  Date || Time
 
|-
 
|1/26/16||1 hour
 
|-
 
|1/27/16||1 hour
 
|-
 
|1/29/16||1 hour
 
|-
 
|}
 
  
==Runing Tipes==
+
Send photons from inside an infinite crystal at 100, 500, 1000, 3000 keV energy.  Add up all the energy loss and see if you get delta functions or a delta + tail because GEANT4 stopped taking the photon and thus the energy is not accounted for.
  
nohup ../exampleN02 run1.mac > /dev/null &
+
==100 keV==
 +
Start with <math> E_{gamma}</math> = 100 keV 
  
  
Divide canvas into 2 x 5
+
[[File:CM_100keVeLoss_2-7-2016.png | 200 px]]
  
 +
[[File:CM_100keVPOSZvsEVENTSNORM_2-14-2016.png | 200 px]]
 +
 +
Initial verification - first hit position distribution is consistent with published attenuation coefficient.
 +
 +
==500 keV==
 +
 +
Start with <math> E_{gamma}</math> = 500 keV 
 +
 +
Change units on Y-axis to Energy (eV?)
 +
 +
"No Backscattering"  Do another plot with momentum cut Pz>0
 +
 +
[[File:CM_500keVPOSZvsEVENTS_2-7-2016.png | 200 px]]
 +
 +
Initial verification - The first gamma interaction distribution is consistent with the published Ge mass attenuation coefficient at 500keV (0.08212) and a Ge density of 5.323.
 +
 +
[[File:CM_500keVPOSZvsEVENTScut_2-7-2016.png | 200 px]]
 +
 +
[[File:CM_500keVPOSZvsEVENTSNORM_2-14-2016.png | 200 px]]
 +
 +
[[File:CM_500keVPOSZvsPOSXColz_2-14-2016.gif | 200 px]]
 +
 +
Are the 2-D plots energy weights (normalized)?  Set the Z-axis color range by hand in cold.
 +
 +
[[File:CM_500keVeLoss_2-7-2016.png | 200 px]]
 +
 +
==1 MeV==
 +
Start with <math> E_{gamma}</math> = 1 MeV 
 +
 +
 +
[[File:CM_1MeVeLoss_2-7-2016.png | 200 px]]
 +
 +
[[File:CM_1MeVPOSZvsEVENTSNORM_2-14-2016.png | 200 px]]
 +
 +
Initial verification - first interaction is consistent with published attenuation coefficient.
 +
 +
==3 MeV==
 +
Start with <math> E_{gamma}</math> = 3 MeV 
 +
 +
 +
[[File:CM_13MeVeLoss_2-8-2016.png | 200 px]]
 +
[[File:CM_3MeVPOSZvsEVENTSNORM_2-14-2016.png | 200 px]]
 +
 +
Initial verification - first interaction distribution is consistent with published attenuation coefficient.
 +
 +
==10 MeV==
 +
This is looking at total energy deposition from the child particles in Germanium, from a incident gamma shot from within the crystal.
 +
 +
[[File:CM_10Menergydeposition_3-11-2016.png | 200 px]]
 +
[[File:CM_10Menergydepositionzoom_3-11-2016.png | 200 px]]
 +
 +
Confirmed, GEANT keeps track of all energy deposited in the crystal, with little error that scales with initial photon energy. Could be minor leakage of secondary photons.
 +
 +
==Running Types==
 +
 +
To submit batch job to minerve:
 +
  nohup ../exampleN02 run1.mac > /dev/null &
 +
 +
 +
For parallel processing on plexi:
 +
  Run
 +
  module load geant/geant4-10.2.0
 +
  when you first log in to set up the environment for Geant4
 +
  Use the command
 +
  G4make
 +
  when you configure your application (instead of 'cmake') to provide the necessary default options for Plexi.
 +
  To run:
 +
  salloc -n <number_of_processes> mpirun /absolute/path/to/your/application
  
  
 
[[User_talk:Foretony#CodyMilne_G4Proj]]
 
[[User_talk:Foretony#CodyMilne_G4Proj]]

Latest revision as of 19:35, 28 May 2016

Photon Energy deposition in a pure Ge crystal

Here is the mass attenuation cross sections for Germanium ------ Massattenuation.gif

Here is the total photon attenuation for Germanium ------------- PhotoattenuationGe.png

Here is the range of electrons in Ge as a function of energy --- ERangeGe.png

Perform a fit to the 2nd hit distribution using an exponential fitting function. Do this for 100keV, 500keV, 1MeV, 3Mev and for this test, please run some 10 MeV gammas. —the result of the fit should be equal to the mass attenuation coefficient multiplied by the density of Ge. Therefore, dividing the fit result by 5.323 yields the mass attenuation coefficient at each energy and we can compare them directly with the NIST database values for validation of the GEANT4 total cross sections and sampling.

Using S2WN.Fit("expo");

  I got for 
  3MeV constant: -1.88934 and slope: -1.84926e-02 +/- 1.63709e-02. 
  1MeV: -2.852121 slope: -3.04127e-02 +/- 4.63910e-02
  500k: -3.66350 slope: -4.25739e-02 +/- 1.10890e-01
  Research shows this says these values are on a "log scale", not sure how exactly to read this.

Simulation Set Up - Detector Construction

A pure block of 50x50x50cm Germanium is placed in front of a lead cylinder, inner radius 0.75cm, outer radius 50cm of height 55cm. There is a 1mmx1cm hole (made of Argon) from the center of the lead cask to the outside, pointed toward the middle of the Germanium crystal.

CM Detectorsetup.png

Photons are fired from a cylindrical gps from within the inner radius of the lead cask. This cylinder has a height of 40.25 cm and a radius of 0.5 cm. The goal of this gun is to simulate decay from a fuel rod on the inside of the lead cylinder. Angular cuts are made on the gun to limit wasteful gammas from being calculated. There is a phi (x direction) cut of 22 degrees, centered on the hole leading to the Germanium block, and a theta cut of about 45 degrees. The phi coincides with the 1mm side of the hole, and the theta coincides with the 1cm side of the hole.

Energy Deposition

Send photons from inside an infinite crystal at 100, 500, 1000, 3000 keV energy. Add up all the energy loss and see if you get delta functions or a delta + tail because GEANT4 stopped taking the photon and thus the energy is not accounted for.

100 keV

Start with [math] E_{gamma}[/math] = 100 keV


CM 100keVeLoss 2-7-2016.png

CM 100keVPOSZvsEVENTSNORM 2-14-2016.png

Initial verification - first hit position distribution is consistent with published attenuation coefficient.

500 keV

Start with [math] E_{gamma}[/math] = 500 keV

Change units on Y-axis to Energy (eV?)

"No Backscattering" Do another plot with momentum cut Pz>0

CM 500keVPOSZvsEVENTS 2-7-2016.png

Initial verification - The first gamma interaction distribution is consistent with the published Ge mass attenuation coefficient at 500keV (0.08212) and a Ge density of 5.323.

CM 500keVPOSZvsEVENTScut 2-7-2016.png

CM 500keVPOSZvsEVENTSNORM 2-14-2016.png

CM 500keVPOSZvsPOSXColz 2-14-2016.gif

Are the 2-D plots energy weights (normalized)? Set the Z-axis color range by hand in cold.

CM 500keVeLoss 2-7-2016.png

1 MeV

Start with [math] E_{gamma}[/math] = 1 MeV


CM 1MeVeLoss 2-7-2016.png

CM 1MeVPOSZvsEVENTSNORM 2-14-2016.png

Initial verification - first interaction is consistent with published attenuation coefficient.

3 MeV

Start with [math] E_{gamma}[/math] = 3 MeV


CM 13MeVeLoss 2-8-2016.png CM 3MeVPOSZvsEVENTSNORM 2-14-2016.png

Initial verification - first interaction distribution is consistent with published attenuation coefficient.

10 MeV

This is looking at total energy deposition from the child particles in Germanium, from a incident gamma shot from within the crystal.

CM 10Menergydeposition 3-11-2016.png CM 10Menergydepositionzoom 3-11-2016.png

Confirmed, GEANT keeps track of all energy deposited in the crystal, with little error that scales with initial photon energy. Could be minor leakage of secondary photons.

Running Types

To submit batch job to minerve:

  nohup ../exampleN02 run1.mac > /dev/null &


For parallel processing on plexi:

  Run
  module load geant/geant4-10.2.0
  when you first log in to set up the environment for Geant4
  Use the command
  G4make
  when you configure your application (instead of 'cmake') to provide the necessary default options for Plexi.
  To run:
  salloc -n <number_of_processes> mpirun /absolute/path/to/your/application


User_talk:Foretony#CodyMilne_G4Proj