OpenFOAM中添加多孔介质区域及进行相关计算可通过DarcyForchheimer模型来实现。具体步骤如下:
(一)设置多孔介质区域
在“system”文件夹下添加“topoSetDict”文件
eg:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}