slicing

Introduction

The lightforge slicing algorithm splits the simulated devices in N slices. KMC calculations on each slice are done separatly. Transport over slice boundaries is treated as injection or ejection in the currently simulate slice.

How to the slicing alogrithm

At the current stage slicing settings have to be added to the settings file manually. Using the Wano this is possible in the IO tab by checking the box "Override Settings" and supply a text file containting slicing settings in the field "Override File".

Settings

This file needs to contain the following lines:

ME_slicing: True 
ME_effective_layers: [[xmin1,xmax1],[xmin2,xmax2]] 
ME_switch_order: [[eff_layer_i, eff_layer_j], [eff_slice_k, ..], ...] 
ME_require_interfaces: [[eff_layer_i,..],[eff_layer_j,..]] 
ME_switch_iter: [iter slice_0, iter slice_1, iter slice_2] 
buffer_update_iter: 149980 
max_buffer_states: 20000
ME_max_dimers: 15000
ME_min_inj_charges: 5 
ME_q_convergence: 0.1 
ME_max_slice_iter_mult: 0.9 
ME_cut_dimers: pconf 
ME_tracking_mode: new 

The indiviual lines are explained below:

ME_slicing: True # No slicing is used otherwise and other settings are ignored
ME_effective_layers: [[xmin1,xmax1],[xmin2,xmax2]] #e.g.[[0,10],[10,20]]

The slicing algorithm switches between individual effective layers or combinations of effective layers. The definition of the effective layers is indepenent of the actual OLED setup (i.e. materials). The effective layers defined by ME_effective_layer must comprise the entire system from left to right, must not overlap and must not have gaps in between. This means xmax_(i) == xmin_(i+1). There is currently no sanity check for this so please take care. Check the guide on layer setup below.

ME_switch_order: [[eff_layer_i, eff_layer_j], [eff_slice_k, ..], ...] #e.g. [[0],[2],[1]] or [[0,1,2],[1]]

This defines the slices on which the kmc simulations are performed. This also defines the order in which it will be switched between the different slices (from left to right). The integer label of the effective layer refers to the order of the layer definition in ME_effective_layers. Check the guide on slice setup below.

ME_require_interfaces: [[eff_layer_i,..],[eff_layer_j,..]] #e.g. [[1], [1], [2,0]]

Entries in ME_require_interfaces correspond to the slices defined in ME_switch_order. For a given slice, this defines which boundaries (the boundaries to which layers) have to be sampled before the slice can be switched. In the example above slice 0 would be simulated until the boundary to effective layer 1 would be sufficiently sampled. Afterwards slice 1 would be simulated until the boundary to effective layer 1 is sampled. Afterwards slice 2 would need to sample both the boundaries to effective layer 0 and 2.

ME_switch_iter: [iter slice_0, iter slice_1, iter slice_2]  #e.g. [150000,150000,5000000]

Minimum number of KMC steps to be performed before the slice is switched. A slice can only switch if the interface to the next slice was occupied during the simulation, otherwise the simulation of the current slice is continued. If max_iterations is larger then the sum of the switch iterations, the algorithm will cycle through the slices until max interations is reached.

buffer_update_iter: 149980 

Number of iterations after which the configuration buffer is updated. Needs to be smaller then ME_switch iters. It is recommended to choose a value of ~ 99% of the smallest ME_switch_iter.

For the following values we recommend to take the suggested defaults:

max_buffer_states: 20000

Max. number of many particle configurations to be buffered per boundary. Too high a number might affect performance severly. 10000-20000 Is sufficient for most cases.

ME_max_dimers: 15000

Maximum number of interface connection between slices. Note that two sites a,b can have multiple connections, as barriers differ depending on Coulomb interaction with other particles.

ME_min_inj_charges: 5 # minimum number of charges that was injected in current slice
ME_q_convergence: 0.1 # quantity to determine current stability, leave at default
ME_max_slice_iter_mult: 0.9 #the two upper conditions are ignored if iterations in current slice are larger than this number times the slice iterations defined in ME_switch_iter

These are three additional termination conditions that influence whether a slice can be switched. Apart from these condiditions, the general condition is that the boundary between slices was sampled.

For the following values, always take the default:

ME_cut_dimers: pconf 
ME_tracking_mode: new 

Guide on effective layer setup

It is recommended to set up effective layers at least 1-2 nm away from regions of high charge carrier concentration. In practice this means at a small distance from material boundaries with high barriers and in particular at a distance to doped injection layers. A compromise between two effects has to be found. 1) the further away a layer boundary from regions of high carrier concentration (doped layers), the more accurate Coulomb correlations will be treated. 2) If the boundary is too far behind a barrier, it might take a long simulation time to sample the particle occupation of the boundary. Depending on the system this might require some trial and error. Lets go through this for an OLED with one hole/electron injection layer, one hole/electron transport layer and one missive layer spaced like this: 5nm HIL | 10nm HTL | 20nm EML | 10nm ETL | 5nm EIL For this a reasonable starting point for the effective layer setup could be:

ME_effective_layers: [[0,6],[6,44],[44,50]]

If there is no barrier between e.g. the ETL and the EIL there will be significant electron diffusion over the ETL EIL boundary and a better setup might be this:

ME_effective_layers: [[0,6],[6,43],[43,50]]

To test wether your slicing setup is robust for this kind of calculation you could run short simulations (max_iterations: 100000) for different setups e.g. [43,50] and [42,50] and check whether the obtained charge charrier densities are the same. When you do this, it is important to set the settings autorun_start: 0.0 in the analysis tab.

Guide on slice setup

This paragraph cotains guidlines how to setup the values for settings

ME_switch_order: [[eff_layer_i, eff_layer_j], [eff_slice_k, ..], ...] 

Consider an OLED with one hole/electron injection layer, one hole/electron transport layer and one missive layer spaced like this: 5nm HIL | 10nm HTL | 20nm EML | 10nm ETL | 5nm EIL with the following effective layer setup:

ME_effective_layers: [[0,6],[6,44],[44,50]]

The first simulated slice has to be connected to at least one electrode, this means it needs to contain either effective layer 0 or 2 or both. The next simulated slice needs to be bordering either to an electrode or another slice which has already been simulated, such that an injection rate can be calculated. Thus a possible setup could be:

ME_switch_order: [[0],[2],[1]] #simulate the HIL, then the eil, then the inner OLED

or

ME_switch_order: [[0],[1],[2]] #simulate HIL, then inner OLED, then EIL

or

ME_switch_order: [[0,1,2],[1]] #simulate entire OLED, then only inner OLED

The switch order can affect the equilibration of electrostatics and boundary occupation probabilities. All effective layers in one slice are simulated simulataneously and are internally equilibrated if sufficient iteration steps for the slice are defined. If to many effective layers are in one slice sampling behind barriers might be very bad or if different timescales occur in different parts of the slice, part of the slice might be undersampled making switching to the next slice impossible. On the other hand if slices are small, equilibration between slices might take more cycles.

For the given exmaple we reccommend ME_switch_order: [[0],[2],[1]].

The results of the search are