A Few More LBM Boundary Conditions

Slides:



Advertisements
Similar presentations
A Few More LBM Boundary Conditions. Key paper: Zou, Q. and X. He, 1997, On pressure and velocity boundary conditions for the lattice Boltzmann BGK model,
Advertisements

Building an LBM Model The following is a mixture of MATLAB and C. Care must be taken, because array indexing begins at 1 in MATLAB and at 0 in C.
Tangent Vectors and Normal Vectors. Definitions of Unit Tangent Vector.
3D S IMULATION OF PARTICLE MOTION IN LID - DRIVEN CAVITY FLOW BY MRT LBM A RMAN S AFDARI.
1 Simulation of Micro-channel Flows by Lattice Boltzmann Method LIM Chee Yen, and C. Shu National University of Singapore.
MANE 4240 & CIVL 4240 Introduction to Finite Elements Introduction to differential equations Prof. Suvranu De.
1 Model 6:Electric potentials We will determine the distribution of electrical potential (V) in a structure. x y z x y V=0 V=To be specified Insulation.
6.8 –Systems of Inequalities. Just like systems of equations, but do the inequality part!
Section 9.5: Equations of Lines and Planes
7.4 Cables Flexible cables and chains are used to support and transmit loads from one member to another In suspension bridges and trolley wheels, they.
MA/CS471 Lecture 8 Fall 2003 Prof. Tim Warburton
Acceleration. The concepts of this lesson will allow you to: Explain the terms that are associated with motion and acceleration. Analyze acceleration.
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
Lesson 3-5: Solving Equations with the Variable on Each Side.
SECTION 13.8 STOKES ’ THEOREM. P2P213.8 STOKES ’ VS. GREEN ’ S THEOREM  Stokes ’ Theorem can be regarded as a higher- dimensional version of Green ’
Solving Quadratic Equations – Part 1 Methods for solving quadratic equations : 1. Taking the square root of both sides ( simple equations ) 2. Factoring.
Chapter 10.7 Notes: Solve Quadratic Equations by the Quadratic Formula Goal: You will solve quadratic equations by using the Quadratic Formula.
Straight Lines. I. Graphing Straight Lines 1. Horizontal Line y = c Example: y = 5 We graph a horizontal line through the point (0,c), for this example,
Basic Boltzmann Gas Concepts. Kinetic Theory Complete set of position (x) and momentum (p) coordinates for all individual particles gives exact dynamical.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Inequalities Symbols and line graphs. Symbols  < is less than  > is greater than  < is less than or equal to  > is greater than or equal to points.
4.1.1 – Solving Inequalities. All equations we have solved are considered problems of equality – Involves some kind of equal sign On the other hand, we.
An equation in the form … … can be solved using two methods discussed previously. Solving Equations Containing Trinomials 1.Factoring Method 2.Graphing.
Background 1. Energy conservation equation If there is no friction.
Continuous Probability Distribution By: Dr. Wan Azlinda Binti Wan Mohamed.
4.8 Using matrices to solve systems! 2 variable systems – by hand 3 or more variables – using calculator!
7.5 Formulas. Formulas: a formula is an equation that relates one or more quantities to another quantity. Each of these quantities is represented by a.
Copyright © Cengage Learning. All rights reserved.
Table of Contents Solving Quadratic Equations – The Discriminant The Discriminant is the expression found under the radical symbol in the quadratic formula.
To write another equivalent equation, multiply each side by x – 12y = 8 To write one equivalent equation, multiply each side by 2. SOLUTION Write.
Notes Over 1.6 Solving an Inequality with a Variable on One Side Solve the inequality. Then graph your solution. l l l
Homogeneous Differential Equation
Review on Coulomb’s Law and the electric field definition
Section 2.5 – Quadratic Equations
Basic Boltzmann Gas Concepts
“SINIR TABAKA TEORİSİ” İstanbul Teknik Üniversitesi
Chapter 4 Quadratic Equations
1.6 Solving Inequalities.
Equations of Lines Point-slope form: y – y1 = m(x – x1)
By the end of Week 2: You would learn how to plot equations in 2 variables in 3-space and how to describe and manipulate with vectors. These are just.
By the end of Week : You would learn how to solve many problems involving limits, derivatives and integrals of vector-valued functions and questions.
5-2 Direct Variation.
Building an LBM Model The following is a mixture of MATLAB and C. Care must be taken, because array indexing begins at 1 in MATLAB and at 0 in C.
Computer Graphics Lecture 36 CURVES II Taqdees A. Siddiqi
topic8_NS_vectorForm_F02
Simple ODEs to Study Thermofluids
Equations of Straight Lines
1.4 Solving Equations Using a Graphing Utility
topic4: Implicit method, Stability, ADI method
topic16_cylinder_flow_relaxation
Solving Equations by Factoring
Fundamental Theory of Panel Method
topic8_NS_vectorForm_F02
Solving Equations with Variables on Both Sides
Motion in Space: Velocity and Acceleration
Solving Equations with Variables on Both Sides
Quadratic Equations Chapter 4.
§3.10 Linear Approximations and Differentials
Scientific Computing Lab
Lesson 7.
Lesson: Derivative Basics - 2
Warm-Up #10 Solve and graph 5x -3 < 7 and 3x < 6
Equations of Lines Point-slope form: y – y1 = m(x – x1)
Warm-Up Set 1: Factor. 1) x2 + 6x + 9 2) x2 - 10x + 25 Set 2: Factor.
Rewriting Equations Equivalent Equations.
Solving Equations Containing Trinomials
Stoke’s first problem (BSL example)
3(9z + 4) > 35z – 4 Original problem. Solve each inequality. Then graph the solution set on the number line. 3(9z + 4) > 35z – 4 Original problem.
One-step addition & subtraction equations: fractions & decimals
1st semester a.y. 2018/2019 – November 22, 2018
Presentation transcript:

A Few More LBM Boundary Conditions

Key paper: Zou, Q. and X. He, 1997, On pressure and velocity boundary conditions for the lattice Boltzmann BGK model, Phys. Fluids 9, 1591-1598.

Choices Specify density (i.e., pressure via EOS) Specify velocity Velocity computed Dirichlet Johann Peter Gustav Lejeune Dirichlet, 13 February 1805 – 5 May 1859, German mathematician Specify velocity Density/pressure computed Neumann Carl Gottfried Neumann, May 7, 1832 - March 27, 1925, German mathematician Lots of temporal/spatial flexibility

D2Q9 BCs For example: Out In f(4,7,8) = function of f(1,2,3,5,6) and BC type Out In

Velocity/Flux BCs Need to solve for r, f4, f7, f8 Need 4 equations The macroscopic density formula is one equation:

Velocity/Flux BCs The macroscopic velocity formula gives two equations: x-direction: y-direction: Components of ea are all unit vectors Assuming ux = 0

Velocity/Flux BCs Finally, we assume bounceback of non-equilibrium part of f perpendicular to boundary for a fourth equation:

Velocity/Flux BCs Two equations have the directional density unknowns f4, f7 and f8 in common, so rewrite them with those variables on the left hand side:

Velocity/Flux BCs Equating them gives: Solving for r:

Velocity/Flux BCs Solving the bounceback equation for f4: In detail, part of this is:

Velocity/Flux BCs Solving …:

Velocity/Flux BCs Solving …:

Velocity/Flux BCs // Zou and He velocity BCs on north side. for( i=0; i<ni; i++) { fi = ftemp[nj-1][i]; rho0 = ( fi[0] + fi[1] + fi[3] + 2.*( fi[2] + fi[5] + fi[6])) / ( 1. + uy0); ru = rho0*uy0; fi[4] = fi[2] - (2./3.)*ru; fi[7] = fi[5] - (1./6.)*ru + (1./2.)*( fi[1]-fi[3]); fi[8] = fi[6] - (1./6.)*ru + (1./2.)*( fi[3]-fi[1]); }

Pressure/Density Boundaries Dirichlet boundary conditions constrain the pressure/density at the boundaries Solution is closely related to that for velocity boundaries A density r0 is specified and velocity is computed Specifying density is equivalent to specifying pressure since there is an equation of state (EOS) relating them directly For single component D2Q9 model, the relationship is simply P = RTr with RT = 1/3. More complex EOS applies to single component multiphase models We assume that velocity tangent to the boundary is zero and solve for the component of velocity normal to the boundary.

Pressure/Density Boundaries Assume that velocity tangent to the boundary is zero and solve for the component of velocity normal to the boundary Need to solve for v, f4, f7 and f8

Pressure/Density Boundaries

Pressure/Density Boundaries

Pressure/Density Boundaries // Zou and He pressure boundary on north side. for( i=0; i<ni; i++) { fi = ftemp[nj-1][i]; uy0 = -1. + ( fi[0] + fi[1] + fi[3] + 2.*( fi[2] + fi[5] + fi[6])) / rho0; ru = rho0*uy0; fi[4] = fi[2] - (2./3.)*ru; fi[7] = fi[5] - (1./6.)*ru + (1./2.)*( fi[1]-fi[3]); fi[8] = fi[6] - (1./6.)*ru + (1./2.)*( fi[3]-fi[1]); }

Exercise Create a new version of your code that includes constant pressure boundaries at x = 0 and x = Lx. Plot the observations and expected Poiseuille velocity profile on the same graph