fix: 外部引擎路径 display.txt 未随 T_total 变更刷新
当 T_total 从 20→100 时,外部引擎写入的 trajectory.txt 是新的, 但 display.txt 缓存未刷新(检查是否存在而非检查是否过期), 导致总帧数仍为 200(NT=20000 时的数据)。 修复:外部引擎路径总是从 trajectory.txt 重新抽帧生成 display.txt。
This commit is contained in:
@@ -10,7 +10,7 @@ step_sample: 0 # (旧版)从 trajectory.txt 重新抽帧,默认0=不
|
||||
step_plot: 0 # 绘制轨迹/能量图 → output/trajectory_plots.png
|
||||
step_animation: 1 # 自动播放 VisPy 3D 动画窗口(需安装 vispy)
|
||||
step_plot_wave: 0 # 绘制波形能量动画
|
||||
force_calc: 0 # 强制重新计算:1=跳过缓存强算,0=自动使用已有输出
|
||||
force_calc: 1 # 强制重新计算:1=跳过缓存强算,0=自动使用已有输出
|
||||
plot_wave_save_gif: 1 # 输出波形 GIF(需 step_plot_wave=1)
|
||||
plot_wave_save_mp4: 1 # 输出波形 MP4(需 step_plot_wave=1)
|
||||
|
||||
@@ -66,10 +66,10 @@ warmup_steps: 0 # 默认 0(立即开始记录)
|
||||
|
||||
# 总模拟时间(秒),程序自动计算 NT = T_total / DT
|
||||
# 如果同时指定了 NT,以 NT 为准
|
||||
T_total: 20.0
|
||||
T_total: 100.0
|
||||
|
||||
# 抽帧间隔(每 NSTEP 步取一帧用于动画)
|
||||
NSTEP: 10
|
||||
NSTEP: 100
|
||||
|
||||
# ── 时间步长 ──────────────────────────────────
|
||||
DT: 0.01 # 时间步长 (s)
|
||||
|
||||
Reference in New Issue
Block a user