Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RemSimMaterial.cc
Go to the documentation of this file.
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 // * RemSimMaterial.cc *
32 // * *
33 // *******************************
34 //
35 // $Id$
36 //
37 
38 #include "RemSimMaterial.hh"
39 
40 #include "globals.hh"
41 #include "G4SystemOfUnits.hh"
44 #include "G4MaterialTable.hh"
45 #include "G4RunManager.hh"
46 #include "G4Element.hh"
47 #include "G4ElementTable.hh"
48 
50  matPb(0), matAir(0), matH2O(0), Al(0), nylon(0), mylar(0),
51  beta(0), nextel(0), kevlar(0),
52  vacuum(0), betaCloth(0), eterogeneousNextel(0), kevlarVacuum(0),
53  polyethylene(0), polyacrylate(0), evoh(0), nomex(0), nomexAir(0),
54  kevlarAir(0), moon(0)
55 {;}
56 
58 {
59  delete moon;
60  delete kevlarAir;
61  delete nomexAir;
62  delete nomex;
63  delete evoh;
64  delete polyacrylate;
65  delete polyethylene;
66  delete kevlarVacuum;
67  delete eterogeneousNextel;
68  delete betaCloth;
69  delete vacuum;
70  delete kevlar;
71  delete nextel;
72  delete beta;
73  delete mylar;
74  delete nylon;
75  delete Al;
76  delete matH2O;
77  delete matAir;
78  delete matPb;
79 }
80 
82 {
83  // Define required materials
84 
85  G4double A; // atomic mass
86  G4double Z; // atomic number
87  G4double d; // density
88 
89  // General elements
90 
91  A = 1.01*g/mole;
92  G4Element* elH = new G4Element ("Hydrogen","H",Z = 1.,A);
93 
94  A = 10.811*g/mole;
95  G4Element* elB = new G4Element ("Boro","B",Z = 5.,A);
96 
97  A = 14.01*g/mole;
98  G4Element* elN = new G4Element("Nitrogen","N",Z = 7.,A);
99 
100  A = 16.00*g/mole;
101 
102  G4Element* elO = new G4Element("Oxygen","O",Z = 8.,A);
103 
104  A=26.98*g/mole;
105  G4Element* elAl = new G4Element("Aluminum","Al", Z = 13.,A);
106 
107  A = 12.011*g/mole;
108  G4Element* elC = new G4Element("Carbon","C",Z = 6.,A);
109 
110  A = 24.305*g/mole;
111  G4Element* elMg = new G4Element("Magnesium","Mg",Z = 12.,A);
112 
113  A = 35.453*g/mole;
114  G4Element* elCl = new G4Element("Chlorine","Cl",Z = 17.,A);
115 
116  A = 40.08*g/mole;
117  G4Element* elCa = new G4Element("Calcium","Ca",Z = 20.,A);
118 
119  A = 28.09*g/mole;
120  G4Element* elSi = new G4Element("Silicon","Si",Z = 14.,A);
121 
122  A = 55.85*g/mole;
123  G4Element* elFe = new G4Element("Iron","Fe",Z = 26.,A);
124 
125  //Lead material
126  A = 207.19*g/mole;
127  Z = 82;
128  d = 11.35*g/cm3;
129  matPb = new G4Material("Lead",Z,A,d);
130 
131  // Air material
132  G4double airDensity = 1.290*mg/cm3;
133  matAir = new G4Material("Air",airDensity,2);
134  matAir -> AddElement(elN,0.7);
135  matAir -> AddElement(elO,0.3);
136 
137  // Water
138  d = 1.000*g/cm3;
139  matH2O = new G4Material("Water",d,2);
140  matH2O -> AddElement(elH,2);
141  matH2O -> AddElement(elO,1);
142  matH2O -> GetIonisation() -> SetMeanExcitationEnergy(75.0*eV);
143 
144  Al = new G4Material("Aluminium", Z= 13., A= 26.98*g/mole, d = 2.7*g/cm3);
145 
146  //nylon (alenia spazio)
147  d = 1.14 *g/cm3;
148  nylon = new G4Material("nylon",d,4);
149  nylon -> AddElement(elH,0.108);
150  nylon -> AddElement(elC,0.68);
151  nylon -> AddElement(elN,0.099);
152  nylon -> AddElement(elO,0.113);
153 
154  //mylar (alenia spazio)
155  d= 1.4 *g/cm3;
156  mylar = new G4Material("mylar",d,3);
157  mylar -> AddElement(elH,0.042);
158  mylar -> AddElement(elC,0.625);
159  mylar -> AddElement(elO,0.333);
160 
161  //beta cloth
162  G4double betaDensity = 2.3 *g/cm3;
163  beta = new G4Material("beta",betaDensity,2);
164  beta -> AddElement(elO,0.53);
165  beta -> AddElement(elSi,0.47);
166 
167  G4double nextelDensity = 2.7 * g/cm3;
168  nextel = new G4Material("nextel",nextelDensity,4);
169  nextel -> AddElement(elB,0.04);
170  nextel -> AddElement(elO,0.52);
171  nextel -> AddElement(elAl,0.33);
172  nextel -> AddElement(elSi,0.11);
173 
174  //kevlar
175  G4double kevlarDensity = 1.44 *g/cm3;
176  kevlar = new G4Material("kevlar",d,4);
177  kevlar -> AddElement(elH,0.04);
178  kevlar -> AddElement(elC,0.71);
179  kevlar -> AddElement(elO,0.12);
180  kevlar -> AddElement(elN,0.13);
181 
182  //vacuum
183  G4double vacuumDensity = 1.e-25 *g/cm3;
184  G4double pressure = 3.e-18*pascal;
185  G4double temperature = 2.73*kelvin;
186  vacuum = new G4Material("Galactic", Z=1., A=1.01*g/mole,
187  vacuumDensity,kStateGas,temperature,pressure);
188 
189  d = (vacuumDensity*0.44)+ (betaDensity*0.56);
190  betaCloth = new G4Material("betacloth",d,2);
191  betaCloth -> AddMaterial (beta, 0.56);
192  betaCloth -> AddMaterial (vacuum,0.44);
193 
194  d = (vacuumDensity*0.73)+ (nextelDensity*0.27);
195  eterogeneousNextel = new G4Material("Nextel312AF62",d,2);
196  eterogeneousNextel -> AddMaterial (vacuum, 0.73);
197  eterogeneousNextel -> AddMaterial (nextel, 0.27);
198 
199  d = (vacuumDensity*0.44)+ (kevlarDensity*0.56);
200  kevlarVacuum = new G4Material("kevlarVacuum",d,2);
201  kevlarVacuum -> AddMaterial (vacuum, 0.44);
202  kevlarVacuum -> AddMaterial (kevlar, 0.56);
203 
204  d = 0.94 * g/cm3;
205  polyethylene = new G4Material("polyethylene",d,2);
206  polyethylene -> AddElement(elH,0.14);
207  polyethylene -> AddElement(elC,0.86);
208 
209  d = 1.19 * g/cm3;
210  polyacrylate = new G4Material("polyacrylate",d,3);
211  polyacrylate -> AddElement(elH,0.08);
212  polyacrylate -> AddElement(elC,0.60);
213  polyacrylate -> AddElement(elO,0.32);
214 
215  d = 1.17 * g/cm3;
216  evoh = new G4Material("evoh",d,3);
217  evoh -> AddElement(elH,0.11);
218  evoh -> AddElement(elC,0.67);
219  evoh -> AddElement(elO,0.22);
220 
221  G4double nomexDensity = 0.98 * g/cm3;
222  nomex = new G4Material("nomex",nomexDensity,5);
223  nomex -> AddElement(elH,0.04);
224  nomex -> AddElement(elC,0.54);
225  nomex -> AddElement(elN,0.09);
226  nomex -> AddElement(elO,0.10);
227  nomex -> AddElement(elCl,0.23);
228 
229  d = 0.45*(nomexDensity)+ 0.55*(airDensity);
230  nomexAir = new G4Material("nomexAir",d,2);
231  nomexAir -> AddMaterial(nomex,0.45);
232  nomexAir -> AddMaterial(matAir,0.55);
233 
234  d =0.56*(kevlarDensity)+ 0.44*(airDensity);
235  kevlarAir = new G4Material("kevlarAir",d,2);
236  kevlarAir -> AddMaterial(kevlar,0.56);
237  kevlarAir -> AddMaterial(matAir,0.44);
238 
239  d = 1.5*g/cm3;
240  moon = new G4Material("moon",d,6);
241  moon -> AddElement(elO,0.45);
242  moon -> AddElement(elMg,0.05);
243  moon -> AddElement(elAl,0.13);
244  moon -> AddElement(elSi,0.21);
245  moon -> AddElement(elCa,0.10);
246  moon -> AddElement(elFe,0.06);
247 }
248 
250 {
251  G4Material* pttoMaterial = G4Material::GetMaterial(material);
252  return pttoMaterial;
253 }