Works with the AI Agents you already use

    COMSOL Reaction Engineering Expert

    by RVLM

    1

    Your reactor model is lying to you — wrong rate units, ignored stiffness, invisible hot spots. This skill designs verified reactor models and hands you ready-to-run Java Shell scripts.

    $30

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    COMSOL Reaction Engineering Expert

    COMSOL Reaction Engineering Expert

    Example session with this skill installed

    I've been simulating a tubular reactor for A -> B (first order, k = 0.1 s-1 at 350 C, tau = 10 s) in COMSOL and the conversion comes out at 45% when my hand calculation says 63%. What's going on?

    • Read your context and instructions
    • Compiled the comsol reaction engineering

    Diagnosis first: your 45% is almost certainly a formulation error, not physics. For a first-order reaction in an ideal plug-flow reactor, conversion is pinned by one number: Da = k·tau = 0.1 × 10 = 1.0 → X = 1 − e^(−1) =

    63.2%. Coming in at 45% means Da_effective ≈ 0.6 in your model — something is eating your residence time or your rate. The usual suspects, in order:

    1. Rate constant units — a second-order k typed into a first-order slot (or vice versa) scales rates silently by factors of concentration. k for first order MUST be in s-1.
    2. Pe is not what you think — Pe = u·L/D_ax below ~100 means axial dispersion is smearing your plug flow: conversion drops below the PFR target even with correct kinetics. Compute it: if u·L/D is low, your reactor is part CSTR, and 45% may be "correct" for the model you actually built.
    3. Isothermal assumption at 350 C — if dT_ad = (−ΔH)·C0/(ρ·Cp) exceeds ~100 K for your exotherm and you assumed constant T with temperature-dependent k ignored, the profile is wrong wherever it gets hot.

    The design I would build for you (and the script below delivers it): 1D plug-flow tube, Arrhenius kinetics (not a frozen k — 350 C reactors rarely stay isothermal), mesh resolving the inlet gradient region, mass-balance error evaluation included, and the analytic target 63.2% written into the script header as the acceptance criterion.

    Java Shell script (new blank model in COMSOL Desktop → Java Shell → paste):

    /*
     * Tubular reactor, A -> B (first order, Arrhenius)
     * ACCEPTANCE: X = 1 - exp(-k*tau) = 63.2% at k = 0.1/s, tau = 10 s
     * Mass balance error must close < 0.1% - included below
     */
    model.param().set("A1", "1e6[1/s]", "pre-exponential (verify against your k at 350C)");
    model.param().set("Ea1", "80[kJ/mol]", "activation energy (VERIFY - set so k(623K)=0.1[1/s])");
    model.param().set("T_in", "623[K]", "feed temperature (350 C)");
    model.param().set("tau", "10[s]", "residence time");
    model.param().set("Dax", "1e-6[m^2/s]", "axial dispersion (check Pe = u*L/Dax > 100)");
    
    model.component().create("comp1", true);
    model.component("comp1").geom().create("geom1", 1);
    // TODO geometry: tube interval with L = u*tau; run
    model.geom("geom1").run();
    
    // --- Physics ---
    // VERIFY: chemistry / transport interface type strings against the official
    // documentation for your version; species cA (feed), cB (product)
    // TODO: rate law r = k(T)*cA with k from Arrhenius parameters
    // TODO: inlet cA = c_feed, outlet convective flux; check flow direction
    
    // --- Mesh ---
    model.component("comp1").mesh().create("mesh1");
    // TODO: refine the inlet gradient region (a few transport lengths)
    model.component("comp1").mesh("mesh1").run();
    
    model.study().create("std1");
    model.study("std1").create("stat", "Stationary");
    model.study("std1").run();
    
    // --- Results: conversion + mass balance, not just contour plots ---
    model.result().create("pg1", "PlotGroup1D");
    // TODO: X = 1 - cA_out/cA_in  ->  must equal 63.2% +/- mesh sensitivity
    // TODO: element balance evaluation across ALL inlets/outlets
    
    model.save("tubular_A_to_B.mph");
    

    Validation when you run it:

    1. X vs 63.2% — now a mismatch is diagnostic, not mysterious: within a few %, it was dispersion (Pe) or mesh; way below, it is units or flow direction.
    2. Mass balance < 0.1% error — if it doesn't close, you are integrating over the wrong boundaries, full stop.
    3. Sensitivity: double the mesh density; conversion must move < 0.5%.

    Next steps: paste back your current model's rate expression, Pe, and the conversion profile — I'll pinpoint the exact culprit and re-emit the corrected full script. Non-isothermal version with the energy balance bounded by dT_ad? CSTR vs PFR trade study? Packed bed with Ergun pressure drop? Say the word.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Simulating chemical reactors in COMSOL Multiphysics often fails due to inconsistent units, stiff kinetics, or poor solver selection. This skill acts as an autonomous chemical reaction engineering specialist that designs validated reactor models and generates ready-to-use Java Shell scripts.

    What it does

    • Reactor Design autonomously selects between batch, CSTR, plug flow, or packed bed models based on your physical system requirements.
    • Kinetics Validation verifies Arrhenius rates, stoichiometry matrices, and element balances before generating any simulation code.
    • Dimensionless Analysis calculates Damkohler and Peclet numbers to justify the inclusion of dispersion or flow-limited conversion effects.
    • Thermal Coupling evaluates adiabatic temperature rise to determine if energy balance coupling and temperature-dependent properties are required.
    • Script Generation produces complete, self-contained Java Shell scripts for COMSOL 6.4 that include parameters, meshing, and solvers.

    How it works

    1. System Definition the user provides the reaction system and reactor type or goal.
    2. Technical Declaration the agent states all assumptions, identifies the kinetic formulation, and checks for solver stiffness.
    3. Script Delivery the agent outputs a full Java script for the COMSOL Desktop Java Shell.
    4. Iterative Refinement the user provides feedback or console errors, and the agent re-emits the full, corrected script.

    Frameworks & tools

    Specifically built for COMSOL Multiphysics 6.4. While it primarily targets the Chemistry interfaces, it provides guidance for features that may require the Chemical Reaction Engineering Module.

    Why this beats prompting it yourself

    Generic LLMs frequently hallucinate COMSOL Java API node names and fail to check for physical consistency like element balances or stiffness. This skill enforces a domain-specific checklist that validates the engineering physics before the code is even written.

    Use cases

    • Generating 1D plug flow reactor scripts with axial dispersion and catalytic rates.
    • Simulating 2D axisymmetric models for reactors where radial temperature gradients matter.
    • Modeling non-isothermal batch systems with temperature-dependent Arrhenius kinetics.
    • Troubleshooting stiff kinetic systems that fail to converge with default solver settings.

    Known limitations

    Requires manual verification of specific node names against official COMSOL documentation. The user must have the Chemical Reaction Engineering Module for specific advanced reactor features.

    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

    COMSOL Multiphysics 6.x (Chemistry interfaces are core; verify module needs for your reactor type). Scripts are paste-and-run in the COMSOL Desktop Java Shell. The skill computes your analytic acceptance targets (conversion, dT_ad, Pe) BEFORE the model runs, so every result is either explained or fl

    Permissions

    Write Files
    Read Files
    Listed5 days ago
    Updated3 days ago

    What's inside

    Creator

    RVLM

    RVLM

    6 skills on Agensi

    Frequently Asked Questions

    This skill automates the creation of error-free Java Shell scripts for COMSOL 6.4, specifically addressing common issues like incorrect node naming, unit inconsistencies, and solver failures in complex kinetic models.

    The skill generates scripts tailored for COMSOL Multiphysics 6.4; while it targets the standard Chemistry interfaces, the Chemical Reaction Engineering Module is required to unlock advanced features like packed bed reactors or complex transport properties.

    Yes, the agent is designed for iterative troubleshooting—simply paste any errors from the COMSOL Java Shell back into the chat, and the agent will re-emit a corrected version of the full script.

    You receive access to the specialized AI agent capable of generating reactor designs, dimensionless analysis, and fully-commented Java Shell scripts ready for immediate execution in COMSOL.

    Simply provide your reaction chemistry and reactor requirements to the agent; it will guide you through the physics validation before providing the Java code, which you then copy into the 'Java Shell' window within COMSOL Desktop.

    That is exactly what it is built for: it computes Da, Pe and the analytic target first, so a mismatch immediately maps to one of three causes (units, dispersion, thermal) instead of guesswork.

    Yes: it computes the adiabatic temperature rise first; above ~100 K it insists on the energy balance and temperature-dependent properties rather than letting you fake it.

    It chooses and justifies the idealization from your problem (well-mixed unsteady → batch/CSTR; dominant convection → plug flow; Pe < 100 → dispersion-corrected).

    Bed-scale with effectiveness-factor verification first; particle-scale internal profiles only when that is the actual question.

    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.