- 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=None, back_material=None, thickness=2.0, roughness=0.2, discretisation_elements=10, name='EasyGradienLayer', interface=None)[source]#
Constructor.
- Parameters:
front_material (
Optional
[Material
]) – Material of front of the layerback_material (
Optional
[Material
]) – Material of back of the layerthickness (
Optional
[float
]) – Thicknkess of the layerroughness (
Optional
[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.
- 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#