Home Examples Screenshots User manual Bluesky logo
OghmaNano Simulate organic/Perovskite Solar Cells, OFETs, and OLEDs DOWNLOAD

Quick start: Using Solar Spectra in J–V Simulations

In this quick start we take the solar spectra generated with OghmaNano’s Solar Spectrum Generator and use them as inputs for photovoltaic device simulations. By importing spectra into the simulator, we can run J–V curves and directly compare how devices behave under different illumination conditions (e.g. AM1.5G, polluted atmosphere, morning vs. noon sun).

1. Introduction:

In Part A, we saw how spectra vary with time of day, season, latitude, and air quality. In this section, we will import those spectra into the simulator to examine their impact on device performance. Because the normalisation bug has been fixed, each spectrum now retains its absolute irradiance. This means that both the shape of the spectrum (e.g. UV suppression by aerosols, IR absorption by water vapour) and the total intensity influence the J–V results.

This approach lets us answer practical questions, such as:

By linking spectra directly into J–V simulations, we bridge the gap between solar irradiance modeling and device performance analysis, making it possible to test realistic operating conditions beyond the AM1.5G standard.

2. Getting started:

This tutorial continues directly from the previous section (see Part A). Please make sure you have completed that tutorial before starting here. We will assume that you have already generated a new spectrum called Example using the Solar Spectrum Generator. Open the example spectrum in the Optical Spectrum Editor. In this part of the tutorial, our goal is to create a spectrum that looks very different from the standard AM1.5G reference. To do this, you can adjust any of the input parameters — such as time of day, date, latitude, atmospheric water content, or aerosol optical depth. In the example below, the aerosol optical depth (AOD) has been set to 7.0, producing a much weaker Iglobal and Idiffuse profile compared to AM1.5G (see ??).

Once you have adjusted the parameters and generated your new spectrum, click the Export spectrum button to save it into the model. The spectrum will automatically be imported back into the Optical Spectrum Editor, where it is added under the name Example. This can be seen in ??.

Solar Spectrum Generator with aerosol optical depth set to 7.0, showing reduced global and diffuse irradiance compared to AM1.5G.
Solar Spectrum Generator with AOD = 7.0. The global and diffuse profiles are strongly reduced compared to AM1.5G, providing a clear test case.
Optical Spectrum Editor showing the newly imported spectrum with reduced intensity after export.
The Optical Spectrum Editor after exporting from the generator. The new spectrum is automatically added and displayed.

3. Running the baseline simulation

Before we use the custom solar spectrum you generated, let’s run a baseline electrical simulation to establish the device’s current performance. We’ll then compare the results to the run that uses your new spectrum.

Main OghmaNano window with the Run simulation button visible on the File ribbon.
The main OghmaNano window. Click Run simulation to execute a baseline electrical run.
Simulation output folder showing result files including JV data and sim_info.dat.
After the run, open the output folder and review the J–V data file (jv.csv or jv.csv, depending on your setup) and sim_info.dat. Note the device’s VOC, JSC, and fill factor to use as your baseline.

4. Using your generated spectra

Now we’ll use the spectrum you created (e.g., Example) in a device simulation. Open the Optical ribbon and click Light Sources to open the Light Source editor. Change the spectrum from AM1.5G to example, then re-run the electrical simulation. Finally, review jv.csv (or jv.csv) and sim_info.dat to compare the updated PCE, VOC, and JSC against your baseline.

Optical ribbon in OghmaNano with the Light Sources icon highlighted.
On the Optical ribbon, click Light Sources to open the editor.
Light Source editor with the spectrum dropdown open, selecting 'example' instead of AM1.5G.
In the Light Source editor, switch the spectrum from AM1.5G to your generated example spectrum.
Main window showing the Run simulation button used to re-run the device with the new spectrum.
Click Run simulation to re-run the device. Then examine jv.csv (or jv.csv) and sim_info.dat for changes in PCE, VOC, and JSC.

📝 Try it yourself

Use your Example spectrum in the Solar Spectrum Generator and vary the parameters below. After each change, click Calculate, then Export spectrum and re-run the J–V simulation. Compare how PCE, VOC, and JSC change against your baseline.

✅ Expected trends
  • AOD: Higher aerosol levels scatter and absorb more light, reducing total irradiance. Idirect drops sharply; Idiffuse increases. Expect lower JSC and PCE overall.
  • Water vapour: Adds absorption bands in the near-IR. These cut into spectral regions important for organic PV, leading to a modest drop in JSC and efficiency.
  • Time of day: Morning/afternoon (higher air mass) red-shifts the spectrum and lowers total intensity. Voc may decrease slightly due to lower irradiance.
  • Latitude: Higher latitudes increase air mass (on average), leading to lower irradiance and stronger seasonal variation. Equatorial spectra are more intense and balanced across wavelengths.
  • Altitude: At higher elevations, there is less atmosphere above you. This increases direct irradiance and reduces scattering losses, so JSC increases compared to sea level.

These effects illustrate how environmental conditions directly affect photovoltaic device performance.

What you’ve learned in this tutorial

🎯 By completing Part B, you’ve connected solar irradiance modeling to device-level performance, moving from physical spectra to photovoltaic efficiency analysis.