.claude/skills/driftfusion-initialization/SKILL.md
Initialize the Driftfusion simulation environment and create parameter objects. Use this skill when starting a new MATLAB session or setting up device properties for simulation.
npx skillsauth add ShaneLogic/SolarLab driftfusion-initializationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Initialize the Driftfusion environment and create parameter objects for device simulation.
initialise_df:
initialise_df
Critical Constraint: Must run from parent folder (not subfolders) and BEFORE loading any saved data objects.
Create parameters object:
par = pc('path/to/file.csv')
CSV import process:
pc class are overwritten by CSV valuesimport_properties reads present properties from fileProperty definition rules:
Error checking:
layer_type column validates all other entriesExtensibility:
pc class and import_properties listpar populated with device-specific propertiesdevelopment
Understand and comply with Driftfusion software licensing terms, including the open-source AGPL v3.0 frontend and proprietary MATLAB pdepe solver backend. Use when using, modifying, or distributing Driftfusion code.
development
Define device layer structure, configure spatial and time meshes, and build device structures with interface grading. Use this skill when setting up the physical geometry and discretization of a simulation device.
research
Analyze simulation solutions, calculate physical quantities, and generate plots. Use this skill when processing completed simulations, extracting currents/densities, or visualizing results.
data-ai
Model charge transport in perovskite solar cells using drift-diffusion equations. Apply conservation equations, flux equations, and Poisson's equation for perovskite, ETL, and HTL regions. Use when setting up the core physics model for PSC simulations.