大家好,我现在模拟一个算例,只知道算例的体积流率为4m3/s(或者说知道质量流率为16kg/s),该如何设置入口的边界条件?期待回复,谢谢~
祝好!
大家好,我现在模拟一个算例,只知道算例的体积流率为4m3/s(或者说知道质量流率为16kg/s),该如何设置入口的边界条件?期待回复,谢谢~
祝好!
在 U 的边界里面设置,如果设置的是体积流量,则可以
myPatch
{
type flowRateInletVelocity;
volumetricFlowRate 0.2; // 体积流量
value uniform (0 0 0); // placeholder
}
如果要设置质量流量,
– 须用 rho 指定密度的变量,并寻找你的 case 里面设置的密度。
– 若 case 里面没有设定,须用 rhoInlet 指定。
– 如果 rho 设定为 none,则边界所设定的是体积流量。
myPatch
{
type flowRateInletVelocity;
massFlowRate 0.2;
rho rho;
rhoInlet 1.0;
}
谢谢大神,对于volumetricFlowRate的设置方式,我们是不是需要在constant/transportProperties文件中设置什么?现在我用的是buoyantSimpleFoam,是不需要设置transportProperties文件的,只需要设置thermophysicalProperties和turbulentProperties。因此在运行的时候,出现以下报错:
reading field p
reading field U
reading/calculating face flux field phi
--> FOAM FATAL ERROR:
cannot find file "/home/.../mycase/constant/transportProperties"
期待你的回复
你好。我这里没有问题,volumetricFlowRate 不需要 transportProperties. 能不能把你的边界贴出来?