我想在流体域中创建一个多孔介质区域,blockMesh之后用topoSet标记区域,但是无论怎么修改出现在set文件夹中的文件无一例外显示为空集。
topoSetDrit文件如下
/--------------------------------- C++ -----------------------------------
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 5 |
| \ / A nd | Web: www.OpenFOAM.org |
| \/ M anipulation | |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location “system”;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name porous;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0 0 10) (2000 500 15);
}
}
/*
{
name porousZone;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set porous;
}
}
*/
{
name inletA;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (0 0 15) (0.1 500 25);
}
}
{
name inletB;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set inletA;
option all;
}
}
{
name inletB;
type faceSet;
action subset;
source patchToFace;
sourceInfo
{
name walls;
}
}
{
name outletA;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (1999.9 0 15) (2000 500 50);
}
}
{
name outletB;
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set outletA;
option all;
}
}
{
name outletB;
type faceSet;
action subset;
source patchToFace;
sourceInfo
{
name walls;
}
}
);
// ************************************************************************* //
topoSet之后控制台输出如下:
penfoam@openfoam-virtual-machine:~/OpenFOAM/openfoam-5.x/run/1$ topoSet
/---------------------------------------------------------------------------
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 5.x |
| \ / A nd | Web: www.OpenFOAM.org |
| \/ M anipulation | |
*---------------------------------------------------------------------------*/
Build : 5.x-7f7d351b741b
Exec : topoSet
Date : Nov 22 2024
Time : 16:11:48
Host : “openfoam-virtual-machine”
PID : 173491
I/O : uncollated
Case : /home/openfoam/OpenFOAM/openfoam-5.x/run/1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create polyMesh for time = 0
Reading topoSetDict
Time = 0
mesh not changed.
Created cellSet porous
Applying source boxToCell
Adding cells with center within boxes 1((0 0 10) (2000 500 15))
cellSet porous now size 0
Created cellSet inletA
Applying source boxToCell
Adding cells with center within boxes 1((0 0 15) (0.1 500 25))
cellSet inletA now size 0
Created faceSet inletB
Applying source cellToFace
Adding faces according to cellSet inletA …
faceSet inletB now size 0
Read set faceSet inletB with size 0
Applying source patchToFace
Adding all faces of patch walls …
Found matching patch walls with 31250 faces.
faceSet inletB now size 0
Created cellSet outletA
Applying source boxToCell
Adding cells with center within boxes 1((1999.9 0 15) (2000 500 50))
cellSet outletA now size 0
Created faceSet outletB
Applying source cellToFace
Adding faces according to cellSet outletA …
faceSet outletB now size 0
Read set faceSet outletB with size 0
Applying source patchToFace
Adding all faces of patch walls …
Found matching patch walls with 31250 faces.
faceSet outletB now size 0
End
各种各样的set全是0,找了好久没找到问题出在哪。。。。还得靠各位大佬帮着研究研究。