- Home
- Skills
- APIs & Backend
- COMSOL Semiconductor Expert
Works with the AI Agents you already use
COMSOL Semiconductor Expert
by RVLM
Autonomous semiconductor device simulation engineer for COMSOL 6.4 that designs the model for you and delivers complete Java Shell scripts.
$30
COMSOL Semiconductor Expert
Example session with this skill installed
I need to simulate a silicon p-n diode with NA=1e17 and ND=1e16 cm-3 and get its I-V curve.
- Read your context and instructions
- Compiled the comsol semiconductor expert
Designed for you: a 1D silicon p-n diode model with your doping levels. Key numbers computed before building anything:
- Built-in voltage: Vbi = (kT/q)·ln(NA·ND/ni²) = 0.02585·ln(1e17·1e16/(1.45e10)²) ≈
0.79 V — this is the band bending your equilibrium solution must reproduce.
- Debye length at NA = 1e17 cm-3:
~13 nm — the junction space-charge region spans tens of Debye lengths, so the mesh is sized accordingly.
Assumptions (replace with your real data where flagged):
- T = 300 K, abrupt metallurgical junction, ideal ohmic contacts at both ends
- Boltzmann statistics (valid: both dopings < ~1e18 cm-3)
- SRH recombination with ASSUMED lifetimes τn = τp = 1e-6 s (typical Si; replace with your measured values)
- Constant low-field mobilities (μn ≈ 1417, μp ≈ 471 cm²/Vs at this doping)
Java Shell script (open a NEW blank model in COMSOL Desktop, then paste in the Java Shell — Developer tab):
/*
* Silicon p-n diode - I-V curve
* Assumptions: T=300K, abrupt junction, Boltzmann statistics, tau=1us (ASSUMED)
* Expected: Vbi ≈ 0.79 V at equilibrium; ~59.5 mV/decade slope in forward I-V
*/
// --- Global parameters ---
model.param().set("NA", "1e17[1/cm^3]", "acceptor doping");
model.param().set("ND", "1e16[1/cm^3]", "donor doping");
model.param().set("T0", "300[K]", "temperature");
model.param().set("tau", "1e-6[s]", "carrier lifetime (ASSUMED - replace)");
model.param().set("Lp", "5[um]", "p-side length");
model.param().set("Ln", "5[um]", "n-side length");
// --- Component and geometry (1D) ---
model.component().create("comp1", true);
model.component("comp1").geom().create("geom1", 1);
// TODO geometry: interval from -Lp to Ln, then run
model.geom("geom1").run();
// --- Physics ---
// VERIFY: interface type string and feature names against the Semiconductor
// Module User's Guide / Programming Reference Manual for your version
model.component("comp1").physics().create("semi", "Semiconductor", "geom1");
// TODO doping: p region (NA) and n region (ND) with the analytic/constant profile
// TODO contacts: ohmic at both ends; metal work function per your process
// TODO recombination: SRH with tau; statistics: Boltzmann
// --- Mesh ---
model.component("comp1").mesh().create("mesh1");
// TODO: refine the junction region to resolve ~13 nm Debye scale; not uniform
model.component("comp1").mesh("mesh1").run();
// --- Study: equilibrium + bias ramp ---
model.study().create("std1");
model.study("std1").create("stat", "Stationary");
// TODO: auxiliary/parametric sweep over applied bias 0 -> 0.7 V in ~50 mV steps,
// reusing the previous solution as initial guess
model.study("std1").run();
// --- Results: quantitative I-V, not only plots ---
model.result().create("pg1", "PlotGroup1D");
// TODO: global evaluation of terminal current per bias; export the I-V table
model.save("si_pn_diode.mph");
Validation checks when you run it:
- Equilibrium band bending ≈ 0.79 V (if it is off by ~10%+, check doping units — cm-3 vs m-3 is a factor of 1e6).
- Forward I-V semi-log slope ≈ 59.5 mV/decade (n=1, 300 K).
- Reverse leakage in the order of q·ni·W·A/τ with W the depletion width.
Next steps: paste back the solver log or the I-V values and I will diagnose one thing at a time (initial values → contact reference → ramp step → mesh at the junction). If you need a Schottky contact, MOS capacitor or MOSFET variant, say which and I will re-emit the full script.
Connects securely to your tools. The creator never sees your data.
About this skill
Simulating semiconductor devices in COMSOL is notoriously difficult due to extreme nonlinearities and mesh sensitivity. This skill acts as an autonomous device engineer that handles the physics design, numerical scaling, and Java scripting required to build functional models without manual GUI clicking.
What it does
- Physics Design automatically selects model dimensions, doping profiles, and carrier statistics (Boltzmann vs. Fermi-Dirac) based on device specs.
- Java Script Generation produces self-contained scripts for the COMSOL Java Shell that build geometry, physics, and solvers from scratch.
- Convergence Planning implements bias-ramping strategies and equilibrium-to-nonequilibrium transition logic to prevent solver divergence.
- Numerical Validation calculates Debye lengths and built-in voltages to ensure mesh resolution and physics settings are grounded in semiconductor theory.
- Error Remediation analyzes COMSOL solver logs to identify root causes like singular matrices or floating bodies and provides corrected scripts.
How it works
- Device Specification is provided by the user, such as a p-n diode, MOSFET, or solar cell description.
- Design Protocol triggers, where the agent chooses parameters, justifies mesh density, and declares all physical assumptions.
- Script Execution delivers a complete Java block for the user to paste into the COMSOL Desktop Java Shell.
- Validation Check compares the simulated results against analytic estimates provided in the script header.
Frameworks & tools
COMSOL Multiphysics 6.4 with the Semiconductor Module. Scripts are written in Java for the COMSOL API/Java Shell.
Why this beats prompting it yourself
Generic LLMs often hallucinate COMSOL API methods or fail to account for the stiff numerical nature of drift-diffusion equations. This skill follows a specific autonomy protocol that enforces bias-ramping and mesh scaling, ensuring the resulting model actually converges instead of crashing with a "Feature: Stationary Solver 1" error.
Use cases
- Rapid Prototyping of standard devices like p-n junctions, Schottky diodes, and MOS capacitors.
- Parametric I-V Studies where bias must be ramped across a range of voltages to extract device characteristics.
- Physics Debugging when a model fails to converge due to high doping gradients or incorrect boundary conditions.
Known limitations
Requires a valid license for the COMSOL Semiconductor Module. The user must manually open a new blank model before running the generated Java Shell scripts.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
The generated scripts are paste-and-run in the COMSOL Desktop Java Shell; save the .mph where you have write access.
Permissions
"Nothing to install: it runs in the AI agent alone"
What's inside
Creator
RVLM
6 skills on Agensi
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.