← Back to Skills Marketplace
leima-max

COMSOL Simulation

by leima-max · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
43
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install comsol-opto-simulation
Description
Automate topic-neutral COMSOL Multiphysics optical, semiconductor, thermal, and coupled optoelectronic simulations through Python/mph. Use when a user needs...
README (SKILL.md)

COMSOL Optical / Optoelectronic Simulation

Automate COMSOL Multiphysics simulations through the mph Python interface for user-configured optical, semiconductor, thermal, or coupled multiphysics projects.

This skill is topic-neutral. It does not assume a material stack, device type, measured benchmark, local COMSOL path, or default parameter set.

OpenClaw / ClawHub Quick Start

Install from ClawHub:

openclaw skills install comsol-opto-simulation

After installation, verify the offline helpers before any license-consuming COMSOL run:

python scripts/test_sweep_offline.py
python scripts/discover_comsol_environment.py --pretty

Run python scripts/install_mph.py only when the user approves dependency installation. It installs Python bridge packages into a skill-local vendor/site-packages directory and does not install COMSOL or provide a license.

Scope

Use this skill for:

  • optical absorption and field-distribution models
  • semiconductor or transport models
  • thermal-electrical coupled models
  • parameter sweeps and batch studies
  • post-processing of simulated device or sample metrics
  • convergence diagnostics and solver fallback planning

Do not use this skill to invent missing material parameters, boundary conditions, or validation data. Ask the user to configure those values first.

Required User Configuration

Before running COMSOL automation, collect or confirm:

  • COMSOL installation path and available modules
  • geometry dimension and domain/layer list
  • material parameters and their sources
  • optical constants or source/excitation terms
  • electrical/thermal/mechanical boundary conditions as relevant
  • solver strategy and sweep variables
  • output metrics and validation criteria

Use:

  • templates/device_stack.json
  • templates/config_sweep.json
  • templates/config_thermal.json
  • templates/official_photogeneration_coupling.json
  • references/script-map.md
  • references/material-database.md
  • references/input-schema.md

as generic templates only.

Workflow

  1. Discover local COMSOL:
    python scripts/discover_comsol_environment.py --pretty
    
  2. Check official resources and licenses when the user permits a license-consuming check:
    python scripts/probe_application_library_examples.py --pretty
    python scripts/check_comsol_products.py --skip-start --pretty
    
  3. Install or verify the workspace-local Python bridge:
    python scripts/install_mph.py
    
  4. Create a project-specific config by copying a template and replacing all \x3CUNCONFIGURED> values.
  5. Run the appropriate script:
    python scripts/run_optoelectronic_sim.py --config \x3Cproject_config.json>
    python scripts/run_parameter_sweep.py --config \x3Cproject_sweep_config.json>
    
    If unsure which script to use, read references/script-map.md first.
  6. Inspect exported plots, CSV files, JSON summaries, and COMSOL model artifacts under output/.
  7. Report assumptions, fitted parameters, solver settings, convergence status, and validation gaps.

Prerequisites

  • COMSOL Multiphysics compatible with the selected physics
  • Required COMSOL modules for the selected model
  • Python 3.10+
  • Java runtime compatible with COMSOL/mph

Escalation

  • If COMSOL is not installed, ask the user to provide the installation path or install COMSOL.
  • If a required module is missing, report the missing module and suggest a reduced model if possible.
  • If a simulation diverges, reduce step size, simplify physics, inspect material parameters, adjust scaling, and add continuation or fallback strategies.
  • If a parameter sweep fails mid-way, use checkpoint/resume behavior where configured.

References

  • references/input-schema.md
  • references/material-database.md
  • references/comsol-api-patterns.md
  • references/comsol-docs-java-playbook.md
  • references/comsol-official-learning-roadmap.md
  • references/comsol-convergence-diagnostics.md
  • references/comsol-official-photogeneration-template.md
  • references/thermal-coupling-guide.md
  • references/parameter-sweep-guide.md
Usage Guidance
Install only if you are comfortable reviewing scripts before use. Run it in a copy of your COMSOL project, keep backups of .mph files, avoid legacy diagnostic or repair scripts unless you explicitly need them, and treat install_mph.py and MOCK_SIM_SCRIPT-based mock mode as sensitive actions. The concern is not malware telemetry; it is insufficient containment and consent around model mutation, solver execution, and output integrity.
Capability Tags
crypto
Capability Assessment
Purpose & Capability
The main COMSOL automation purpose is coherent, but some artifacts exceed their framing: diagnostic and repair scripts run studies, change solver/model state, and save results in place, while the detector-metrics extractor can emit placeholder values as CSV outputs.
Instruction Scope
The skill allows implicit invocation and gives broad workflow instructions without clear guardrails for high-impact actions such as solver execution, model repair, in-place saves, and license-consuming COMSOL checks.
Install Mechanism
The ClawHub install path is ordinary, and dependency installation is described as user-approved, but install_mph.py performs unpinned runtime pip installs into a local vendor directory.
Credentials
COMSOL path discovery, local environment inspection, file creation, and compute-heavy solver runs are expected for this kind of skill, but users should treat them as potentially expensive and project-sensitive.
Persistence & Privilege
Multiple scripts save back to output/optoelectronic/opto_result.mph or other model artifacts after modifying studies, solvers, physics, or solutions, with no default backup, dry-run, or explicit overwrite flag.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install comsol-opto-simulation
  3. After installation, invoke the skill by name or use /comsol-opto-simulation
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
OpenClaw metadata, ClawHub-safe publish ignore rules, installation guidance, and package verification checks.
Metadata
Slug comsol-opto-simulation
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is COMSOL Simulation?

Automate topic-neutral COMSOL Multiphysics optical, semiconductor, thermal, and coupled optoelectronic simulations through Python/mph. Use when a user needs... It is an AI Agent Skill for Claude Code / OpenClaw, with 43 downloads so far.

How do I install COMSOL Simulation?

Run "/install comsol-opto-simulation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is COMSOL Simulation free?

Yes, COMSOL Simulation is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does COMSOL Simulation support?

COMSOL Simulation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created COMSOL Simulation?

It is built and maintained by leima-max (@leima-max); the current version is v1.0.0.

💬 Comments