Mesh#

class optika.materials.meshes.Mesh(chemical, efficiency, pitch)[source]#

Bases: AbstractMesh

An explicit description of a mesh designed to support a thin-film filter.

Attributes

chemical

The chemical formula of the mesh material.

efficiency

The fraction of light that is not blocked by the mesh.

pitch

The density of the mesh in lines per inch or equivalent.

shape

The array shape of this object.

Methods

__init__(chemical, efficiency, pitch)

to_string([prefix])

Public-facing version of the __repr__ method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.

Inheritance Diagram

Inheritance diagram of optika.materials.meshes.Mesh
Parameters:
to_string(prefix=None)#

Public-facing version of the __repr__ method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.

Parameters:

prefix (None | str) – an optional string, the length of which is used to calculate how much whitespace to add to the result.

Return type:

str

chemical: str | AbstractChemical = <dataclasses._MISSING_TYPE object>#

The chemical formula of the mesh material.

efficiency: float | AbstractScalar = <dataclasses._MISSING_TYPE object>#

The fraction of light that is not blocked by the mesh.

pitch: Quantity | AbstractScalar = <dataclasses._MISSING_TYPE object>#

The density of the mesh in lines per inch or equivalent.

property shape: dict[str, int]#

The array shape of this object.