File contents 建模步骤顺序(必须遵守)
几何 (create_geometry) — 先建几何(2D 或 3D)。
材料 (add_material) — 在几何上添加材料属性(钢、铜、铝等)。
物理场 (add_physics) — 添加物理场与边界条件。
网格 (generate_mesh) — 划分网格。
研究 (configure_study) — 选择研究类型。
求解 (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)。
1 --- 2 name: comsol-workflow 3 description: COMSOL 研究、网格与求解流程的经验 4 --- 5 6 ## 建模步骤顺序(必须遵守) 7 8 1. **几何 (create_geometry)** — 先建几何(2D 或 3D)。 9 2. **材料 (add_material)** — 在几何上添加材料属性(钢、铜、铝等)。 10 3. **物理场 (add_physics)** — 添加物理场与边界条件。 11 4. **网格 (generate_mesh)** — 划分网格。 12 5. **研究 (configure_study)** — 选择研究类型。 13 6. **求解 (solve)** — 运行求解器。 14 15 几何必须在所有其他步骤之前;材料必须在物理场之前(物理场属性依赖材料参数)。 16 17 ## 研究类型选择 18 19 - **stationary(稳态)**:温度场、静力学、直流电磁等;最常用。 20 - **time_dependent(瞬态)**:随时间变化;需时间范围、步长。 21 - **eigenvalue(特征值)**:模态、稳定性分析。 22 - **frequency(频域)**:谐波、频响;需频率范围。 23 - **parametric(参数化扫描)**:对某参数进行扫描分析。 24 - 用户未明确说"瞬态""频域"时,默认 **stationary**。 25 26 ## 任务类型与步骤规划 27 28 - **task_type: geometry** — 仅几何,required_steps 至少含 `create_geometry`。 29 - **task_type: physics** — 几何 + 材料 + 物理场,含 `create_geometry`, `add_material`, `add_physics`。 30 - **task_type: study** — 几何 + 材料 + 物理场 + 研究配置。 31 - **task_type: full** — 完整仿真:`create_geometry` → `add_material` → `add_physics` → `generate_mesh` → `configure_study` → `solve`。 32 - 若用户说"传热模型并求解""完整仿真",应规划为 **full** 并给出上述六步。 33 - 若用户提到任何材料(铜、钢、铝等),必须包含 `add_material` 步骤。 34 35 ## 经验要点 36 37 - 先解析用户意图再定 task_type 与 required_steps,避免漏步骤或顺序错。 38 - 材料步骤可省略——但如果用户提到材料或需要完整仿真,必须包含。 39 - 网格步可省略或由求解器默认处理时,仍建议在 full 流程中保留 generate_mesh。 40 - 错误处理:几何失败时不必继续物理场;上一步失败可重试或跳过再继续。 41 - 3D 模型网格计算量更大,建议 hauto 设为 5-7(Normal-Coarser)。
iammm0/mph-agent/tree/main/agent/skills/library/comsol-workflow commit fde37d98d3
Frequently asked questions How do I install the Comsol Workflow skill? Run npx skillmds@latest add iammm0/comsol-workflow in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Comsol Workflow skill do? COMSOL 研究、网格与求解流程的经验 It is listed under AI & ML on SkillMD.
Is Comsol Workflow safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Comsol Workflow? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Comsol Workflow free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Comsol Workflow? iammm0 (@iammm0) published this skill. Their other Agent Skills are listed on their SkillMD profile.