Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
BrachyMaterial.cc
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // Code developed by:
27 // S.Guatelli
28 //
29 // *******************************
30 // * *
31 // * BrachyMaterial.cc *
32 // * *
33 // *******************************
34 //
35 // $Id: BrachyMaterial.cc 100821 2016-11-02 15:21:34Z gcosmo $
36 //
37 #include "globals.hh"
38 #include "Randomize.hh"
39 #include "G4PhysicalConstants.hh"
40 #include "G4SystemOfUnits.hh"
41 #include "G4MaterialTable.hh"
44 #include "G4RunManager.hh"
45 #include "G4Element.hh"
46 #include "G4ElementTable.hh"
47 #include "BrachyMaterial.hh"
48 
50 {;}
51 
53 {;}
54 
56 {
57  // Define required materials
58 
59  G4double A; // atomic mass
60  G4double Z; // atomic number
61  G4double d; // density
62 
63  // General elements
64 
65  A = 1.01*g/mole;
66  G4Element* elH = new G4Element ("Hydrogen","H",Z = 1.,A);
67 
68  A = 14.01*g/mole;
69  G4Element* elN = new G4Element("Nitrogen","N",Z = 7.,A);
70 
71  A = 16.00*g/mole;
72 
73  G4Element* elO = new G4Element("Oxygen","O",Z = 8.,A);
74 
75  A=26.98*g/mole;
76  G4Element* elAl = new G4Element("Aluminum","Al", Z = 13.,A);
77 
78  A = 12.011*g/mole;
79  G4Element* elC = new G4Element("Carbon","C",Z = 6.,A);
80 
81  A = 22.99*g/mole;
82  G4Element* elNa = new G4Element("Sodium","Na",Z = 11.,A);
83 
84  A = 24.305*g/mole;
85  G4Element* elMg = new G4Element("Magnesium","Mg",Z = 12.,A);
86 
87  A = 30.974*g/mole;
88  G4Element* elP = new G4Element("Phosphorus","P",Z = 15.,A);
89 
90  A = 32.06*g/mole;
91  G4Element* elS = new G4Element("Sulfur","S",Z = 16.,A);
92 
93  A = 35.453*g/mole;
94  G4Element* elCl = new G4Element("Chlorine","Cl",Z = 17.,A);
95 
96  A = 39.098*g/mole;
97  G4Element* elK = new G4Element("Potassium","K",Z = 19.,A);
98 
99  A = 40.08*g/mole;
100  G4Element* elCa = new G4Element("Calcium","Ca",Z = 20.,A);
101 
102  A = 65.38*g/mole;
103  G4Element* elZn = new G4Element("Zinc","Zn",Z = 30.,A);
104 
105  A = 54.94*g/mole;
106  G4Element* elMn = new G4Element("Manganese","Mn",Z = 25.,A);
107 
108  A = 28.09*g/mole;
109  G4Element* elSi = new G4Element("Silicon","Si",Z = 14.,A);
110 
111  A = 52.00*g/mole;
112  G4Element* elCr = new G4Element("Chromium","Cr",Z = 24.,A);
113 
114  A = 58.70*g/mole;
115  G4Element* elNi = new G4Element("Nickel","Ni",Z = 28.,A);
116 
117  A = 55.85*g/mole;
118  G4Element* elFe = new G4Element("Iron","Fe",Z = 26.,A);
119 
120  A = 183.84* g/mole;
121  d = 19.3*g/cm3;
122  matW = new G4Material("Tungsten",Z = 74.,A,d);
123 
124  // Perspex, plexiglass, lucite
125  d = 1.19*g/cm3;
126  matplexiglass = new G4Material("Plexiglass",d,3);
127  matplexiglass->AddElement(elH,0.08);
128  matplexiglass->AddElement(elC,0.60);
129  matplexiglass->AddElement(elO,0.32);
130 
131  // Lead material
132  A = 207.19*g/mole;
133  Z = 82;
134  d = 11.35*g/cm3;
135  matPb = new G4Material("Lead",Z,A,d);
136 
137  // Iridium (Medical Physics, Vol 25, No 10, Oct 1998)
138  d = 22.42*g/cm3;
139  A = 191.96260*g/mole ;
140  Z = 77;
141  matir192 = new G4Material("Iridium",Z,A,d);
142 
143  //titanium
144  A = 47.88*g/mole;
145  d = 4.50*g/cm3;
146  Titanium = new G4Material("titanium" ,Z = 22.,A,d);
147 
148  // Air material
149  d = 1.290*mg/cm3;
150  matAir = new G4Material("Air",d,2);
151  matAir->AddElement(elN,0.7);
152  matAir->AddElement(elO,0.3);
153 
154  // Water
155  d = 1.000*g/cm3;
156  matH2O = new G4Material("Water",d,2);
157  matH2O->AddElement(elH,2);
158  matH2O->AddElement(elO,1);
160 
161  //soft tissue(http://www.nist.gov)
162  d = 1.0*g/cm3;
163  soft = new G4Material("tissue",d,13);
164  soft->AddElement(elH,0.104472);
165  soft->AddElement(elC,0.23219);
166  soft->AddElement(elN,0.02488);
167  soft->AddElement(elO,0.630238);
168  soft->AddElement(elNa,0.00113);
169  soft->AddElement(elMg,0.00013);
170  soft->AddElement(elP,0.00133);
171  soft->AddElement(elS,0.00199);
172  soft->AddElement(elCl,0.00134);
173  soft->AddElement(elK,0.00199);
174  soft->AddElement(elCa,0.00023);
175  soft->AddElement(elFe,0.00005);
176  soft->AddElement(elZn,0.00003);
177 
178  // Stainless steel (Medical Physics, Vol 25, No 10, Oct 1998)
179  d = 8.02*g/cm3 ;
180  matsteel = new G4Material("Stainless steel",d,5);
181  matsteel->AddElement(elMn, 0.02);
182  matsteel->AddElement(elSi, 0.01);
183  matsteel->AddElement(elCr, 0.19);
184  matsteel->AddElement(elNi, 0.10);
185  matsteel->AddElement(elFe, 0.68);
186 
187  //Define Stainless-steel-304 - Flexi source
188  d = 7.999*g/cm3 ;
189  mat304steel = new G4Material("Stainless steel 304",d,6);
190  mat304steel->AddElement(elMn, 0.02);
191  mat304steel->AddElement(elSi, 0.01);
192  mat304steel->AddElement(elCr, 0.19);
193  mat304steel->AddElement(elNi, 0.10);
194  mat304steel->AddElement(elFe, 0.6792);
195  mat304steel->AddElement(elC, 0.0008);
196 
197  //gold
198  A = 196.97*g/mole;
199  d = 19.32*g/cm3;
200  gold = new G4Material("gold",Z = 79.,A,d);
201 
202  //Iodine Core
203  A = 124.9*g/mole;
204  d = 4.862*g/cm3;
205  matI = new G4Material("Iodine",Z = 53.,A,d);
206 
207  //ceramic(Medical Physics, May 2000)
208  d = 2.88*g/cm3;
209  ceramic = new G4Material("allumina",d,2);
210  ceramic->AddElement(elAl,2);
211  ceramic->AddElement(elO,3);
212 
214  G4double pressure = 3.e-18*pascal;
215  G4double temperature = 2.73*kelvin;
216  A=1.01*g/mole;
217  Vacuum = new G4Material("Galactic", Z = 1., A,density,kStateGas,temperature,pressure);
218 
219  //compact bone (http://www.NIST.gov)
220  d = 1.85*g/cm3;
221  bone = new G4Material("bone",d,8);
222  bone->AddElement(elH,0.063984);
223  bone->AddElement(elC,0.278);
224  bone->AddElement(elN,0.027);
225  bone->AddElement(elO,0.410016);
226  bone->AddElement(elMg,0.002);
227  bone->AddElement(elP,0.07);
228  bone->AddElement(elS,0.002);
229  bone->AddElement(elCa,0.147);
230 
231  //muscle(http://www.NIST.gov)
232  muscle = new G4Material("muscle",d,9);
233  muscle->AddElement(elH,0.101997);
234  muscle->AddElement(elC,0.123);
235  muscle->AddElement(elN,0.035);
236  muscle->AddElement(elNa,0.0008);
237  muscle->AddElement(elO,0.729);
238  muscle->AddElement(elMg,0.0002);
239  muscle->AddElement(elP,0.002);
240  muscle->AddElement(elS,0.005);
241  muscle->AddElement(elK,0.003);
242 }
243 
245 {
246  // Returns a material
247  G4Material* pttoMaterial = G4Material::GetMaterial(material);
248  return pttoMaterial;
249 }
static constexpr double kelvin
Definition: G4SIunits.hh:281
G4Material * mat304steel
void SetMeanExcitationEnergy(G4double value)
static constexpr double universe_mean_density
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
Definition: G4Material.cc:608
G4Material * matsteel
G4Material * matI
G4Material * GetMat(G4String)
G4Material * matH2O
Float_t Z
static constexpr double g
Definition: G4SIunits.hh:183
double G4double
Definition: G4Types.hh:76
G4Material * bone
G4Material * matW
G4Material * Vacuum
G4Material * Titanium
G4Material * matplexiglass
G4Material * matir192
static constexpr double mg
Definition: G4SIunits.hh:184
double A(double temperature)
Float_t d
static constexpr double eV
Definition: G4SIunits.hh:215
void DefineMaterials()
void AddElement(G4Element *element, G4int nAtoms)
Definition: G4Material.cc:368
G4Material * muscle
G4IonisParamMat * GetIonisation() const
Definition: G4Material.hh:227
G4Material * matPb
G4Material * ceramic
static constexpr double mole
Definition: G4SIunits.hh:286
#define pascal
static constexpr double cm3
Definition: G4SIunits.hh:121
G4Material * soft
G4Material * gold
G4Material * matAir