Simulating multiple interacting phenomena at the same time can help us predict their effects more precisely. It is possible to perform a multi-physics simulation by coupling pieces of single-physics simulation software with preCICE, a free library for black-box, partitioned surface coupling. An adapter connects a solver to preCICE, allowing preCICE to access the required data elements and steer the coupled simulation. Individual solvers of the computational fluid dynamics simulation software OpenFOAM have been adapted in the past, but there is still a need for a flexible adapter that would be ready to work with any OpenFOAM solver, in order to eliminate the duplication of development effort and improve the user experience.
This thesis presents a general, solver-agnostic preCICE adapter for OpenFOAM, which requires no changes in the individual solvers. The adapter can be loaded at runtime using the existing controlDict configuration file. A wide variety of standard solvers are supported, while the proposed design makes the adapter compatible with any similar in-house solver. While we focus on conjugate heat transfer, the adapter is extensible to other types of problems, such as mechanical fluid-structure interaction.
The adapter is an OpenFOAM function object: a shared library whose methods are called from predefined points in a solver’s code. The boundary conditions are general and do not bind to specific solvers, but support a wide range of compressible or incompressible flow solvers, as well as basic solvers. The required fields and parameters are drawn from the object registry or provided in a separate adapter configuration file. This thesis continues previous work on solver adaptation to preCICE and the proposed adapter is validated against the (already validated) previous adapters.
«
Simulating multiple interacting phenomena at the same time can help us predict their effects more precisely. It is possible to perform a multi-physics simulation by coupling pieces of single-physics simulation software with preCICE, a free library for black-box, partitioned surface coupling. An adapter connects a solver to preCICE, allowing preCICE to access the required data elements and steer the coupled simulation. Individual solvers of the computational fluid dynamics simulation software Ope...
»