← 返回 Skills 市场
leima-max

COMSOL Simulation

作者 leima-max · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
43
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install comsol-opto-simulation
功能描述
Automate topic-neutral COMSOL Multiphysics optical, semiconductor, thermal, and coupled optoelectronic simulations through Python/mph. Use when a user needs...
使用说明 (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
安全使用建议
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.
能力标签
crypto
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install comsol-opto-simulation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /comsol-opto-simulation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
OpenClaw metadata, ClawHub-safe publish ignore rules, installation guidance, and package verification checks.
元数据
Slug comsol-opto-simulation
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

COMSOL Simulation 是什么?

Automate topic-neutral COMSOL Multiphysics optical, semiconductor, thermal, and coupled optoelectronic simulations through Python/mph. Use when a user needs... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 COMSOL Simulation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install comsol-opto-simulation」即可一键安装,无需额外配置。

COMSOL Simulation 是免费的吗?

是的,COMSOL Simulation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

COMSOL Simulation 支持哪些平台?

COMSOL Simulation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 COMSOL Simulation?

由 leima-max(@leima-max)开发并维护,当前版本 v1.0.0。

💬 留言讨论