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

Quick start: Solar Spectrum Generator overview

In this quick start we use OghmaNano’s Solar Spectrum Generator to simulate solar spectral irradiance at the Earth’s surface. The tool outputs the standard AM1.5G solar spectrum alongside calculated global, direct, and diffuse irradiance components. These spectra can be exported and applied directly in optical or photovoltaic device simulations.

1. Background:

The generator is based on the Simple Solar Spectral Model for Direct and Diffuse Irradiance on Horizontal and Tilted Planes at the Earth's Surface for Cloudless Atmospheres by Bird and Riordan (1986), published in the Journal of Applied Meteorology and Climatology (link). This model is widely used for solar irradiance modeling in photovoltaics and atmospheric science.

The spectrum is computed by accounting for major atmospheric processes: Rayleigh scattering, absorption by ozone, gases, and water vapour, plus attenuation by aerosols and particulates. Input parameters include time of day, date, latitude, altitude, and atmospheric conditions such as pressure, aerosol optical depth, and water vapour content.

These controls let you explore how solar spectra vary with environment. For example, lower sun angles (morning/evening) increase air mass and red-shift the spectrum, while high water vapour content enhances near-infrared absorption bands. Increased aerosols or pollution reduce direct irradiance and boost the diffuse component — spectra for a polluted city like Beijing look very different to those for London or a clean, high-altitude site.

Generating and comparing spectra under different conditions helps demonstrate how atmospheric and environmental factors influence device illumination. For benchmarking, the standard AM1.5G spectrum is included, which integrates to ~1000 W m−2 under standard test conditions.

2. Getting started:

To begin, open the New simulation window from the File ribbon in the main menu. For this tutorial we will select an Organic solar cell example (see ??). You can choose any of the available devices — the solar spectra generated are independent of the device type — but organic solar cells make a useful demonstration case (see ??).

Once the simulation has been created, go to the Optical ribbon and click the Optical database icon (see ??). This will open the database where solar spectra can be viewed, generated, and imported.

New simulation window with the Organic solar cell example highlighted.
The new simulation window with the Organic solar cell example highlighted.
List of organic solar cell examples showing PM6:D18:L8-BO and other devices.
Selecting a specific organic solar cell example. Any device type can be used, as solar spectra are applicable across all devices.
Optical ribbon in OghmaNano with the Optical database icon highlighted.
After creating the simulation, go to the Optical ribbon and select the Optical database icon to open the spectra database.

Once you have selected the Optical database item, the database window will open (see ??). Here you can see existing spectra such as AM1.5G, AM0, LEDs, and lasers. To create a new entry, click the Add Spectra button on the right-hand side. This opens a dialog (see ??) where you can enter a name for the new spectrum. In this example we will call it Example.

After confirming, a new icon labelled Example will appear in the database window. Double-clicking this new item will open the Optical Spectrum Editor (see ??), where you can view, edit, or import spectral data.

Optical database window showing available spectra including AM0, AM1.5G, and LED sources.
The Optical database window, listing existing spectra such as AM0, AM1.5G, and various LEDs.
Optical database window with the Add Spectra dialog open to create a new entry called Example.
Creating a new spectrum by clicking Add Spectra and entering the name Example.
Optical Spectrum Editor displaying the AM1.5 spectrum intensity versus wavelength.
The Optical Spectrum Editor window, where spectral data can be viewed, imported, or edited.

3. Generating spectra with the Solar Spectrum Generator

Solar Spectrum Generator showing spectra calculated for a specific time of day with AM1.5G reference, global, direct, and diffuse components.
Solar Spectrum Generator run at a given time of day, showing the AM1.5G reference compared with calculated global, direct, and diffuse irradiance components.
Solar Spectrum Generator showing spectra generated on a different date, demonstrating how seasonal variations affect irradiance.
Spectrum generated for a different calendar date. Seasonal changes in solar elevation modify the balance between direct and diffuse components.
Solar Spectrum Generator showing spectra with increased aerosol optical depth, highlighting stronger attenuation and reduced direct irradiance.
Spectrum generated with a higher aerosol optical depth (AOD = 7). Strong attenuation reduces direct irradiance, while the diffuse fraction increases.

From the Optical Spectrum Editor (??), click Solar spectrum generator. This opens the generator shown in ??, ??, and ??. The tool implements the model described by Bird and Riordan (1986), Simple Solar Spectral Model for Direct and Diffuse Irradiance on Horizontal and Tilted Planes at the Earth's Surface for Cloudless Atmospheres (link), to compute AM1.5G alongside calculated global, direct, and diffuse components under user-defined conditions.

Time of day — Sets the solar hour. As the sun moves lower (morning/evening), the solar zenith angle increases, path length through the atmosphere grows (higher air mass), and UV/visible attenuation rises; the spectrum tends to red-shift slightly and the diffuse fraction increases.

Date (day of year) — Controls seasonal geometry (declination). Summer dates yield higher solar elevation at a given location, increasing direct irradiance; winter dates reduce it. This explains the differences seen between ?? and ??.

Latitude — Sets observer location. Lower latitudes generally experience higher peak solar elevation and thus lower air mass; high latitudes see more atmospheric traversal, boosting Rayleigh and aerosol effects and reducing the direct component.

Pressure — Approximates altitude/meteorology. Lower pressure (high altitude) reduces molecular density and Rayleigh scattering, increasing short-wavelength transmittance; higher pressure does the reverse.

Aerosol optical depth (AOD) — Represents particulate loading (haze/pollution). Larger AOD strengthens aerosol extinction, suppressing the direct beam and transferring energy to the diffuse component. Compare the clean case with the polluted case in ??.

Water content — Sets precipitable water vapour. Increasing this deepens near-IR absorption bands (e.g., around 940 nm and beyond), reducing IR irradiance while leaving most of the visible less affected.

Adjust these controls to generate site- and condition-specific spectra, then export the result for use elsewhere in the simulation workflow.

4. Comparing AM1.5G, Iglobal, Idirect, and Idiffuse

When running the Solar Spectrum Generator, the results are plotted alongside the standard AM1.5G reference spectrum. This reference is widely used in photovoltaics as a benchmark for testing and comparing solar cell performance under "1 sun" conditions.

The generator additionally outputs three components of the solar irradiance:

Comparison to AM1.5G: The AM1.5G spectrum is essentially a fixed standard representing Iglobal at an air mass of 1.5 and a tilt angle typical for mid-latitudes. In contrast, the simulated Iglobal, Idirect, and Idiffuse curves vary dynamically with location, season, time of day, and atmospheric conditions. Comparing them allows you to see how real-world conditions deviate from the "idealized" AM1.5G case.

Try it yourself — explore how conditions reshape the solar spectrum

  1. Aerosols (pollution): Set AOD to 0.1, click Calculate, then set it to 1.0 and 3.0, clicking Calculate each time. Observe changes in the blue/UV and the direct vs. diffuse curves.
  2. Water vapour: Set Water to 0.2 cm and calculate, then try 1.0 cm and 3.0 cm. Focus on the near-IR region (≈700–2000 nm).
  3. Solar geometry (time/season): Fix latitude (e.g., 36°). Choose a summer date at local noon and calculate; then choose a winter date or early morning/evening and calculate again. Compare the direct/diffuse balance.
  4. Latitude: Keep the same date/time. Calculate at (equator), then 50°60° (e.g., London), clicking Calculate after each change.
Show expected observations
  • AOD ↑ (more particulates): Stronger aerosol extinction suppresses the direct curve and increases the diffuse fraction. The spectrum dims more in the UV/blue (shorter wavelengths) and flattens slightly across the visible.
  • Water ↑ (precipitable water vapour): Near-IR absorption bands deepen and widen — prominent features near ~720, ~820, ~940, ~1130, ~1380 and ~1870 nm reduce irradiance there, while the visible is comparatively less affected.
  • Time/season (air mass): Lower sun (morning/evening or winter) → longer path length → more Rayleigh/aerosol loss, a “reddened” spectrum, lower direct component, higher diffuse share. Near noon/summer the opposite trend holds.
  • Latitude: Higher latitudes generally show lower peak elevation and stronger atmospheric losses; equatorial settings yield higher direct irradiance and less attenuation.

Note: If your downstream device simulation normalizes spectra to 1 sun, total current may not change; focus on spectral shape differences (which bands gain/lose irradiance). You can ignore the NO₂ field for this exercise.

👉 Next step: Move on to Part B to learn how to use the generated solar spectra in OghmaNano simulations, including integration with device models and analysis workflows.