You're reading the documentation for a development version.
For the latest released version, please have a look at v0.5.1.

5. Material commands#

Macro commands related to material of the Target.

5.1. Element definition#

# define element with isotopes  NAME        CH.SYM.   ISOTOPES 
/SEE/material/addElement        enriched_B  B         10  0.96    11  0.04

addElement parameters

Type

M?

Description

Example value

NAME

string

y

Name of new element (its reference)

enriched_B

CHEMICAL SYMBOL

string

y

Chemical symbol of element

B

ISOTOPE NUCLEON NUMBER

int

y

Nucleon (mass) number of an isotope, A

10

ISOTOPE ABUNDANCE

double

y

Abundance fraction of an isotope

0.96

ISOTOPE NUCLEON NUMBER and ISOTOPE ABUNDANCE parameters can only be used in pairs: “A\(_1\) abundance\(_1\) A\(_2\) abundance\(_2\) …”

There are no default values for the parameters of this command.

5.2. Material definition#

# define material           NAME        DENSITY       ELEMENTS
/SEE/material/addMaterial   ShieldMat   2.52 g/cm3    enriched_B 4  C 1
/SEE/material/addMaterial   Si3N4       3.17 g/cm3    Si 3          N 4

addMaterial parameters

Type

M?

Description

Example value

NAME

string

y

Name of new material (its reference)

Si3N4

DENSITY with unit

double u

y

Material density

3.17 g/cm3

ELEMENT NAME or CHEMICAL SYMBOL

string

y

Name or chemical symbol of an element

enriched_B, C

ELEMENT STOICHIOMETRIC RATIO

double

y

Chemical ratio of an element

4

Any element of the periodic table can be used for CHEMICAL SYMBOL parameter.

ELEMENT NAME/CHEMICAL SYMBOL and ELEMENT STOICHIOMETRIC RATIO parameters can only be used in pairs: “name\(_1\) ratio\(_1\) name\(_2\) ratio\(_2\) …”

There are no default values for the parameters of this command.

5.3. Mixture definition#

# define mixture            NAME        DENSITY       MATERIALS
/SEE/material/addMixture    BEOLmix     3 g/cm3       G4_Cu 0.4   Si3N4 0.6

addMixture parameters

Type

M?

Description

Example value

NAME

string

y

Name of new mixture (its reference)

mixMat

DENSITY with unit

double u

y

Material density of homogeneous mixture

3.41 g/cm3

MATERIAL NAME

string

y

Name of a component

G4_Cu, Si3N4

MATERIAL MASS FRACTION

double

y

Mass fraction of a component

0.35

Any predefined G4 element/material from this list can be used for the MATERIAL NAME parameter.

MATERIAL NAME and MATERIAL MASS FRACTION parameters can only be used in pairs: “name\(_1\) mass_fraction\(_1\) name\(_2\) mass_fraction\(_2\) …”

There are no default values for the parameters of this command.