Upload folder using huggingface_hub (part 15)
Browse files- raw/droplet_impact/t09/constant/polyMesh/points +0 -0
- raw/droplet_impact/t09/constant/transportProperties +33 -0
- raw/droplet_impact/t09/constant/turbulenceProperties +9 -0
- raw/droplet_impact/t09/system/blockMeshDict +73 -0
- raw/droplet_impact/t09/system/controlDict +31 -0
- raw/droplet_impact/t09/system/decomposeParDict +18 -0
- raw/droplet_impact/t09/system/fvSchemes +47 -0
- raw/droplet_impact/t09/system/fvSolution +85 -0
- raw/droplet_impact/t10/0/U +0 -0
- raw/droplet_impact/t10/0/U.template +46 -0
- raw/droplet_impact/t10/0/alpha.water +0 -0
- raw/droplet_impact/t10/0/alpha.water.template +50 -0
- raw/droplet_impact/t10/0/p_rgh +46 -0
- raw/droplet_impact/t10/Allrun +42 -0
- raw/droplet_impact/t10/constant/g +10 -0
- raw/droplet_impact/t10/constant/polyMesh/boundary +54 -0
- raw/droplet_impact/t10/constant/polyMesh/faces +0 -0
- raw/droplet_impact/t10/constant/polyMesh/neighbour +0 -0
- raw/droplet_impact/t10/constant/polyMesh/owner +0 -0
- raw/droplet_impact/t10/constant/polyMesh/points +0 -0
raw/droplet_impact/t09/constant/polyMesh/points
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/droplet_impact/t09/constant/transportProperties
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object transportProperties;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 液滴撞击算例物性参数
|
| 10 |
+
// 参考: Pasandideh-Fard, M. et al. (1996). "Capillary effects during
|
| 11 |
+
// droplet impact on a solid surface." Phys. Fluids, 8(3), 650-659.
|
| 12 |
+
// 水滴撞击固体壁面,We≈69, Re≈3360
|
| 13 |
+
|
| 14 |
+
phases (water air);
|
| 15 |
+
|
| 16 |
+
water
|
| 17 |
+
{
|
| 18 |
+
transportModel Newtonian;
|
| 19 |
+
nu 1.005e-06; // 运动粘度 [m^2/s] (μ=1.003e-3 Pa·s / ρ=998 kg/m^3)
|
| 20 |
+
rho 998; // 密度 [kg/m^3] (20 deg C)
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
air
|
| 24 |
+
{
|
| 25 |
+
transportModel Newtonian;
|
| 26 |
+
nu 1.455e-05; // 运动粘度 [m^2/s] (μ=1.78e-5 Pa·s / ρ=1.225 kg/m^3)
|
| 27 |
+
rho 1.225; // 密度 [kg/m^3]
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
sigma 0.0728; // 表面张力系数 [N/m] (水-空气, 20 deg C)
|
| 31 |
+
// Pasandideh-Fard Table I: σ = 0.0728 N/m
|
| 32 |
+
// 注: Foundation 版 OpenFOAM 不需要 wallAdhesion 关键字
|
| 33 |
+
// interfaceProperties 自动检测 alphaContactAngle BC 并应用接触角修正
|
raw/droplet_impact/t09/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/droplet_impact/t09/system/blockMeshDict
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object blockMeshDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
// 液滴撞击算例
|
| 10 |
+
// 参考: Pasandideh-Fard, M. et al. (1996). "Capillary effects during
|
| 11 |
+
// droplet impact on a solid surface." Phys. Fluids, 8(3), 650-659.
|
| 12 |
+
// 域尺寸: 0.05m x 0.05m (~22D, D=2.25mm, 足够铺展-回缩)
|
| 13 |
+
// 网格: 256 x 256 (~11 cells/D)
|
| 14 |
+
|
| 15 |
+
scale 1;
|
| 16 |
+
|
| 17 |
+
vertices
|
| 18 |
+
(
|
| 19 |
+
(0 0 0) // 0
|
| 20 |
+
(0.05 0 0) // 1
|
| 21 |
+
(0.05 0.05 0) // 2
|
| 22 |
+
(0 0.05 0) // 3
|
| 23 |
+
(0 0 0.001) // 4
|
| 24 |
+
(0.05 0 0.001) // 5
|
| 25 |
+
(0.05 0.05 0.001) // 6
|
| 26 |
+
(0 0.05 0.001) // 7
|
| 27 |
+
);
|
| 28 |
+
|
| 29 |
+
blocks
|
| 30 |
+
(
|
| 31 |
+
hex (0 1 2 3 4 5 6 7) (256 256 1) simpleGrading (1 1 1)
|
| 32 |
+
);
|
| 33 |
+
|
| 34 |
+
edges
|
| 35 |
+
(
|
| 36 |
+
);
|
| 37 |
+
|
| 38 |
+
boundary
|
| 39 |
+
(
|
| 40 |
+
bottomWall
|
| 41 |
+
{
|
| 42 |
+
type wall;
|
| 43 |
+
faces ( (0 1 5 4) ); // Y=0 面(撞击壁面)
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
topPatch
|
| 47 |
+
{
|
| 48 |
+
type patch;
|
| 49 |
+
faces ( (3 7 6 2) ); // Y=0.05 面(顶部开放边界)
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
leftWall
|
| 53 |
+
{
|
| 54 |
+
type patch;
|
| 55 |
+
faces ( (0 4 7 3) ); // X=0 面(侧面开放边界)
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
rightWall
|
| 59 |
+
{
|
| 60 |
+
type patch;
|
| 61 |
+
faces ( (1 2 6 5) ); // X=0.05 面(侧面开放边界)
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
defaultFaces
|
| 65 |
+
{
|
| 66 |
+
type empty;
|
| 67 |
+
faces
|
| 68 |
+
(
|
| 69 |
+
(0 3 2 1) // Z=0
|
| 70 |
+
(4 5 6 7) // Z=0.001
|
| 71 |
+
);
|
| 72 |
+
}
|
| 73 |
+
);
|
raw/droplet_impact/t09/system/controlDict
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 0.2; // 液滴撞击物理时长 [s](铺展+初始回弹)
|
| 15 |
+
|
| 16 |
+
deltaT 5e-06; // 初始时间步 [s](撞击过程需小时间步)
|
| 17 |
+
writeControl adjustableRunTime;
|
| 18 |
+
writeInterval 0.008; // 每 0.01s 保存一帧 → 50 帧(统一 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;
|
| 28 |
+
maxAlphaCo 0.5;
|
| 29 |
+
maxDeltaT 1e-04; // 最大时间步上限
|
| 30 |
+
|
| 31 |
+
functions {};
|
raw/droplet_impact/t09/system/decomposeParDict
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FoamFile
|
| 2 |
+
{
|
| 3 |
+
version 2.0;
|
| 4 |
+
format ascii;
|
| 5 |
+
class dictionary;
|
| 6 |
+
object decomposeParDict;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
numberOfSubdomains 16;
|
| 10 |
+
|
| 11 |
+
method hierarchical;
|
| 12 |
+
|
| 13 |
+
hierarchicalCoeffs
|
| 14 |
+
{
|
| 15 |
+
n (4 4 1);
|
| 16 |
+
delta 0.001;
|
| 17 |
+
order xyz;
|
| 18 |
+
}
|
raw/droplet_impact/t09/system/fvSchemes
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
div(rhoPhi,U) Gauss linearUpwind grad(U);
|
| 24 |
+
div(phi,alpha) Gauss vanLeer;
|
| 25 |
+
div(phirb,alpha) Gauss interfaceCompression vanLeer;
|
| 26 |
+
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear corrected;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
laplacianSchemes
|
| 30 |
+
{
|
| 31 |
+
default Gauss linear corrected;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
interpolationSchemes
|
| 35 |
+
{
|
| 36 |
+
default linear;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
snGradSchemes
|
| 40 |
+
{
|
| 41 |
+
default uncorrected;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
wallDist
|
| 45 |
+
{
|
| 46 |
+
method meshWave;
|
| 47 |
+
}
|
raw/droplet_impact/t09/system/fvSolution
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 3;
|
| 15 |
+
cAlpha 1;
|
| 16 |
+
|
| 17 |
+
solver smoothSolver;
|
| 18 |
+
smoother symGaussSeidel;
|
| 19 |
+
tolerance 1e-8;
|
| 20 |
+
relTol 0;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
"pcorr.*"
|
| 24 |
+
{
|
| 25 |
+
solver PCG;
|
| 26 |
+
preconditioner DIC;
|
| 27 |
+
tolerance 1e-5;
|
| 28 |
+
relTol 0;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
"pcorrFinal.*"
|
| 32 |
+
{
|
| 33 |
+
$pcorr;
|
| 34 |
+
relTol 0;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
"p_rgh.*"
|
| 38 |
+
{
|
| 39 |
+
solver PCG;
|
| 40 |
+
preconditioner DIC;
|
| 41 |
+
tolerance 1e-08;
|
| 42 |
+
relTol 0.01;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
"p_rghFinal.*"
|
| 46 |
+
{
|
| 47 |
+
$p_rgh;
|
| 48 |
+
relTol 0;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
"U.*"
|
| 52 |
+
{
|
| 53 |
+
solver smoothSolver;
|
| 54 |
+
smoother symGaussSeidel;
|
| 55 |
+
tolerance 1e-06;
|
| 56 |
+
relTol 0;
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
MULES
|
| 61 |
+
{
|
| 62 |
+
nAlphaCorr 3;
|
| 63 |
+
nAlphaSubCycles 3;
|
| 64 |
+
cAlpha 1;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
PIMPLE
|
| 68 |
+
{
|
| 69 |
+
nOuterCorrectors 1;
|
| 70 |
+
nCorrectors 3;
|
| 71 |
+
nNonOrthogonalCorrectors 0;
|
| 72 |
+
MULESCorr yes;
|
| 73 |
+
nLimiterIter 5;
|
| 74 |
+
momentumPredictor no;
|
| 75 |
+
pRefCell 0;
|
| 76 |
+
pRefValue 0;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
relaxationFactors
|
| 80 |
+
{
|
| 81 |
+
equations
|
| 82 |
+
{
|
| 83 |
+
".*" 1;
|
| 84 |
+
}
|
| 85 |
+
}
|
raw/droplet_impact/t10/0/U
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/droplet_impact/t10/0/U.template
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
// 初始值:全零;液滴区域由 gen_init_conditions.py 设置为 (0, -1.5, 0)
|
| 12 |
+
internalField uniform (0 0 0);
|
| 13 |
+
|
| 14 |
+
boundaryField
|
| 15 |
+
{
|
| 16 |
+
bottomWall
|
| 17 |
+
{
|
| 18 |
+
type noSlip; // 撞击壁面:无滑移
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
topPatch
|
| 22 |
+
{
|
| 23 |
+
type pressureInletOutletVelocity;
|
| 24 |
+
phi phi;
|
| 25 |
+
value uniform (0 0 0);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
leftWall
|
| 29 |
+
{
|
| 30 |
+
type pressureInletOutletVelocity;
|
| 31 |
+
phi phi;
|
| 32 |
+
value uniform (0 0 0);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
rightWall
|
| 36 |
+
{
|
| 37 |
+
type pressureInletOutletVelocity;
|
| 38 |
+
phi phi;
|
| 39 |
+
value uniform (0 0 0);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
defaultFaces
|
| 43 |
+
{
|
| 44 |
+
type empty;
|
| 45 |
+
}
|
| 46 |
+
}
|
raw/droplet_impact/t10/0/alpha.water
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/droplet_impact/t10/0/alpha.water.template
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|
| 12 |
+
// 液滴半球区域由 gen_init_conditions.py 设置为 1
|
| 13 |
+
internalField uniform 0;
|
| 14 |
+
|
| 15 |
+
boundaryField
|
| 16 |
+
{
|
| 17 |
+
bottomWall
|
| 18 |
+
{
|
| 19 |
+
type constantAlphaContactAngle;
|
| 20 |
+
theta0 75; // Pasandideh-Fard (1996): stainless steel, theta_e ~ 70-80 deg
|
| 21 |
+
limit gradient;
|
| 22 |
+
value uniform 0;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
topPatch
|
| 26 |
+
{
|
| 27 |
+
type inletOutlet;
|
| 28 |
+
inletValue uniform 0;
|
| 29 |
+
value uniform 0;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
leftWall
|
| 33 |
+
{
|
| 34 |
+
type inletOutlet;
|
| 35 |
+
inletValue uniform 0;
|
| 36 |
+
value uniform 0;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
rightWall
|
| 40 |
+
{
|
| 41 |
+
type inletOutlet;
|
| 42 |
+
inletValue uniform 0;
|
| 43 |
+
value uniform 0;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
defaultFaces
|
| 47 |
+
{
|
| 48 |
+
type empty;
|
| 49 |
+
}
|
| 50 |
+
}
|
raw/droplet_impact/t10/0/p_rgh
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
internalField uniform 0;
|
| 12 |
+
|
| 13 |
+
boundaryField
|
| 14 |
+
{
|
| 15 |
+
bottomWall
|
| 16 |
+
{
|
| 17 |
+
type fixedFluxPressure;
|
| 18 |
+
value uniform 0;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
topPatch
|
| 22 |
+
{
|
| 23 |
+
type prghPressure;
|
| 24 |
+
p uniform 0;
|
| 25 |
+
value uniform 0;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
leftWall
|
| 29 |
+
{
|
| 30 |
+
type prghPressure;
|
| 31 |
+
p uniform 0;
|
| 32 |
+
value uniform 0;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
rightWall
|
| 36 |
+
{
|
| 37 |
+
type prghPressure;
|
| 38 |
+
p uniform 0;
|
| 39 |
+
value uniform 0;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
defaultFaces
|
| 43 |
+
{
|
| 44 |
+
type empty;
|
| 45 |
+
}
|
| 46 |
+
}
|
raw/droplet_impact/t10/Allrun
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# droplet_impact Allrun 脚本
|
| 3 |
+
# 参考: Pasandideh-Fard, M. et al. (1998). Phys. Fluids, 10(3), 631-638.
|
| 4 |
+
|
| 5 |
+
cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1
|
| 6 |
+
|
| 7 |
+
N_PROCS=${1:-1}
|
| 8 |
+
|
| 9 |
+
echo "=== droplet_impact: blockMesh ==="
|
| 10 |
+
blockMesh > log.blockMesh 2>&1
|
| 11 |
+
if [ $? -ne 0 ]; then
|
| 12 |
+
echo "ERROR: blockMesh failed, see log.blockMesh"
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
if [ "$N_PROCS" -gt 1 ]; then
|
| 17 |
+
echo "=== droplet_impact: decomposePar (np=$N_PROCS) ==="
|
| 18 |
+
decomposePar -force > log.decomposePar 2>&1
|
| 19 |
+
if [ $? -ne 0 ]; then
|
| 20 |
+
echo "ERROR: decomposePar failed"
|
| 21 |
+
exit 1
|
| 22 |
+
fi
|
| 23 |
+
|
| 24 |
+
echo "=== droplet_impact: interFoam (parallel, np=$N_PROCS) ==="
|
| 25 |
+
mpirun -np "$N_PROCS" interFoam -parallel > log.interFoam 2>&1
|
| 26 |
+
if [ $? -ne 0 ]; then
|
| 27 |
+
echo "ERROR: interFoam failed"
|
| 28 |
+
exit 1
|
| 29 |
+
fi
|
| 30 |
+
|
| 31 |
+
echo "=== droplet_impact: reconstructPar ==="
|
| 32 |
+
reconstructPar > log.reconstructPar 2>&1
|
| 33 |
+
else
|
| 34 |
+
echo "=== droplet_impact: interFoam (serial) ==="
|
| 35 |
+
interFoam > log.interFoam 2>&1
|
| 36 |
+
if [ $? -ne 0 ]; then
|
| 37 |
+
echo "ERROR: interFoam failed"
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
| 40 |
+
fi
|
| 41 |
+
|
| 42 |
+
echo "=== droplet_impact 完成 ==="
|
raw/droplet_impact/t10/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/droplet_impact/t10/constant/polyMesh/boundary
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
bottomWall
|
| 21 |
+
{
|
| 22 |
+
type wall;
|
| 23 |
+
inGroups 1(wall);
|
| 24 |
+
nFaces 256;
|
| 25 |
+
startFace 130560;
|
| 26 |
+
}
|
| 27 |
+
topPatch
|
| 28 |
+
{
|
| 29 |
+
type patch;
|
| 30 |
+
nFaces 256;
|
| 31 |
+
startFace 130816;
|
| 32 |
+
}
|
| 33 |
+
leftWall
|
| 34 |
+
{
|
| 35 |
+
type patch;
|
| 36 |
+
nFaces 256;
|
| 37 |
+
startFace 131072;
|
| 38 |
+
}
|
| 39 |
+
rightWall
|
| 40 |
+
{
|
| 41 |
+
type patch;
|
| 42 |
+
nFaces 256;
|
| 43 |
+
startFace 131328;
|
| 44 |
+
}
|
| 45 |
+
defaultFaces
|
| 46 |
+
{
|
| 47 |
+
type empty;
|
| 48 |
+
inGroups 1(empty);
|
| 49 |
+
nFaces 131072;
|
| 50 |
+
startFace 131584;
|
| 51 |
+
}
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
// ************************************************************************* //
|
raw/droplet_impact/t10/constant/polyMesh/faces
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/droplet_impact/t10/constant/polyMesh/neighbour
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/droplet_impact/t10/constant/polyMesh/owner
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/droplet_impact/t10/constant/polyMesh/points
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|