|Message: Re: Use of NIST material database through GDML?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Also, I wanted to pass along some additional information that I received from Gabriele Cosmo and Witold Pokorski in case it helps others get on their way to using GDML (rephrased below):|
Mixtures can be made using NIST materials, but it is necessary to define these materials using "fraction" instead of "composite", as the NIST materials are directly treated as materials. Example:
<material formula="HDPE" name="HDPE" state="solid">
<D value="0.95" unit="g/cm3"/>
<fraction n="0.144" ref="G4_H"/> <!-- 4x H:1.008 amu = 4.004 amu-->
<fraction n="0.856" ref="G4_C"/> <!-- 2x C:12.01 amu = 24.02 amu-->
</material> <!-- Total: 28.052 amu-->
While this will still produce a validation error (e.g. G4GDML: VALIDATION ERROR! ID attribute 'G4_N'...), it is ok to disregard this error. It simply means that from the XML validation point of view the file is incomplete because it refers to materials that are not defined within the file, but everything works fine because Geant4 finds those materials in the NIST database. GDML does not allow materials to be defined as 'empty' objects... this however is not really a problem, it is still possible to exchange the GDML file conforming with the schema, if you export your geometry description; in this case materials will be exported with their full description down to isotope level.
To get information on the loaded materials, you can always use the UI command "/material/g4/printMaterial material-name" and this should give you the details of the material of interest.