libmpdata++ 1.0: a library of parallel MPDATA solvers for systems of generalised transport equations
Open Access
- 8 April 2015
- journal article
- research article
- Published by Copernicus GmbH in Geoscientific Model Development
- Vol. 8 (4) , 1005-1032
Abstract
This paper accompanies the first release of libmpdata++, a C++ library implementing the multi-dimensional positive-definite advection transport algorithm (MPDATA) on regular structured grid. 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; a shallow-water system compared with analytical solution (originally derived for a 2-D 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 design, based on the principle of separation of concerns, prioritises the user and developer productivity. The libmpdata++ library is implemented in C++, making use of the Blitz++ multi-dimensional array containers, and is released as free/libre and open-source software.Keywords
All Related Versions
Funding Information
- Narodowe Centrum Nauki (2012/06/M/ST10/00434)
This publication has 35 references indexed in Scilit:
- A spreading drop of shallow waterJournal of Computational Physics, 2015
- Modeling the Solar DynamoScience, 2013
- What makes computational open source software libraries successful?Computational Science & Discovery, 2013
- Heterogeneities of flow in stochastically generated porous mediaPhysical Review E, 2012
- Modelling atmospheric flows with adaptive moving meshesJournal of Computational Physics, 2012
- A viscoelastic fluid model for brain injuriesInternational Journal for Numerical Methods in Fluids, 2002
- Antidiffusive Velocities for Multipass Donor Cell AdvectionSIAM Journal on Scientific Computing, 1998
- Dynamics of a two-dimensional ribbon of shallow water on an f-planeTellus, 1993
- Computational Design of the Basic Dynamical Processes of the UCLA General Circulation Model1977
- Pracniques: further remarks on reducing truncation errorsCommunications of the ACM, 1965