COMSOL Multiphysics driver for sim-cli, distributed as an out-of-tree plugin
Project description
sim-plugin-comsol
COMSOL Multiphysics driver and Desktop attach
workflow for sim-cli, distributed as
an out-of-tree plugin via Python entry_points.
The COMSOL solver and its mph Python binding are not bundled — you supply them yourself. See LICENSE-NOTICE.md.
Install
pip install sim-plugin-comsol
After install, agents can drive an already-open COMSOL Desktop through the standalone attach helper:
sim-comsol-attach open --json --timeout 120
sim-comsol-attach health --json
sim-comsol-attach exec --file step.java --json
Use this path first when the user has COMSOL Desktop open, wants to watch the model update, or may intervene manually during the session.
sim-cli also auto-discovers the server-backed driver:
sim drivers | grep comsol
sim run --solver comsol path/to/script.py
You can also install through sim-cli's plugin command:
sim plugin install sim-plugin-comsol
Agent quickstart
This repository is intended to be the complete COMSOL agent bundle. A receiving agent should not need a separate skill checkout for COMSOL work; the driver, Desktop attach helper, and COMSOL skill are bundled here. The only runtime dependency from the sim stack is the installed sim CLI/core package pulled in by this plugin.
For source-tree development:
git clone https://github.com/svd-ai-lab/sim-plugin-comsol
cd sim-plugin-comsol
uv sync
uv run sim drivers
uv run sim check comsol
The bundled skill entry point is:
src/sim_plugin_comsol/_skills/comsol/SKILL.md
Use it as the first agent instruction for COMSOL tasks, for example:
Use the bundled COMSOL skill in this repository. If COMSOL Desktop is already
open or the user wants visible co-editing, use Desktop attach first. Use the
sim runtime only when structured inspect, driver-managed artifacts, or
server-backed state are needed. Build and solve the requested model one bounded
step at a time.
How it works
The plugin registers the Desktop attach CLI plus three entry-point groups:
[project.entry-points."sim.drivers"]
comsol = "sim_plugin_comsol:ComsolDriver"
[project.entry-points."sim.skills"]
comsol = "sim_plugin_comsol:skills_dir"
[project.entry-points."sim.plugins"]
comsol = "sim_plugin_comsol:plugin_info"
[project.scripts]
sim-comsol-attach = "sim_plugin_comsol.desktop_attach.cli:main"
sim.drivers exposes the driver class; sim.skills exposes a directory
of skill files bundled inside the wheel; sim.plugins exposes plugin
metadata for discovery. sim-comsol-attach exposes the Desktop-first
collaboration path.
Develop
git clone https://github.com/svd-ai-lab/sim-plugin-comsol
cd sim-plugin-comsol
uv sync
uv run pytest
License
Apache-2.0. See LICENSE and LICENSE-NOTICE.md.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sim_plugin_comsol-0.1.10.tar.gz.
File metadata
- Download URL: sim_plugin_comsol-0.1.10.tar.gz
- Upload date:
- Size: 158.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57cda51efcd7f6ae33de4661a5bdcb1a67a85e22219d473d70194f615879b40f
|
|
| MD5 |
a094b592b582df243ecdce104c2374a2
|
|
| BLAKE2b-256 |
bd7c0bb0ee4d35391ab019dec814f2e6d75fb00b1b6946aa44da96c5f66de8b4
|
Provenance
The following attestation bundles were made for sim_plugin_comsol-0.1.10.tar.gz:
Publisher:
publish.yml on svd-ai-lab/sim-plugin-comsol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sim_plugin_comsol-0.1.10.tar.gz -
Subject digest:
57cda51efcd7f6ae33de4661a5bdcb1a67a85e22219d473d70194f615879b40f - Sigstore transparency entry: 1432879042
- Sigstore integration time:
-
Permalink:
svd-ai-lab/sim-plugin-comsol@1038a00d15fa2bfae7491ace793dc187b5bed977 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/svd-ai-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1038a00d15fa2bfae7491ace793dc187b5bed977 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sim_plugin_comsol-0.1.10-py3-none-any.whl.
File metadata
- Download URL: sim_plugin_comsol-0.1.10-py3-none-any.whl
- Upload date:
- Size: 93.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42bf61b38a54957969f9b8d1099acca88e5342957a47d12ffd588e21250d8fb1
|
|
| MD5 |
624f2c4fc6257f8c9f2945cde9feb413
|
|
| BLAKE2b-256 |
68de4eed544f06b7e817137f597f56e42bc0d3f70387087fab6e917c9cbad3f2
|
Provenance
The following attestation bundles were made for sim_plugin_comsol-0.1.10-py3-none-any.whl:
Publisher:
publish.yml on svd-ai-lab/sim-plugin-comsol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sim_plugin_comsol-0.1.10-py3-none-any.whl -
Subject digest:
42bf61b38a54957969f9b8d1099acca88e5342957a47d12ffd588e21250d8fb1 - Sigstore transparency entry: 1432879081
- Sigstore integration time:
-
Permalink:
svd-ai-lab/sim-plugin-comsol@1038a00d15fa2bfae7491ace793dc187b5bed977 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/svd-ai-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1038a00d15fa2bfae7491ace793dc187b5bed977 -
Trigger Event:
push
-
Statement type: