xdesign.material

Defines objects which auto-generate a parameterized Phantom.

Module author: Daniel J Ching <carterbox@users.noreply.github.com>

Module author: Doga Gursoy <dgursoy@aps.anl.gov>

Classes:

SimpleMaterial([mass_attenuation])

Simple material with constant mass_attenuation parameter only.

XraylibMaterial(compound, density)

Materials which use xraylib data to automatically calculate material properties based on beam energy in KeV.

class xdesign.material.SimpleMaterial(mass_attenuation=1.0)[source]

Bases: xdesign.material.Material

Simple material with constant mass_attenuation parameter only.

density

The mass density of the material

Type

float [g/cm^3] (default: 1.0)

linear_attenuation(energy)[source]

linear x-ray attenuation [1/cm] for the energy [KeV].

mass_attenuation(energy)[source]

mass x-ray attenuation [1/cm] for the energy [KeV].

class xdesign.material.XraylibMaterial(compound, density)[source]

Bases: xdesign.material.Material

Materials which use xraylib data to automatically calculate material properties based on beam energy in KeV.

compound

Molecular formula of the material.

Type

string

density

The mass density of the material

Type

float [g/cm^3] (default: 1.0)

beta()

x.__getitem__(y) <==> x[y]

delta()

x.__getitem__(y) <==> x[y]