UniformMedium
A metatype for describing a medium with uniform properties.
Attributes
Name | Type | Description |
---|---|---|
density | number |
Bulk density of the medium, in kg/m3 (see below). |
magnet | double [3] |
Magnetic field Cartesian components in the simulation frame, in T. |
material | string |
Name of the filling material. |
Constructor
The UniformMedium wraps a TabulatedMaterial. Optionaly one can specify an alternative bulk density and/or an extra local magnetic field.
Note
The ionization loss of charged particles depends on the target material atomic spacing, i.e. on its density (see e.g. Sternheimer et al., 1984). Therefore, it is a priori not correct to arbitrarly change the medium density without re-computing the energy loss. However, in some cases, e.g. a porous rock filled with air, it is a good approximation to use a lower bulk density than the material one since the air density (energy loss) is negligible w.r.t. the rock one. For more balanced mixtures, e.g. a porous rock filled with water, one should instead use a composite TabulatedMaterial and vary the mass fractions rather than the medium bulk density.
Synopsis
pumas.UniformMedium(material, (density), (magnet))
Arguments
Name | Type | Description |
---|---|---|
material | string |
Name of the filling material. |
(density) | number |
Bulk density of the medium, in kg/m3. If nil then the default material density is used. |
(magnet) | Coordinates or table |
Magnetic field components in the simulation frame, in T. |
Note
The filling material must reference a TabulatedMaterial of the Physics used for the simulation.
Note
The local magnetic field is superimposed over (added to) any magnetic field defined by the geometry.