pysics.basics.material.material_stack.MaterialStack

class pysics.basics.material.material_stack.MaterialStack(**kwargs)
Parameters:

display_style: DisplayStyle, optional

A display style for visualisation of the material stack

materials_heights: list, optional

A list with (material, height) tuples

name: str, optional

The name of the material stack

size_z: float and number > 0, optional

solid_height: optional

consolidate()

generates a copy where all adjacent layers of identical materials are joined

consolidate_copy()

generates a copy where all adjacent layers of identical materials are joined

define_size_z()
define_solid_height()
get_epsilon_at_z(z_coord, environment=<pysics.basics.environment.Environment object>)
get_material_id_at_z(z_coord, material_factory=None)

Given an z coordinate(or array of z-coordinates) returns the materials id number. The material factory can be passed but is withdrawn from the tech file by default.

Parameters:

z_coord : array

Array of z coordinates at which you want the material id.

material factory : material_factory

material factory in which to get the coordinates

Returns:

material_id array

get_number_of_layers()
get_numpy_matrix_representation(environment=<pysics.basics.environment.Environment object>)

Make a numpy matrix with for each layer a row that contains: StackID | Layer Height | Layer epsilon | number of layers in stack

get_solid_size_z()

returns the height of the stack from bottom to top until the forst non-solid material is encountered

get_unique_id()