arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.13792astro-ph.IMastro-ph.GA
收藏

利用自适应力更新加速自引力流体动力学模拟

Accelerating self-gravitating hydrodynamics simulations with adaptive force updates

Michael Y. Grudić

摘要:

许多天体物理流体动力学模拟必须考虑重力,并且在所有分辨率元素的位置处评估引力场会产生显著的成本。典型的算法在每次元素被流体动力学地更新时更新每个分辨率元素的位置处的引力场,但是流体动力学和重力的实际所需的更新频率通常可以不同。我们表明,在流体力学模拟中的重力计算可以优化,只更新重力的时间尺度上已经确定的最大时间步长精确的重力积分$Δt_{\rm grav}$,同时保持在典型的错误预算的水力方案和重力求解器。我们在GIZMO代码中的实现使用Grudić & Hopkins 2020中引入的潮汐时间尺度来依次确定$Δt_{\rm grav}$和力更新频率,并使用重力求解器评估的加加速度来构建更新之间使用的加速度预测器。我们在标准的自引力流体力学测试问题上测试了该方案,找到了非常接近原始方案的解决方案,同时评估了更少的重力,优化了模拟。我们还展示了一个$\sim 70\%$加速在STARFORGE MHD GMC模拟,更大的收益可能在更高的分辨率运行。在一般情况下,该方案引入了一个新的可调参数,用于获得精度和计算成本之间的最佳折衷,结合例如时间步长公差,数值分辨率和重力求解器公差。

英文摘要:

Many astrophysical hydrodynamics simulations must account for gravity, and evaluating the gravitational field at the positions of all resolution elements can incur significant cost. Typical algorithms update the gravitational field at the position of each resolution element every time the element is updated hydrodynamically, but the actual required update frequencies for hydrodynamics and gravity can be different in general. We show that the gravity calculation in hydrodynamics simulations can be optimised by only updating gravity on a timescale dictated by the already-determined maximum timestep for accurate gravity integration $Δt_{\rm grav}$, while staying well within the typical error budget of hydro schemes and gravity solvers. Our implementation in the GIZMO code uses the tidal timescale introduced in Grudić & Hopkins 2020 to determine $Δt_{\rm grav}$ and the force update frequency in turn, and uses the jerk evaluated by the gravity solver to construct a predictor of the acceleration for use between updates. We test the scheme on standard self-gravitating hydrodynamics test problems, finding solutions very close to the naïve scheme while evaluating far fewer gravity forces, optimising the simulations. We also demonstrate a $\sim 70\%$ speedup in a STARFORGE MHD GMC simulation, with larger gains likely in higher-resolution runs. In general, this scheme introduces a new tunable parameter for obtaining an optimal compromise between accuracy and computational cost, in conjunction with e.g. time-step tolerance, numerical resolution, and gravity solver tolerance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑