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).
Neural operator accelerated atomistic to continuum concurrent multiscale simulations of viscoelasticity
National Center for Computational Sciences, Oak Ridge National Laboratory(橡树岭国家实验室计算科学国家中心);Department of Engineering, University of Cambridge(剑桥大学工程系)
An implicit multiscale solver for steady kinetic equations based on wave-particle decomposition
Hong Kong University of Science and Technology(香港科技大学);Shenzhen Research Institute, Hong Kong University of Science and Technology(香港科技大学深圳研究院);Institute of Applied Physics and Computational Mathematics(应用物理与计算力学研究所)
A Multiscale Kinetic-Fluid Solver with Dynamic Localization of Kinetic Effects
Université de Toulouse(图卢兹大学);CNRS(法国国家科学研究中心图卢兹数学研究所);Institut de Mathématiques de Toulouse UMR 5219(法国原子能和替代能源委员会萨克雷中心);Commissariat à l’Energie Atomique CEA-Saclay DM2S-SFME(波尔多大学数学研究所);Université de Bordeaux;Institut de Mathématiques
Modular multiscale approach to modelling high-harmonic generation in gases
ELI Beamlines Facility, The Extreme Light Infrastructure ERIC(极亮基础设施欧洲研究联盟 ELI 光束线设施);Czech Technical University in Prague(布拉格捷克理工大学);Université Claude Bernard Lyon 1(里昂第一大学克洛德·贝尔纳大学);CNRS(法国国家科学研究中心);Institut Lumière Matière(光物质研究所);Centre Lasers Intenses et Applications(高强度激光及应用中心);Université de Bordeaux-CNRS-CEA(波尔多大学-CNRS-CEA)
A Neural Operator based Hybrid Microscale Model for Multiscale Simulation of Rate-Dependent Materials
Institute for Software and Systems Engineering, Clausthal University of Technology, Germany(1 软件与系统工程学院, Clausthal 技术大学);Institute of Applied Mechanics, Clausthal University of Technology, Germany(2 应用力学学院, Clausthal 技术大学)