File contents 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 旋转。
1 --- 2 name: comsol-3d 3 description: COMSOL 3D 几何建模要点与经验 4 --- 5 6 ## COMSOL 3D 几何建模要点 7 8 ### 3D 基本体 9 10 - **Block(长方体)**:需 `width`、`height`、`depth`;位置 `(x, y, z)`,默认 (0,0,0)。 11 - **Cylinder(圆柱)**:需 `radius` 和 `height`;`r` 为底面半径,`h` 为高度。 12 - **Sphere(球)**:需 `radius`;位置为球心坐标。 13 - **Cone(锥体)**:需 `radius_bottom`、`radius_top`(可为 0,表示尖锥)、`height`。 14 - **Torus(圆环)**:需 `radius_major`(环的中心到圆环中心的距离)和 `radius_minor`(截面半径)。 15 16 ### 3D 操作 17 18 - **Extrude(拉伸)**:将 2D 截面沿法线方向拉伸为 3D 实体。需指定 `distance`(拉伸距离)。 19 - **Revolve(旋转)**:将 2D 截面绕轴旋转生成旋转体。需指定 `angle`(旋转角度,度)。 20 - **WorkPlane(工作面)**:在 3D 几何中创建 2D 绘图平面,常用 `quickz` 指定 z 偏移。 21 - **Sweep(扫掠)**:沿路径拉伸截面。 22 23 ### 维度 (dimension) 判断 24 25 - 用户提到 3D、三维、立方体/长方体(block)、圆柱(cylinder)、球(sphere)、锥(cone)、圆环(torus)、拉伸(extrude)、深度(depth) 等关键词时,`dimension` 设为 **3**。 26 - 否则默认为 **2**(2D)。 27 - 2D 和 3D 不能混用:3D 形状(Block/Cylinder/Sphere/Cone/Torus)不能出现在 2D 几何中。 28 29 ### 布尔运算(2D/3D 通用) 30 31 - **Union(并集)**:合并多个形状。 32 - **Difference(差集)**:用一个形状从另一个中减去。常用于"挖孔"。 33 - **Intersection(交集)**:取多个形状的交叠部分。 34 35 ### 位置与尺寸约定 36 37 - 3D 位置用 `(x, y, z)`;2D 位置用 `(x, y)`。 38 - COMSOL Block 的 size 参数顺序为 `[width, depth, height]`(x, y, z 方向)。 39 - 未指定位置时默认 (0, 0, 0);未指定单位时默认"米 (m)"。 40 - rotation 可选,用 `rx`/`ry`/`rz` 指定各轴旋转角度(度)。 41 42 ### 常见 3D 建模场景 43 44 - **散热器翅片**:Block(基板)+ 多个 Block(翅片),Union 合并。 45 - **管道**:Cylinder(外管)- Cylinder(内管),Difference 挖孔。 46 - **轴承**:Torus + Cylinder 组合。 47 - **旋转体零件**:先画 2D 截面(Polygon/Rectangle),再 Revolve 旋转。
iammm0/mph-agent/tree/main/agent/skills/library/comsol-3d commit e5ad20767a
Frequently asked questions How do I install the Comsol 3d skill? Run npx skillmds@latest add iammm0/comsol-3d 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 3d skill do? COMSOL 3D 几何建模要点与经验 It is listed under AI & ML on SkillMD.
Is Comsol 3d 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 3d? 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 3d free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Comsol 3d? iammm0 (@iammm0) published this skill. Their other Agent Skills are listed on their SkillMD profile.