/install comsol-opto-simulation
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.jsontemplates/config_sweep.jsontemplates/config_thermal.jsontemplates/official_photogeneration_coupling.jsonreferences/script-map.mdreferences/material-database.mdreferences/input-schema.md
as generic templates only.
Workflow
- Discover local COMSOL:
python scripts/discover_comsol_environment.py --pretty - 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 - Install or verify the workspace-local Python bridge:
python scripts/install_mph.py - Create a project-specific config by copying a template and replacing all
\x3CUNCONFIGURED>values. - Run the appropriate script:
If unsure which script to use, readpython scripts/run_optoelectronic_sim.py --config \x3Cproject_config.json> python scripts/run_parameter_sweep.py --config \x3Cproject_sweep_config.json>references/script-map.mdfirst. - Inspect exported plots, CSV files, JSON summaries, and COMSOL model artifacts under
output/. - 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.mdreferences/material-database.mdreferences/comsol-api-patterns.mdreferences/comsol-docs-java-playbook.mdreferences/comsol-official-learning-roadmap.mdreferences/comsol-convergence-diagnostics.mdreferences/comsol-official-photogeneration-template.mdreferences/thermal-coupling-guide.mdreferences/parameter-sweep-guide.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install comsol-opto-simulation - 安装完成后,直接呼叫该 Skill 的名称或使用
/comsol-opto-simulation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。