对于不可压缩流体对流传热,可能存在以下场景:
OpenFOAM 14 中已废弃了旧版独立的 buoyantBoussinesqSimpleFoam / buoyantBoussinesqPimpleFoam 等求解器,改用模块化求解器 + foamRun 驱动的新架构。
通常使用 fluid 模块(对应旧版的 buoyantBoussinesq 系列)。
fluid 模块继承 isothermalFluid,内部用 fluidThermo 求解能量方程(温度场 T),并通过 buoyancy 模型处理浮力(p_rgh 压力)。fluid/fluid.C 中构造了 thermophysicalTransport 并求解焓/温度方程;isothermalFluid.H 中含 buoyancy 与 p_rgh。tutorials/fluid/hotRoom、tutorials/fluid/buoyantCavity 的 controlDict 均为 solver fluid;,且 0/ 目录下存在 T 文件。constant/thermophysicalProperties、0/T,传热通过速度场 U 对流 + 湍流热扩散实现。可以使用 incompressibleFluid + scalarTransport 函数对象(scalarTransportFoam)。
incompressibleFluid 模块本身只求解 p/U(等温,不含能量方程)。functionObjects/solvers/scalarTransport 求解 T 的对流-扩散方程。system/functions 中加入 scalarTransport 字典。可以直接使用 fluid 模块,不考虑流体可压缩性,可以在流体介质属性中,使用以下状态方程之一(其 incompressible==true):
incompressible | ||
|---|---|---|
rhoConst | ||
Boussinesq | ||
incompressiblePerfectGas | ||
注:本文信息由AI从OpenFOAM 14源代码中获取。正确性需自行甄别。
”
(完)