Write a SCAPS input file
scaps_write_dataConverts numeric data into correctly formatted SCAPS input files with the required units. Supports absorption, spectra, generation, filters, grading, and measurement data.
Instructions
Write numeric data as a SCAPS input file with the right format and units.
Use it for measured absorption (alpha or extinction coefficient k), custom spectra, external optical generation profiles, contact filters, grading profiles and measurement files for comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | absorption: wavelength or photon energy (x_unit); spectrum, filter: wavelength nm; generation: position um; grading: position um, relative position or composition; measurement: V (iv, cv), Hz (cf) or nm (qe). | |
| y | Yes | absorption: alpha or k (see quantity); spectrum: W/m2/nm or W/m2 per point; generation: G; filter: % transmission or reflection; grading: property in script units; measurement: mA, nF or QE %. | |
| dark | No | measurement only. | |
| kind | Yes | Input file type. | |
| name | Yes | File name; the SCAPS extension is added if missing. | |
| note | No | Source or description, written as comment lines. | |
| extra | No | measurement only: conductance G in S. | |
| bias_v | No | measurement only. | |
| shared | No | grading only: one profile over adjacent layers. | |
| x_unit | No | absorption only: unit of x, wavelength or photon energy. | nm |
| area_cm2 | No | measurement only. | |
| position | No | grading only. | absolute |
| quantity | No | absorption: alpha_per_cm (default), alpha_per_m or k; spectrum: irradiance_w_m2_nm (default) or power_w_m2; generation: per_cm3_s (default) or per_m3_s; grading: the property, e.g. composition, Eg, NA, Nt; measurement: iv, cv, cf or qe. | |
| overwrite | No | ||
| pin_mw_cm2 | No | measurement only. | |
| frequency_hz | No | measurement only. | |
| interpolation | No | grading only. | |
| temperature_k | No | measurement only. | |
| normalise_w_m2 | No | spectrum only: scale total power. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| kind | Yes | ||
| folder | Yes | ||
| points | Yes |