Works with the AI Agents you already use

    COMSOL Expert Pro — Multiphysics Simulation Engineer

    by RVLM

    1

    Simulation engineering is prone to convergence failures, unphysical results, and "black box" modeling errors that waste weeks of compute time.

    $39

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    COMSOL Expert Pro — Multiphysics Simulation Engineer

    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

    StepActionWhat to check
    1Ground referenceAt least one electrode/electrolyte boundary must be pinned (ground or a defined potential). An all-Neumann potential problem is singular.
    2Pressure constraintIf flow is solved in a fully enclosed domain, pin the pressure at one point.
    3MaterialsEvery domain in each physics selection needs assigned material properties (electrical conductivity must exist and be non-zero).
    4Initial valuesSet phi_s and phi_l initial values consistent with your boundary conditions — inconsistent initial values also fail later as "consistent initial values" errors.
    5Duplicate constraintsTwo 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

    1. Problem Definition: You provide the physical objective and geometry, and the skill generates the governing equations and dimensionless scales.
    2. Physics Setup: The skill provides exact node paths and unit-checked expressions for COMSOL interfaces.
    3. Solver Strategy: It recommends specific segregated or coupled solver settings and continuation parameters for nonlinear models.
    4. Validation: Use the ecalc.py tool 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Listed5 days ago

    What's inside

    Creator

    RVLM

    RVLM

    6 skills on Agensi

    Frequently Asked Questions

    This skill provides a rigorous framework for model building, custom PDE mapping, and a systematic debugging playbook specifically designed to resolve convergence failures and unphysical results in COMSOL 6.4.

    The purchase includes the core engineering toolkit for COMSOL 6.4 and the 'ecalc.py' Python 3.8 utility used for validating results against theoretical benchmarks like Levich and Faraday equations.

    While optimized for COMSOL 6.4, the fundamental physics logic and PDE translations are applicable to other versions; however, the bundled 'ecalc.py' tool requires a Python 3.8+ environment to function.

    This skill offers deep expertise in the Electrochemistry, CFD, Heat Transfer, and Optimization modules, with specialized support for Nernst-Planck and Butler-Volmer kinetics.

    Unlike generic AI, this skill enforces strict dimensional consistency and physical rigor, preventing common errors like incorrect sign conventions in Weak Form PDEs or unphysical stabilization techniques.

    Pro adds an executable calculator (ecalc.py: Nernst, Butler-Volmer, Levich, Cottrell, Faraday, Tafel regression with validity warnings, dimensionless numbers, Nernst-Planck, Arrhenius), a Weak Form PDE cookbook for custom equations, 7 worked examples with verified numbers, and a parameter sourcing/uncertainty guide.

    Yes, for running simulations. The skill guides building and debugging; you run the models in your own COMSOL Multiphysics installation (6.4 recommended).

    No. ecalc.py is standard-library-only Python; nothing is installed, nothing leaves your machine.

    Yes — tafel-fit fits log|i| vs eta, reports i0, the transfer coefficient, the Tafel slope, r-squared, and warns when data are outside the Tafel regime or appear iR-uncorrected.

    It targets 6.4. Most methodology applies to recent 6.x; the skill directs the agent to verify exact node names in your version's official documentation.

    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.