Simple circuit simulations
OghmaNano was primarally designed as a tool to perform detailed device simulations, however sometimes one does not need a full device simulation to understand what is happening in your device. On some occasions a simple circuit model comprising of resistors, capacitors, and ideal diodes will do. For these occasions OghmaNano includes an electrical circuit solver. The circuit solver is a drop in replacement for the drift diffusion solver in that the voltages applied to it are defined in exactly defined in exactly the same way, the experimental modes such as time domain, frequency domain and EQE all work with the circuit solver. Furthermore, the transfer matrix model which is used to calculate how much light is absorbed in each layer can connected to the diodes, thus enabling photocurrent to be correctly simulated. There are a few examples if circuit simulations in the mode, these can be found in the Simple Diode Model folder of the new simulation folder (see figure [fig:circuit_new_device].).
[fig:circuit_new_device]
With in this folder there are a few example circuit simulations (see Figure [fig:circuit_new_sub_menu]).
If one opens the OPV PM6:Y6 JV curve one will get a simulation that looks just like other simulations in OghmaNano (see Figure [fig:circuit_new_sub_menu]), however this simulation has another tab called circuit diagram in the main window, if one clicks it one should see a circuit diagram as show in Figure [fig:circuit_example_circuit]. This is the circuit diagram editor. On the left is a toolbar, from the top the toolbar provides the following functionality:
-
Resistor: This adds a resistor to the circuit.
-
Capacitor: This adds a capacitor to the circuit.
-
Diode: This adds a standard diode to the circuit of form \(i(t,V)=I_{0}(e^{\frac{qV}{nkT}}-1)-I_{light}\), \(I_{light}\) is taken from the optical simulations.
-
Non-linear element: This adds a non-linear circuit element of form \(i(t,V)={\frac{I_{0}*V}{V_{0}+d}}^m\)
-
Wire: A perfect wire with no parasitic parameters.
-
Earth: This acts as a ground set at 0V.
-
Battery: This applies the voltage to the circuit. The voltage is taken from the contact marked change in the contact editor.
-
Pointer: This ise used to select and edit circuit elements.
-
Brush: This is used to delete circuit elements.
[fig:circuit_example_device_sim]
[fig:circuit_example_circuit]
By clicking on any circuit element with any tool apart from the brush, you can change the values of the components as seen in Figure [fig:circuit_edit_component], and zoomed in Figure [fig:circuit_edit_component_zoom]. Figure [fig:circuit_edit_component_zoom] shows the configuration window for the diode component. From the top the options are:
-
Component: This can be used to change what component the circuit element represents.
-
Name: This is an human readable name given to the circuit element, you can call it what you want.
-
Ideality factor: The diode ideality factor n.
-
I0: Saturation current in the diode equation.
-
Layer: This is the layer that the diode represents, the light current will be calculated from the generation in this layer.
[fig:circuit_edit_component]
[fig:circuit_edit_component_zoom]
After you have run the simulation by clicking the play button or by pressing F9, simulation output will be visible in the output tab as usual. All the files you would expect from the usual drift diffusion simulations will be generated. One extra output that is generated in the circuit simulation is the Net list this is visible in Figure 11.2, when you double click on this it brings up the Net list window which is visible in Figure 11.2, this shows the voltage over and current through every component in the circuit. You can use the slider to step through the simulation steps, these will be time or voltage steps. The net list is only generated when the simulation output is set to Write everything to disk in the simulation editor.


JV, IS, CV and other simulation modes
As mentioned above the circuit simulator is compatible all simulation modes in OghmaNano, by switching the simulation mode to Impedance Spectroscopy one can simulate the frequency response of the circuit (see Figure 11.3), the result of which can be seen in Figure 11.4 where the file real_imag.csv has been plotted.


Using the fitting/scan tools with circuit models
The circuit models are exposed in the json tree just like the drift diffusion material paramters and therefore you can also use the fitting and scan tools to either fit the data to experiment or to scan through circuit values.