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

IF 4.3 3区 材料科学 Q1 ENGINEERING, ELECTRICAL & ELECTRONIC
Paul K. Romano , Patrick A. Myers , Seth R. Johnson , Aljaz̆ Kols̆ek , Patrick C. Shriwise
{"title":"无界基元构造实体几何的点包含算法","authors":"Paul K. Romano ,&nbsp;Patrick A. Myers ,&nbsp;Seth R. Johnson ,&nbsp;Aljaz̆ Kols̆ek ,&nbsp;Patrick C. Shriwise","doi":"10.1016/j.cad.2024.103803","DOIUrl":null,"url":null,"abstract":"<div><p>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 rasterized image of a 2D slice of three CSG models of varying complexity 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<span><math><mo>×</mo></math></span> reduction in execution time relative to postfix for a model of a tokamak fusion device. We then measured the execution time of neutron transport simulations of the same three models using each of the algorithms. The results and performance improvements reveal the same trends as for the rasterization test, with a 5.52<span><math><mo>×</mo></math></span> overall speedup using the infix notation relative to the original postfix notation in OpenMC for the tokamak model.</p></div>","PeriodicalId":3,"journal":{"name":"ACS Applied Electronic Materials","volume":null,"pages":null},"PeriodicalIF":4.3000,"publicationDate":"2024-09-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S0010448524001301/pdfft?md5=8fddc42a59401cae480fb7d7905061a3&pid=1-s2.0-S0010448524001301-main.pdf","citationCount":"0","resultStr":"{\"title\":\"Point containment algorithms for constructive solid geometry with unbounded primitives\",\"authors\":\"Paul K. Romano ,&nbsp;Patrick A. Myers ,&nbsp;Seth R. Johnson ,&nbsp;Aljaz̆ Kols̆ek ,&nbsp;Patrick C. Shriwise\",\"doi\":\"10.1016/j.cad.2024.103803\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>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 rasterized image of a 2D slice of three CSG models of varying complexity 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<span><math><mo>×</mo></math></span> reduction in execution time relative to postfix for a model of a tokamak fusion device. We then measured the execution time of neutron transport simulations of the same three models using each of the algorithms. The results and performance improvements reveal the same trends as for the rasterization test, with a 5.52<span><math><mo>×</mo></math></span> overall speedup using the infix notation relative to the original postfix notation in OpenMC for the tokamak model.</p></div>\",\"PeriodicalId\":3,\"journal\":{\"name\":\"ACS Applied Electronic Materials\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":4.3000,\"publicationDate\":\"2024-09-11\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.sciencedirect.com/science/article/pii/S0010448524001301/pdfft?md5=8fddc42a59401cae480fb7d7905061a3&pid=1-s2.0-S0010448524001301-main.pdf\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACS Applied Electronic Materials\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0010448524001301\",\"RegionNum\":3,\"RegionCategory\":\"材料科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"ENGINEERING, ELECTRICAL & ELECTRONIC\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACS Applied Electronic Materials","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010448524001301","RegionNum":3,"RegionCategory":"材料科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0

摘要

我们提出了几种算法,用于评估具有无界基元的构造实体几何(CSG)树中的点包含情况。我们介绍了基于 CSG 二进制表达式树的后缀、前缀和后缀符号的三种算法。我们表明,前缀和后缀符号可以实现短路逻辑,从而减少在点包含过程中必须检查的基元数量。为了评估这些算法的性能,我们在 OpenMC 蒙特卡洛粒子传输代码中实现了每种算法,该代码依赖 CSG 来表示亚原子粒子穿过的固体。我们进行了两组测试。首先,测量了三个不同复杂度的 CSG 模型生成二维切片光栅化图像的执行时间。与粒子传输代码传统上使用的后缀符号相比,前缀和后缀符号的使用都大大加快了速度,其中后缀符号使托卡马克核聚变装置模型的执行时间比后缀符号缩短了 6 倍。然后,我们使用每种算法测量了同样三个模型的中子输运模拟的执行时间。结果和性能改进显示了与光栅化测试相同的趋势,在托卡马克模型中,使用 infix 符号比 OpenMC 中的原始 postfix 符号总体速度提高了 5.52 倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Point containment algorithms for constructive solid geometry with unbounded primitives

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 rasterized image of a 2D slice of three CSG models of varying complexity 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× reduction in execution time relative to postfix for a model of a tokamak fusion device. We then measured the execution time of neutron transport simulations of the same three models using each of the algorithms. The results and performance improvements reveal the same trends as for the rasterization test, with a 5.52× overall speedup using the infix notation relative to the original postfix notation in OpenMC for the tokamak model.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
CiteScore
7.20
自引率
4.30%
发文量
567
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信