arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.13030physics.comp-phcs.CG
收藏

含无界基元的构造实体几何点包含算法

Point containment algorithms for constructive solid geometry with unbounded primitives

Paul K. Romano, Patrick A. Myers, Seth R. Johnson, Aljaž Kolšek, Patrick C. Shriwise

AI总结:

针对含无界基元的CSG树点包含问题,提出基于后缀、前缀、中缀表示的三种算法,前缀与中缀可通过短路逻辑减少基元检查量,在OpenMC中经ITER模型光栅化与中子输运测试验证,中缀法较原后缀法分别实现6倍和4.59倍加速。

摘要:

我们提出了若干用于评估含无界基元的构造实体几何(CSG)树中点包含性的算法。基于CSG二叉表达式树的后缀、前缀和中缀表示法,共提出三种算法。研究表明,前缀和中缀表示法可支持短路逻辑,能减少点包含判定过程中必须检查的基元数量。\n为评估算法性能,所有算法均在OpenMC蒙特卡洛粒子输运代码中实现——该代码依靠CSG表示亚原子粒子穿行的固体实体。实验开展了两组测试:第一组测试测量了生成ITER托卡马克精细CSG模型二维切片的高分辨率光栅化图像的执行时间,结果显示前缀和中缀表示法相较粒子输运代码传统使用的后缀表示法均实现了显著加速,其中中缀表示法的执行时间较后缀法降低了6倍。第二组测试测量了采用各算法对同一ITER模型进行中子输运模拟的执行时间,结果与性能提升趋势和光栅化测试一致,使用中缀表示法相较OpenMC原有的后缀表示法整体加速比达4.59倍。

英文摘要:

We present several algorithms for evaluating point containment in constructive solid geometry (CSG) trees with unbounded primitives. Three algorithms are presented based on postfix, prefix, and infix notations of the CSG binary expression tree. We show that prefix and infix notations enable short-circuiting logic, which reduces the number of primitives that must be checked during point containment. To evaluate the performance of the algorithms, each algorithm was implemented in the OpenMC Monte Carlo particle transport code, which relies on CSG to represent solid bodies through which subatomic particles travel. Two sets of tests were carried out. First, the execution time to generate a high-resolution rasterized image of a 2D slice of a detailed CSG model of the ITER tokamak was measured. Use of both prefix and infix notations offered significant speedup over the postfix notation that has traditionally been used in particle transport codes, with infix resulting in a 6$\times$ reduction in execution time relative to postfix. We then measured the execution time of neutron transport simulations of the same ITER model using each of the algorithms. The results and performance improvements reveal the same trends as for the rasterization test, with a 4.59$\times$ overall speedup using the infix notation relative to the original postfix notation in OpenMC.

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

↑