Batch SCAPS simulations
scaps_batchRun SCAPS simulations across many parameter values in grid or zip mode and tabulate J-V metrics for every point, keeping per-point files for later analysis and plotting.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | grid runs every combination; zip pairs the lists element-wise. | grid |
| 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. | |
| variables | Yes | 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]}. | |
| 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. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | Yes | ||
| points | Yes | ||
| run_id | Yes | ||
| status | Yes | ||
| seconds | Yes | ||
| progress | Yes | ||
| variables | Yes | ||
| definition | Yes | ||
| measurements | Yes | ||
| scaps_errors | Yes |