skbeam.core.constants.xrf.XrfElement

class skbeam.core.constants.xrf.XrfElement(element)

Object to return all the elemental information related to fluorescence

Parameters
elementstr or int

Element symbol, name or atomic number (‘Zinc’, ‘Zn’ or 30)

Examples

>>> # Create an `Element` object
>>> e = Element('Zn') # or e = Element(30)
>>> # get the atomic mass
>>> e.mass
65.37
>>> # get the density in grams / cm^3
>>> e.density
7.14
>>> from skbeam.core.constants.xrf import XrfElement as Element
>>> e = Element('Zn')
>>> # Get the emission energy for the Kα1 line.
>>> e.emission_line['Ka1']
8.638900756835938
>>> # Cross section [barns/atom] for Kα1 line at 10 keV incident energy
>>> e.csb(10)['Ka1']
5987.081587605121
>>> # Cross section [cm2/g] for Kα1 line at 10 keV incident energy
>>> e.cs(10)['Ka1']
55.146912259583296
>>> # fluorescence yield for K shell
>>> e.fluor_yield['K']
0.46936899423599243
>>> # Find all emission lines within with in the range [9.5, 10.5]
>>> # keV with an incident energy of 12 KeV.
>>> e.find(10, 0.5, 12)
{'kb1': 9.571999549865723}
>>> # List all of the known emission lines
>>> e.emission_line.all # list all the emission lines
[('ka1', 8.638900756835938),
 ('ka2', 8.615799903869629),
 ('kb1', 9.571999549865723),
 ('kb2', 0.0),
 ('la1', 1.0116000175476074),
 ('la2', 1.0116000175476074),
 ('lb1', 1.0346999168395996),
 ('lb2', 0.0),
 ('lb3', 1.1069999933242798),
 ('lb4', 1.1069999933242798),
 ('lb5', 0.0),
 ('lg1', 0.0),
 ('lg2', 0.0),
 ('lg3', 0.0),
 ('lg4', 0.0),
 ('ll', 0.8837999701499939),
 ('ln', 0.9069000482559204),
 ('ma1', 0.0),
 ('ma2', 0.0),
 ('mb', 0.0),
 ('mg', 0.0)]
>>> # List all of the known cross sections [barns/atom]
>>> e.csb(10).all
[('ka1', 5987.081587605121),
 ('ka2', 3076.4914784265347),
 ('kb1', 821.0572112842519),
 ('kb2', 0.0),
 ('la1', 188.06856034970164),
 ('la2', 21.213083101234524),
 ('lb1', 94.10717616654374),
 ('lb2', 0.0),
 ('lb3', 6.2207984090565),
 ('lb4', 3.3964315566384187),
 ('lb5', 0.0),
 ('lg1', 0.0),
 ('lg2', 0.0),
 ('lg3', 0.0),
 ('lg4', 0.0),
 ('ll', 11.809765990232954),
 ('ln', 4.8441078404731766),
 ('ma1', 0.0),
 ('ma2', 0.0),
 ('mb', 0.0),
 ('mg', 0.0)]
__init__(self, element)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, element)

Initialize self.

line_near(self, energy, delta_e, incident_energy)

Find possible emission lines given the element.

Attributes

bind_energy

Binding energy, XrayLibWrap

cs

Fluorescence cross section function, function

csb

Fluorescence cross section function, function

emission_line

Emission line information, XrayLibWrap

fluor_yield

fluorescence quantum yield, XrayLibWrap

jump_factor

Jump Factor, XrayLibWrap