Run a SCAPS simulation
scaps_simulateSimulate solar-cell J-V, QE, C-V, C-f and spatial profiles from SCAPS definitions, apply run-only overrides, and analyze results with Shockley-Queisser limits, integrated Jsc, and Mott-Schottky fits.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | No | 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.longlambda': 800}. Omitted settings keep SCAPS defaults. | |
| profiles | No | 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 signal) at the last point of a cv or cf measurement. | |
| spectrum | No | Spectrum file in SCAPS spectrum/; default AM1.5G 1 sun. | |
| voltage_v | No | Working point bias in V. | |
| definition | Yes | Definition file in SCAPS def/, e.g. 'example CIGS.def'. | |
| parameters | No | 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, 'contactleft.flatband.off': null, 'contactleft.workfunction': 5.1, 'external.Rs': 0.5, 'illumination.fromleft': null, 'numerical.Shockley-Queisser_limit.always': null}. null marks commands without a value. | |
| frequency_hz | No | Working point frequency in Hz. | |
| illumination | No | Calculate under the spectrum or in the dark. | light |
| measurements | No | Measurements: iv (J-V), qe, cv, cf. May be empty when profiles are requested. | |
| wait_seconds | No | Wait this long for the result; longer runs continue as a job. | |
| temperature_k | No | Working point temperature in K. | |
| response_format | No | detailed adds the key columns of each curve. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| checks | Yes | ||
| curves | Yes | ||
| run_id | Yes | ||
| status | Yes | ||
| metrics | Yes | ||
| seconds | Yes | ||
| analysis | Yes | ||
| profiles | Yes | ||
| progress | Yes | ||
| definition | Yes | ||
| measurements | Yes | ||
| scaps_errors | Yes |