Introduction¶
When performing COMSOL Multiphysics simulations, the common workflow is: open a .mph file in the desktop environment, modify parameters, remesh, adjust solvers, run stationary or transient studies, and then view results in the graphics window and export plots. If you want to delegate this workflow to a conversational agent within DSH, you need a repeatable pipeline from “opening the model” to “generating data and plots,” rather than just describing steps in a chat.
This article introduces the community plugin dsh-comsol (maintainer: Twofruitsgrape, Category: Workflow). It mounts the comsol-dsh skill in DSH and includes a comsol-mcp MCP engine, enabling a complete COMSOL Multiphysics workflow (stationary and transient) to be driven from any conversational session.
What is this¶
dsh-comsol is a workflow-class plugin for DeepSeek Harness (DSH). Once installed and enabled via the plugin panel, it toggles the comsol-dsh skill uniformly across workspaces. The skill acts as the sole entry point; the plugin bundle carries the necessary runtime resources, eliminating the need to separately check out an external MCP repository.
The current plugin version is 1.1.1 (refer to the repository’s package.json), and the license is MIT. COMSOL is a trademark of COMSOL AB; this project is not affiliated with or endorsed by COMSOL AB.
Core Features¶
According to the repository README, the supported capabilities include:
- Opening COMSOL model windows on the visible desktop (headless mode is also supported).
- Reading and modifying model parameters.
- Rebuilding meshes.
- Adjusting solver settings.
- Running stationary or time-dependent (transient) studies with real-time progress display.
- Loading results into the desktop for plotting, evaluation, and image export.
Key package structure points:
index.js: The skill provider; name and description are derived from theSKILL.mdfrontmatter.cordis.patch.yml: Target for plugin mounting and panel toggling.assets/comsol-dsh/: The skill body (including theSKILL.mdplaybook,run_workflow.pystationary script,run_transient.pytransient script, and offline tests).assets/engine/: Embedded comsol-mcp MCP service (Python). There is no need to install the entire engine repository via pip (optionally, you can runpip install -e assets/engineto installMPh>=1.4andtomlkit).
index.js relies solely on node: built-in modules and declares no npm dependencies to minimize version resolution risks during DSH upgrades.
Installation and Activation¶
Install from the following source via the DSH Plugin Panel (using the command exactly as written in the README; do not construct other CLI forms):
github:Twofruitsgrape/dsh-comsol
You can also use the repository URL. DSH will fetch the bundle via pnpm and mount it through cordis.patch.yml; the corresponding skill will appear in new sessions. A DSH restart is required after installation.
Toggle the plugin in the plugin panel to globally enable or disable the comsol-dsh skill.
Runtime Requirements (as listed in the README):
- COMSOL Multiphysics 6.0–6.3 with a valid license (the README states full verification was performed on version 6.2).
- Python 3.10+ with the
mcppackage installed:pip install mcp(for local engine development, usepip install -e assets/engineto satisfyMPh>=1.4andtomlkit). - Windows Desktop Session (for real-time COMSOL window display; headless mode is also supported).
The plugin runs with the permissions of the current DSH process. Before installation, please review the repository source code and the MIT license to ensure compliance with your security and compliance requirements.
Typical Usage¶
The README provides PowerShell examples that can be executed in the repository root directory (replace paths with your absolute paths).
Offline Pre-check (does not start COMSOL):
python assets/comsol-dsh/scripts/run_workflow.py --model "<abs>.mph" --home "<dir>" --check
Stationary Workflow: Modify parameters → Mesh → Solve → Plot → Save:
python assets/comsol-dsh/scripts/run_workflow.py --model "<abs>.mph" --home "<dir>" --set-param I=200[A] --save-as "<out>.mph"
Transient Workflow: Time-varying boundary conditions → Time Dependent study → Solve → Display results on screen:
python assets/comsol-dsh/scripts/run_transient.py --model "<abs>.mph" --home "<dir>" --save-as "<out>.mph" --allow-code
For the complete operational playbook, mandatory rules, and notes on pitfalls encountered on COMSOL 6.2, please refer to assets/comsol-dsh/SKILL.md in the repository.
Verification and Use Cases¶
The README’s Verified section records that under COMSOL 6.2, MPh 1.4, and Python 3.12, stationary and transient verifications were performed on a busbar electrothermal case (including details like specified boundary ramps and 61 time steps). It also reports the successful passing of 35 skill tests and 58 engine offline tests with no residual locks or processes.
Target Audience: Developers or simulation engineers who have deployed COMSOL 6.x on Windows and wish to use DSH conversations to uniformly drive stationary/transient simulation workflows.
Note: This depends on a local COMSOL license and Python environment; the transient script example includes --allow-code. Before use, please understand the constraints regarding code generation and model modification described in SKILL. The community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek or High-Flyer. The DSH ecosystem follows the philosophy of “everything is a plugin,” and this plugin is a COMSOL workflow extension within that ecosystem.
Conclusion¶
dsh-comsol consolidates COMSOL desktop operations, parameter and mesh management, stationary/transient solving, and result visualization into the comsol-dsh skill and embedded MCP engine within DSH. It is suitable for scenarios requiring end-to-end automation “from conversation to .mph results.”
- Community Directory: https://www.skillhub.cn/plugins/Twofruitsgrape/dsh-comsol
- Source Code & Documentation: https://github.com/Twofruitsgrape/dsh-comsol