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,

Slides:



Advertisements
Similar presentations
Practical Course SC & V More on Boundaries Dr. Miriam Mehl Institut für Informatik Schwerpunkt Wissenschaftliches Rechnen.
Advertisements

Hopp til første side 3D Flow Simulation By Sigve Hovda, Ph.D student Three Dimentional Computational Fluid Dynamic Model of the Human Heart During Ejection.
Lesson 1: Vector Components How to add Vectors In this lesson you will learn: 1. How to resolve (break down) vectors in x and y components. 2. How to Reconstruct.
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.
Algebra 1 Mini-Lessons Which of the following shows the equation below correctly solved for a? b = 4a − 17 − 2b A. B. C. D. MA.912.A.3.3: Solve literal.
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
Linear Equations Please Read Entire Section 2.1, pages in the text.
Here is a preview of one type of problem we are going to solve using matrices. Solve this system of equations:
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.
Solving Linear Equations – Part 2 A Linear Equation in One Variable is any equation that can be written in the form It is assumed that you have already.
Section 9.5: Equations of Lines and Planes
Chapter 13 Section 13.5 Lines. x y z A direction vector d for the line can be found by finding the vector from the first point to the second. To get.
Acceleration. The concepts of this lesson will allow you to: Explain the terms that are associated with motion and acceleration. Analyze acceleration.
Fall 2014 Notes 23 ECE 2317 Applied Electricity and Magnetism Prof. David R. Jackson ECE Dept. 1.
Chapter 3 Solving Linear Equations. Throughout mathematics, you encounter many types of equations.
INTRODUCTION TO CONDUCTION
3.5 – Solving Systems of Equations in Three Variables.
MTH 091 Section 9.5 Formulas and Problem Solving.
Chapter 2 Section 2.4 Lines and Planes in Space. x y z.
2.6 Formulas A literal equation – an equation involving two or more variables. Formulas are special types of literal equations. To transform a literal.
Lesson 3-5: Solving Equations with the Variable on Each Side.
Solving Logarithmic Equations To solve today's equations, we are going to rewrite them in exponential form and use the methods learned in the last unit.
Objective - To transform formulas. Solve the formula for the variable indicated. Formula - an equation which defines the relation- ship of one variable.
Basic Boltzmann Gas Concepts. Kinetic Theory Complete set of position (x) and momentum (p) coordinates for all individual particles gives exact dynamical.
FINDING THE EQUATION OF A QUADRATIC FUNCTION Foldable.
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.
Solving Uniform Acceleration Problems. Equations for Uniformly Accelerated Motion variable not involved - d variable not involved - a variable not involved.
Solving Rational Equations
LO To Write and Solve EquationsRAG Key Words; Unknown, Solve25-Jan-16 Think – Pair – Share Can you find the value of n? How did you do it? n
 In this lesson we will go over how to solve a basic matrix equation such as the following: These are matrices, not variables.
Jeopardy Review for P.1-P.4. Find that Distance What’s that interval? Solve It!!Create an Equation I Love Math Final Jeopardy.
Differential Analysis of Fluid Flow. Navier-Stokes equations Example: incompressible Navier-Stokes equations.
 In order to solve these problems you need to know:  How to separate a vector into its components.  Quadratic Formula and how to solve it.  Have an.
Literal Equations.
Horizontal Projectiles Physics Level 1. Vector Resolution The study of vectors allows for breaking a single vector into components: – the vertical y component.
2.4 – Solving Equations with the Variable on Each Side.
Solving equations with variable on both sides Part 1.
Toth Problem (2D, steady state) Impermeable Rock Groundwater divide Groundwater divide z x water table Governing Equation:
Lecture 3 & 4 : Newtonian Numerical Hydrodynamics Contents 1. The Euler equation 2. Properties of the Euler equation 3. Shock tube problem 4. The Roe scheme.
Computation Geometry Governing Equations Boundary Conditions Initial Conditions Parameters, dimensionless groups Constraints, other requirements Discretization/mesh.
Jeopardy Solving Equations
Displacement & Constant Acceleration
Complex Geometries and Higher Reynolds Numbers
Part IV: Detailed Flow Structure Chap. 7: Microscopic Balances
Solving Multistep Equations
Chapter 3 Plasma as fluids
A Few More LBM Boundary Conditions
Get out your 7.3 Notes Packets
Weekly problem solving session
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.
Pressure Poisson Equation
5.5 Completing the Square.
1.4 Rewrite Formulas and Equations
Continuity Equation.
Do Now 1) t + 3 = – 2 2) 18 – 4v = 42.
5.2 Verifying Trigonometric Identities
Three times a number minus 35 is 79. 9n – (6/n) n or 4n (11 + n) or 3(n + 11) 4n2 + 5n n or 7n + 23 Three times a number.
topic8_NS_vectorForm_F02
Solving Percent Problem with Equations
Notes Over 3.7 Solve for the indicated variable. 1. Area of a Triangle.
topic8_NS_vectorForm_F02
Solving Equations with Variables on Both Sides
Solving Equations with Variables on Both Sides
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Solving Two Step Algebraic Equations
Rewriting Equations Equivalent Equations.
1. How do I Solve Linear Equations
One-step addition & subtraction equations: fractions & decimals
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,

Choices Specify density (i.e., pressure via EOS) –Velocity computed –Dirichlet Specify velocity –Density/pressure computed –Von Neumann Lots of temporal/spatial flexibility

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

Velocity/Flux BCs Need to solve for , f 4, f 7, f 8 Need 4 equations The macroscopic density formula is one equation:

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

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

Velocity/Flux BCs Two equations have the directional density unknowns f 4, f 7 and f 8 in common, so rewrite them with those variables on the left hand side:

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

Solving the bounceback equation for f 4 : 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]); } Velocity/Flux BCs

Pressure/Density Boundaries Dirichlet boundary conditions constrain the pressure/density at the boundaries Solution is closely related to that for velocity boundaries A density  0 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 = RT  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, f 4, f 7 and f 8

Pressure/Density Boundaries

// Zou and He pressure boundary on north side. for( i=0; i<ni; i++) { fi = ftemp[nj-1][i]; uy0 = ( 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