Free energy concept Free energy approach LBM implementation Parameters

Similar documents
Simulation of T-junction using LBM and VOF ENERGY 224 Final Project Yifan Wang,

The lattice Boltzmann method for contact line dynamics

Lattice Boltzmann Method

Lattice Boltzmann Method for Fluid Simulations

Conservation Laws of Surfactant Transport Equations

Dynamics of the Self-Propelled Motion of a Polymer Solvent Droplet

Lattice Boltzmann Method for Moving Boundaries

Chapter 5. The Differential Forms of the Fundamental Laws

LATTICE BOLTZMANN MODELLING OF PULSATILE FLOW USING MOMENT BOUNDARY CONDITIONS

Lattice Boltzmann Method for Fluid Simulations

V (r,t) = i ˆ u( x, y,z,t) + ˆ j v( x, y,z,t) + k ˆ w( x, y, z,t)

On the lattice Boltzmann method for multiphase flows

Level Set Tumor Growth Model

Differential relations for fluid flow

Multi species Lattice Boltzmann Models and Applications to Sustainable Energy Systems

Generalized Local Equilibrium in the Cascaded Lattice Boltzmann Method. Abstract

Lattice Boltzmann approach to liquid - vapour separation

An electrokinetic LB based model for ion transport and macromolecular electrophoresis

The Lattice Boltzmann method for hyperbolic systems. Benjamin Graille. October 19, 2016

Chapter 2: Fluid Dynamics Review

Grad s approximation for missing data in lattice Boltzmann simulations

Level Set-based Topology Optimization Method for Viscous Flow Using Lattice Boltzmann Method

- Marine Hydrodynamics. Lecture 4. Knowns Equations # Unknowns # (conservation of mass) (conservation of momentum)

On the relation between lattice variables and physical quantities in lattice Boltzmann simulations

Lecture 5: Kinetic theory of fluids

Physical Modeling of Multiphase flow. Boltzmann method

Getting started: CFD notation

Mathematical Theory of Non-Newtonian Fluid

Absorption of gas by a falling liquid film

STEADY VISCOUS FLOW THROUGH A VENTURI TUBE

A Momentum Exchange-based Immersed Boundary-Lattice. Boltzmann Method for Fluid Structure Interaction

2 Equations of Motion

Chapter 9: Differential Analysis of Fluid Flow

Conservation Laws: Systematic Construction, Noether s Theorem, Applications, and Symbolic Computations.

Simulation of floating bodies with lattice Boltzmann

Anisotropic fluid dynamics. Thomas Schaefer, North Carolina State University

Lecture 8: Tissue Mechanics

Physically Based Simulations (on the GPU)

Fluid Equations for Rarefied Gases

Fundamentals of Fluid Dynamics: Elementary Viscous Flow


Chapter 9: Differential Analysis

Hydrodynamics. Stefan Flörchinger (Heidelberg) Heidelberg, 3 May 2010

Numerical Heat and Mass Transfer

Fluid Dynamics Exercises and questions for the course

Fluid-Particles Interaction Models Asymptotics, Theory and Numerics I

Equivalence between kinetic method for fluid-dynamic equation and macroscopic finite-difference scheme

Advantages of a Finite Extensible Nonlinear Elastic Potential in Lattice Boltzmann Simulations

Fluid Equations for Rarefied Gases

Research of Micro-Rectangular-Channel Flow Based on Lattice Boltzmann Method

Lattice Boltzmann Method

2. Conservation Equations for Turbulent Flows

(Super) Fluid Dynamics. Thomas Schaefer, North Carolina State University

Computational Fluid Dynamics 2

Numerical Investigation of Fluid and Thermal Flow in a Differentially Heated Side Enclosure walls at Various Inclination Angles

Macroscopic plasma description

Multivariable calculus: What is it good for?

A simple model for block-copolymer layer morphology formation

Hydrodynamic Limits for the Boltzmann Equation

EXTENDED FREE SURFACE FLOW MODEL BASED ON THE LATTICE BOLTZMANN APPROACH

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

BSL Transport Phenomena 2e Revised: Chapter 2 - Problem 2B.11 Page 1 of 5

UNIVERSITY OF EAST ANGLIA

6.2 Governing Equations for Natural Convection

AE/ME 339. K. M. Isaac Professor of Aerospace Engineering. 12/21/01 topic7_ns_equations 1

Phase Transitions. µ a (P c (T ), T ) µ b (P c (T ), T ), (3) µ a (P, T c (P )) µ b (P, T c (P )). (4)

A phase field model for the coupling between Navier-Stokes and e

arxiv: v1 [nucl-th] 9 Jun 2008

Strategy in modelling irregular shaped particle behaviour in confined turbulent flows

Appendix A Vectors, Tensors, and Their Notations

PREDICTION OF INTRINSIC PERMEABILITIES WITH LATTICE BOLTZMANN METHOD

Candidates must show on each answer book the type of calculator used. Log Tables, Statistical Tables and Graph Paper are available on request.

Waves in plasma. Denis Gialis

Simulating Interfacial Tension of a Falling. Drop in a Moving Mesh Framework

Fluid Dynamics from Kinetic Equations

Introduction to Fluid Mechanics

Quick Recapitulation of Fluid Mechanics

1 Introduction to Governing Equations 2 1a Methodology... 2

Entropy generation and transport

Needs work : define boundary conditions and fluxes before, change slides Useful definitions and conservation equations

Lecture 3: 1. Lecture 3.

Review of fluid dynamics


arxiv:comp-gas/ v1 28 Apr 1993

Topics in Relativistic Astrophysics

Alexei F. Cheviakov. University of Saskatchewan, Saskatoon, Canada. INPL seminar June 09, 2011

Analysis of the Lattice Boltzmann Method by the Truncated Moment System

Multiscale simulations of sliding droplets

Similarities and differences:

1.3 Molecular Level Presentation

Lattice-Boltzmann vs. Navier-Stokes simulation of particulate flows

4 Shear flow instabilities

Supporting Information: On Localized Vapor Pressure Gradients Governing Condensation and Frost Phenomena

Exercise 5: Exact Solutions to the Navier-Stokes Equations I

12. MHD Approximation.

Part IV: Numerical schemes for the phase-filed model

Fluid equations, magnetohydrodynamics

Computer Fluid Dynamics E181107

Fluid Mechanics Theory I

Numerical simulation of polyurethane foaming processes on bubble scale

Transcription:

BINARY LIQUID MODEL A. Kuzmin J. Derksen Department of Chemical and Materials Engineering University of Alberta Canada August 22,2011 / LBM Workshop

OUTLINE 1 FREE ENERGY CONCEPT 2 FREE ENERGY APPROACH 2 LBM IMPLEMENTATION 3 PARAMETERS

BINARY LIQUID MODELS As we discussed before one wants to introduce the model which avoids the condensation and evaporation of species, basically it s many component one phase models, so-called binary-liquid model. The main model is density-matched binary liquid model.

EQUATIONS DERIVATION: Suppose two fluids (A and B components) having densities ρ A and ρ B. We introduce the volume fraction C (0 < C < 1) of component A. Then the densities can be calculated as: ρ A = Cρ A; ρ B = (1 C)ρ B ρ = Cρ A + (1 C)ρ B We start with the conservation of mass of the species A: t ρ A + n A = 0, where the flux n A = ρ Au ρ Aj A, where u is the overall fluid velocity to be defined later and j A is the volume diffusion flux between two fluids. Therefore the conservation equation becomes: t ρ A + ( ρ Au) (ρ Aj A) = 0 If we write in terms of volume fraction one can obtain the following equations for species A and B: tc + (uc) j A = 0 t(1 C) + [(1 C)u] j B = 0

MACROSCOPIC EQUATIONS From these two equations by summing up and minusing it one can obtain the following two fundamental equations: tρ + ρ u = (ρ Aj A + ρ Bj B) u = (j A + j B) When we assume that the liquid is incompressible - does it mean that mass fluxes or volumetric fluxes are of different signs? Incompressibility requires the conservation of the volumetric fluxes. In terms of equations it can be rewritten as follows: j A = j B = j u = 0 tρ + (ρu) (ρ A ρ B) j = 0 To avoid any misunderstanding we further concentrate on the case of the binary liquids, i.e. ρ A = ρ B. In this case mass and volumetric fluxes coincide with each other, i.e. ρ Aj A = ρ Bj B and j A = j B.

MACROSCOPIC EQUATIONS Adding another equation to the system (Navier-Stokes equation) one can obtain the following system of equations describing the incompressible binary-liquid model: u = 0 tc + u C j = 0 ρ( tu + u u) = p + [η( u + u T )] + F Still we don t know the form of the volumetric flux j and the form of the force F. The continuous interface theory by van der Wals can help us to see the form of necessary terms. VAN DER WAALS We can invert the principle of equilibrium as follows: A given amount of matter distributes itself in a given space in such a way that, for a given value of the total entropy, the total energy has a minimum, or δ ρɛdv = 0 with the subject of the following conditions: mass ρdv = const and entropy ρsdv = const.

FREE ENERGY Following the calculus variation one can put the condition of constant entropy inside the minimizing functional: δ ρ(ɛ λs)dv = 0, δ ρψdv = 0 where coefficient λ can be shown to be temperature T. Thererore, the minimization is done for the Helmholtz free energy functional, H = U T S. From the calculus of the variation one can put the condition of the conserved mass in the system ( ρdv = const) to the integral expression, introducing a Lagrange multiplier µ: δ ρ(ψ µ)dv = 0 At this particular moment, as far as we are introducing the binary-liquid model one needs to make an assumption of the free energy functional to be a function of phase parameter φ (which is the same as C except it spans not from 0 to 1, but from 1 to 1 for symmetry reasons) and density ρ, i.e. ψ = ψ(ρ, φ, φ ). However,the variation occurs by the function φ as far as we are interested mainly in the phase order parameter. Saying that the coefficient µ (chemical potential) can be expressed as follows: µ = δρψ δφ = φρψ φ ρψ

DOUBLE WELL POTENTIAL The chemical potential needs to be a constant across the interface. But still we don t know the form of the free-energy functional. One can show (see the thesis of van der Waals) that the excess of the free energy can be taken as double well potential with the inclusion of the surface tension: ( F = A 2 φ2 + A 4 φ4 dv + k 2 ( αφ)2 + ρ ln ρ ) dv, 3 where the double well potential is responsible for phase separation and stability of the phase separation. Term ρ ln ρ stays for the equation of state 3 p 0 = ρ 3

CHEMICAL POTENTIALS AND PRESSURE TENSOR Therefore, one can express the value of the volumetric chemical potential coming from Lagrange-Euler minimization functional equation φ F α α αφl: µ = A( φ + φ 3 ) k φ. Variational calculus as well state that there is the conservation law which is in our case the momentum flux modification: β P αβ = φ αµ P αβ = ( ρ 3 Aφ2 + 3 4 φ4 + kφ φ + k 2 φ 2) δ αβ + k αφ β φ That is the most crucial result from the binary liquid theory. In the system for the binary liquids we already defined F = φ µ which modifides the equation of state. However one still needs to give the expression for j, which is of cource proportional to µ because of the thermodynamical definition of chemical potential µ = U, stating for the energy change if the number of N particles is changed. We state j = M µ, where M is the mobility.

SYSTEM OF EQUATIONS FOR THE BINARY LIQUID MODEL Therefore one needs to solve the following equations: u = 0 tφ + u φ = M µ ρ( tu + u u) = p + [η( u + u T )] + φ µ, where the force modifies the equation of state. Other parameters are defined as follows: 8 k A 9 Surface tension is σ = The interface width (to be shown later) ξ = 2 2 Mobility coefficient M is usually chosen as the function of φ, i.e. M(φ) = (φ 1)(φ+1) 4. k A

BOUNDARY CONDITIONS The boundary conditions in the framework of the free energy approach are simple: one needs to specify the normal gradient of the phase on the wall: h = k φ For example for the case of the droplet on the surface the contact angle (courtesy of H. Kusumaatmaja) is defined through the factor h as: where α = cos 1 (sin 2 θ) h = π ) 2kAsign( ( α )( 2 θ cos 1 cos ( α ) ), 3 3

LATTICE BOLTZMANN IMPLEMENTATION For the lattice Boltzmann system which corresponds to the slightly compressible case one needs to resolve the following system of equations: tρ + αρu α = 0 tρu α + ρu αu β = ρ 3 + ν β(ρ β u α + ρ αu β ) + φ µ tφ + αφu α = M µ, where we assume a few important things: Mobility M is the constant coefficient but not a function. The model is slightly compressible - the velocity field is not divergent-free. One can notice that to solve the system above one needs two sets of the distribution functions f i and g i. In what follows we will thorougly describe the LBM implementation.

LATTICE BOLTZMANN IMPLEMENTATION Therefore the lattice Boltzmann implementation consists from the following steps: 1 Initialize fields. Density can be taken everywhere as 1. The phase needs to be initialized as 1 for assumed gas locations and 1 for assumed liquid locations. 2 Calculate macroscopic parameters φ = i gi and ρ = i fi. Calculate velocities ρu = i fic i. Notice that velocity is calculated from the density probability distribution function. 3 Calculate necessary laplacians and gradients for the phase field 4 If the external force is specified then shift the equilibrium velocity as ρu eq = i fic i + F 2 = ρu + F 2 5 Calculate equilibrium functions (to be specified later). Notice that the velocity is the same for the density and phase distribution functions.

LBM IMPLEMENTATION: CONTINUE 6 Perform collision for fluid nodes: Notice that the binary liquid model can simulate liquids with different viscosities. The viscosity is controlled by two relaxation parameters τ gas and τ liq. The relaxation rate for fluid node is calculated based on phase (usually is linear function): τ ρ = τ gas + φ+1 2 (τ liq τ gas) Collision perform two collisions for the hydro field and phase field (ω ρ = 1 τ ρ and ω φ = 1 τ φ ): f i = f i(1 ω ρ) + ω ρf eq i 7 Perform BB and other boundary conditions 8 Perform streaming to the fluid domain. 9 Loop + F i ; g i = g i(1 ω φ ) + ω φ g eq i

PHASE EQUILIBRIUM FUNCTIONS For phase we are simulating the following equation: tφ + αφu α = M µ, where µ = A( φ + φ 3 ) k φ. We are solving non-linear equation, then the equilibrium functions will have another form in comparison with the already defined before. Overall, the equilibrium phase distribution function will have the following form (we present it here for D2Q9 model): g i = w i ( 3Γµ + φ3u αc iα + φ ( c iαc iβ 1 3 ) ), for 1 i 8, g 0 = φ 8 g i, where the chemical potential µ is calculated before, and velocity u ( is supplied ) before as well. It can be shown that the mobility parameter M = 1 τφ 1 3 2 Γ. Weights are as usual weights defined before w i = ( 4 9, 1 9, 1 9, 1 9, 1 9, 1 36, 1 36, 1 36, 1 36 ). i=1

TWO APPROACHES In comparison with the phase distribution functions there are two approaches for density equilibrium distribution functions: 1 Simulation through the force: F = φ µ In this case one can use the usual equilibrium for density as: ( f eq i = w iρ 1 + 3c iαu eq α + 9 ( ciαc iβ 1 ) ) u eq α u eq β 2 3 ρu eq = i f ic i + F 2 F = φ µ The collision operator is fi = f i(1 ω ρ) + ω ρf eq i F i and the force population is by Guo formulation F i = w i(1 ωρ )(3(c 2 i u) + 9(c i u)c i ) F.

SECOND APPROACH 2 The second approach (more spread) is to include forcing into the equilibrium distribution function: ( f eq i = w iρ 3 ( ρ φ2 + A( 3 ( ciαc iβ 1 ) u eq α u eq β 3 + 9 2 + w xy i ) xφ yφ, for 1 i 8 f eq 0 = ρ 8f eq i i=1 2 + 3 4 φ4 ) kφ φ ) + 3c iαu eq α ) + k ( wi xx ( xφ) 2 + w yy i ( yφ) 2 where additional weights wi xx,w xy i and w yy i are responsible for the distribution of the forcing through all equilibrium functions: w xx i = {0, 1 3, 1 6, 1 3, 1 6, 1 24, 1 24, 1 24, 1 24 } w yy i = {0, 1 6, 1 3, 1 6, 1 3, 1 24, 1 24, 1 24, 1 24 } w xy i = {0, 0, 0, 0, 0, 1 4, 1 4, 1 4, 1 4 }

NUMERICAL STENCILS The last thing to finalize the lattice Botlzmann implementation for the binary liquid model is to specify the numerical stencils for laplacian delta and gradients x and y: = 1 6 4 6 1 6 4 6 20 6 4 6 1 6 4 6 1 6 1 0 12 ; x = 4 0 12 1 0 12 1 12 4 12 1 12 ; y = 1 12 4 12 1 12 0 0 0 1 12 4 12 1 12

FEATURES AND PARAMETERS There are a number of good features to work with the binary-liquid model: The model is thermodynamically consistent and physical. The only problem is the uniform density which you need to consider. The interface usually occupies 3 5 lattice nodes. Good for contact angle simulations. No additional condensation and evaporation. Explicitly given surface tension σ = 8 k A 9. One needs as well know some parameters to start with. Usually a good set of parameters is Γ = 1, τ φ = 1,k = 0.04, A = 0.04, τ gas = 0.7 and τ liq = 2.5. This set of parameters gives the interface thickness around 5 lattice units and gas-liquid viscosity ratio µ liq µ gas = 10.

BE AWARE A few things to know from the numerical point of view: 8 k A 9 If one needs to adjust the surface tension which equals to σ = then the suggestion is to scale your parameters as k A, because this choice will conserve the interface thickness ξ = 2 2 If one needs to increase the gas-liquid viscosity ratio µ liq µ gas, then it can be done either with increase of τ liq or the decrease of τ gas. The increase in τ liq produces the inaccuracies, since the BGK scheme accuracy is ( ) 2.In proportional to τ 1 2 this case the simulation with TRT/MRT can help. The decrease in τ gas results in stability issues, since τ gas is close to stability limits 1. In this case one needs to increase Γ for the interface 2 to keep up with low viscosity. Increase of Γ results in the decrease of available parameters A and k. Therefore, one needs to search for the compromise. However, recent studies show that TRT/MRT models can help as well. k A.