Upload folder using huggingface_hub (part 27)
Browse filesFiles changed (20)
- raw/droplet_impact/t30/0/alpha.waterAdded
- raw/droplet_impact/t30/0/alpha.water.templateAdded+50
- raw/droplet_impact/t30/0/p_rghAdded+46
- raw/droplet_impact/t30/AllrunAdded+42
- raw/droplet_impact/t30/constant/gAdded+10
- raw/droplet_impact/t30/constant/polyMesh/boundaryAdded+54
- raw/droplet_impact/t30/constant/polyMesh/facesAdded
- raw/droplet_impact/t30/constant/polyMesh/neighbourAdded
- raw/droplet_impact/t30/constant/polyMesh/ownerAdded
- raw/droplet_impact/t30/constant/polyMesh/pointsAdded
- raw/droplet_impact/t30/constant/transportPropertiesAdded+33
- raw/droplet_impact/t30/constant/turbulencePropertiesAdded+9
- raw/droplet_impact/t30/system/blockMeshDictAdded+73
- raw/droplet_impact/t30/system/controlDictAdded+31
- raw/droplet_impact/t30/system/decomposeParDictAdded+18
- raw/droplet_impact/t30/system/fvSchemesAdded+47
- raw/droplet_impact/t30/system/fvSolutionAdded+85
- raw/droplet_impact/t31/0/UAdded
- raw/droplet_impact/t31/0/U.templateAdded+46
- raw/droplet_impact/t31/0/alpha.waterAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950FoamFile{ version 2.0; format ascii; class volScalarField; object alpha.water;}
dimensions [0 0 0 0 0 0 0];
// 初始值:全部为空气(alpha=0)// 液滴半球区域由 gen_init_conditions.py 设置为 1internalField uniform 0;
boundaryField{ bottomWall { type constantAlphaContactAngle; theta0 75; // Pasandideh-Fard (1996): stainless steel, theta_e ~ 70-80 deg limit gradient; value uniform 0; }
topPatch { type inletOutlet; inletValue uniform 0; value uniform 0; }
leftWall { type inletOutlet; inletValue uniform 0; value uniform 0; }
rightWall { type inletOutlet; inletValue uniform 0; value uniform 0; }
defaultFaces { type empty; }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546FoamFile{ version 2.0; format ascii; class volScalarField; object p_rgh;}
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField{ bottomWall { type fixedFluxPressure; value uniform 0; }
topPatch { type prghPressure; p uniform 0; value uniform 0; }
leftWall { type prghPressure; p uniform 0; value uniform 0; }
rightWall { type prghPressure; p uniform 0; value uniform 0; }
defaultFaces { type empty; }}123456789101112131415161718192021222324252627282930313233343536373839404142#!/bin/bash# droplet_impact Allrun 脚本# 参考: Pasandideh-Fard, M. et al. (1998). Phys. Fluids, 10(3), 631-638.
cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1
N_PROCS=${1:-1}
echo "=== droplet_impact: blockMesh ==="blockMesh > log.blockMesh 2>&1if [ $? -ne 0 ]; then echo "ERROR: blockMesh failed, see log.blockMesh" exit 1fi
if [ "$N_PROCS" -gt 1 ]; then echo "=== droplet_impact: decomposePar (np=$N_PROCS) ===" decomposePar -force > log.decomposePar 2>&1 if [ $? -ne 0 ]; then echo "ERROR: decomposePar failed" exit 1 fi
echo "=== droplet_impact: interFoam (parallel, np=$N_PROCS) ===" mpirun -np "$N_PROCS" interFoam -parallel > log.interFoam 2>&1 if [ $? -ne 0 ]; then echo "ERROR: interFoam failed" exit 1 fi
echo "=== droplet_impact: reconstructPar ===" reconstructPar > log.reconstructPar 2>&1else echo "=== droplet_impact: interFoam (serial) ===" interFoam > log.interFoam 2>&1 if [ $? -ne 0 ]; then echo "ERROR: interFoam failed" exit 1 fifi
echo "=== droplet_impact 完成 ==="12345678910FoamFile{ version 2.0; format ascii; class uniformDimensionedVectorField; object g;}
dimensions [0 1 -2 0 0 0 0];value (0 -9.81 0);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*--------------------------------*- C++ -*----------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: || \\ / A nd | Web: www.OpenFOAM.com || \\/ M anipulation | |\*---------------------------------------------------------------------------*/FoamFile{ version 2.0; format ascii; class polyBoundaryMesh; location "constant/polyMesh"; object boundary;}// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5( bottomWall { type wall; inGroups 1(wall); nFaces 256; startFace 130560; } topPatch { type patch; nFaces 256; startFace 130816; } leftWall { type patch; nFaces 256; startFace 131072; } rightWall { type patch; nFaces 256; startFace 131328; } defaultFaces { type empty; inGroups 1(empty); nFaces 131072; startFace 131584; })
// ************************************************************************* //123456789101112131415161718192021222324252627282930313233FoamFile{ version 2.0; format ascii; class dictionary; object transportProperties;}
// 液滴撞击算例物性参数// 参考: Pasandideh-Fard, M. et al. (1996). "Capillary effects during// droplet impact on a solid surface." Phys. Fluids, 8(3), 650-659.// 水滴撞击固体壁面,We≈69, Re≈3360
phases (water air);
water{ transportModel Newtonian; nu 1.005e-06; // 运动粘度 [m^2/s] (μ=1.003e-3 Pa·s / ρ=998 kg/m^3) rho 998; // 密度 [kg/m^3] (20 deg C)}
air{ transportModel Newtonian; nu 1.455e-05; // 运动粘度 [m^2/s] (μ=1.78e-5 Pa·s / ρ=1.225 kg/m^3) rho 1.225; // 密度 [kg/m^3]}
sigma 0.0728; // 表面张力系数 [N/m] (水-空气, 20 deg C)// Pasandideh-Fard Table I: σ = 0.0728 N/m// 注: Foundation 版 OpenFOAM 不需要 wallAdhesion 关键字// interfaceProperties 自动检测 alphaContactAngle BC 并应用接触角修正123456789FoamFile{ version 2.0; format ascii; class dictionary; object turbulenceProperties;}
simulationType laminar;12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273FoamFile{ version 2.0; format ascii; class dictionary; object blockMeshDict;}
// 液滴撞击算例// 参考: Pasandideh-Fard, M. et al. (1996). "Capillary effects during// droplet impact on a solid surface." Phys. Fluids, 8(3), 650-659.// 域尺寸: 0.05m x 0.05m (~22D, D=2.25mm, 足够铺展-回缩)// 网格: 256 x 256 (~11 cells/D)
scale 1;
vertices( (0 0 0) // 0 (0.05 0 0) // 1 (0.05 0.05 0) // 2 (0 0.05 0) // 3 (0 0 0.001) // 4 (0.05 0 0.001) // 5 (0.05 0.05 0.001) // 6 (0 0.05 0.001) // 7);
blocks( hex (0 1 2 3 4 5 6 7) (256 256 1) simpleGrading (1 1 1));
edges();
boundary( bottomWall { type wall; faces ( (0 1 5 4) ); // Y=0 面(撞击壁面) }
topPatch { type patch; faces ( (3 7 6 2) ); // Y=0.05 面(顶部开放边界) }
leftWall { type patch; faces ( (0 4 7 3) ); // X=0 面(侧面开放边界) }
rightWall { type patch; faces ( (1 2 6 5) ); // X=0.05 面(侧面开放边界) }
defaultFaces { type empty; faces ( (0 3 2 1) // Z=0 (4 5 6 7) // Z=0.001 ); });12345678910111213141516171819202122232425262728293031FoamFile{ version 2.0; format ascii; class dictionary; object controlDict;}
application interFoam;
startFrom startTime;startTime 0;stopAt endTime;endTime 0.2; // 液滴撞击物理时长 [s](铺展+初始回弹)
deltaT 5e-06; // 初始时间步 [s](撞击过程需小时间步)writeControl adjustableRunTime;writeInterval 0.008; // 每 0.01s 保存一帧 → 50 帧(统一 10ms 间隔)
purgeWrite 0;writeFormat ascii; // ASCII 格式,便于后处理脚本读取writePrecision 8;timeFormat general;timePrecision 6;
adjustTimeStep yes;maxCo 0.5;maxAlphaCo 0.5;maxDeltaT 1e-04; // 最大时间步上限
functions {};123456789101112131415161718FoamFile{ version 2.0; format ascii; class dictionary; object decomposeParDict;}
numberOfSubdomains 16;
method hierarchical;
hierarchicalCoeffs{ n (4 4 1); delta 0.001; order xyz;}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647FoamFile{ version 2.0; format ascii; class dictionary; object fvSchemes;}
ddtSchemes{ default Euler;}
gradSchemes{ default Gauss linear;}
divSchemes{ default none;
div(rhoPhi,U) Gauss linearUpwind grad(U); div(phi,alpha) Gauss vanLeer; div(phirb,alpha) Gauss interfaceCompression vanLeer; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear corrected;}
laplacianSchemes{ default Gauss linear corrected;}
interpolationSchemes{ default linear;}
snGradSchemes{ default uncorrected;}
wallDist{ method meshWave;}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485FoamFile{ version 2.0; format ascii; class dictionary; object fvSolution;}
solvers{ "alpha.water.*" { nAlphaCorr 3; nAlphaSubCycles 3; cAlpha 1;
solver smoothSolver; smoother symGaussSeidel; tolerance 1e-8; relTol 0; }
"pcorr.*" { solver PCG; preconditioner DIC; tolerance 1e-5; relTol 0; }
"pcorrFinal.*" { $pcorr; relTol 0; }
"p_rgh.*" { solver PCG; preconditioner DIC; tolerance 1e-08; relTol 0.01; }
"p_rghFinal.*" { $p_rgh; relTol 0; }
"U.*" { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-06; relTol 0; }}
MULES{ nAlphaCorr 3; nAlphaSubCycles 3; cAlpha 1;}
PIMPLE{ nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 0; MULESCorr yes; nLimiterIter 5; momentumPredictor no; pRefCell 0; pRefValue 0;}
relaxationFactors{ equations { ".*" 1; }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546FoamFile{ version 2.0; format ascii; class volVectorField; object U;}
dimensions [0 1 -1 0 0 0 0];
// 初始值:全零;液滴区域由 gen_init_conditions.py 设置为 (0, -1.5, 0)internalField uniform (0 0 0);
boundaryField{ bottomWall { type noSlip; // 撞击壁面:无滑移 }
topPatch { type pressureInletOutletVelocity; phi phi; value uniform (0 0 0); }
leftWall { type pressureInletOutletVelocity; phi phi; value uniform (0 0 0); }
rightWall { type pressureInletOutletVelocity; phi phi; value uniform (0 0 0); }
defaultFaces { type empty; }}raw/droplet_impact/t30/0/alpha.waterAdded
raw/droplet_impact/t30/0/alpha.water.templateAdded+50
raw/droplet_impact/t30/0/p_rghAdded+46
raw/droplet_impact/t30/AllrunAdded+42
raw/droplet_impact/t30/constant/gAdded+10
raw/droplet_impact/t30/constant/polyMesh/boundaryAdded+54
raw/droplet_impact/t30/constant/polyMesh/facesAdded
raw/droplet_impact/t30/constant/polyMesh/neighbourAdded
raw/droplet_impact/t30/constant/polyMesh/ownerAdded
raw/droplet_impact/t30/constant/polyMesh/pointsAdded
raw/droplet_impact/t30/constant/transportPropertiesAdded+33
raw/droplet_impact/t30/constant/turbulencePropertiesAdded+9
raw/droplet_impact/t30/system/blockMeshDictAdded+73
raw/droplet_impact/t30/system/controlDictAdded+31
raw/droplet_impact/t30/system/decomposeParDictAdded+18
raw/droplet_impact/t30/system/fvSchemesAdded+47
raw/droplet_impact/t30/system/fvSolutionAdded+85
raw/droplet_impact/t31/0/UAdded
raw/droplet_impact/t31/0/U.templateAdded+46
raw/droplet_impact/t31/0/alpha.waterAdded