arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1411.1293physics.comp-phcs.CEcs.DCphysics.flu-dyn
收藏

多尺度通用接口:一个耦合异构求解器的并发框架

Multiscale Universal Interface: A Concurrent Framework for Coupling Heterogeneous Solvers

Yu-Hang Tang, Shuhei Kudo, Xin Bian, Zhen Li, George E. Karniadakis

摘要:

使用异构求解器的并行耦合数值模拟是建模多尺度现象的有力工具。然而,要进行这种模拟,往往需要对现有准则进行重大修改,这在实践中造成了重大困难。在本文中,我们提出了一个C++库,即多尺度通用接口(MUI),这是能够促进广泛的多尺度模拟的耦合工作。该库采用了只有头的形式,具有最小的外部依赖性,因此可以很容易地放入现有代码中。引入了数据采样器的概念,结合混合动态/静态类型机制,创建一个易于定制的框架,求解器独立的数据解释。该库集成了MPI MPMD支持和异步通信协议,以处理求解器之间的信息交换,而不管求解器自己的MPI意识。模板元编程被大量使用,以同时提高运行时性能和代码灵活性。我们通过解决三个不同的多尺度问题来验证该库,这也证明了该框架在处理异构模型和求解器方面的灵活性。在第一个例子中,库埃特流模拟使用两个同时耦合的光滑粒子流体动力学(SPH)模拟不同的空间分辨率。在第二个例子中,我们耦合确定性SPH方法与随机耗散粒子动力学(DPD)方法来研究表面接枝对表面流体力学性质的影响。在第三个例子中,我们考虑了固体域和流体域之间的共轭传热耦合的基于粒子的能量守恒DPD(eDPD)方法与有限元方法(FEM)。

英文摘要:

Concurrently coupled numerical simulations using heterogeneous solvers are powerful tools for modeling multiscale phenomena. However, major modifications to existing codes are often required to enable such simulations, posing significant difficulties in practice. In this paper we present a C++ library, i.e. the Multiscale Universal Interface (MUI), which is capable of facilitating the coupling effort for a wide range of multiscale simulations. The library adopts a header-only form with minimal external dependency and hence can be easily dropped into existing codes. A data sampler concept is introduced, combined with a hybrid dynamic/static typing mechanism, to create an easily customizable framework for solver-independent data interpretation. The library integrates MPI MPMD support and an asynchronous communication protocol to handle inter-solver information exchange irrespective of the solvers' own MPI awareness. Template metaprogramming is heavily employed to simultaneously improve runtime performance and code flexibility. We validated the library by solving three different multiscale problems, which also serve to demonstrate the flexibility of the framework in handling heterogeneous models and solvers. In the first example, a Couette flow was simulated using two concurrently coupled Smoothed Particle Hydrodynamics (SPH) simulations of different spatial resolutions. In the second example, we coupled the deterministic SPH method with the stochastic Dissipative Particle Dynamics (DPD) method to study the effect of surface grafting on the hydrodynamics properties on the surface. In the third example, we consider conjugate heat transfer between a solid domain and a fluid domain by coupling the particle-based energy-conserving DPD (eDPD) method with the Finite Element Method (FEM).

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

↑