Compound¶
-
class
roentgen.absorption.
Compound
(materials)[source]¶ Bases:
object
An object which enables the calculation of the x-ray transmission and absorption of a compound material (i.e. many materials). This object is usually created automatically when
Material
objects are added together.Examples
>>> from roentgen.absorption.material import Material, Compound >>> import astropy.units as u >>> detector = Compound([Material('Pt', 5 * u.um), Material('cdte', 500 * u.um)])
Methods Summary
absorption
(energy)Provides the absorption fraction (0 to 1).
transmission
(energy)Provide the transmission fraction (0 to 1).
Methods Documentation
-
absorption
(energy)[source]¶ Provides the absorption fraction (0 to 1).
- Parameters
energy (
astropy.units.Quantity
) – An array of energies in keV.
-
transmission
(energy)[source]¶ Provide the transmission fraction (0 to 1).
- Parameters
energy (
astropy.units.Quantity
) – An array of energies in keV
-