Upload folder using huggingface_hub (part 17)
Browse files- raw/dam_break/t48/constant/turbulenceProperties +9 -0
- raw/dam_break/t48/system/blockMeshDict +89 -0
- raw/dam_break/t48/system/controlDict +36 -0
- raw/dam_break/t48/system/decomposeParDict +21 -0
- raw/dam_break/t48/system/fvSchemes +53 -0
- raw/dam_break/t48/system/fvSolution +86 -0
- raw/dam_break/t49/0/U +0 -0
- raw/dam_break/t49/0/U.template +41 -0
- raw/dam_break/t49/0/alpha.water +0 -0
- raw/dam_break/t49/0/alpha.water.template +42 -0
- raw/dam_break/t49/0/p_rgh +45 -0
- raw/dam_break/t49/Allrun +44 -0
- raw/dam_break/t49/constant/g +10 -0
- raw/dam_break/t49/constant/polyMesh/boundary +56 -0
- raw/dam_break/t49/constant/polyMesh/faces +0 -0
- raw/dam_break/t49/constant/polyMesh/neighbour +0 -0
- raw/dam_break/t49/constant/polyMesh/owner +0 -0
- raw/dam_break/t49/constant/polyMesh/points +0 -0
- raw/dam_break/t49/constant/transportProperties +29 -0
- raw/dam_break/t49/constant/turbulenceProperties +9 -0
- raw/dam_break/t49/system/blockMeshDict +89 -0
- raw/dam_break/t49/system/controlDict +36 -0
- raw/dam_break/t49/system/decomposeParDict +21 -0
- raw/dam_break/t49/system/fvSchemes +53 -0
- raw/dam_break/t49/system/fvSolution +86 -0
raw/dam_break/t48/constant/turbulenceProperties
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object turbulenceProperties;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
simulationType laminar;
|
raw/dam_break/t48/system/blockMeshDict
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object blockMeshDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 溃坝算例 — 简化矩形域(去除原始 damBreakLaminar 教程中的中间障碍物)
|
| 10 |
+
// 参考: OpenFOAM Foundation. OpenFOAM v9 User Guide, 2021.
|
| 11 |
+
// Section 2.1.1 "Breaking of a dam"
|
| 12 |
+
// 域尺寸: 0.584m x 0.584m (X x Y), Z 方向单层(2D, empty 边界)
|
| 13 |
+
// 网格: 128 x 128 (X x Y)
|
| 14 |
+
|
| 15 |
+
scale 1; // 坐标单位: m
|
| 16 |
+
|
| 17 |
+
// 四个顶点 (Z=0 和 Z=0.001 两层构成退化 3D 网格)
|
| 18 |
+
vertices
|
| 19 |
+
(
|
| 20 |
+
(0 0 0) // 0: 左下前
|
| 21 |
+
(0.584 0 0) // 1: 右下前
|
| 22 |
+
(0.584 0.584 0) // 2: 右上前
|
| 23 |
+
(0 0.584 0) // 3: 左上前
|
| 24 |
+
(0 0 0.001) // 4: 左下后
|
| 25 |
+
(0.584 0 0.001) // 5: 右下后
|
| 26 |
+
(0.584 0.584 0.001) // 6: 右上后
|
| 27 |
+
(0 0.584 0.001) // 7: 左上后
|
| 28 |
+
);
|
| 29 |
+
|
| 30 |
+
// 单一六面体块,128x128x1 网格
|
| 31 |
+
// vertex ordering: 右手定则,从 0-3 (Z=0) 到 4-7 (Z=0.001)
|
| 32 |
+
blocks
|
| 33 |
+
(
|
| 34 |
+
hex (0 1 2 3 4 5 6 7) (128 128 1) simpleGrading (1 1 1)
|
| 35 |
+
);
|
| 36 |
+
|
| 37 |
+
edges
|
| 38 |
+
(
|
| 39 |
+
);
|
| 40 |
+
|
| 41 |
+
// 边界面定义
|
| 42 |
+
boundary
|
| 43 |
+
(
|
| 44 |
+
leftWall
|
| 45 |
+
{
|
| 46 |
+
type wall;
|
| 47 |
+
faces
|
| 48 |
+
(
|
| 49 |
+
(0 4 7 3) // X=0 面(左侧壁)
|
| 50 |
+
);
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
rightWall
|
| 54 |
+
{
|
| 55 |
+
type wall;
|
| 56 |
+
faces
|
| 57 |
+
(
|
| 58 |
+
(1 2 6 5) // X=0.584 面(右侧壁)
|
| 59 |
+
);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
lowerWall
|
| 63 |
+
{
|
| 64 |
+
type wall;
|
| 65 |
+
faces
|
| 66 |
+
(
|
| 67 |
+
(0 1 5 4) // Y=0 面(底部壁)
|
| 68 |
+
);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
upperWall
|
| 72 |
+
{
|
| 73 |
+
type patch;
|
| 74 |
+
faces
|
| 75 |
+
(
|
| 76 |
+
(3 7 6 2) // Y=0.584 面(顶部开口)
|
| 77 |
+
);
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
defaultFaces
|
| 81 |
+
{
|
| 82 |
+
type empty;
|
| 83 |
+
faces
|
| 84 |
+
(
|
| 85 |
+
(0 3 2 1) // Z=0 前面
|
| 86 |
+
(4 5 6 7) // Z=0.001 后面
|
| 87 |
+
);
|
| 88 |
+
}
|
| 89 |
+
);
|
raw/dam_break/t48/system/controlDict
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object controlDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
application interFoam;
|
| 10 |
+
|
| 11 |
+
startFrom startTime;
|
| 12 |
+
startTime 0;
|
| 13 |
+
stopAt endTime;
|
| 14 |
+
endTime 2.0; // 溃坝物理时长 [s]
|
| 15 |
+
|
| 16 |
+
deltaT 0.002; // 初始时间步 [s](自适应调整)
|
| 17 |
+
writeControl adjustableRunTime;
|
| 18 |
+
writeInterval 0.08; // 每 0.01s 保存一帧 → 200 帧(统一 10ms 间隔)
|
| 19 |
+
|
| 20 |
+
purgeWrite 0;
|
| 21 |
+
writeFormat ascii; // ASCII 格式,便于后处理脚本读取
|
| 22 |
+
writePrecision 8;
|
| 23 |
+
timeFormat general;
|
| 24 |
+
timePrecision 6;
|
| 25 |
+
|
| 26 |
+
adjustTimeStep yes; // 自适应时间步
|
| 27 |
+
maxCo 0.5; // Courant 数限制
|
| 28 |
+
maxAlphaCo 0.5; // alpha Courant 数限制
|
| 29 |
+
maxDeltaT 0.005; // 最大时间步上限 [s]
|
| 30 |
+
|
| 31 |
+
functions {};
|
| 32 |
+
|
| 33 |
+
OptimisationSwitches
|
| 34 |
+
{
|
| 35 |
+
trapFpe no; // 禁用浮点异常捕获(避免数值噪声导致崩溃)
|
| 36 |
+
}
|
raw/dam_break/t48/system/decomposeParDict
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object decomposeParDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 并行分解设置
|
| 10 |
+
// 2D case: Z 方向仅 1 个分区(empty 边界限制)
|
| 11 |
+
// numberOfSubdomains 16由 run_case.sh 传入,此处为默认值
|
| 12 |
+
numberOfSubdomains 16;
|
| 13 |
+
|
| 14 |
+
method hierarchical;
|
| 15 |
+
|
| 16 |
+
hierarchicalCoeffs
|
| 17 |
+
{
|
| 18 |
+
n (4 4 1); // X: 2分区, Y: 2分区, Z: 1分区
|
| 19 |
+
delta 0.001;
|
| 20 |
+
order xyz;
|
| 21 |
+
}
|
raw/dam_break/t48/system/fvSchemes
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object fvSchemes;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
ddtSchemes
|
| 10 |
+
{
|
| 11 |
+
default Euler;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
gradSchemes
|
| 15 |
+
{
|
| 16 |
+
default Gauss linear;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
divSchemes
|
| 20 |
+
{
|
| 21 |
+
default none;
|
| 22 |
+
|
| 23 |
+
// 速度对流项:线性迎风(一阶稳定)
|
| 24 |
+
div(rhoPhi,U) Gauss linearUpwind grad(U);
|
| 25 |
+
|
| 26 |
+
// alpha 方程:van Leer 界面压缩格式
|
| 27 |
+
// gcnl: 人工压缩通量,保持界面锐利
|
| 28 |
+
div(phi,alpha) Gauss vanLeer;
|
| 29 |
+
div(phirb,alpha) Gauss interfaceCompression vanLeer;
|
| 30 |
+
|
| 31 |
+
// ESI v1906 粘性应力项
|
| 32 |
+
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear corrected;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
laplacianSchemes
|
| 36 |
+
{
|
| 37 |
+
default Gauss linear corrected;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
interpolationSchemes
|
| 41 |
+
{
|
| 42 |
+
default linear;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
snGradSchemes
|
| 46 |
+
{
|
| 47 |
+
default uncorrected;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
wallDist
|
| 51 |
+
{
|
| 52 |
+
method meshWave;
|
| 53 |
+
}
|
raw/dam_break/t48/system/fvSolution
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object fvSolution;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
solvers
|
| 10 |
+
{
|
| 11 |
+
"alpha.water.*"
|
| 12 |
+
{
|
| 13 |
+
nAlphaCorr 3;
|
| 14 |
+
nAlphaSubCycles 2;
|
| 15 |
+
cAlpha 1;
|
| 16 |
+
solver smoothSolver;
|
| 17 |
+
smoother symGaussSeidel;
|
| 18 |
+
tolerance 1e-8;
|
| 19 |
+
relTol 0;
|
| 20 |
+
minIter 1;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
"pcorr.*"
|
| 24 |
+
{
|
| 25 |
+
solver PCG;
|
| 26 |
+
preconditioner DIC;
|
| 27 |
+
tolerance 1e-8;
|
| 28 |
+
relTol 0;
|
| 29 |
+
minIter 1;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
"pcorrFinal.*"
|
| 33 |
+
{
|
| 34 |
+
$pcorr;
|
| 35 |
+
relTol 0;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
"p_rgh.*"
|
| 39 |
+
{
|
| 40 |
+
solver PCG;
|
| 41 |
+
preconditioner DIC;
|
| 42 |
+
tolerance 1e-8;
|
| 43 |
+
relTol 0.001;
|
| 44 |
+
minIter 1;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
"p_rghFinal.*"
|
| 48 |
+
{
|
| 49 |
+
$p_rgh;
|
| 50 |
+
relTol 0;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
"U.*"
|
| 54 |
+
{
|
| 55 |
+
solver smoothSolver;
|
| 56 |
+
smoother symGaussSeidel;
|
| 57 |
+
tolerance 1e-8;
|
| 58 |
+
relTol 0;
|
| 59 |
+
minIter 1;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
MULES
|
| 64 |
+
{
|
| 65 |
+
nAlphaCorr 3;
|
| 66 |
+
nAlphaSubCycles 2;
|
| 67 |
+
cAlpha 1;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
PIMPLE
|
| 71 |
+
{
|
| 72 |
+
nOuterCorrectors 1;
|
| 73 |
+
nCorrectors 3;
|
| 74 |
+
nNonOrthogonalCorrectors 0;
|
| 75 |
+
MULESCorr yes;
|
| 76 |
+
nLimiterIter 5;
|
| 77 |
+
momentumPredictor no;
|
| 78 |
+
pRefCell 0;
|
| 79 |
+
pRefValue 0;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
relaxationFactors
|
| 83 |
+
{
|
| 84 |
+
fields {};
|
| 85 |
+
equations {};
|
| 86 |
+
}
|
raw/dam_break/t49/0/U
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/dam_break/t49/0/U.template
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class volVectorField;
|
| 6 |
+
object U;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
dimensions [0 1 -1 0 0 0 0];
|
| 10 |
+
|
| 11 |
+
internalField uniform (0 0 0);
|
| 12 |
+
|
| 13 |
+
boundaryField
|
| 14 |
+
{
|
| 15 |
+
leftWall
|
| 16 |
+
{
|
| 17 |
+
type noSlip;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
rightWall
|
| 21 |
+
{
|
| 22 |
+
type noSlip;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
lowerWall
|
| 26 |
+
{
|
| 27 |
+
type noSlip;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
upperWall
|
| 31 |
+
{
|
| 32 |
+
type pressureInletOutletVelocity;
|
| 33 |
+
phi phi;
|
| 34 |
+
value uniform (0 0 0);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
defaultFaces
|
| 38 |
+
{
|
| 39 |
+
type empty;
|
| 40 |
+
}
|
| 41 |
+
}
|
raw/dam_break/t49/0/alpha.water
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/dam_break/t49/0/alpha.water.template
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class volScalarField;
|
| 6 |
+
object alpha.water;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
dimensions [0 0 0 0 0 0 0];
|
| 10 |
+
|
| 11 |
+
// 初始值:全部为空气(alpha=0),由 gen_init_conditions.py 覆盖水柱区域
|
| 12 |
+
internalField uniform 0;
|
| 13 |
+
|
| 14 |
+
boundaryField
|
| 15 |
+
{
|
| 16 |
+
leftWall
|
| 17 |
+
{
|
| 18 |
+
type zeroGradient;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
rightWall
|
| 22 |
+
{
|
| 23 |
+
type zeroGradient;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
lowerWall
|
| 27 |
+
{
|
| 28 |
+
type zeroGradient;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
upperWall
|
| 32 |
+
{
|
| 33 |
+
type inletOutlet;
|
| 34 |
+
inletValue uniform 0;
|
| 35 |
+
value uniform 0;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
defaultFaces
|
| 39 |
+
{
|
| 40 |
+
type empty;
|
| 41 |
+
}
|
| 42 |
+
}
|
raw/dam_break/t49/0/p_rgh
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class volScalarField;
|
| 6 |
+
object p_rgh;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
dimensions [1 -1 -2 0 0 0 0];
|
| 10 |
+
|
| 11 |
+
// 注意: OpenFOAM 中 p_rgh = p/rho - g·x,此处为 kinematic pressure
|
| 12 |
+
internalField uniform 0;
|
| 13 |
+
|
| 14 |
+
boundaryField
|
| 15 |
+
{
|
| 16 |
+
leftWall
|
| 17 |
+
{
|
| 18 |
+
type fixedFluxPressure;
|
| 19 |
+
value uniform 0;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
rightWall
|
| 23 |
+
{
|
| 24 |
+
type fixedFluxPressure;
|
| 25 |
+
value uniform 0;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
lowerWall
|
| 29 |
+
{
|
| 30 |
+
type fixedFluxPressure;
|
| 31 |
+
value uniform 0;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
upperWall
|
| 35 |
+
{
|
| 36 |
+
type prghPressure;
|
| 37 |
+
p uniform 0;
|
| 38 |
+
value uniform 0;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
defaultFaces
|
| 42 |
+
{
|
| 43 |
+
type empty;
|
| 44 |
+
}
|
| 45 |
+
}
|
raw/dam_break/t49/Allrun
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# dam_break Allrun 脚本
|
| 3 |
+
# 用法: bash Allrun [n_procs]
|
| 4 |
+
# 注意: 初始场文件(0/alpha.water, 0/U)由 gen_init_conditions.py 预生成
|
| 5 |
+
|
| 6 |
+
cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1
|
| 7 |
+
|
| 8 |
+
N_PROCS=${1:-1}
|
| 9 |
+
|
| 10 |
+
echo "=== dam_break: blockMesh ==="
|
| 11 |
+
blockMesh > log.blockMesh 2>&1
|
| 12 |
+
if [ $? -ne 0 ]; then
|
| 13 |
+
echo "ERROR: blockMesh failed, see log.blockMesh"
|
| 14 |
+
exit 1
|
| 15 |
+
fi
|
| 16 |
+
echo " blockMesh 完成"
|
| 17 |
+
|
| 18 |
+
if [ "$N_PROCS" -gt 1 ]; then
|
| 19 |
+
echo "=== dam_break: decomposePar (np=$N_PROCS) ==="
|
| 20 |
+
decomposePar -force > log.decomposePar 2>&1
|
| 21 |
+
if [ $? -ne 0 ]; then
|
| 22 |
+
echo "ERROR: decomposePar failed, see log.decomposePar"
|
| 23 |
+
exit 1
|
| 24 |
+
fi
|
| 25 |
+
|
| 26 |
+
echo "=== dam_break: interFoam (parallel, np=$N_PROCS) ==="
|
| 27 |
+
mpirun -np "$N_PROCS" interFoam -parallel > log.interFoam 2>&1
|
| 28 |
+
if [ $? -ne 0 ]; then
|
| 29 |
+
echo "ERROR: interFoam failed, see log.interFoam"
|
| 30 |
+
exit 1
|
| 31 |
+
fi
|
| 32 |
+
|
| 33 |
+
echo "=== dam_break: reconstructPar ==="
|
| 34 |
+
reconstructPar > log.reconstructPar 2>&1
|
| 35 |
+
else
|
| 36 |
+
echo "=== dam_break: interFoam (serial) ==="
|
| 37 |
+
interFoam > log.interFoam 2>&1
|
| 38 |
+
if [ $? -ne 0 ]; then
|
| 39 |
+
echo "ERROR: interFoam failed, see log.interFoam"
|
| 40 |
+
exit 1
|
| 41 |
+
fi
|
| 42 |
+
fi
|
| 43 |
+
|
| 44 |
+
echo "=== dam_break 完成 ==="
|
raw/dam_break/t49/constant/g
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class uniformDimensionedVectorField;
|
| 6 |
+
object g;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
dimensions [0 1 -2 0 0 0 0];
|
| 10 |
+
value (0 -9.81 0);
|
raw/dam_break/t49/constant/polyMesh/boundary
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*--------------------------------*- C++ -*----------------------------------*\
|
| 2 |
+
| ========= | |
|
| 3 |
+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| 4 |
+
| \\ / O peration | Version: |
|
| 5 |
+
| \\ / A nd | Web: www.OpenFOAM.com |
|
| 6 |
+
| \\/ M anipulation | |
|
| 7 |
+
\*---------------------------------------------------------------------------*/
|
| 8 |
+
FoamFile
|
| 9 |
+
{
|
| 10 |
+
version 2.0;
|
| 11 |
+
format ascii;
|
| 12 |
+
class polyBoundaryMesh;
|
| 13 |
+
location "constant/polyMesh";
|
| 14 |
+
object boundary;
|
| 15 |
+
}
|
| 16 |
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
| 17 |
+
|
| 18 |
+
5
|
| 19 |
+
(
|
| 20 |
+
leftWall
|
| 21 |
+
{
|
| 22 |
+
type wall;
|
| 23 |
+
inGroups 1(wall);
|
| 24 |
+
nFaces 128;
|
| 25 |
+
startFace 32512;
|
| 26 |
+
}
|
| 27 |
+
rightWall
|
| 28 |
+
{
|
| 29 |
+
type wall;
|
| 30 |
+
inGroups 1(wall);
|
| 31 |
+
nFaces 128;
|
| 32 |
+
startFace 32640;
|
| 33 |
+
}
|
| 34 |
+
lowerWall
|
| 35 |
+
{
|
| 36 |
+
type wall;
|
| 37 |
+
inGroups 1(wall);
|
| 38 |
+
nFaces 128;
|
| 39 |
+
startFace 32768;
|
| 40 |
+
}
|
| 41 |
+
upperWall
|
| 42 |
+
{
|
| 43 |
+
type patch;
|
| 44 |
+
nFaces 128;
|
| 45 |
+
startFace 32896;
|
| 46 |
+
}
|
| 47 |
+
defaultFaces
|
| 48 |
+
{
|
| 49 |
+
type empty;
|
| 50 |
+
inGroups 1(empty);
|
| 51 |
+
nFaces 32768;
|
| 52 |
+
startFace 33024;
|
| 53 |
+
}
|
| 54 |
+
)
|
| 55 |
+
|
| 56 |
+
// ************************************************************************* //
|
raw/dam_break/t49/constant/polyMesh/faces
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/dam_break/t49/constant/polyMesh/neighbour
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/dam_break/t49/constant/polyMesh/owner
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/dam_break/t49/constant/polyMesh/points
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/dam_break/t49/constant/transportProperties
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object transportProperties;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 两相流物性参数
|
| 10 |
+
// 参考: OpenFOAM Foundation. OpenFOAM v9 User Guide, 2021.
|
| 11 |
+
// 水和空气的标准物理参数
|
| 12 |
+
|
| 13 |
+
phases (water air);
|
| 14 |
+
|
| 15 |
+
water
|
| 16 |
+
{
|
| 17 |
+
transportModel Newtonian;
|
| 18 |
+
nu 1.0e-06; // 运动粘度 [m^2/s] (20 deg C)
|
| 19 |
+
rho 1000; // 密度 [kg/m^3]
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
air
|
| 23 |
+
{
|
| 24 |
+
transportModel Newtonian;
|
| 25 |
+
nu 1.48e-05; // 运动粘度 [m^2/s] (20 deg C)
|
| 26 |
+
rho 1.225; // 密度 [kg/m^3]
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
sigma 0.07; // 表面张力系数 [N/m] (水-空气, 20 deg C)
|
raw/dam_break/t49/constant/turbulenceProperties
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object turbulenceProperties;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
simulationType laminar;
|
raw/dam_break/t49/system/blockMeshDict
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object blockMeshDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 溃坝算例 — 简化矩形域(去除原始 damBreakLaminar 教程中的中间障碍物)
|
| 10 |
+
// 参考: OpenFOAM Foundation. OpenFOAM v9 User Guide, 2021.
|
| 11 |
+
// Section 2.1.1 "Breaking of a dam"
|
| 12 |
+
// 域尺寸: 0.584m x 0.584m (X x Y), Z 方向单层(2D, empty 边界)
|
| 13 |
+
// 网格: 128 x 128 (X x Y)
|
| 14 |
+
|
| 15 |
+
scale 1; // 坐标单位: m
|
| 16 |
+
|
| 17 |
+
// 四个顶点 (Z=0 和 Z=0.001 两层构成退化 3D 网格)
|
| 18 |
+
vertices
|
| 19 |
+
(
|
| 20 |
+
(0 0 0) // 0: 左下前
|
| 21 |
+
(0.584 0 0) // 1: 右下前
|
| 22 |
+
(0.584 0.584 0) // 2: 右上前
|
| 23 |
+
(0 0.584 0) // 3: 左上前
|
| 24 |
+
(0 0 0.001) // 4: 左下后
|
| 25 |
+
(0.584 0 0.001) // 5: 右下后
|
| 26 |
+
(0.584 0.584 0.001) // 6: 右上后
|
| 27 |
+
(0 0.584 0.001) // 7: 左上后
|
| 28 |
+
);
|
| 29 |
+
|
| 30 |
+
// 单一六面体块,128x128x1 网格
|
| 31 |
+
// vertex ordering: 右手定则,从 0-3 (Z=0) 到 4-7 (Z=0.001)
|
| 32 |
+
blocks
|
| 33 |
+
(
|
| 34 |
+
hex (0 1 2 3 4 5 6 7) (128 128 1) simpleGrading (1 1 1)
|
| 35 |
+
);
|
| 36 |
+
|
| 37 |
+
edges
|
| 38 |
+
(
|
| 39 |
+
);
|
| 40 |
+
|
| 41 |
+
// 边界面定义
|
| 42 |
+
boundary
|
| 43 |
+
(
|
| 44 |
+
leftWall
|
| 45 |
+
{
|
| 46 |
+
type wall;
|
| 47 |
+
faces
|
| 48 |
+
(
|
| 49 |
+
(0 4 7 3) // X=0 面(左侧壁)
|
| 50 |
+
);
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
rightWall
|
| 54 |
+
{
|
| 55 |
+
type wall;
|
| 56 |
+
faces
|
| 57 |
+
(
|
| 58 |
+
(1 2 6 5) // X=0.584 面(右侧壁)
|
| 59 |
+
);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
lowerWall
|
| 63 |
+
{
|
| 64 |
+
type wall;
|
| 65 |
+
faces
|
| 66 |
+
(
|
| 67 |
+
(0 1 5 4) // Y=0 面(底部壁)
|
| 68 |
+
);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
upperWall
|
| 72 |
+
{
|
| 73 |
+
type patch;
|
| 74 |
+
faces
|
| 75 |
+
(
|
| 76 |
+
(3 7 6 2) // Y=0.584 面(顶部开口)
|
| 77 |
+
);
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
defaultFaces
|
| 81 |
+
{
|
| 82 |
+
type empty;
|
| 83 |
+
faces
|
| 84 |
+
(
|
| 85 |
+
(0 3 2 1) // Z=0 前面
|
| 86 |
+
(4 5 6 7) // Z=0.001 后面
|
| 87 |
+
);
|
| 88 |
+
}
|
| 89 |
+
);
|
raw/dam_break/t49/system/controlDict
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object controlDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
application interFoam;
|
| 10 |
+
|
| 11 |
+
startFrom startTime;
|
| 12 |
+
startTime 0;
|
| 13 |
+
stopAt endTime;
|
| 14 |
+
endTime 2.0; // 溃坝物理时长 [s]
|
| 15 |
+
|
| 16 |
+
deltaT 0.002; // 初始时间步 [s](自适应调整)
|
| 17 |
+
writeControl adjustableRunTime;
|
| 18 |
+
writeInterval 0.08; // 每 0.01s 保存一帧 → 200 帧(统一 10ms 间隔)
|
| 19 |
+
|
| 20 |
+
purgeWrite 0;
|
| 21 |
+
writeFormat ascii; // ASCII 格式,便于后处理脚本读取
|
| 22 |
+
writePrecision 8;
|
| 23 |
+
timeFormat general;
|
| 24 |
+
timePrecision 6;
|
| 25 |
+
|
| 26 |
+
adjustTimeStep yes; // 自适应时间步
|
| 27 |
+
maxCo 0.5; // Courant 数限制
|
| 28 |
+
maxAlphaCo 0.5; // alpha Courant 数限制
|
| 29 |
+
maxDeltaT 0.005; // 最大时间步上限 [s]
|
| 30 |
+
|
| 31 |
+
functions {};
|
| 32 |
+
|
| 33 |
+
OptimisationSwitches
|
| 34 |
+
{
|
| 35 |
+
trapFpe no; // 禁用浮点异常捕获(避免数值噪声导致崩溃)
|
| 36 |
+
}
|
raw/dam_break/t49/system/decomposeParDict
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object decomposeParDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 并行分解设置
|
| 10 |
+
// 2D case: Z 方向仅 1 个分区(empty 边界限制)
|
| 11 |
+
// numberOfSubdomains 16由 run_case.sh 传入,此处为默认值
|
| 12 |
+
numberOfSubdomains 16;
|
| 13 |
+
|
| 14 |
+
method hierarchical;
|
| 15 |
+
|
| 16 |
+
hierarchicalCoeffs
|
| 17 |
+
{
|
| 18 |
+
n (4 4 1); // X: 2分区, Y: 2分区, Z: 1分区
|
| 19 |
+
delta 0.001;
|
| 20 |
+
order xyz;
|
| 21 |
+
}
|
raw/dam_break/t49/system/fvSchemes
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object fvSchemes;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
ddtSchemes
|
| 10 |
+
{
|
| 11 |
+
default Euler;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
gradSchemes
|
| 15 |
+
{
|
| 16 |
+
default Gauss linear;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
divSchemes
|
| 20 |
+
{
|
| 21 |
+
default none;
|
| 22 |
+
|
| 23 |
+
// 速度对流项:线性迎风(一阶稳定)
|
| 24 |
+
div(rhoPhi,U) Gauss linearUpwind grad(U);
|
| 25 |
+
|
| 26 |
+
// alpha 方程:van Leer 界面压缩格式
|
| 27 |
+
// gcnl: 人工压缩通量,保持界面锐利
|
| 28 |
+
div(phi,alpha) Gauss vanLeer;
|
| 29 |
+
div(phirb,alpha) Gauss interfaceCompression vanLeer;
|
| 30 |
+
|
| 31 |
+
// ESI v1906 粘性应力项
|
| 32 |
+
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear corrected;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
laplacianSchemes
|
| 36 |
+
{
|
| 37 |
+
default Gauss linear corrected;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
interpolationSchemes
|
| 41 |
+
{
|
| 42 |
+
default linear;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
snGradSchemes
|
| 46 |
+
{
|
| 47 |
+
default uncorrected;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
wallDist
|
| 51 |
+
{
|
| 52 |
+
method meshWave;
|
| 53 |
+
}
|
raw/dam_break/t49/system/fvSolution
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object fvSolution;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
solvers
|
| 10 |
+
{
|
| 11 |
+
"alpha.water.*"
|
| 12 |
+
{
|
| 13 |
+
nAlphaCorr 3;
|
| 14 |
+
nAlphaSubCycles 2;
|
| 15 |
+
cAlpha 1;
|
| 16 |
+
solver smoothSolver;
|
| 17 |
+
smoother symGaussSeidel;
|
| 18 |
+
tolerance 1e-8;
|
| 19 |
+
relTol 0;
|
| 20 |
+
minIter 1;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
"pcorr.*"
|
| 24 |
+
{
|
| 25 |
+
solver PCG;
|
| 26 |
+
preconditioner DIC;
|
| 27 |
+
tolerance 1e-8;
|
| 28 |
+
relTol 0;
|
| 29 |
+
minIter 1;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
"pcorrFinal.*"
|
| 33 |
+
{
|
| 34 |
+
$pcorr;
|
| 35 |
+
relTol 0;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
"p_rgh.*"
|
| 39 |
+
{
|
| 40 |
+
solver PCG;
|
| 41 |
+
preconditioner DIC;
|
| 42 |
+
tolerance 1e-8;
|
| 43 |
+
relTol 0.001;
|
| 44 |
+
minIter 1;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
"p_rghFinal.*"
|
| 48 |
+
{
|
| 49 |
+
$p_rgh;
|
| 50 |
+
relTol 0;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
"U.*"
|
| 54 |
+
{
|
| 55 |
+
solver smoothSolver;
|
| 56 |
+
smoother symGaussSeidel;
|
| 57 |
+
tolerance 1e-8;
|
| 58 |
+
relTol 0;
|
| 59 |
+
minIter 1;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
MULES
|
| 64 |
+
{
|
| 65 |
+
nAlphaCorr 3;
|
| 66 |
+
nAlphaSubCycles 2;
|
| 67 |
+
cAlpha 1;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
PIMPLE
|
| 71 |
+
{
|
| 72 |
+
nOuterCorrectors 1;
|
| 73 |
+
nCorrectors 3;
|
| 74 |
+
nNonOrthogonalCorrectors 0;
|
| 75 |
+
MULESCorr yes;
|
| 76 |
+
nLimiterIter 5;
|
| 77 |
+
momentumPredictor no;
|
| 78 |
+
pRefCell 0;
|
| 79 |
+
pRefValue 0;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
relaxationFactors
|
| 83 |
+
{
|
| 84 |
+
fields {};
|
| 85 |
+
equations {};
|
| 86 |
+
}
|