29 April 2022 in Open Research Europe
PreCICE is a free/open-source coupling library. It enables creating partitioned multi-physics simulations by gluing together separate software packages. This paper summarizes the development efforts in preCICE of the past five years. During this time span, we have turned the software from a working prototype -- sophisticated numerical coupling methods and scalability on ten thousands of compute cores -- to a sustainable and user-friendly software project with a steadily-growing community. Today, we know through forum discussions, conferences, workshops, and publications of more than 100 research groups using preCICE. We cover the fundamentals of the software alongside a performance and accuracy analysis of different data mapping methods. Afterwards, we describe ready-to-use integration with widely-used external simulation software packages, tests, and continuous integration from unit to system level, and community building measures, drawing an overview of the current preCICE ecosystem.
27 February 2023 in OpenFOAM® Journal
Multi-physics simulations, such as conjugate heat transfer or fluid-structure interaction, are often constructed completely in OpenFOAM. However, they can also be formed by coupling OpenFOAM to third-party simulation software via a coupling tool. This approach indirectly adds to the capabilities of OpenFOAM those of other simulation tools (such as physical models or discretization methods more fitting for specific applications), and allows building complex multi-physics simulations by connecting specialized single-physics codes. We present the OpenFOAM-preCICE adapter, a function object that enables standard OpenFOAM solvers to use the open-source, massively parallel coupling library preCICE, without requiring any code modifications. We review alternative coupling approaches, analyze our design decisions, peek into key implementation details, validate the adapter, study the effect on runtime, and give an overview of the growing community of users and contributors.
30 September 2022 in Open Research Europe
PreCICE is a free/open-source coupling library. It enables creating partitioned multi-physics simulations by gluing together separate software packages. This paper summarizes the development efforts in preCICE of the past five years. During this time span, we have turned the software from a working prototype - sophisticated numerical coupling methods and scalability on ten thousands of compute cores - to a sustainable and user-friendly software project with a steadily-growing community. Today, we know through forum discussions, conferences, workshops, and publications of more than 100 research groups using preCICE. We cover the fundamentals of the software alongside a performance and accuracy analysis of different data mapping methods. Afterwards, we describe ready-to-use integration with widely-used external simulation software packages, tests, and continuous integration from unit to system level, and community building measures, drawing an overview of the current preCICE ecosystem.
10 April 2025 in SIAM Journal on Scientific Computing
Mapping of data between nonmatching meshes is a key ingredient of multiphysics simulations. Black-box data mapping, which only operates on clouds of mesh vertices without connectivity, enables modular software environments. In this paper, we develop such a black-box approach that is capable of handling very large data sets on parallel systems. More precisely, we implement partition-of-unity radial-basis-function interpolation into the coupling library preCICE. The method tackles the data mapping problem by decomposing it into smaller, independent subproblems, which makes it well-suited for parallel computing. To this end, we develop a tailor-made clustering algorithm and study numerical details to ensure robustness and accuracy. We, moreover, deduce user-friendly mapping parameters for which we determine robust default values. Tests on real-world geometries show that the method is scalable and orders of magnitude more efficient than previous data mapping in preCICE. Consequently, the implementation greatly extends the applicability of preCICE, benefiting the library’s large user community. Reproducibility of computational results. This paper has been awarded the “SIAM Reproducibility Badge: Code and data available” as a recognition that the authors have followed reproducibility principles valued by SISC and the scientific computing community. Code and data that allow readers to reproduce the results in this paper are available at https://doi.org/10.18419/darus-4168 and in the supplementary materials ( preCICE-v3.1.1.zip [2.32MB]). [Formula: see text]
14 November 2024 in Journal of Open Source Software
Simulating multi-physics phenomena for real-world applications states various challenges in scientific computing. Each individual physical domain has behavior that is often described through a distinct set of partial-differential equations that needs to be solved in that domain. Their interaction is then achieved through bidirectional exchange of suitable coupling data between all involved domains. Partitioned coupling tackles multi-physics simulations by glueing together separate models, typically implemented in separate software environments. To facilitate such partitioned multi-physics simulations effectively, so-called coupling libraries offer commonly required functionality. We focus in particular on coupling through the open-source library preCICE (Chourdakis et al., 2022), which offers functionality for data communication, data mapping, coupling schemes, and more. In the most basic setup, at least two executables call preCICE to perform a coupled simulation. As additional software components, so-called adapters bridge the gap between the preCICE API and the software environments used by the coupled models. Creating and using this overall setup for early development purposes is not only cumbersome, but also very inefficient. The artificial solver testing environment (ASTE) allows for replacing models coupled via preCICE with artificial ones, potentially in parallel distributed across multiple ranks on distributed memory. This helps in the development of preCICE, adapters, or simulation setups by reducing the necessary software components, simplifying execution workflows, and reducing runtime of the case. In addition, ASTE provides performance and accuracy metrics of the configured simulation setup.