79 #ifdef G4MULTITHREADED
106 G4cout <<
"G4NistMaterialBuilder::FindOrBuildMaterial "
110 if(mat !=
nullptr) {
return mat; }
112 if(name ==
"G4_NYLON-6/6" || name ==
"G4_NYLON-6/10") {
113 if(
"G4_NYLON-6/6" == matname) { name =
"G4_NYLON-6-6"; }
114 else { name =
"G4_NYLON-6-10";}
129 if (name ==
names[i]) {
130 #ifdef G4MULTITHREADED
140 mat = (*theMaterialTable)[
matIndex[i]];
142 #ifdef G4MULTITHREADED
150 G4cout <<
"G4NistMaterialBuilder::FindOrBuildMaterial WARNING:"
151 <<
" material <" << name
152 <<
"> is not found out" <<
G4endl;
174 G4cout <<
"G4NistMaterialBuilder: BuildMaterial #" << i
189 for(
size_t j=0; j<
nn; ++j) {
206 for (
G4int j=0; j<nc; ++j) {
210 G4cout <<
"G4NistMaterialBuilder::BuildMaterial:"
211 <<
" ERROR: elements Z= " << Z <<
" is not found "
212 <<
" for material " <<
names[i]
214 G4Exception(
"G4NistMaterialBuilder::BuildMaterial()",
"mat103",
248 const std::vector<G4String>& elm,
249 const std::vector<G4int>& nbAtoms,
259 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
260 <<
" WARNING: the material <" << name
261 <<
"> is already exist" <<
G4endl;
262 G4cout <<
" New material will NOT be built!"
268 G4int els = elm.size();
270 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
271 <<
" WARNING: empty list of elements for " << name
273 G4cout <<
" New material will NOT be built!"
286 if(!stp) {
AddGas(name,temp,pres); }
288 for (
G4int i=0; i<els; ++i) {
299 const std::vector<G4String>& elm,
300 const std::vector<G4double>&
w,
310 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
311 <<
" WARNING: the material <" << name
312 <<
"> is already exist" <<
G4endl;
313 G4cout <<
" New material will NOT be built!"
319 G4int els = elm.size();
321 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
322 <<
" WARNING: empty list of elements for " << name
324 G4cout <<
" New material will NOT be built!"
336 if(!stp) {
AddGas(name,temp,pres); }
338 for (
G4int i=0; i<els; ++i) {
357 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial:"
358 <<
" WARNING: the material <" << name
359 <<
"> is already exist" <<
G4endl;
360 G4cout <<
" New material will NOT be built!"
367 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial:"
368 <<
" WARNING: the Name <" << nameDB
369 <<
"> is NOT in the DB: no new gas will be constructed"
374 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial:"
375 <<
" WARNING: <" << nameDB
376 <<
"> is NOT a gas - no new gas will be constructed"
386 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial: done" <<
G4endl;
396 const std::vector<G4String>& elm,
397 const std::vector<G4int>& nbAtoms,
407 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
408 <<
" WARNING: the material <" << name
409 <<
"> is already exist" <<
G4endl;
410 G4cout <<
" New material will NOT be built!"
416 G4int els = elm.size();
418 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
419 <<
" WARNING: empty list of elements for " << name
421 G4cout <<
" New material will NOT be built!"
435 for (
G4int i=0; i<els; ++i) {
442 if (els == 1) {
AddMaterial(name,dens,Z,0.,els,state,stp); }
445 for (
G4int i=0; i<els; ++i) {
450 if(!stp) {
AddGas(name,temp,pres); }
469 G4cout <<
"G4NistMaterialBuilder::AddMaterial WARNING: previous "
471 <<
" is not yet complete!"
473 G4cout <<
" New material " << nameMat <<
" will not be added"
480 names.push_back(nameMat);
491 if (1 == ncomp && Z > 0) {
504 G4cout <<
"New material " << nameMat <<
" is prepeared; "
530 else if (mnam ==
"all") {
538 G4cout <<
"### G4NistMaterialBuilder::ListMaterials: Warning "
539 << mnam <<
" list is not known" <<
G4endl;
547 G4cout <<
"=======================================================" <<
G4endl;
548 G4cout <<
"### Simple Materials from the NIST Data Base ###" <<
G4endl;
549 G4cout <<
"=======================================================" <<
G4endl;
551 G4cout <<
"=======================================================" <<
G4endl;
559 G4cout <<
"=============================================================" <<
G4endl;
560 G4cout <<
"### Compound Materials from the NIST Data Base ##" <<
G4endl;
561 G4cout <<
"=============================================================" <<
G4endl;
562 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
563 G4cout <<
"=============================================================" <<
G4endl;
572 G4cout <<
"=============================================================" <<
G4endl;
574 G4cout <<
"=============================================================" <<
G4endl;
575 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
576 G4cout <<
"=============================================================" <<
G4endl;
584 G4cout <<
"=============================================================" <<
G4endl;
586 G4cout <<
"=============================================================" <<
G4endl;
587 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
588 G4cout <<
"=============================================================" <<
G4endl;
596 G4cout <<
"=============================================================" <<
G4endl;
598 G4cout <<
"=============================================================" <<
G4endl;
599 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
600 G4cout <<
"=============================================================" <<
G4endl;
602 G4cout <<
"=============================================================" <<
G4endl;
609 G4cout << std::setw(2) << i <<
" "
610 << std::setw(6) <<
names[i]
621 G4cout << std::setw(2) << nc <<
" "
622 << std::setw(26) <<
names[i] <<
" "
643 if(nameMat ==
names[i]) {
650 G4cout <<
"WARNING: G4NistMaterialBuilder::AddGas problem: there is no "
651 << nameMat <<
" in the list of materials;"
711 G4cout <<
"### G4NistMaterialBuilder::Initialise()" <<
G4endl;
862 AddMaterial(
"G4_ADIPOSE_TISSUE_ICRP", 0.95, 0, 63.2, 7);
883 AddMaterial(
"G4_ALUMINUM_OXIDE", 3.97, 0, 145.2, 2);
919 AddMaterial(
"G4_BARIUM_FLUORIDE", 4.89 ,0, 375.9, 2);
923 AddMaterial(
"G4_BARIUM_SULFATE", 4.5, 0, 285.7, 3);
932 AddMaterial(
"G4_BERYLLIUM_OXIDE", 3.01, 0, 93.2, 2);
953 AddMaterial(
"G4_BONE_COMPACT_ICRU", 1.85, 0, 91.9, 8);
964 AddMaterial(
"G4_BONE_CORTICAL_ICRP", 1.92, 0, 110, 9);
998 AddMaterial(
"G4_N-BUTYL_ALCOHOL", 0.8098, 0, 59.9, 3);
1010 AddMaterial(
"G4_CADMIUM_TELLURIDE", 6.2, 0, 539.3, 2);
1014 AddMaterial(
"G4_CADMIUM_TUNGSTATE", 7.9, 0, 468.3, 3);
1019 AddMaterial(
"G4_CALCIUM_CARBONATE", 2.8, 0, 136.4, 3);
1024 AddMaterial(
"G4_CALCIUM_FLUORIDE", 3.18, 0, 166., 2);
1028 AddMaterial(
"G4_CALCIUM_OXIDE", 3.3, 0, 176.1, 2);
1032 AddMaterial(
"G4_CALCIUM_SULFATE", 2.96, 0, 152.3, 3);
1037 AddMaterial(
"G4_CALCIUM_TUNGSTATE", 6.062, 0, 395., 3);
1047 AddMaterial(
"G4_CARBON_TETRACHLORIDE", 1.594, 0, 166.3, 2);
1051 AddMaterial(
"G4_CELLULOSE_CELLOPHANE", 1.42, 0, 77.6, 3);
1056 AddMaterial(
"G4_CELLULOSE_BUTYRATE", 1.2, 0, 74.6, 3);
1061 AddMaterial(
"G4_CELLULOSE_NITRATE", 1.49, 0, 87., 4);
1067 AddMaterial(
"G4_CERIC_SULFATE", 1.03, 0, 76.7, 5);
1074 AddMaterial(
"G4_CESIUM_FLUORIDE", 4.115, 0, 440.7, 2);
1078 AddMaterial(
"G4_CESIUM_IODIDE", 4.51, 0, 553.1, 2);
1082 AddMaterial(
"G4_CHLOROBENZENE", 1.1058, 0, 89.1, 3);
1108 AddMaterial(
"G4_1,2-DICHLOROBENZENE", 1.3048, 0, 106.5, 3);
1113 AddMaterial(
"G4_DICHLORODIETHYL_ETHER", 1.2199, 0, 103.3, 4);
1119 AddMaterial(
"G4_1,2-DICHLOROETHANE", 1.2351, 0, 111.9, 3);
1124 AddMaterial(
"G4_DIETHYL_ETHER", 0.71378, 0, 60., 3);
1129 AddMaterial(
"G4_N,N-DIMETHYL_FORMAMIDE", 0.9487, 0, 66.6, 4);
1135 AddMaterial(
"G4_DIMETHYL_SULFOXIDE", 1.1014, 0, 98.6, 4);
1145 AddMaterial(
"G4_ETHYL_ALCOHOL", 0.7893, 0, 62.9, 3);
1150 AddMaterial(
"G4_ETHYL_CELLULOSE", 1.13, 0, 69.3, 3);
1159 AddMaterial(
"G4_EYE_LENS_ICRP", 1.07, 0, 73.3, 8);
1177 AddMaterial(
"G4_FERROUS_OXIDE", 5.7, 0, 248.6, 2);
1181 AddMaterial(
"G4_FERROUS_SULFATE", 1.024, 0, 76.4, 7);
1215 AddMaterial(
"G4_GADOLINIUM_OXYSULFIDE", 7.44, 0, 493.3, 3);
1220 AddMaterial(
"G4_GALLIUM_ARSENIDE", 5.31, 0, 384.9, 2);
1224 AddMaterial(
"G4_GEL_PHOTO_EMULSION", 1.2914, 0, 74.8, 5);
1297 AddMaterial(
"G4_LANTHANUM_OXYBROMIDE", 6.28, 0, 439.7, 3);
1302 AddMaterial(
"G4_LANTHANUM_OXYSULFIDE", 5.86, 0, 421.2, 3);
1311 AddMaterial(
"G4_LITHIUM_AMIDE", 1.178, 0, 55.5, 3);
1316 AddMaterial(
"G4_LITHIUM_CARBONATE", 2.11, 0, 87.9, 3);
1321 AddMaterial(
"G4_LITHIUM_FLUORIDE", 2.635, 0, 94., 2);
1325 AddMaterial(
"G4_LITHIUM_HYDRIDE", 0.82, 0, 36.5, 2);
1329 AddMaterial(
"G4_LITHIUM_IODIDE", 3.494, 0, 485.1, 2);
1333 AddMaterial(
"G4_LITHIUM_OXIDE", 2.013, 0, 73.6, 2);
1337 AddMaterial(
"G4_LITHIUM_TETRABORATE", 2.44, 0, 94.6, 3);
1364 AddMaterial(
"G4_MAGNESIUM_CARBONATE", 2.958, 0, 118., 3);
1369 AddMaterial(
"G4_MAGNESIUM_FLUORIDE", 3.0, 0, 134.3, 2);
1373 AddMaterial(
"G4_MAGNESIUM_OXIDE", 3.58, 0, 143.8, 2);
1377 AddMaterial(
"G4_MAGNESIUM_TETRABORATE", 2.53, 0, 108.3, 3);
1382 AddMaterial(
"G4_MERCURIC_IODIDE", 6.36, 0, 684.5, 2);
1410 AddMaterial(
"G4_MUSCLE_SKELETAL_ICRP", 1.05, 0, 75.3, 9);
1422 AddMaterial(
"G4_MUSCLE_STRIATED_ICRU", 1.04, 0, 74.7, 8);
1432 AddMaterial(
"G4_MUSCLE_WITH_SUCROSE", 1.11, 0, 74.3, 4);
1438 AddMaterial(
"G4_MUSCLE_WITHOUT_SUCROSE", 1.07, 0, 74.2, 4);
1448 AddMaterial(
"G4_NITROBENZENE", 1.19867, 0, 75.8, 4);
1476 AddMaterial(
"G4_NYLON-11_RILSAN", 1.425, 0, 61.6, 4);
1494 AddMaterial(
"G4_PHOTO_EMULSION", 3.815, 0, 331., 8);
1504 AddMaterial(
"G4_PLASTIC_SC_VINYLTOLUENE", 1.032, 0, 64.7, 2);
1513 AddMaterial(
"G4_PLUTONIUM_DIOXIDE", 11.46, 0, 746.5, 2);
1517 AddMaterial(
"G4_POLYACRYLONITRILE", 1.17, 0, 69.6, 3);
1527 AddMaterial(
"G4_POLYCHLOROSTYRENE", 1.3, 0, 81.7, 3);
1553 AddMaterial(
"G4_POLYOXYMETHYLENE", 1.425 ,0, 77.4, 3);
1571 AddMaterial(
"G4_POLYTRIFLUOROCHLOROETHYLENE", 2.1, 0, 120.7, 3);
1577 AddMaterial(
"G4_POLYVINYL_ACETATE", 1.19, 0, 73.7, 3);
1582 AddMaterial(
"G4_POLYVINYL_ALCOHOL", 1.3, 0, 69.7, 3);
1587 AddMaterial(
"G4_POLYVINYL_BUTYRAL", 1.12, 0, 67.2, 3);
1598 AddMaterial(
"G4_POLYVINYL_CHLORIDE", 1.3, 0, 108.2, 3);
1603 AddMaterial(
"G4_POLYVINYLIDENE_CHLORIDE", 1.7, 0, 134.3, 3);
1608 AddMaterial(
"G4_POLYVINYLIDENE_FLUORIDE", 1.76, 0, 88.8, 3);
1613 AddMaterial(
"G4_POLYVINYL_PYRROLIDONE", 1.25, 0, 67.7, 4);
1619 AddMaterial(
"G4_POTASSIUM_IODIDE", 3.13, 0, 431.9, 2);
1623 AddMaterial(
"G4_POTASSIUM_OXIDE", 2.32, 0, 189.9, 2);
1635 AddMaterial(
"G4_N-PROPYL_ALCOHOL", 0.8035, 0, 61.1, 3);
1649 AddMaterial(
"G4_RUBBER_NATURAL", 0.92, 0, 59.8, 2);
1653 AddMaterial(
"G4_RUBBER_NEOPRENE", 1.23, 0, 93., 3);
1658 AddMaterial(
"G4_SILICON_DIOXIDE", 2.32, 0, 139.2, 2);
1663 AddMaterial(
"G4_SILVER_BROMIDE", 6.473, 0, 486.6, 2);
1667 AddMaterial(
"G4_SILVER_CHLORIDE", 5.56, 0, 398.4, 2);
1671 AddMaterial(
"G4_SILVER_HALIDES", 6.47, 0, 487.1, 3);
1676 AddMaterial(
"G4_SILVER_IODIDE", 6.01, 0, 543.5, 2);
1691 AddMaterial(
"G4_SODIUM_CARBONATE", 2.532, 0, 125., 3);
1696 AddMaterial(
"G4_SODIUM_IODIDE", 3.667, 0, 452., 2);
1700 AddMaterial(
"G4_SODIUM_MONOXIDE", 2.27, 0, 148.8, 2);
1704 AddMaterial(
"G4_SODIUM_NITRATE", 2.261, 0, 114.6, 3);
1738 AddMaterial(
"G4_TETRACHLOROETHYLENE", 1.625, 0, 159.2, 2);
1742 AddMaterial(
"G4_THALLIUM_CHLORIDE", 7.004, 0, 690.3, 2);
1747 AddMaterial(
"G4_TISSUE_SOFT_ICRP", 1.03, 0, 72.3, 9);
1759 AddMaterial(
"G4_TISSUE_SOFT_ICRU-4", 1.0, 0, 74.9, 4);
1777 AddMaterial(
"G4_TITANIUM_DIOXIDE", 4.26, 0, 179.5, 2);
1785 AddMaterial(
"G4_TRICHLOROETHYLENE", 1.46, 0, 148.1, 3);
1790 AddMaterial(
"G4_TRIETHYL_PHOSPHATE", 1.07, 0, 81.2, 4);
1796 AddMaterial(
"G4_TUNGSTEN_HEXAFLUORIDE", 2.4, 0, 354.4, 2);
1800 AddMaterial(
"G4_URANIUM_DICARBIDE", 11.28, 0, 752., 2);
1804 AddMaterial(
"G4_URANIUM_MONOCARBIDE", 13.63, 0, 862., 2);
1808 AddMaterial(
"G4_URANIUM_OXIDE", 10.96, 0, 720.6, 2);
1887 AddMaterial(
"G4_STAINLESS-STEEL", 8.00, 0, 0.0, 3);