class EasyReflectometry.sample.elements.layers.layer.Layer[source]#

Bases: BaseElement

material: Material#

Material that makes up the layer.

thickness: Parameter#

Thickness of the layer in Angstrom.

roughness: Parameter#

Roughness of the layer in Angstrom.

__init__(material, thickness, roughness, name='EasyLayer', interface=None)[source]#

Constructor.

Parameters:
  • material (Material) – The material for the layer.

  • thickness (Parameter) – Layer thickness in Angstrom.

  • roughness (Parameter) – Upper roughness on the layer in Angstrom.

  • name (str) – Name of the layer, defaults to ‘EasyLayer’

  • interface – Interface object, defaults to None

classmethod default(interface=None)[source]#

Default instance of the reflectometry layer.

Parameters:

interface – Calculator interface, defaults to None.

Return type:

Layer

classmethod from_pars(material, thickness, roughness, name='EasyLayer', interface=None)[source]#

Instance of a reflectometry layer where the parameters are known.

Parameters:
  • material (Material) – The material that makes up the layer.

  • thickness (float) – Layer thickness in angstrom.

  • roughness (float) – Layer roughness in angstrom.

  • name (str) – Name of the layer, defaults to ‘EasyLayer’.

  • interface – Calculator interface, defaults to None.

Return type:

Layer

assign_material(material)[source]#

Assign a material to the layer interface.

Parameters:

material (Material) – The material to assign to the layer.

Return type:

None

user_data: dict#