libmpdata++ 0.1:广义输运方程组的并行MPDATA求解器库
libmpdata++ 0.1: a library of parallel MPDATA solvers for systems of generalised transport equations
摘要:
本文伴随着libmpdata++的第一个版本,一个C++库实现多维正定平流传输算法(MPDATA)。该库为广义输运方程系统提供基本的数值求解器。求解器是向前的,保守的和非线性稳定的。libmpdata++库涵盖了MPDATA的基本二阶精确公式、其三阶变体、变号场的无限规范选项以及保证非振荡解的通量校正输运扩展。该库配备了一个非对称变分椭圆求解器,用于隐式计算压力梯度项。所有求解器都通过使用共享内存并行化的区域分解提供并行化。本文描述了库的编程接口,并作为一个用户指南。支持的选项与MPDATA文献中讨论的基准进行了说明。基准测试描述包括代码片段以及模拟结果的定量表示。应用示例包括:均匀运输在一个,两个和三个维度的笛卡尔和球形域;浅水系统与解析解(最初来自一个2D的情况下)相比;和一个浮力对流问题在不可压缩Boussinesq流体界面不稳定。所有的例子都是在库树之外实现的。不管问题维度、右侧项、边界条件和并行化方法的差异如何,所有示例都使用相同的未修改库,这是libmpdata++设计的关键目标。libmpdata++库是用C++实现的,利用了Blitz++多维数组容器,并作为自由/自由和开源软件发布。
英文摘要:
This paper accompanies first release of libmpdata++, a C++ library implementing the Multidimensional Positive-Definite Advection Transport Algorithm (MPDATA). The library offers basic numerical solvers for systems of generalised transport equations. The solvers are forward-in-time, conservative and non-linearly stable. The libmpdata++ library covers the basic second-order-accurate formulation of MPDATA, its third-order variant, the infinite-gauge option for variable-sign fields and a flux-corrected transport extension to guarantee non-oscillatory solutions. The library is equipped with a non-symmetric variational elliptic solver for implicit evaluation of pressure gradient terms. All solvers offer parallelisation through domain decomposition using shared-memory parallelisation. The paper describes the library programming interface, and serves as a user guide. Supported options are illustrated with benchmarks discussed in the MPDATA literature. Benchmark descriptions include code snippets as well as quantitative representations of simulation results. Examples of applications include: homogeneous transport in one, two and three dimensions in Cartesian and spherical domains; shallow-water system compared with analytical solution (originally derived for a 2D case); and a buoyant convection problem in an incompressible Boussinesq fluid with interfacial instability. All the examples are implemented out of the library tree. Regardless of the differences in the problem dimensionality, right-hand-side terms, boundary conditions and parallelisation approach, all the examples use the same unmodified library, which is a key goal of libmpdata++ design. The libmpdata++ library is implemented in C++, making use of the Blitz++ multi-dimensioanl array containers, and is released as free/libre and open-source software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。