.claude/skills/drift-diffusion-transport-physics/SKILL.md
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.
npx skillsauth add ShaneLogic/SolarLab drift-diffusion-transport-physicsInstall 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.
Apply continuity equations balancing generation, recombination, and flux divergence:
For each carrier type, flux includes:
Current densities: J_n (electrons), J_p (holes), J_P (vacancies)
Couple electric potential (φ) to charge densities:
∇²φ = -(q/ε)(n - p + P - N̂_0)
where N̂_0 is constant, uniform background density of immobile cation vacancies.
Ohmic condition:
n = g_E * S_E^-1(E_ct - V(t) + T_E)
where E_ct is cathode workfunction and V(t) is applied voltage.
Ohmic condition with parasitic resistance:
p = g_H * S_H^-1(E_an - V(t) + T_H)
where E_an is anode workfunction.
Built-in Voltage: V_bi = E_ct - E_an
J_n(0-) = J_n(0+) - R̂_l
where R̂_l represents interface recombination.
φ(0-) = φ(0+)
development
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
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.
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.