A newly published open-source computational fluid dynamics software package named Yuzen addresses the coupled physics of evaporating thin liquid films and binary solutions using the lubrication approximation. By applying the long-wave lubrication approximation, the governing Navier-Stokes equations are simplified into an evolution equation tracking the local thickness of the film over time, enabling computationally practical simulations on standard workstations where full three-dimensional interface-resolving solvers would prove prohibitively expensive.
Simulating thin coating films presents several severe mathematical and numerical hurdles that general-purpose fluid dynamics tools rarely resolve simultaneously. The governing lubrication equation is of fourth order and degenerates where the liquid layer thins toward dry regions. To account for moving contact lines, models introduce disjoining pressure formulations that create an ultra-thin precursor film ahead of the apparent bulk droplet. Furthermore, as an evaporating binary solution dries, solvent evaporation leaves behind non-volatile solute, driving up local fluid viscosity by multiple orders of magnitude across only a few computational cells. While general-purpose volume-of-fluid codes such as OpenFOAM and Basilisk resolve full multi-dimensional interfaces without long-wave assumptions, capturing micrometer-scale thicknesses across millimeter-scale domains demands vast computing resources. Conversely, existing thin-film solvers typically target isolated mechanisms, such as substrate topography using multigrid schemes or dewetting instabilities on graphics processing units, without integrating complex solute drying, moving contact lines, and external mechanical drivers into a single robust solve.
Yuzen bridges these disparate capabilities by providing two distinct concentration models integrated into an implicit spatial and temporal formulation. In its primary well-mixed formulation, the solute concentration is assumed to remain uniform across the depth of the liquid film, and the code solves the coupled film height equation and depth-integrated solute balance in a single non-split iterative loop. The height evolution incorporates capillary pressure, disjoining pressure, vertical and in-plane gravity, solutal Marangoni stresses generated by surface-tension gradients, Navier slip, external fluid supply from stationary or rotating nozzles, and centrifugal forces corresponding to substrate rotation during spin coating. In the second model, termed CZ, concentration gradients are explicitly resolved through the depth of the film between the substrate and the free interface, capturing the vertical diffusion and accumulation of solute beneath the surface when evaporation occurs faster than vertical mass transport.
The distinction between these two models proves critical when evaluating drying regimes dictated by mass-transfer rates. When diffusion across the film thickness is rapid compared to surface evaporation—characterized by a low Péclet number based on initial thickness and evaporation flux—the well-mixed model accurately captures the evolution of the layer. However, when evaporation outpaces vertical diffusion at higher Péclet numbers, solute accumulates near the gas-liquid interface, forming a dense surface skin. Because surface tension and local evaporation rates depend directly on surface concentration via relations such as Raoult’s law, this interfacial enrichment alters both the evaporative flux and Marangoni-driven flows. Yuzen’s through-thickness CZ formulation tracks this stratified boundary layer on an internal coordinate mapping, resolving the concentration profile and fluid velocity field where well-mixed models break down.
The spatial discretization in Yuzen employs finite-volume formulations on staggered grids in one or two horizontal spatial dimensions, supporting boundary conditions including periodic, symmetric, pinned contact lines, inlets, and outlets. A core theoretical property preserved by the spatial discretization is the thermodynamic consistency of the gradient-flow terms. By adopting a positivity-preserving face mobility formulation shared among capillary pressure, disjoining pressure, and vertical gravity, the semi-discrete system ensures that the discrete free energy cannot increase for these terms alone under uniform concentration and closed or periodic boundaries. The discrete energy strictly dissipates, reflecting the underlying physical stability of the continuous lubrication system, while the solute mass conservation is maintained to machine rounding precision.
Temporal integration is performed using second-order Crank-Nicolson differencing, advancing the coupled nonlinear equations via Newton-Kantorovich iterations equipped with exact analytical Jacobians verified against numerical finite differences. In the well-mixed model, height and solute concentration are advanced within the same step via a block Gauss-Seidel coupling that reaches fully implicit convergence without altering the converged physical state. Step-size selection can run adaptively under the control of local truncation-error estimates, automatically cutting time steps whenever nonlinear convergence stagnates under extreme evaporation rates or steep viscosity gradients. Convection of solute is managed using a selection of bounded high-resolution numerical schemes, including third-order UTOPIA and the Koren flux limiter, preventing unphysical undershoots or overshoots while preserving sharp concentration fronts.
Verification of the solver was conducted through an extensive test suite executed via CMake’s ctest facility, spanning 128 test cases and over 183,000 automated assertions executed across Linux, macOS, and Windows environments. The verification tests include manufactured solutions for both one-dimensional and two-dimensional formulations, confirming expected second-order spatial convergence rates across capillary, gravitational, centrifugal, evaporative, and concentration-dependent transport terms. In dynamic wetting benchmarks, the solver reproduces the classical Cox-Voinov spreading law relating contact line velocity to contact angle variation across orders of capillary number, accurately capturing the predicted logarithmic dependence on precursor film thickness. In addition, long-duration simulations of static and leveling films demonstrated strict non-increase of numerical free energy and confirmed volume conservation errors bounded below 1.1e-14 across 500,000 computational steps.
Illustrative simulations published alongside the software demonstrate the practical divergence between well-mixed and depth-resolved models during the drying of a five-micrometer film over topographical substrate steps. At a Péclet number of 0.1, the well-mixed and through-thickness models agreed closely, exhibiting only a 0.4 percent discrepancy in total evaporated volume. At a Péclet number of 1.0, surface solute enrichment caused a 5.7 percent reduction in evaporation. At a Péclet number of 10, a dense interfacial skin rapidly developed, reaching a solute concentration of 0.98 and depressing the evaporative rate to 29 percent of the well-mixed prediction, leaving a final film thickness up to 0.95 micrometers thicker than simpler models would project.
Performance benchmarks conducted on high-performance multi-core workstations demonstrate the parallel scalability of the implementation, which is authored in C++17 with OpenMP shared-memory threading and supports linear algebra backends including Eigen and AMGCL. On dual-socket Intel Xeon systems, two-dimensional grids ranging from 128-squared to 1024-squared cells achieved speed-ups between 8-fold and 22.5-fold at 56 threads, with individual two-dimensional engineering cases running in under one minute on a single core. With the default Eigen linear solver, the numerical output remains bit-identical regardless of the active OpenMP thread count due to deterministic ordering of block summations, ensuring rigorous computational reproducibility across execution environments.
The author also explicitly documents the physical and numerical boundaries of the software framework. The lubrication equations intrinsically assume small surface slopes, meaning steep menisci or drops with high contact angles lie outside the valid model scope. In the depth-resolved CZ model, combinations of solutal Marangoni stress and Péclet numbers exceeding unity generate fine-scale spatial concentration undulations that fail to converge under grid refinement, likely corresponding to physical convection cells that long-wave approximations cannot resolve. Furthermore, heat and vapor transfer in the surrounding gas phase are not dynamically modeled, requiring prescribed evaporation fluxes. Distributed under the Apache 2.0 open-source license with comprehensive English and Japanese documentation, Yuzen provides an accessible, reproducible baseline for thin-film coating research, parameter optimization, and the generation of training datasets for scientific surrogate models.
Subject of Research: Computational fluid dynamics solver for evaporating thin liquid films
Article Title: Yuzen: A finite-difference solver for thin liquid films of evaporating binary solutions in the lubrication approximation
Article References: Shiratori, S. (2026). Yuzen: A finite-difference solver for thin liquid films of evaporating binary solutions in the lubrication approximation. SoftwareX, 36, Article 103272. https://doi.org/10.1016/j.softx.2026.103272
Image Credits: AI Generated
DOI: 10.1016/j.softx.2026.103272
Keywords: computational fluid dynamics, thin liquid films, lubrication approximation, evaporation, binary solutions, finite difference method, spin coating, Marangoni stress, disjoining pressure, contact line dynamics, numerical simulation, C++17, OpenMP, scientific software, fluid mechanics, coatings science
News Source: Audrey Campbell. (November 27, 2026). Open-Source Thin-Film Solver Simulates Evaporating Liquid Coatings in Lubrication Approximation. Scienmag.



