AbstractMesh#

class optika.materials.meshes.AbstractMesh[source]#

Bases: Printable, Shaped

An interface describing the supporting mesh for a thin-film filter.

Attributes

chemical

The chemical makeup 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__()

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.AbstractMesh
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

abstract property chemical: str | AbstractChemical#

The chemical makeup of the mesh material.

abstract property efficiency: float | AbstractScalar#

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

abstract property pitch: Quantity | AbstractScalar#

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

abstract property shape: dict[str, int]#

The array shape of this object.