/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install comsol-opto-simulation - After installation, invoke the skill by name or use
/comsol-opto-simulation - Provide required inputs per the skill's parameter spec and get structured output
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.