skip to main content
US FlagAn official website of the United States government
dot gov icon
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
https lock icon
Secure .gov websites use HTTPS
A lock ( lock ) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.


Title: Implementation of a ternary lattice Boltzmann model in LAMMPS
The properties of multicomponent fluids are governed by the interplay of phase behavior, fluid dynamics, and interfacial thermodynamics. A mixture formulation that leverages this interplay is an important aspect in many fabrication processes based on emulsion templating. The lattice Boltzmann method (LBM) has become a popular approach for simulating hydrodynamic effects in complex fluids and soft matter. Here we present an implementation of a ternary lattice Boltzmann model that allows to simulate a mixture of three immiscible fluids. We build on the LATBOLTZ extension of the open-source package LAMMPS and implement a ternary free energy model recently introduced by Semprebon et al. [Phys. Rev. E 93, 033305 (2016)]. We validate the static and dynamic properties by simulating liquid lenses, double emulsions, and ternary mixtures. From the simulations, we obtain the complete morphology diagram of the ternary mixture in composition space. We further discuss an application of the method to phase segregation of ternary films. The implementation of the ternary LBM in LAMMPS opens vast opportunities for mesoscale simulations of interfacial phenomena and non-equilibrium transport processes in multicomponent fluid mixtures.  more » « less
Award ID(s):
1944942 2346036 2204011
PAR ID:
10491269
Author(s) / Creator(s):
; ;
Publisher / Repository:
Elsevier
Date Published:
Journal Name:
Computer Physics Communications
Volume:
294
ISSN:
0010-4655
Page Range / eLocation ID:
108898
Subject(s) / Keyword(s):
Lattice Boltzmann ternary fluids LAMMPS multicomponent mixtures liquid lens double emulsion liquid film
Format(s):
Medium: X
Sponsoring Org:
National Science Foundation
More Like this
  1. null (Ed.)
    SUMMARY The lattice Boltzmann method (LBM) is a method to simulate fluid dynamics based on modelling distributions of particles moving and colliding on a lattice. The Python scripting language provides a clean programming paradigm to develop codes based on the LBM, however in order to reach performance comparable to compiled languages, it needs to be carefully implemented, maximizing its vectorized tools, mostly integrated in the NumPy module. We present here the details of a Python implementation of a concise LBM code, with the purpose of offering a pedagogical tool for students and professionals in the geosciences who are approaching this technique for the first time. The first half of the paper focuses on how to vectorize a 2-D LBM code and show how if carefully done, this allows performance close to a compiled code. In the second part of the paper, we use the vectorization described earlier to naturally write a parallel implementation using MPI and test both weak and hard scaling up to 1280 cores. One benchmark, Poiseuille flow and two applications, one on sound wave propagation and another on fluid-flow through a simplified model of a rock matrix are finally shown. 
    more » « less
  2. This study aims to bridge length scales in immiscible multiphase flow simulation by connecting two published governing equations at the pore-scale and continuum-scale through a novel validation framework. We employ Niessner and Hassnaizadeh's [“A model for two-phase flow in porous media including fluid-fluid interfacial area,” Water Resour. Res. 44(8), W08439 (2008)] continuum-scale model for multiphase flow in porous media, combined with the geometric equation of state of McClure et al. [“Modeling geometric state for fluids in porous media: Evolution of the Euler characteristic,” Transp. Porous Med. 133(2), 229–250 (2020)]. Pore-scale fluid configurations simulated with the lattice-Boltzmann method are used to validate the continuum-scale results. We propose a mapping from the continuum-scale to pore-scale utilizing a generalized additive model to predict non-wetting phase Euler characteristics during imbibition, effectively bridging the continuum-to-pore length scale gap. Continuum-scale simulated measures of specific interfacial area, saturation, and capillary pressure are directly compared to up-scaled pore-scale simulation results. This research develops a numerical framework capable of capturing multiscale flow equations establishing a connection between pore-scale and continuum-scale simulations. 
    more » « less
  3. null (Ed.)
    Magnetic actuation has emerged as a powerful and versatile mechanism for diverse applications, ranging from soft robotics, biomedical devices to functional metamaterials. This highly interdisciplinary research calls for an easy to use and efficient modeling/simulation platform that can be leveraged by researchers with different backgrounds. Here we present a lattice model for hard-magnetic soft materials by partitioning the elastic deformation energy into lattice stretching and volumetric change, so-called ‘magttice’. Magnetic actuation is realized through prescribed nodal forces in magttice. We further implement the model into the framework of a large-scale atomic/molecular massively parallel simulator (LAMMPS) for highly efficient parallel simulations. The magttice is first validated by examining the deformation of ferromagnetic beam structures, and then applied to various smart structures, such as origami plates and magnetic robots. After investigating the static deformation and dynamic motion of a soft robot, the swimming of the magnetic robot in water, like jellyfish's locomotion, is further studied by coupling the magttice and lattice Boltzmann method (LBM). These examples indicate that the proposed magttice model can enable more efficient mechanical modeling and simulation for the rational design of magnetically driven smart structures. 
    more » « less
  4. Scour of rock in unlined rock spillway channels is a critical issue facing many of the world’s dams. From a modeling point of view this poses a challenging and interesting problem that combines rock mechanics and hydraulics of turbulent flow. We analyze this interaction between the blocky rock mass and water by directly modeling the solid and fluid phases—the individual polyhedral blocks are modeled using the Discrete Element Method (DEM) while the water is modeled using the Lattice Boltzmann Method (LBM). The LBM mesh is entirely independent of the DEM discretization, making it possible to refine the LBM mesh such that transient and varied fluid pressures acting of the rock surface are directly modeled. This provides the capability to investigate the effect of water pressure inside the fractured rock mass, along potential sliding planes, and can be extended to rock falls and slides into standing bodies of water such as lakes and reservoirs. Herein we present preliminary results to demonstrate the capabilities of the methodology. 
    more » « less
  5. We introduce a method for solving the “inverse” phase equilibria problem: How should the interactions among a collection of molecular species be designed in order to achieve a target phase diagram? Using techniques from convex optimization theory, we show how to solve this problem for phase diagrams containing a large number of components and many coexisting phases with prescribed compositions. We apply our approach to commonly used mean-field models of multicomponent fluids and then use molecular simulations to verify that the designed interactions result in the target phase diagrams. Our approach enables the rational design of “programmable” fluids, such as biopolymer and colloidal mixtures, with complex phase behavior. 
    more » « less