- class EasyReflectometry.sample.assemblies.gradient_layer.GradientLayer[source]#
Bases:
BaseAssembly
A set of discrete gradient layers changing from the front to the back material. The front layer is where the neutron beam starts in, it has an index of 0.
- __init__(front_material, back_material, thickness, roughness, discretisation_elements=10, name='EasyGradienLayer', interface=None)[source]#
Constructor.
- Parameters:
front_material (
Material
) – Material of front of the layerback_material (
Material
) – Material of back of the layerthickness (
float
) – Thicknkess of the layerroughness (
float
) – Roughness of the layerdiscretisation_elements (
int
) – Number of discrete layersname (
str
) – Name for gradient layer, defaults to ‘EasyGradienLayer’.interface – Calculator interface, defaults to None.
- classmethod default(name='EasyGradientLayer', interface=None)[source]#
Default instance for a gradient layer object. The default is air to deuterium.
- Parameters:
name (
str
) – Name for gradient layer, defaults to ‘EasyGradienLayer’.interface – Calculator interface, defaults to None.
- Return type:
- classmethod from_pars(front_material, back_material, thickness, roughness, discretisation_elements, name='EasyGradientLayer', interface=None)[source]#
Instance for the gradient layer where the parameters are known, front is facing the neutron beam.
- Parameters:
- Return type:
- property thickness: float#
Get the thickness of the gradient layer in Angstrom.
- property roughness: float#
Get the Roughness of the gradient layer in Angstrom.
-
user_data:
dict
#
-
layers:
LayerCollection
# Layers in the assembly.