File size: 1,014 Bytes
308ff83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}

application     interFoam;

startFrom       startTime;
startTime       0;
stopAt          endTime;
endTime         2.0;            // 溃坝物理时长 [s]

deltaT          0.002;          // 初始时间步 [s](自适应调整)
writeControl    adjustableRunTime;
writeInterval   0.08;           // 每 0.01s 保存一帧 → 200 帧(统一 10ms 间隔)

purgeWrite      0;
writeFormat     ascii;          // ASCII 格式,便于后处理脚本读取
writePrecision  8;
timeFormat      general;
timePrecision   6;

adjustTimeStep  yes;            // 自适应时间步
maxCo           0.5;            // Courant 数限制
maxAlphaCo      0.5;            // alpha Courant 数限制
maxDeltaT       0.005;          // 最大时间步上限 [s]

functions       {};

OptimisationSwitches
{
    trapFpe         no;             // 禁用浮点异常捕获(避免数值噪声导致崩溃)
}