File contents 物理场类型与 COMSOL 对应
类型
COMSOL Tag
说明
heat
HeatTransfer
传热
electromagnetic
ElectromagneticWaves
电磁波/AC-DC
structural
SolidMechanics
结构力学
fluid
SinglePhaseFlow
单相流
acoustics
Acoustics
声学
piezoelectric
Piezoelectric
压电
chemical
ChemicalSpeciesTransport
化学物质传输
multibody
MultibodyDynamics
多体动力学
边界条件
每种物理场有不同的边界条件类型:
传热 (heat)
Temperature :指定温度,参数 T0
HeatFlux :热流密度,参数 q0
ConvectiveHeatFlux :对流换热,参数 h(换热系数)、Text(环境温度)
Radiation :辐射,参数 epsilon(发射率)
结构力学 (structural)
FixedConstraint :固定约束
BoundaryLoad :边界载荷,参数 Fn(法向力)
Pressure :压力,参数 p
Displacement :位移约束
流体 (fluid)
InletVelocity :入口速度,参数 U0
OutletPressure :出口压力,参数 p0
Wall :壁面(默认无滑移)
电磁 (electromagnetic)
PerfectElectricConductor :完美电导体
SurfaceImpedance :表面阻抗
Port :端口
域条件
HeatSource :热源,参数 Q0(体积热源功率密度)
BodyLoad :体载荷,参数 Fx/Fy/Fz
VolumeForce :体积力
初始条件
初始温度:变量 T,值如 293.15
初始位移:变量 u/v/w
初始速度:变量 u/v/w
多物理场耦合
thermal_stress (热应力):传热 + 结构力学
fluid_structure (流固耦合):流体 + 结构力学
electromagnetic_heat (电磁热):电磁 + 传热
耦合需在 couplings 中定义,指定参与的物理场接口。
常用概念
稳态 vs 瞬态 :稳态只求空间分布;瞬态需时间范围与步长。
边界条件 :先几何再物理场;边界条件施加在几何边界上(边或面)。
材料属性 :传热用导热系数、密度、比热;结构用杨氏模量、泊松比;流体用密度、粘度。
材料必须在物理场之前设置 。
规划输出约定
物理场计划 JSON 中 fields 为数组,每项含 type、parameters、boundary_conditions、domain_conditions、initial_conditions。
couplings 为数组,每项含 type 和 interfaces。
用户只说"加物理场"且未指定类型时,默认使用 heat(传热) 。
1 --- 2 name: comsol-physics 3 description: COMSOL 物理场建模常用概念与经验 4 --- 5 6 ## 物理场类型与 COMSOL 对应 7 8 | 类型 | COMSOL Tag | 说明 | 9 |------|-----------|------| 10 | heat | HeatTransfer | 传热 | 11 | electromagnetic | ElectromagneticWaves | 电磁波/AC-DC | 12 | structural | SolidMechanics | 结构力学 | 13 | fluid | SinglePhaseFlow | 单相流 | 14 | acoustics | Acoustics | 声学 | 15 | piezoelectric | Piezoelectric | 压电 | 16 | chemical | ChemicalSpeciesTransport | 化学物质传输 | 17 | multibody | MultibodyDynamics | 多体动力学 | 18 19 ## 边界条件 20 21 每种物理场有不同的边界条件类型: 22 23 ### 传热 (heat) 24 - **Temperature**:指定温度,参数 T0 25 - **HeatFlux**:热流密度,参数 q0 26 - **ConvectiveHeatFlux**:对流换热,参数 h(换热系数)、Text(环境温度) 27 - **Radiation**:辐射,参数 epsilon(发射率) 28 29 ### 结构力学 (structural) 30 - **FixedConstraint**:固定约束 31 - **BoundaryLoad**:边界载荷,参数 Fn(法向力) 32 - **Pressure**:压力,参数 p 33 - **Displacement**:位移约束 34 35 ### 流体 (fluid) 36 - **InletVelocity**:入口速度,参数 U0 37 - **OutletPressure**:出口压力,参数 p0 38 - **Wall**:壁面(默认无滑移) 39 40 ### 电磁 (electromagnetic) 41 - **PerfectElectricConductor**:完美电导体 42 - **SurfaceImpedance**:表面阻抗 43 - **Port**:端口 44 45 ## 域条件 46 47 - **HeatSource**:热源,参数 Q0(体积热源功率密度) 48 - **BodyLoad**:体载荷,参数 Fx/Fy/Fz 49 - **VolumeForce**:体积力 50 51 ## 初始条件 52 53 - 初始温度:变量 T,值如 293.15 54 - 初始位移:变量 u/v/w 55 - 初始速度:变量 u/v/w 56 57 ## 多物理场耦合 58 59 - **thermal_stress**(热应力):传热 + 结构力学 60 - **fluid_structure**(流固耦合):流体 + 结构力学 61 - **electromagnetic_heat**(电磁热):电磁 + 传热 62 63 耦合需在 `couplings` 中定义,指定参与的物理场接口。 64 65 ## 常用概念 66 67 - **稳态 vs 瞬态**:稳态只求空间分布;瞬态需时间范围与步长。 68 - **边界条件**:先几何再物理场;边界条件施加在几何边界上(边或面)。 69 - **材料属性**:传热用导热系数、密度、比热;结构用杨氏模量、泊松比;流体用密度、粘度。 70 - **材料必须在物理场之前设置**。 71 72 ## 规划输出约定 73 74 - 物理场计划 JSON 中 `fields` 为数组,每项含 `type`、`parameters`、`boundary_conditions`、`domain_conditions`、`initial_conditions`。 75 - `couplings` 为数组,每项含 `type` 和 `interfaces`。 76 - 用户只说"加物理场"且未指定类型时,默认使用 **heat(传热)**。
iammm0/mph-agent/tree/main/agent/skills/library/comsol-physics commit 88e9d52463
Frequently asked questions How do I install the Comsol Physics skill? Run npx skillmds@latest add iammm0/comsol-physics 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 Physics skill do? COMSOL 物理场建模常用概念与经验 It is listed under AI & ML on SkillMD.
Is Comsol Physics 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 Physics? 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 Physics free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Comsol Physics? iammm0 (@iammm0) published this skill. Their other Agent Skills are listed on their SkillMD profile.