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

SKIRT:用于蒙特卡罗辐射转移模拟的一套输入模型的设计

SKIRT: the design of a suite of input models for Monte Carlo radiative transfer simulations

Maarten Baes, Peter Camps

摘要:

蒙特卡罗方法是最流行的技术来执行辐射转移模拟在一个一般的三维几何形状。蒙特卡罗辐射转移背后的算法和加速技术在文献中被广泛讨论,并且许多不同的蒙特卡罗代码是公开可用的。相反,在辐射转移代码中设计一套可用于源和汇分布的组件却很少受到关注。这些模型的复杂程度各不相同,但其可用性有许多好处。例如,它们可以作为玩具模型来测试新的物理成分,或者作为逆辐射转移拟合的参数化模型。对于3D蒙特卡罗代码,这需要算法从3D密度分布有效地生成随机位置。我们描述了一套灵活的组件设计的蒙特卡罗辐射转移代码SKIRT。该设计基于基本构建块(可以是分析玩具模型或定义在网格或一组粒子上的数值模型)的组合以及装饰器的广泛使用,这些装饰器将这些构建块组合并更改为更复杂的结构。对于许多装饰器,例如添加螺旋结构或块状的装饰器,我们提供了可用于生成随机位置的算法的详细描述。这种基于装饰器的设计的优点包括代码透明性、避免代码重复和提高代码可维护性。此外,由于装饰器可以毫无问题地链接起来,非常复杂的模型可以很容易地从简单的构建块中构建出来。最后,基于一些测试模拟,我们证明了我们的设计使用定制的随机位置发生器是优于一个简单的设计的基础上,一个通用的黑盒随机位置发生器。

英文摘要:

The Monte Carlo method is the most popular technique to perform radiative transfer simulations in a general 3D geometry. The algorithms behind and acceleration techniques for Monte Carlo radiative transfer are discussed extensively in the literature, and many different Monte Carlo codes are publicly available. On the contrary, the design of a suite of components that can be used for the distribution of sources and sinks in radiative transfer codes has received very little attention. The availability of such models, with different degrees of complexity, has many benefits. For example, they can serve as toy models to test new physical ingredients, or as parameterised models for inverse radiative transfer fitting. For 3D Monte Carlo codes, this requires algorithms to efficiently generate random positions from 3D density distributions. We describe the design of a flexible suite of components for the Monte Carlo radiative transfer code SKIRT. The design is based on a combination of basic building blocks (which can be either analytical toy models or numerical models defined on grids or a set of particles) and the extensive use of decorators that combine and alter these building blocks to more complex structures. For a number of decorators, e.g. those that add spiral structure or clumpiness, we provide a detailed description of the algorithms that can be used to generate random positions. Advantages of this decorator-based design include code transparency, the avoidance of code duplication, and an increase in code maintainability. Moreover, since decorators can be chained without problems, very complex models can easily be constructed out of simple building blocks. Finally, based on a number of test simulations, we demonstrate that our design using customised random position generators is superior to a simpler design based on a generic black-box random position generator.

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

↑