comsol-3d
SkillMonitoring & opsKey points and experience for 3D geometric modeling in COMSOL
Available today. Use it from your connected AI after setup.
No other account needed.
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-3d skill
What this skill tells your AI
The instructions your AI receives, as published by iammm0/mph-agent in agent/skills/library/comsol-3d/SKILL.md and read by ahel’s review.
COMSOL 3D 几何建模要点
3D 基本体
- Block(长方体):需
width、height、depth;位置(x, y, z),默认 (0,0,0)。 - Cylinder(圆柱):需
radius和height;r为底面半径,h为高度。 - Sphere(球):需
radius;位置为球心坐标。 - Cone(锥体):需
radius_bottom、radius_top(可为 0,表示尖锥)、height。 - Torus(圆环):需
radius_major(环的中心到圆环中心的距离)和radius_minor(截面半径)。
3D 操作
- Extrude(拉伸):将 2D 截面沿法线方向拉伸为 3D 实体。需指定
distance(拉伸距离)。 - Revolve(旋转):将 2D 截面绕轴旋转生成旋转体。需指定
angle(旋转角度,度)。 - WorkPlane(工作面):在 3D 几何中创建 2D 绘图平面,常用
quickz指定 z 偏移。 - Sweep(扫掠):沿路径拉伸截面。
维度 (dimension) 判断
- 用户提到 3D、三维、立方体/长方体(block)、圆柱(cylinder)、球(sphere)、锥(cone)、圆环(torus)、拉伸(extrude)、深度(depth) 等关键词时,
dimension设为 3。 - 否则默认为 2(2D)。
- 2D 和 3D 不能混用:3D 形状(Block/Cylinder/Sphere/Cone/Torus)不能出现在 2D 几何中。
布尔运算(2D/3D 通用)
- Union(并集):合并多个形状。
- Difference(差集):用一个形状从另一个中减去。常用于"挖孔"。
- Intersection(交集):取多个形状的交叠部分。
位置与尺寸约定
- 3D 位置用
(x, y, z);2D 位置用(x, y)。 - COMSOL Block 的 size 参数顺序为
[width, depth, height](x, y, z 方向)。 - 未指定位置时默认 (0, 0, 0);未指定单位时默认"米 (m)"。
- rotation 可选,用
rx/ry/rz指定各轴旋转角度(度)。
常见 3D 建模场景
- 散热器翅片:Block(基板)+ 多个 Block(翅片),Union 合并。
- 管道:Cylinder(外管)- Cylinder(内管),Difference 挖孔。
- 轴承:Torus + Cylinder 组合。
- 旋转体零件:先画 2D 截面(Polygon/Rectangle),再 Revolve 旋转。
Signals
- GitHub stars
- 41
- Forks
- 8
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
comsol-3d- Source
- github.com/iammm0/mph-agent