SCAPS-1D
v0.1.0Design, simulate, fit and sanity-check thin-film solar cells with SCAPS-1D on your own installation.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scaps_status SCAPS installation status
Report the SCAPS installation in use and how it was found, other installations, run folder and jobs.
scaps_list_files List SCAPS files
List files in a SCAPS data folder: definitions, spectra, absorption, grading, generation and more.
| Parameter | Type | Description |
|---|---|---|
contains | Case-insensitive substring filter. | |
kind | string | SCAPS data folder to list. |
limit | integer | |
offset | integer |
scaps_script_reference Search SCAPS script commands
Search the command list of the installed SCAPS version. layer, defect, interface and IFdefect stand for numbered forms (layer2, defect1); contact stands for contactleft or contactright; <none> marks commands without a value.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to match, e.g. 'defect Ntotal' or 'action qe'. |
limit | integer |
scaps_describe_device Describe a SCAPS device
Read a .def file: layers, bulk defects, interfaces with band offsets, contacts and realism checks. Fields use script names and units, so any value can be passed back as a parameter (layers[0].NA -> 'layer1.NA'). Graded layers report their base value.
| Parameter | Type | Description |
|---|---|---|
definition * | string | Definition file in SCAPS def/, e.g. 'example CIGS.def'. |
scaps_edit_device Edit a SCAPS device
Change a device and save it as a .def file: parameters, layers, defects, materials and solver settings.
| Parameter | Type | Description |
|---|---|---|
base * | string | Existing definition to start from. |
save_as * | string | New definition name, saved in SCAPS def/. |
materials | object | Load .material files into layers before the operations, e.g. {1: 'CIGSe.material'}. |
numerics | object | Numerical settings stored in the .def 'convergence' section, which scripts cannot set, e.g. {'maxiter': 2000, 'clamp_psi': 0.25, 'termination_psi': 1e-4, 'defectdiscretisations': 9}. |
operations | object | Ordered set commands, including structural ones: 'layer2.duplicate', 'layer3.remove', 'layer1.defect1.duplicate', 'layer1.defect2.gauss', 'interface1.2_default_IFdefects', 'layer1.Eg.file': 'profile.g… |
overwrite | boolean | Replace an existing file of that name. |
scaps_create_device Create a SCAPS device
Build a new device from scratch and save it as a .def file. A layer may name a .material file ('material': 'CIGSe.material'); its properties apply first and explicit keys override them.
| Parameter | Type | Description |
|---|---|---|
layers * | array | Layers from the left (back) contact. Each maps set-command suffixes to values, e.g. {'name': 'absorber', 'thickness': 0.5, 'Eg': 1.55, 'chi': 3.9, 'epsilon': 10, 'NC': 2.2e18, 'NV': 1.8e19, 'mun': 2,… |
name * | string | New definition name, saved in SCAPS def/. |
interfaces | object | Interface defects by interface number (1 lies between layers 1 and 2), up to 3 each, e.g. {1: [{'Ntotal': 1e10, 'singledonor': null}]}. |
left_contact | object | e.g. {'workfunction': 5.1, 'Sn': 1e5, 'Sp': 1e7}; a work function switches flat band off. |
numerics | object | Numerical settings stored in the .def 'convergence' section, which scripts cannot set, e.g. {'maxiter': 2000, 'clamp_psi': 0.25, 'termination_psi': 1e-4, 'defectdiscretisations': 9}. |
options | object | Other set commands, e.g. {'illumination.fromleft': null, 'numerical.Shockley-Queisser_limit.always': null}. |
overwrite | boolean | |
right_contact | object | As left_contact. |
scaps_simulate Run a SCAPS simulation
Simulate a device: J-V metrics, QE, C-V, C-f and spatial profiles, with analysis and realism checks. Analysis gives the absorber's Shockley-Queisser limit, QE-integrated Jsc and a Mott-Schottky fit of C-V. Overrides apply to this run only; files stay available through scaps_results and scaps_plot.
| Parameter | Type | Description |
|---|---|---|
definition * | string | Definition file in SCAPS def/, e.g. 'example CIGS.def'. |
actions | object | SCAPS action commands, e.g. {'iv.startV': 0, 'iv.stopV': 1.2, 'iv.increment': 0.02, 'qe.startlambda': 300, 'cf.points.per.decade': 5, 'intensity.ND': 1, 'spectrumcutoff.on': null, 'spectrumcutoff.long… |
frequency_hz | Working point frequency in Hz. | |
illumination | string | Calculate under the spectrum or in the dark. |
measurements | array | Measurements: iv (J-V), qe, cv, cf. May be empty when profiles are requested. |
parameters | object | Ordered SCAPS set commands in script units, e.g. {'layer1.thickness': 2, 'layer1.NA': 1e16, 'layer1.defect1.Ntotal': 1e14, 'layer1.defect1.singleacceptor': null, 'interface1.IFdefect1.Ntotal': 1e10, '… |
profiles | array | Spatial results at the working point voltage: eb (bands, quasi-Fermi levels, carriers, field, currents, generation and recombination rates) and genrec (occupation of every defect level); ac (small sig… |
response_format | string | detailed adds the key columns of each curve. |
spectrum | Spectrum file in SCAPS spectrum/; default AM1.5G 1 sun. | |
temperature_k | Working point temperature in K. | |
voltage_v | Working point bias in V. | |
wait_seconds | number | Wait this long for the result; longer runs continue as a job. |
scaps_batch Batch SCAPS simulations
Run one SCAPS session over many parameter values and tabulate the J-V metrics of every point. Covers thickness, doping, defect, band offset, temperature, intensity and bias studies. Every point's files are kept for scaps_results and scaps_plot.
| Parameter | Type | Description |
|---|---|---|
definition * | string | Definition file in SCAPS def/, e.g. 'example CIGS.def'. |
variables * | object | Set or action keys and their values, e.g. {'layer1.thickness': [0.3, 0.5, 1]} or {'workingpoint.temperature': [280, 300, 320], 'intensity.ND': [0, 1, 2]}. |
actions | object | SCAPS action commands, e.g. {'iv.startV': 0, 'iv.stopV': 1.2, 'iv.increment': 0.02, 'qe.startlambda': 300, 'cf.points.per.decade': 5, 'intensity.ND': 1, 'spectrumcutoff.on': null, 'spectrumcutoff.long… |
illumination | string | Calculate under the spectrum or in the dark. |
measurements | array | Measurements: iv (J-V), qe, cv, cf. May be empty when profiles are requested. |
mode | string | grid runs every combination; zip pairs the lists element-wise. |
parameters | object | Ordered SCAPS set commands in script units, e.g. {'layer1.thickness': 2, 'layer1.NA': 1e16, 'layer1.defect1.Ntotal': 1e14, 'layer1.defect1.singleacceptor': null, 'interface1.IFdefect1.Ntotal': 1e10, '… |
profiles | array | Spatial results at the working point voltage: eb (bands, quasi-Fermi levels, carriers, field, currents, generation and recombination rates) and genrec (occupation of every defect level); ac (small sig… |
spectrum | Spectrum file in SCAPS spectrum/; default AM1.5G 1 sun. | |
temperature_k | Working point temperature in K. | |
wait_seconds | number | Wait this long for the result; longer runs continue as a job. |
scaps_jobs Manage SCAPS jobs
List recent runs, or get, wait for or cancel one. A finished job includes its full result.
| Parameter | Type | Description |
|---|---|---|
action | string | What to do. |
job_id | Job (run) id for status, wait and cancel. | |
limit | integer | |
wait_seconds | number | Wait this long for the result; longer runs continue as a job. |
scaps_results Read SCAPS results
Return one table of a result file: J-V, QE, C-V, C-f curves or band, generation and AC profiles.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | Run id from scaps_simulate, scaps_batch or scaps_run_script. |
columns | Columns to keep; default all. | |
file | Result file of the run; omit to list the files. | |
max_rows | integer | |
offset | integer | |
step | integer | Keep every n-th row to thin long profiles. |
table | Table title ('bulk', 'interface') or index; default the main table. |
scaps_plot Plot SCAPS results
Render result curves as a PNG image. Requires the optional 'plot' extra.
| Parameter | Type | Description |
|---|---|---|
files * | array | Result files of the run to overlay. |
run_id * | string | Run id. |
log_x | boolean | |
log_y | boolean | |
table | Table title or index, as in scaps_results. | |
title | ||
width_px | integer | |
x | X column; default the natural axis of the file type. | |
y | Y columns; default the key column of the file type. |
scaps_run_script Run a SCAPS script
Run a SCAPS script for workflows beyond the other tools: recorder, curve fitting, math, loops, tandem. The server prepends quit and error-log settings and 'clear all'. Commands are checked against the installed SCAPS; file names must be bare; system commands are rejected. Results saved with 'save results.<kind> name' are collected into the run.
| Parameter | Type | Description |
|---|---|---|
script * | string | SCAPS script text, one command per line. |
timeout_s | Override SCAPS_TIMEOUT. | |
validate_only | boolean | Only check the script and report problems. |
wait_seconds | number | Wait this long for the result; longer runs continue as a job. |
scaps_sq_limit Shockley-Queisser limit
Detailed-balance Jsc, Voc, FF and efficiency limits for given band gaps under a SCAPS spectrum.
| Parameter | Type | Description |
|---|---|---|
band_gaps_ev * | array | Band gaps in eV. |
spectrum | Spectrum file in SCAPS spectrum/; default AM1.5G 1 sun. | |
temperature_k | number |
scaps_import_file Import a SCAPS file
Add a SCAPS file someone shared (device .def, .material, .abs, spectrum, measurement...) to the installation. Definitions and materials are parsed to confirm they are valid, and files they reference but that are missing (absorption, grading, filter) are listed.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full text of the file. |
kind * | string | File type; decides the SCAPS folder. |
name * | string | File name with its SCAPS extension, e.g. 'perovskite cell.def'. |
overwrite | boolean |
scaps_write_data Write a SCAPS input file
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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Input file type. |
name * | string | File name; the SCAPS extension is added if missing. |
x * | array | 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… |
y * | array | 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 %. |
area_cm2 | number | measurement only. |
bias_v | measurement only. | |
dark | boolean | measurement only. |
extra | measurement only: conductance G in S. | |
frequency_hz | measurement only. | |
interpolation | grading only. | |
normalise_w_m2 | spectrum only: scale total power. | |
note | Source or description, written as comment lines. | |
overwrite | boolean | |
pin_mw_cm2 | measurement only. | |
position | string | grading only. |
quantity | 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… | |
shared | boolean | grading only: one profile over adjacent layers. |
temperature_k | measurement only. | |
x_unit | string | absorption only: unit of x, wavelength or photon energy. |
scaps_optimize Fit or optimise a SCAPS device
Fit device parameters to measured curves, or optimise efficiency, Voc, Jsc or FF, by bounded Nelder-Mead. Replaces the GUI-only SCAPS curve fitter and supports several measurements at once (light and dark J-V, QE, C-V). Each simplex step is one SCAPS session per measurement condition; long runs continue as a job past wait_seconds, so poll with scaps_jobs.
| Parameter | Type | Description |
|---|---|---|
definition * | string | Definition file in SCAPS def/, e.g. 'example CIGS.def'. |
goal * | string | fit measured curves, maximise or minimise a J-V metric, or reach a target value. |
variables * | object | Set or action keys to vary with bounds, e.g. {'layer1.defect1.Ntotal': {'min': 1e12, 'max': 1e16, 'log': true}, 'layer2.thickness': {'min': 0.03, 'max': 0.12, 'start': 0.05}}. |
actions | object | SCAPS action commands, e.g. {'iv.startV': 0, 'iv.stopV': 1.2, 'iv.increment': 0.02, 'qe.startlambda': 300, 'cf.points.per.decade': 5, 'intensity.ND': 1, 'spectrumcutoff.on': null, 'spectrumcutoff.long… |
max_evaluations | integer | |
measured | array | For fit: curves to match together, e.g. [{'kind': 'iv', 'file': 'Numos Ex 1 light.iv'}, {'kind': 'iv', 'x': [...], 'y': [...], 'illumination': 'dark', 'log': true, 'weight': 1}]. Files come from SCAPS… |
metric | Metric for maximize, minimize and target. | |
parameters | object | Ordered SCAPS set commands in script units, e.g. {'layer1.thickness': 2, 'layer1.NA': 1e16, 'layer1.defect1.Ntotal': 1e14, 'layer1.defect1.singleacceptor': null, 'interface1.IFdefect1.Ntotal': 1e10, '… |
spectrum | Spectrum file in SCAPS spectrum/; default AM1.5G 1 sun. | |
target | Target value of the metric for goal 'target'. | |
temperature_k | Working point temperature in K. | |
wait_seconds | number | Wait this long for the result; longer runs continue as a job. |