80 #ifdef G4MULTITHREADED
110 G4cout <<
"### NIST DataBase for Materials is used" <<
G4endl;
116 if(
"G4_NYLON-6/6" == matname) { name =
"G4_NYLON-6-6"; }
117 if(
"G4_NYLON-6/10" == matname) { name =
"G4_NYLON-6-10";}
120 G4cout <<
"G4NistMaterialBuilder::FindOrBuildMaterial " << name <<
G4endl;
123 G4int nmat = theMaterialTable->size();
130 for (
G4int i=0; i<nmat; ++i) {
131 if(name == ((*theMaterialTable)[i])->GetName()) {
132 mat = (*theMaterialTable)[i];
140 if (name ==
names[i]) {
141 #ifdef G4MULTITHREADED
142 G4MUTEXLOCK(&G4NistMaterialBuilder::nistMaterialMutex);
146 if(!iso && (warning ||
verbose > 0)) {
147 G4cout <<
"G4NistMaterialBuilder::FindOrBuildMaterial warning for "
149 <<
" - since Geant4 9.6 isotopes are always built" <<
G4endl;
154 mat = (*theMaterialTable)[
matIndex[i]];
156 #ifdef G4MULTITHREADED
164 G4cout <<
"G4NistMaterialBuilder::FindOrBuildMaterial WARNING:"
165 <<
" material <" << name
166 <<
"> is not found out" <<
G4endl;
186 G4cout <<
"G4NistMaterialBuilder: BuildMaterial #" << i
201 for(
size_t j=0; j<
nn; ++j) {
210 }
else if( !
STP[i] ) { t = 0.0; }
217 for (
G4int j=0; j<nc; ++j) {
221 G4cout <<
"G4NistMaterialBuilder::BuildMaterial:"
222 <<
" ERROR: elements Z= " << Z <<
" is not found "
223 <<
" for material " <<
names[i]
225 G4Exception(
"G4NistMaterialBuilder::BuildMaterial()",
"mat103",
258 const std::vector<G4String>& elm,
259 const std::vector<G4int>& nbAtoms,
269 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
270 <<
" WARNING: the material <" << name
271 <<
"> is already exist" <<
G4endl;
272 G4cout <<
" New material will NOT be built!"
278 G4int els = elm.size();
280 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
281 <<
" WARNING: empty list of elements for " << name
283 G4cout <<
" New material will NOT be built!"
295 if(!stp) {
AddGas(name,temp,pres); }
297 for (
G4int i=0; i<els; ++i) {
308 const std::vector<G4String>& elm,
309 const std::vector<G4double>&
w,
319 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
320 <<
" WARNING: the material <" << name
321 <<
"> is already exist" <<
G4endl;
322 G4cout <<
" New material will NOT be built!"
328 G4int els = elm.size();
330 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
331 <<
" WARNING: empty list of elements for " << name
333 G4cout <<
" New material will NOT be built!"
344 if(!stp) {
AddGas(name,temp,pres); }
346 for (
G4int i=0; i<els; ++i) {
365 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial:"
366 <<
" WARNING: the material <" << name
367 <<
"> is already exist" <<
G4endl;
368 G4cout <<
" New material will NOT be built!"
375 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial:"
376 <<
" WARNING: the Name <" << nameDB
377 <<
"> is NOT in the DB: no new gas will be constructed"
382 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial:"
383 <<
" WARNING: <" << nameDB
384 <<
"> is NOT a gas - no new gas will be constructed"
394 G4cout <<
"G4NistMaterialBuilder::ConstructNewGasMaterial: done" <<
G4endl;
404 const std::vector<G4String>& elm,
405 const std::vector<G4int>& nbAtoms,
415 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
416 <<
" WARNING: the material <" << name
417 <<
"> is already exist" <<
G4endl;
418 G4cout <<
" New material will NOT be built!"
424 G4int els = elm.size();
426 G4cout <<
"G4NistMaterialBuilder::ConstructNewMaterial:"
427 <<
" WARNING: empty list of elements for " << name
429 G4cout <<
" New material will NOT be built!"
443 for (
G4int i=0; i<els; ++i) {
448 G4double dens = massPerMole / (Avogadro*k_Boltzmann*temp/pres);
450 if (els == 1) {
AddMaterial(name,dens,Z,0.,els,state,stp); }
453 for (
G4int i=0; i<els; ++i) {
458 if(!stp) {
AddGas(name,temp,pres); }
477 G4cout <<
"G4NistMaterialBuilder::AddMaterial WARNING: previous "
479 <<
" is not yet complete!"
481 G4cout <<
" New material " << nameMat <<
" will not be added"
488 names.push_back(nameMat);
499 if (1 == ncomp && Z > 0) {
512 G4cout <<
"New material " << nameMat <<
" is prepeared; "
538 else if (mnam ==
"all") {
546 G4cout <<
"### G4NistMaterialBuilder::ListMaterials: Warning "
547 << mnam <<
" list is not known" <<
G4endl;
555 G4cout <<
"=======================================================" <<
G4endl;
556 G4cout <<
"### Simple Materials from the NIST Data Base ###" <<
G4endl;
557 G4cout <<
"=======================================================" <<
G4endl;
559 G4cout <<
"=======================================================" <<
G4endl;
567 G4cout <<
"=============================================================" <<
G4endl;
568 G4cout <<
"### Compound Materials from the NIST Data Base ##" <<
G4endl;
569 G4cout <<
"=============================================================" <<
G4endl;
570 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
571 G4cout <<
"=============================================================" <<
G4endl;
579 G4cout <<
"=============================================================" <<
G4endl;
581 G4cout <<
"=============================================================" <<
G4endl;
582 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
583 G4cout <<
"=============================================================" <<
G4endl;
591 G4cout <<
"=============================================================" <<
G4endl;
593 G4cout <<
"=============================================================" <<
G4endl;
594 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
595 G4cout <<
"=============================================================" <<
G4endl;
603 G4cout <<
"=============================================================" <<
G4endl;
605 G4cout <<
"=============================================================" <<
G4endl;
606 G4cout <<
" Ncomp Name density(g/cm^3) I(eV) ChFormula" <<
G4endl;
607 G4cout <<
"=============================================================" <<
G4endl;
609 G4cout <<
"=============================================================" <<
G4endl;
616 G4cout << std::setw(2) << i+1 <<
" "
617 << std::setw(6) <<
names[i]
628 G4cout << std::setw(2) << nc <<
" "
629 << std::setw(26) <<
names[i] <<
" "
650 if(nameMat ==
names[i]) {
657 G4cout <<
"WARNING: G4NistMaterialBuilder::AddGas problem: there is no "
658 << nameMat <<
" in the list of materials;"
718 G4cout <<
"### G4NistMaterialBuilder::Initialise()" <<
G4endl;
864 AddMaterial(
"G4_ADIPOSE_TISSUE_ICRP", 0.95, 0, 63.2, 7);
885 AddMaterial(
"G4_ALUMINUM_OXIDE", 3.97, 0, 145.2, 2);
921 AddMaterial(
"G4_BARIUM_FLUORIDE", 4.89 ,0, 375.9, 2);
925 AddMaterial(
"G4_BARIUM_SULFATE", 4.5, 0, 285.7, 3);
934 AddMaterial(
"G4_BERYLLIUM_OXIDE", 3.01, 0, 93.2, 2);
955 AddMaterial(
"G4_BONE_COMPACT_ICRU", 1.85, 0, 91.9, 8);
966 AddMaterial(
"G4_BONE_CORTICAL_ICRP", 1.92, 0, 110, 9);
1000 AddMaterial(
"G4_N-BUTYL_ALCOHOL", 0.8098, 0, 59.9, 3);
1012 AddMaterial(
"G4_CADMIUM_TELLURIDE", 6.2, 0, 539.3, 2);
1016 AddMaterial(
"G4_CADMIUM_TUNGSTATE", 7.9, 0, 468.3, 3);
1021 AddMaterial(
"G4_CALCIUM_CARBONATE", 2.8, 0, 136.4, 3);
1026 AddMaterial(
"G4_CALCIUM_FLUORIDE", 3.18, 0, 166., 2);
1030 AddMaterial(
"G4_CALCIUM_OXIDE", 3.3, 0, 176.1, 2);
1034 AddMaterial(
"G4_CALCIUM_SULFATE", 2.96, 0, 152.3, 3);
1039 AddMaterial(
"G4_CALCIUM_TUNGSTATE", 6.062, 0, 395., 3);
1049 AddMaterial(
"G4_CARBON_TETRACHLORIDE", 1.594, 0, 166.3, 2);
1053 AddMaterial(
"G4_CELLULOSE_CELLOPHANE", 1.42, 0, 77.6, 3);
1058 AddMaterial(
"G4_CELLULOSE_BUTYRATE", 1.2, 0, 74.6, 3);
1063 AddMaterial(
"G4_CELLULOSE_NITRATE", 1.49, 0, 87., 4);
1069 AddMaterial(
"G4_CERIC_SULFATE", 1.03, 0, 76.7, 5);
1076 AddMaterial(
"G4_CESIUM_FLUORIDE", 4.115, 0, 440.7, 2);
1080 AddMaterial(
"G4_CESIUM_IODIDE", 4.51, 0, 553.1, 2);
1084 AddMaterial(
"G4_CHLOROBENZENE", 1.1058, 0, 89.1, 3);
1110 AddMaterial(
"G4_1,2-DICHLOROBENZENE", 1.3048, 0, 106.5, 3);
1115 AddMaterial(
"G4_DICHLORODIETHYL_ETHER", 1.2199, 0, 103.3, 4);
1121 AddMaterial(
"G4_1,2-DICHLOROETHANE", 1.2351, 0, 111.9, 3);
1126 AddMaterial(
"G4_DIETHYL_ETHER", 0.71378, 0, 60., 3);
1131 AddMaterial(
"G4_N,N-DIMETHYL_FORMAMIDE", 0.9487, 0, 66.6, 4);
1137 AddMaterial(
"G4_DIMETHYL_SULFOXIDE", 1.1014, 0, 98.6, 4);
1147 AddMaterial(
"G4_ETHYL_ALCOHOL", 0.7893, 0, 62.9, 3);
1152 AddMaterial(
"G4_ETHYL_CELLULOSE", 1.13, 0, 69.3, 3);
1161 AddMaterial(
"G4_EYE_LENS_ICRP", 1.07, 0, 73.3, 8);
1179 AddMaterial(
"G4_FERROUS_OXIDE", 5.7, 0, 248.6, 2);
1183 AddMaterial(
"G4_FERROUS_SULFATE", 1.024, 0, 76.4, 7);
1217 AddMaterial(
"G4_GADOLINIUM_OXYSULFIDE", 7.44, 0, 493.3, 3);
1222 AddMaterial(
"G4_GALLIUM_ARSENIDE", 5.31, 0, 384.9, 2);
1226 AddMaterial(
"G4_GEL_PHOTO_EMULSION", 1.2914, 0, 74.8, 5);
1299 AddMaterial(
"G4_LANTHANUM_OXYBROMIDE", 6.28, 0, 439.7, 3);
1304 AddMaterial(
"G4_LANTHANUM_OXYSULFIDE", 5.86, 0, 421.2, 3);
1313 AddMaterial(
"G4_LITHIUM_AMIDE", 1.178, 0, 55.5, 3);
1318 AddMaterial(
"G4_LITHIUM_CARBONATE", 2.11, 0, 87.9, 3);
1323 AddMaterial(
"G4_LITHIUM_FLUORIDE", 2.635, 0, 94., 2);
1327 AddMaterial(
"G4_LITHIUM_HYDRIDE", 0.82, 0, 36.5, 2);
1331 AddMaterial(
"G4_LITHIUM_IODIDE", 3.494, 0, 485.1, 2);
1335 AddMaterial(
"G4_LITHIUM_OXIDE", 2.013, 0, 73.6, 2);
1339 AddMaterial(
"G4_LITHIUM_TETRABORATE", 2.44, 0, 94.6, 3);
1366 AddMaterial(
"G4_MAGNESIUM_CARBONATE", 2.958, 0, 118., 3);
1371 AddMaterial(
"G4_MAGNESIUM_FLUORIDE", 3.0, 0, 134.3, 2);
1375 AddMaterial(
"G4_MAGNESIUM_OXIDE", 3.58, 0, 143.8, 2);
1379 AddMaterial(
"G4_MAGNESIUM_TETRABORATE", 2.53, 0, 108.3, 3);
1384 AddMaterial(
"G4_MERCURIC_IODIDE", 6.36, 0, 684.5, 2);
1412 AddMaterial(
"G4_MUSCLE_SKELETAL_ICRP", 1.05, 0, 75.3, 9);
1424 AddMaterial(
"G4_MUSCLE_STRIATED_ICRU", 1.04, 0, 74.7, 8);
1434 AddMaterial(
"G4_MUSCLE_WITH_SUCROSE", 1.11, 0, 74.3, 4);
1440 AddMaterial(
"G4_MUSCLE_WITHOUT_SUCROSE", 1.07, 0, 74.2, 4);
1450 AddMaterial(
"G4_NITROBENZENE", 1.19867, 0, 75.8, 4);
1478 AddMaterial(
"G4_NYLON-11_RILSAN", 1.425, 0, 61.6, 4);
1496 AddMaterial(
"G4_PHOTO_EMULSION", 3.815, 0, 331., 8);
1506 AddMaterial(
"G4_PLASTIC_SC_VINYLTOLUENE", 1.032, 0, 64.7, 2);
1515 AddMaterial(
"G4_PLUTONIUM_DIOXIDE", 11.46, 0, 746.5, 2);
1519 AddMaterial(
"G4_POLYACRYLONITRILE", 1.17, 0, 69.6, 3);
1529 AddMaterial(
"G4_POLYCHLOROSTYRENE", 1.3, 0, 81.7, 3);
1555 AddMaterial(
"G4_POLYOXYMETHYLENE", 1.425 ,0, 77.4, 3);
1573 AddMaterial(
"G4_POLYTRIFLUOROCHLOROETHYLENE", 2.1, 0, 120.7, 3);
1579 AddMaterial(
"G4_POLYVINYL_ACETATE", 1.19, 0, 73.7, 3);
1584 AddMaterial(
"G4_POLYVINYL_ALCOHOL", 1.3, 0, 69.7, 3);
1589 AddMaterial(
"G4_POLYVINYL_BUTYRAL", 1.12, 0, 67.2, 3);
1600 AddMaterial(
"G4_POLYVINYL_CHLORIDE", 1.3, 0, 108.2, 3);
1605 AddMaterial(
"G4_POLYVINYLIDENE_CHLORIDE", 1.7, 0, 134.3, 3);
1610 AddMaterial(
"G4_POLYVINYLIDENE_FLUORIDE", 1.76, 0, 88.8, 3);
1615 AddMaterial(
"G4_POLYVINYL_PYRROLIDONE", 1.25, 0, 67.7, 4);
1621 AddMaterial(
"G4_POTASSIUM_IODIDE", 3.13, 0, 431.9, 2);
1625 AddMaterial(
"G4_POTASSIUM_OXIDE", 2.32, 0, 189.9, 2);
1637 AddMaterial(
"G4_N-PROPYL_ALCOHOL", 0.8035, 0, 61.1, 3);
1651 AddMaterial(
"G4_RUBBER_NATURAL", 0.92, 0, 59.8, 2);
1655 AddMaterial(
"G4_RUBBER_NEOPRENE", 1.23, 0, 93., 3);
1660 AddMaterial(
"G4_SILICON_DIOXIDE", 2.32, 0, 139.2, 2);
1665 AddMaterial(
"G4_SILVER_BROMIDE", 6.473, 0, 486.6, 2);
1669 AddMaterial(
"G4_SILVER_CHLORIDE", 5.56, 0, 398.4, 2);
1673 AddMaterial(
"G4_SILVER_HALIDES", 6.47, 0, 487.1, 3);
1678 AddMaterial(
"G4_SILVER_IODIDE", 6.01, 0, 543.5, 2);
1693 AddMaterial(
"G4_SODIUM_CARBONATE", 2.532, 0, 125., 3);
1698 AddMaterial(
"G4_SODIUM_IODIDE", 3.667, 0, 452., 2);
1702 AddMaterial(
"G4_SODIUM_MONOXIDE", 2.27, 0, 148.8, 2);
1706 AddMaterial(
"G4_SODIUM_NITRATE", 2.261, 0, 114.6, 3);
1740 AddMaterial(
"G4_TETRACHLOROETHYLENE", 1.625, 0, 159.2, 2);
1744 AddMaterial(
"G4_THALLIUM_CHLORIDE", 7.004, 0, 690.3, 2);
1749 AddMaterial(
"G4_TISSUE_SOFT_ICRP", 1.03, 0, 72.3, 9);
1761 AddMaterial(
"G4_TISSUE_SOFT_ICRU-4", 1.0, 0, 74.9, 4);
1779 AddMaterial(
"G4_TITANIUM_DIOXIDE", 4.26, 0, 179.5, 2);
1787 AddMaterial(
"G4_TRICHLOROETHYLENE", 1.46, 0, 148.1, 3);
1792 AddMaterial(
"G4_TRIETHYL_PHOSPHATE", 1.07, 0, 81.2, 4);
1798 AddMaterial(
"G4_TUNGSTEN_HEXAFLUORIDE", 2.4, 0, 354.4, 2);
1802 AddMaterial(
"G4_URANIUM_DICARBIDE", 11.28, 0, 752., 2);
1806 AddMaterial(
"G4_URANIUM_MONOCARBIDE", 13.63, 0, 862., 2);
1810 AddMaterial(
"G4_URANIUM_OXIDE", 10.96, 0, 720.6, 2);
1894 AddMaterial(
"G4_STAINLESS-STEEL", 8.00, 0, 0.0, 3);
2013 AddMaterial(
"G4_DNA_METHYLURIDINE", 1, 0, 72., 4);
2019 AddMaterial(
"G4_DNA_MONOPHOSPHATE", 1, 0, 72., 2);
G4double GetPressure() const
G4IonisParamMat * GetIonisation() const
std::vector< G4double > gasPressure
void SetChemicalFormula(const G4String &chF)
G4NistElementBuilder * elmBuilder
void ListBioChemicalMaterials() const
void HepAndNuclearMaterials()
std::vector< G4String > names
G4double FindMeanExcitationEnergy(const G4String &chFormula)
void SetMeanExcitationEnergy(G4double value)
static G4MaterialTable * GetMaterialTable()
static const double hep_pascal
std::vector< G4double > densities
std::vector< G4Material * > G4MaterialTable
G4double GetDensity() const
const G4double w[NPOINTSGL]
void DumpMix(G4int) const
G4Material * ConstructNewMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4double dens, G4bool isotopes=true, G4State state=kStateSolid, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
void ListMaterials(const G4String &) const
G4double GetAtomicMassAmu(const G4String &symb) const
void ListHepMaterials() const
G4Material * ConstructNewGasMaterial(const G4String &name, const G4String &nameDB, G4double temp, G4double pres, G4bool isotopes=true)
#define G4MUTEX_INITIALIZER
void AddMaterial(const G4String &nameMat, G4double dens, G4int Z=0, G4double pot=0.0, G4int ncomp=1, G4State=kStateSolid, G4bool stp=true)
G4NistMaterialBuilder(G4NistElementBuilder *, G4int verb=0)
std::vector< G4int > idxGas
G4GLOB_DLL std::ostream G4cout
G4int GetZ(const G4String &symb) const
std::vector< G4int > indexes
G4Material * BuildMaterial(G4int idx)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=true)
void NistCompoundMaterials2()
std::vector< G4double > gasTemperature
void AddElementByWeightFraction(G4int Z, G4double)
void DumpElm(G4int) const
void ListNistCompoundMaterials() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static const double kelvin
void ListNistSimpleMaterials() const
void SetVerbose(G4int val)
std::vector< G4bool > atomCount
std::vector< G4int > elements
void NistCompoundMaterials()
void AddGas(const G4String &nameMat, G4double t=NTP_Temperature, G4double p=CLHEP::STP_Pressure)
void ListSpaceMaterials() const
std::vector< G4State > states
std::vector< G4bool > STP
std::vector< G4double > ionPotentials
G4Material * ConstructNewIdealGasMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4bool isotopes=true, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
std::vector< G4int > matIndex
std::vector< G4String > chFormulas
G4double GetMeanExcitationEnergy() const
static const G4double NTP_Temperature
G4double GetTemperature() const
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)
std::vector< G4int > components
void AddElement(G4Element *element, G4int nAtoms)
void NistSimpleMaterials()
void BioChemicalMaterials()
std::vector< G4double > fractions
void AddElementByAtomCount(G4int Z, G4int)
G4Material * FindOrBuildSimpleMaterial(G4int Z, G4bool warning)