Home Examples Screenshots User manual Bluesky logo YouTube
OghmaNano Multiphysics simulation platform for optoelectronic devices and photonic systems DOWNLOAD Quick Start guide

Materials database: Part C - More detail on the materials database

1. How are the materials actually stored?

Materials are stored within the oghma_local folder in your home directory. This folder contains the local databases and data used by OghmaNano simulations, including 3D databases, n–k data, emission spectra, and other simulation resources. On Windows, oghma_local is located inside the user's home directory. There are always two copies of the OghmaNano Materials database on a user's computer. The copy in oghma_local is the one that is actually used by simulations. A second reference copy is stored with the OghmaNano installation. On a Windows PC, for example, this is typically located in C:\Program Files (x86)\OghmaNano\materials. This reference copy is never used directly for simulations; instead, it provides a clean default version of the database that can always be restored. When OghmaNano starts, materials from the installation copy are copied into oghma_local as required. This means that the local database can be edited and extended without modifying the original reference copy. It also provides a simple recovery mechanism: if the local materials directory becomes damaged or corrupted, it can simply be deleted and OghmaNano will restore it automatically from the reference copy the next time the program starts.

Tip: Opening your home directory

On Windows, the most reliable way to open your home directory is:

If you navigate to your oghma_local folder in your home directory ?? and open the materials subdirectory, you will see the materials database stored as a collection of folders ??. Each material has its own folder—for example, aluminium will have one folder, and P3HT will have another. Inside each material’s folder are a set of simple text files ??. For instance, alpha.csv contains a two-column CSV file giving wavelength versus absorption coefficient (in m−1), while n.csv contains wavelength versus refractive index (dimensionless). These files can be edited directly with any text editor, allowing you to copy in your own data without using the Import Data wizard if you prefer.

Screenshot of the oghma_local folder in the user's home directory. Example shown on Linux; Windows paths differ as described above.
The oghma_local folder in the user’s home directory (Linux example; Windows path differs).
Screenshot of the materials directory within oghma_local, showing folders for different material categories such as metals, oxides, polymers.
Inside materials, with folders for material categories (metals, oxides, polymers, etc.).
Screenshot of the Alq3 material folder in small_molecules, showing files such as alpha.csv, n.csv, emission.csv, and data.json.
Example material folder (Alq3), containing alpha.csv, n.csv, emission.csv, etc.

A summary of the key files is given in the table below:

File name Description
data.json JSON file containing information about the material (e.g. LUMO/HOMO levels).
alpha.csv Wavelength (m) vs absorption coefficient (m-1).
n.csv Wavelength (m) vs refractive index (a.u.).
emission.csv* Wavelength (m) vs PL emission (a.u.).
mat.bib BibTeX file containing references for the material.
Summary of the files making up each material in the materials database. *The file emission.csv is only required if the material forms part of an emissive layer of an OLED or other light-emitting device.

Sample file formats (click to open)

Refractive index (SI, two columns) n.csv
#λ_m,n
3.00e-07 1.65
3.50e-07 1.70
4.00e-07 1.74
4.50e-07 1.78
5.00e-07 1.80
5.50e-07 1.82
6.00e-07 1.84
6.50e-07 1.85
7.00e-07 1.86
7.50e-07 1.87
8.00e-07 1.87
Absorption (SI, two columns) alpha.csv
#λ_m,alpha_m^-1
3.00e-07 2.0e6
3.50e-07 1.8e6
4.00e-07 1.5e6
4.50e-07 1.2e6
5.00e-07 8.5e5
5.50e-07 4.0e5
6.00e-07 1.5e5
6.50e-07 7.0e4
7.00e-07 3.0e4
7.50e-07 1.0e4
8.00e-07 5.0e3
Compatibility format (.nk, nm / n / k) nk.csv
#λ_nm,n,k
300 1.65 0.25
350 1.70 0.20
400 1.74 0.15
450 1.78 0.10
500 1.80 0.07
550 1.82 0.05
600 1.84 0.03
650 1.85 0.02
700 1.86 0.015
750 1.87 0.010
800 1.87 0.008

The wizard can convert nm→m and k→α via α(λ)=4πk/λ. .nk files are read-only/limited.

Summary & next steps

Next: See Optical database, Backups of simulations, or Downloading more materials.