Deriving thin-film averaged equations using computer algebra
Swarnaditya Hazra, Jason R. Picardo
TL;DR
This work addresses deriving thin-film reduced-order models for two-phase core-annular flows using the weighted residual integral boundary layer (WRIBL) method. It leverages open-source computer algebra (SymPy) to perform the intricate $O(\epsilon^{2})$-level derivation, including second-order terms, interfacial conditions, and cylindrical geometry, yielding explicit expressions for the leading velocity fields, weight functions, and WRIBL coefficients. The authors provide a transparent, step-by-step computational workflow, validate the derived model against known results, and illustrate its utility through Rayleigh-Plateau-Driven dynamics in two core-annular configurations, backed by open-source code and a Jupyter notebook. This approach lowers barriers to constructing and validating reduced-order models for multiscale thin-film flows and enables classroom-friendly, reproducible, and easily extensible analyses with substantial computational savings relative to full DNS.
Abstract
We demonstrate the use of computer algebra for facilitating the derivation of thin film reduced-order models. We focus on the weighted residual integral boundary layer (WRIBL) method, which has proven to be a very effective technique for developing reduced-order models by averaging the Navier-Stokes equations over the thin-gap direction. In particular, we use SymPy (the symbolic computing library in Python) to derive the core-annular WRIBL model of Dietze and Ruyer-Quil (J. Fluid Mech. 762, 60, 2015); the derivation is especially involved due to the inclusion of second-order terms, the presence of two hydrodynamically active phases, the enforcement of interfacial boundary conditions, and the cylindrical geometry. We show, using excerpts of code, how each step of the derivation can be broken down into substeps that are amenable to symbolic computation. To illustrate the application of the derived model, we solve it numerically using scientific computing libraries in Python, and briefly explore the dynamics of the Rayleigh-Plateau instability. The use of open-source computer algebra, in the manner described here, greatly eases the derivation of averaged models, thereby facilitating their use for the study of multiscale flows, as well as for computationally-efficient prediction and optimization.
