84 lines
2.8 KiB
Plaintext
84 lines
2.8 KiB
Plaintext
# 物理模拟参数配置
|
|
# case12 — 二维网格两点干涉(双点源 z 方向驱动)
|
|
# 驱动点: (0,-10) 和 (0,10),波从两点向外传播,在中心区域干涉
|
|
|
|
# ── 流程控制 ──────────────────────────────────
|
|
step_simulate: 1 # 运行物理模拟
|
|
step_sample: 0 # 重新抽帧,默认0=不执行
|
|
step_plot: 0 # 绘制轨迹/能量图
|
|
step_animation: 1 # 自动播放 VisPy 3D 动画窗口
|
|
step_plot_wave: 0 # 绘制波形能量动画
|
|
force_calc: 1 # 强制重新计算
|
|
|
|
# ── 文件保存 ──────────────────────────────────
|
|
save_trajectory: 0
|
|
|
|
# ── 计算引擎 ──────────────────────────────────
|
|
engine: c
|
|
|
|
# ── 盒子 ──────────────────────────────────────
|
|
box_a: 120.0
|
|
|
|
# ── 初始构型 ──────────────────────────────────
|
|
coord_file: input/coord.txt
|
|
connection_file: input/connection.txt
|
|
bond_file: input/bond.txt
|
|
driver_file: input/driver.txt
|
|
plot_atom: 5101 # 中心区域用于信息显示
|
|
|
|
# ── 物理参数 ──────────────────────────────────
|
|
G: [0.000, 0.000, 0.000]
|
|
B: [0.000, 0.000, 0.000]
|
|
|
|
gravity_field: 0
|
|
gravity_interaction: 0
|
|
elastic_force: 1
|
|
damping_force: 0
|
|
driving_force: 1
|
|
gravity_strength: 1.0
|
|
|
|
method: leapfrog
|
|
|
|
# ── 步骤控制 ──────────────────────────────────
|
|
warmup_steps: 0
|
|
T_total: 100.0
|
|
NSTEP: 500
|
|
DT: 0.001
|
|
|
|
sample_start: null
|
|
sample_end: null
|
|
|
|
# ── 渲染/着色 ─────────────────────────────────
|
|
use_marker: 1
|
|
display_color: {
|
|
x : [0, [255, 0, 0]],
|
|
y : [0, [ 0, 255, 0]],
|
|
z : [1, [ 0, 0, 255]],
|
|
xy : [1, [255, 0, 0]],
|
|
yz : [0, [ 0, 255, 0]],
|
|
zx : [0, [ 0, 0, 255]],
|
|
xyz : [0, [255, 255, 255]],
|
|
}
|
|
|
|
# ── 显示参数 ──────────────────────────────────
|
|
alpha: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
|
|
|
|
ball_color_r: 0.20
|
|
ball_color_g: 0.60
|
|
ball_color_b: 0.90
|
|
|
|
box_color_r: 0.80
|
|
box_color_g: 0.80
|
|
box_color_b: 0.85
|
|
|
|
# ── 摄像机 ────────────────────────────────────
|
|
camera_distance: 120.0
|
|
camera_elevation: 60.0
|
|
camera_azimuth: -45.0
|
|
camera_center_x: 0.0
|
|
camera_center_y: 0.0
|
|
camera_center_z: 0.0
|
|
move_camera: 0
|
|
|
|
display_amp: [1.0, 1.0, 1.0]
|