comsol-workflow

SkillAI & models

Experience with COMSOL research, meshing, and solving workflows

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the comsol-workflow skill

What this skill tells your AI

The instructions your AI receives, as published by iammm0/mph-agent in agent/skills/library/comsol-workflow/SKILL.md and read by ahel’s review.

建模步骤顺序(必须遵守)

  1. 几何 (create_geometry) — 先建几何(2D 或 3D)。
  2. 材料 (add_material) — 在几何上添加材料属性(钢、铜、铝等)。
  3. 物理场 (add_physics) — 添加物理场与边界条件。
  4. 网格 (generate_mesh) — 划分网格。
  5. 研究 (configure_study) — 选择研究类型。
  6. 求解 (solve) — 运行求解器。

几何必须在所有其他步骤之前;材料必须在物理场之前(物理场属性依赖材料参数)。

研究类型选择

  • stationary(稳态):温度场、静力学、直流电磁等;最常用。
  • time_dependent(瞬态):随时间变化;需时间范围、步长。
  • eigenvalue(特征值):模态、稳定性分析。
  • frequency(频域):谐波、频响;需频率范围。
  • parametric(参数化扫描):对某参数进行扫描分析。
  • 用户未明确说"瞬态""频域"时,默认 stationary。

任务类型与步骤规划

  • task_type: geometry — 仅几何,required_steps 至少含 create_geometry。
  • task_type: physics — 几何 + 材料 + 物理场,含 create_geometry, add_material, add_physics。
  • task_type: study — 几何 + 材料 + 物理场 + 研究配置。
  • task_type: full — 完整仿真:create_geometry → add_material → add_physics → generate_mesh → configure_study → solve。
  • 若用户说"传热模型并求解""完整仿真",应规划为 full 并给出上述六步。
  • 若用户提到任何材料(铜、钢、铝等),必须包含 add_material 步骤。

经验要点

  • 先解析用户意图再定 task_type 与 required_steps,避免漏步骤或顺序错。
  • 材料步骤可省略——但如果用户提到材料或需要完整仿真,必须包含。
  • 网格步可省略或由求解器默认处理时,仍建议在 full 流程中保留 generate_mesh。
  • 错误处理:几何失败时不必继续物理场;上一步失败可重试或跳过再继续。
  • 3D 模型网格计算量更大,建议 hauto 设为 5-7(Normal-Coarser)。

Signals

GitHub stars
41
Forks
8
Last commit
Sep 2026
Advanced
Item type
skill
Key
comsol-workflow
Source
github.com/iammm0/mph-agent