arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0907.1587physics.comp-phcond-mat.mes-hallcs.DC
收藏

用脚本语言进行连续介质多物理场模拟:经典场论的Nsim模拟编译器原型

Continuum multi-physics modeling with scripting languages: the Nsim simulation compiler prototype for classical field theory

Thomas Fischbacher, Hans Fangohr

摘要:

我们证明,对于广泛的一类物理系统,可以使用经典的场论,自动运行时翻译的物理方程的并行有限元数值模拟代码是可行的。这允许将多物理场扩展模块实现为流行的脚本语言(如Python),这些脚本语言在脚本级别处理物理系统的完整规范。我们讨论了两个例子应用程序,利用这个框架:微磁模拟包“NMAG”以及一个简短的Python脚本来研究反应扩散模型中的形态发生。

英文摘要:

We demonstrate that for a broad class of physical systems that can be described using classical field theory, automated runtime translation of the physical equations to parallelized finite-element numerical simulation code is feasible. This allows the implementation of multiphysics extension modules to popular scripting languages (such as Python) that handle the complete specification of the physical system at script level. We discuss two example applications that utilize this framework: the micromagnetic simulation package "Nmag" as well as a short Python script to study morphogenesis in a reaction-diffusion model.

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

↑