arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1609.07432physics.comp-ph
收藏

计算科学的用户界面:Python中嵌入的OOMMF领域专用语言

User interfaces for computational science: a domain specific language for OOMMF embedded in Python

Marijan Beg, Ryan A. Pepper, Hans Fangohr

摘要:

计算机模拟广泛应用于工程和科学学科,包括使用计算微磁学的磁性设备的研究和开发。在这项工作中,我们确定和审查不同的方法来配置模拟运行:(i)重新编译的源代码,(ii)使用配置文件,(iii)图形用户界面,(iv)嵌入在现有的编程语言来表达的计算问题的模拟规范。我们确定了不同方法的优点和缺点,并讨论了它们对计算研究和结果的有效性和再现性的影响。在此基础上,我们设计并描述了一种嵌入在Python语言中的微磁学领域特定语言,并允许用户以灵活的方式定义他们想要进行的微磁学模拟。我们已经实现了这个微磁模拟描述语言与计算后端,使用面向对象的微磁框架(OOMMF)执行模拟任务。我们通过解决微磁标准问题4来说明OOMMF的Python接口的使用。所有的代码都是公开的,并且是开源的。

英文摘要:

Computer simulations are used widely across the engineering and science disciplines, including in the research and development of magnetic devices using computational micromagnetics. In this work, we identify and review different approaches to configuring simulation runs: (i) the re-compilation of source code, (ii) the use of configuration files, (iii) the graphical user interface, and (iv) embedding the simulation specification in an existing programming language to express the computational problem. We identify the advantages and disadvantages of different approaches and discuss their implications on effectiveness and reproducibility of computational studies and results. Following on from this, we design and describe a domain specific language for micromagnetics that is embedded in the Python language, and allows users to define the micromagnetic simulations they want to carry out in a flexible way. We have implemented this micromagnetic simulation description language together with a computational backend that executes the simulation task using the Object Oriented MicroMagnetic Framework (OOMMF). We illustrate the use of this Python interface for OOMMF by solving the micromagnetic standard problem 4. All the code is publicly available and is open source.

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

↑