Materials

Sample material represented by a complex refractive index.

class syris.materials.Material(name, refractive_indices, energies, f_1=None, f_2=None)

A material represented by its name and refractive_indices calculated for energies.

property energies

energies for which the complex refractive index was calculated.

get_attenuation_coefficient(energy)

Get the linear attenuation coefficient at energy.

get_refractive_index(energy)

Interpolate refractive indices to obtain the one at energy.

property name

Material name.

property refractive_indices

Get complex refractive indices (delta [phase], ibeta [absorption]) for all energies used to create the material.

save(filename=None)

Save this instance to a filename.

exception syris.materials.MaterialError

Material errors

syris.materials.make_fromfile(filename)

Load saved material from filename.

syris.materials.make_henke(name, energies, formula=None, density=None)

Use the https://henke.lbl.gov database to lookup a material name for energies, use the specified chemical formula and density.

syris.materials.make_pmasf(name, energies)

Make a material based on the PMASF program.

  • name - compund name defined in “compound.dat”

  • energies - list of energies which will be taken

    into account [keV]

  • steps - number of intervals between the energies

Return a list of refractive indices.

syris.materials.make_stepanov(name, energies, density=None, formula=None, crystal=None)

Use the https://x-server.gmca.aps.anl.gov database to lookup a material name for energies, use the specified chemical formula and density.