MaterialRecord

This class stores tables of pre-calculated physical properties of a material relevant to Monte Carlo transport, such as cross-sections. These data are accessible as read-only numpy.ndarray through table views described below.

Constructor

class MaterialRecord(*args, **kwargs)

Warning

Material records should not be instantiated directly, but only from a MaterialRegistry. Direct instantiation will result in a TypeError.

Attributes

Materialrecord.definition: MaterialDefinition

The material definition from which the record was generated.

Materialrecord.electrons: ElectronicStructure

The electronic structure associated to this material.

Methods

MaterialRecord.absorption_cross_section() CrossSection

Returns a read-only view of the cross-section table for absorption processes.

Note

See ComptonProcess for the meaning of mode and model parameters in Compton processes related methods below.

MaterialRecord.compton_cdf(model=None, mode=None) DistributionFunction

Returns a read-only view of the cumulative distribution function (CDF) describing a Compton collision.

MaterialRecord.compton_cross_section(model=None, mode=None) CrossSection

Returns a read-only view of the cross-section table for a given Compton process.

MaterialRecord.compton_inverse_cdf(model=None, mode=None) InverseDistribution

Returns a read-only view of the inverse transform of the cumulative distribution function (CDF) describing a Compton collision.

MaterialRecord.compton_weight(energy_in, energy_out, model=None, mode=None)

This is a convenience function. It returns the Monte Carlo weight for the sampling of Compton collisions, for a given model and simulation mode.

MaterialRecord.rayleigh_cross_section() CrossSection

Returns a read-only view of the cross-section table for Rayleigh collisions.

MaterialRecord.rayleigh_form_factor() FormFactor

Returns a read-only view of the form factor describing Rayleigh collisions.