- Home
- Skills
- Prompt & Skill Engineering
- COMSOL Expert Pro — Multiphysics Simulation Engineer
Works with the AI Agents you already use
COMSOL Expert Pro — Multiphysics Simulation Engineer
by RVLM
Simulation engineering is prone to convergence failures, unphysical results, and "black box" modeling errors that waste weeks of compute time.
$39
COMSOL Expert Pro — Multiphysics Simulation Engineer
Example session with this skill installed
My stationary electrochemistry model is failing with a 'Singular matrix' error. I have a Butler-Volmer boundary condition on a complex electrode geometry with a rotating disk electrode at 1600 rpm in a 1 mM electrolyte. How do I fix this, and what limiting current should I expect?
- Read your context and instructions
- Compiled the comsol expert pro
The "Singular matrix" error means the linearized system is under-determined: some degree of freedom is not pinned down by your equations and constraints.
Diagnosis and fix
| Step | Action | What to check |
|---|---|---|
| 1 | Ground reference | At least one electrode/electrolyte boundary must be pinned (ground or a defined potential). An all-Neumann potential problem is singular. |
| 2 | Pressure constraint | If flow is solved in a fully enclosed domain, pin the pressure at one point. |
| 3 | Materials | Every domain in each physics selection needs assigned material properties (electrical conductivity must exist and be non-zero). |
| 4 | Initial values | Set phi_s and phi_l initial values consistent with your boundary conditions — inconsistent initial values also fail later as "consistent initial values" errors. |
| 5 | Duplicate constraints | Two conditions on the same boundary (e.g. ground + kinetics) over-determine the system in a different way — check the electrode boundaries. |
Isolation test
Replace the Butler-Volmer condition with a primary (conductivity-only) formulation temporarily. If it converges, the singularity is not topological: your kinetic expression or its initial guess is the problem — ramp the electrode potential from the equilibrium value instead of stepping.
Expected limiting current (verification target)
For ORR (n = 4) on a rotating disk, R = 2.5 mm, D(O2) = 2e-9 m2/s, nu = 1e-6 m2/s, C = 1 mol/m3, 1600 rpm:
i_lim = 0.620·n·F·A·D^(2/3)·ω^(1/2)·ν^(−1/6)·C ≈ 0.965 mA
The command I ran: python3 scripts/ecalc.py levich --n 4 --area 1.9635e-5 --D 2e-9 --omega 167.552 --nu 1e-6 --C 1.0
Any steady current your model reports above this value at high overpotential violates the transport limit — the kinetics implementation, not the solver, is then at fault.
Next steps
- Check the solver Log for which variable the singularity is associated with (e.g. comp1.phi_l → electrolyte potential constraint missing).
- Verify units of i0 (A/m2, area-normalized to the electroactive surface).
- Apply boundary-layer meshing at the electrode; verify the solution against the Levich value above before trusting the kinetics.
Connects securely to your tools. The creator never sees your data.
About this skill
Simulation engineering is prone to convergence failures, unphysical results, and "black box" modeling errors that waste weeks of compute time. This skill provides a rigorous, phase-by-phase framework for building and debugging COMSOL Multiphysics 6.4 models with a focus on electrochemistry, transport, and custom PDEs.
What it does
- Step-by-step model building guide covering geometry, parameterized materials, physics selection, and mesh-independence planning.
- Advanced electrochemistry configuration for Nernst-Planck, Butler-Volmer kinetics, HER/ORR/HOR, and corrosion simulations.
- Custom PDE translation for mapping complex mathematical models into COMSOL's General, Coefficient, or Weak Form interfaces.
- Systematic debugging using a specialized playbook to resolve singular matrices, negative concentrations, and solver divergence.
- Quantitative validation using a bundled Python calculator to verify results against Levich, Cottrell, and Faraday benchmarks.
How it works
- Problem Definition: You provide the physical objective and geometry, and the skill generates the governing equations and dimensionless scales.
- Physics Setup: The skill provides exact node paths and unit-checked expressions for COMSOL interfaces.
- Solver Strategy: It recommends specific segregated or coupled solver settings and continuation parameters for nonlinear models.
- Validation: Use the
ecalc.pytool to perform sanity checks on electrode kinetics, flux, and dimensionless regimes.
Frameworks & tools
COMSOL Multiphysics 6.4 (Electrochemistry, CFD, Heat Transfer, and Optimization modules). Bundled Python 3.8 utility (ecalc.py) for quantitative engineering checks.
Why this beats prompting it yourself
Generic prompts often suggest unphysical stabilization techniques or incorrect sign conventions in Weak Form PDEs. This skill enforces strict dimensional consistency, physical rigor over numerical convenience, and uses a verified reference library to prevent common setup errors.
Use cases
- Designing microfluidic electrochemical cells with complex current distributions.
- Troubleshooting convergence issues in highly nonlinear battery or fuel cell models.
- Implementing non-standard physics via Domain/Boundary ODEs and DAEs.
- Validating experimental polarization data against theoretical Butler-Volmer kinetics.
Known limitations
Requires Python 3.8 or higher for the bundled execution calculator. Does not replace official COMSOL documentation for licensing or specific software installation issues.
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
- Software
Python 3.8+
Knowledge skill + a local Python calculator. Nothing is installed and no network access is needed; ecalc.py uses only the Python standard library. It reads data files (like polarization CSVs) only when you ask it to analyze them. You need your own COMSOL 6.4 installation to run simulations.
Permissions
What's inside
Creator
RVLM
6 skills on Agensi
Frequently Asked Questions
New in Prompt & Skill Engineering
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.