This module is used to generate textures for interfaces (currently only for ray-tracing textures, but this could be expanded to surfaces for RCWA calculations). It contains both standard textures and functions to define your own ray-tracing textures from input coordinates.
Whether you are defining your own surface textures or using standard textures, you can pass additional arguments to these surfaces to specify surface layers, which will be treated optically using TMM. The relevant keyword arguments are:
interface_layers
: a list of Solcore Layer objectscoherency_list
: This is a list of the same length asinterface_layers
specifying which layers are coherent ("c") and which are incoherent ("i"). If not provided, all layers are assumed to be coherent.name
: optional; name of the interface under which the TMM lookuptable will be saved.
See here for an example of how to use this in practice.
rayflare.textures.define_textures
rayflare.textures.standard_rt_textures