Table of Contents
5.1 Non-dimensionalization
5.1.1 Unit Scales and Conversion Factors
•
Physical quantities require reference scales for dimensional representation.
⇒ For example, a length can be reported in multiples of a unit scale with length m.
•
Non-dimensionalization is achieved by dividing a dimensional quantity by a chosen reference quantity.
⇒ Resulting in a dimensionless number called the lattice value or the quantity's value in lattice units.
•
The reference quantity is called the conversion factor, denoted by .
⇒ Non-dimensionalised quantities are denoted by a star , giving the relation: .
•
Any mechanical quantity has a dimension which is a combination of the dimensions of length , time , and mass : where the exponents are numbers.
◦
Since three fundamental dimensions are sufficient to generate the dimension of any mechanical quantity, one requires exactly three independent conversion factors to define a unique non-dimensionalization scheme.
◦
Three conversion factors () are independent if the following relations have no solution for the numbers and :
•
In LB simulations, one usually takes , (or ) and as basic conversion factors because length, time (or velocity) and density are natural quantities in any LB simulation.
◦
For 2D simulations, the system should be treated as a 3D system with thickness of one lattice constant to enable the use of 3D conversion factors without restrictions.
5.1.2 Law of Similarity and Derived Conversion Factors
•
Physics is independent of units which are an arbitrary human construct.
◦
Ratios of physical phenomena are what matter, and the physical outcome should not depend on whether we use dimensional or dimensionless quantities.
◦
The law of similarity in fluid dynamics states that two incompressible flow systems are dynamically similar if they have the same Reynolds number and geometry.
•
The Reynolds number is defined as:
◦
and are typical length and velocity scales.
◦
, , and are density, kinematic viscosity, and dynamic viscosity of the fluid, respectively.
•
The Reynolds number must be identical in both physical and lattice systems:
◦
Plugging in the definition of the conversion factors yields the relation or .
•
Any derived conversion factor can be constructed directly by writing down a suitable combination of basic conversion factors without any additional numerical prefactor:
◦
This construction is unique and guarantees that the conversion is consistent. → The physics of the system and characteristic dimensionless numbers are kept invariant.
•
Unit systems must not be mixed as this causes inconsistencies in the definition of conversion factors and subsequent violation of the law of similarity.
5.2 Parameter Selection
5.2.1 Parameters in the Lattice Boltzmann Method
•
Any LB simulation is characterized by a set of parameters:
◦
The lattice constant is the distance between neighbouring lattice nodes in physical units, i.e. []=[m].
◦
The physical length of a time step is denoted , thereforce [] = [s].
◦
The BGK relaxation parameter is a relaxation time with [] = [s], where denotes the dimensionless relaxation parameter.
◦
The dimensionless fluid density has an average value usually set to unity: .
⇒ This situation is more complicated for multicomponent or multiphase simulations.
◦
The typical simulated velocity is usually part of the simulation output but may need to be specified on boundaries as inlet and outlet velocities.
⇒ It is desired to estimate the magnitude of before the simulation is started in order to avoid unstable situations or very long computing times.
◦
In the standard LBM, the lattice speed of sound is , and all simulated velocities must be significantly smaller: .
⇒ In practice this means that the maximum value of should be below 0.2.
•
It is common to set , , and .
◦
This means that the conversion factors for length, time, and density equal the dimensional values for the lattice constant, time step, and density:
◦
The units defined by and are called lattice units.
•
The parameters and are connected through the conversion factor for because has the dimension of time:
Viscosity
•
The kinematic lattice viscosity is related to the relaxation parameter according to .
⇒ The typical problem is to relate the dimensionless relaxation parameter to the physical kinematic viscosity since the latter is usually given by an experiment and the former has to be defined for a simulation.
•
The kinematic viscosity is related to the simulation parameters according to:
◦
This is a consistency equation showing that , , and are not independent. → Only two of them can be chosen freely.
Pressure, Stress and Force
•
The equation of state of the LB fluid is:
◦
This is, however, not the entire truth.
⇒ Only the pressure gradient rather than the pressure by itself appears in the NSE.
◦
The total pressure does appear in the energy equation. → This euation is not relevant for non-thermal LB models.
◦
The reference pressure is thus irrelevant; only pressure changes matter.
•
To connect with the physical pressure, one decomposes the LB density into its constant average and deviation from the average:
•
Generally, the LB density can be converted to the physical pressure for non-thermal models as:
◦
is the conversion factor for pressure.
◦
is the physical reference pressure which can be freely specified by the user.
•
The components of the stress tensor have the same dimension as a pressure, therefore the conversion factor is always identical: with .
•
The conversion factor for any force (no matter if body force or surface force) is .
•
The conversion factor for a body force density is obviously .
5.2.2 Accuracy, Stability and Efficiency
Accuracy and Parameter Scaling
•
There are several error terms which affect the accuracy of an LB simulation:
◦
The spatial discretization error scales like .
◦
The time discretization error scales like .
◦
The compressibility error for simulations in the incompressible limit is proportional to .
⇒ Since decreases with increasing , this error scales like .
◦
The BGK truncation error in space is proportional to , indicating that should not be much larger than unity.
•
One needs to come up with certain relationships between and to control the error.
•
The diffusive scaling guarantees that the leading order of the overall error scales like , though the LB algorithm becomes effectively first-order accurate in time.
◦
The diffusive scaling leaves , and hence the non-dimensional viscosity , unchanged.
◦
The diffusive scaling is the standard approach to test if an LB algorithm is second-order accurate: one performs a series of simulations, each with a finer resolution than the previous.
◦
The overall velocity error should then decrease proportionally to .
•
The acoustic scaling keeps the compressibility error unchanged and must be chosen when the speed of sound is a physically relevant parameter.
◦
For incompressible simulations, the numerical solution can only converge to the incompressible NSE when with .
Stability
•
The relaxation parameter should not be too close to 1/2, and the velocity should not be larger than about 0.4 for .
◦
For , the stability criterion can be approximated as:
▪
is a numerical constant which is of the order of .
•
The grid Reynolds number is defined by taking the lattice resolution as length scale:
◦
The grid Reynolds number should not be much larger than .
◦
The physical interpretation is that the lattice should always be sufficiently fine to resolve local vortices.
⇒ The simulation usually remains stable as long as all relevant hydrodynamic length scales are resolved.
•
Instabilities are often triggered at boundaries rather than in the bulk, so boundary treatment is crucial for stability.
Efficiency
•
The total number of site updates required is where is the total number of lattice sites and is the required number of time steps.
•
The memory requirements are proportional to , making LB quite memory-hungry method.
•
The total required runtime and memory obey:
◦
is the spatial dimensions.
◦
It is important to choose and especially as large as possible to reduce the computational requirements while maintaining accuracy and stability.
5.2.3 Strategies for Parameter Selection
Mapping of Dimensionless Physical Parameters
•
Any physical system can be characterized by dimensionless parameters like Reynolds or Mach numbers.
⇒ The first step before setting up a simulation is to identify these parameters and assess their relevance.
◦
Inertia is relevant as long as Re is larger than order unity - Only flows with vanishing small Reynolds numbers (Stokes flow) do not depend on the actual value of Re.
•
LB is mostly used for the simulation of incompressible fluids where the Mach number is small
◦
It is not necessary to map the exact value of . → It is sufficient to guarantee that is "small" in the simulation.
•
A lattice Mach number is considered small if .
•
The relation of simulation parameters in terms of Reynolds and Mach numbers can be written in the useful form:
◦
is a typical system length scale in lattice units.
◦
It should be noted that is the lattice Knudsen number .
⇒ Hydrodynamic behaviour is only expected for sufficiently small Knudsen numbers. → This sets an upper bound for the lattice constant .
Parameter Selection Strategies
•
The first step is to set the lattice density , typically to unity.
⇒ It is a pure scaling parameter without significant effect on accuracy, stability, or efficiency.
•
A typical scenario is having a maximum lattice size that can be handled by the computer, suggesting the lattice constant should be set next.
•
Choose the lattice Mach number (or the non-dimensional velocity ) reasonably, e.g., or .
•
For given system size , velocity , and Reynolds number, can be computed from the following relation:
•
Check via stability criteria whether the chosen values for and provide stable simulations.
◦
If is too small, either decrease (increase , more expensive) or increase (increase , less accurate/stable).
•
Once the parameters and are fixed, we can calculate .
This scenario reveals some problems arising when large Reynolds numbers are simulated: It requires either large lattices, small relaxation parameters or large Mach numbers.
⇒ It is possible only to a limited extent to reach large Reynolds numbers by increasing the Mach number and decreasing the relaxation parameter due to accuracy and stability issues.
•
The maximum achievable Reynolds number for a given lattice size, assuming near the stability limit ():
◦
This shows that the achievable Reynolds number is limited by .
•
Alternative methods involve setting Mach number and viscosity first, or setting resolution and viscosity first, then verifying the validity of all parameters.
Small Reynolds Numbers
•
Small Reynolds numbers can be reached by choosing a large , a large relaxation parameter , or small lattice Mach number .
•
The resolution cannot be arbitrarily decreased.
◦
At some point the lattice domain is so smal that the details of the flow are finer than the spacing between lattice nodes.
•
Using is not advisable due to increased numerical errors.
◦
This can be avoided by using advanced collision operators such as TRT or MRT).
•
The only unbounded way to reduce is to decrease and therefore the flow velocity .
⇒ But this means becomes very small since .
•
In some situations, when Reynolds number is not important (e.g., capillary flows, microfluidics), we can use a numerical Reynolds number which is larger than the physical Reynolds number to accelerate the simulations: .
◦
One should always check if the simulation results are still valid.
•
LB is particularly useful for flow problems with intermediate Reynolds numbers, especially between and .
5.3 Examples
5.3.1 Poiseuille Flow I
A Force-Driven 2D Poiseuille Flow
Channel diameter m, kinematic viscosity m²/s, density kg/m³, gravity m/s²
•
The expected centre velocity from analytical solution:
•
Reynolds number:
•
Initial parameters: m (corresponding to ), , ( kg/m³).
⇒ The system is now fully determined (the user may start with a different set of initial values).
•
From viscosity relation, we can obtain the conversion factor:
◦
This means that 12,000 time steps are required for 1 s physical time.
•
Expected lattice velocity:
a.
Using the law of similarity and the relation:
b.
Using the conversion factor for the velocity: m/s.
◦
Either case: → It is an invalid value because it is much larger than the speed of sound .
•
Parameter adjustment needed due to Reynolds number being too large for the chosen resolution.
⇒ This means that we have to increase the spatial resolution.
•
Refined parameters: m, → Resulting in (acceptable).
•
In order to run the simulation, the lattice value for the force density has to be obtained.
◦
Computing the conversion factor for : m/s² where we have used the time conversion factor s.
◦
Resulting in and .
•
Alternative routes exist for finding simulation parameters, but all must satisfy the Reynolds number constraint while meeting stability and accuracy requirements.
◦
Alternative route 1:
◦
Alternative route 2:
•
If the initially guessed simulation parameters give invalid or otherwise unacceptable results, one has to modify one or two parameters (which are not necessarily the initially chosen parameters) while updating the dependent parameters until the desired level of accuracy, stability, and efficiency is obtained.
5.3.2 Poiseuille Flow II
•
Simulations can be set up using only dimensionless parameters without any given dimensional parameters.
◦
For Poiseuille flow, knowing only the Reynolds number (e.g., Re = 1250) is sufficient.
•
Using relation from equation for Reynolds number with initial guess and .
◦
Direct calculation gives , which should yield stable simulation.
•
The required force density can then be obtained from:
◦
has been chosen ( in this case).
•
All required simulation parameters obtained without any conversion factors.
◦
The simulation is valid for all similar physical systems with the same Reynolds number.
◦
Conversion factors can be obtained a posteriori by setting physical scales after successful simulation.
◦
Full set of conversion factors only obtained when three independent physical parameters are given (e.g. , , or , , ).
•
In physics it is often the case that systems are only characterized by the relevant dimensionless parameters without giving the scales like length or velocity themselves.
⇒ This is sufficient to set up and run simulations, at least as long as all required dimensionless parameters are known.
5.3.3 Poiseuille Flow III
•
It is very common to drive a Poiseuille flow by a pressure gradient rather than by gravity or a force density.
•
The pressure gradient (where is the pressure difference between inlet and outlet and is the length of the channel).
◦
The force density is simply .
•
For 2D Poiseuille flow:
◦
We have introduced the average density to appreciate the fact that the density is not constatn.
◦
We replaced the pressure difference by the density difference via .
◦
This equation provides a direct expression for the required relative difference between the inlet and outlet densities.
⇒ The right-hand-side has to be a small quantity. → This is another restriction for an LB simulation and sets additional bounds, especially for the system length .
•
In the incompressible limit, we require the density difference between any two points in the simulation, , to be small compared to the average density .
A Pressure-Gradient-Driven 2D Poiseuille Flow
, , ,
Allowing density variations of up to 5% ()
The maximum channel length becomes (only ten times more than the channel diameter).
•
If and the average density are known, the inlet and outlet densities are set to:
◦
is satisfied.
◦
The local pressure can be obtained from the local density according to .
5.3.4 Womersley Flow
•
Womersley flow is Poiseuille-like flow (channel width , viscosity ) with an oscillating pressure drop along the length of the channel.
◦
with angular frequency .
◦
Since there exists an analytical solution for this unsteady flow, it is an ideal benchmark for Navier-Stokes solvers.
•
The Reynolds number for an oscillatory flow is usually defined through the velocity at : .
◦
For a 2D channel, is related to according to:
•
Due to the presence of the frequency , an additional dimensionless number is required to characterise the flow:
◦
The Womersley number is defined as:
•
The Buckingham π theorem: for independent quantities whose physical dimension can be constructed from independent dimensions, there are independent dimensionless parameters.
◦
A simple Poiseuille flow:
▪
independent quantities: channel width, flow velocity, viscosity, and density.
▪
independent dimensions: length, time, and mass.
▪
This gives parameter which is the Reynolds number.
◦
Womersley flow:
▪
independent quantities: channel width, flow velocity, viscosity, density, and frequency.
▪
independent dimensions: length, time, and mass.
▪
This gives parameters which are the Reynolds number and Womersley number.
◦
Characteristic time scales: the advection time , the diffusion or viscous time , and the oscillation time .
•
All physical time scales which shall be resolved must be sufficiently long compared to the intrinsic sound wave (or acoustic) time scale for incompressible flows.
◦
.
◦
This defines, for a given lattice size, a lower bound for the oscillation time scale and therefore an upper bound for the frequency (): IMaximum frequency constraint:
◦
Any unsteady incompressible flow violating this condition is non-physical, and the results will not be a good approximation of the incompressible Navier-Stokes solution.
•
A suggested procedure to set up Womersley flow with known and :
1.
Select initial values for and which are compatible with the Reynolds number, e.g. (stability).
2.
Estimate the sound propagation time scale and therefore the recommended maximum for via .
⇒ It requires some trial and error to find a sufficient minimum ratio , but one should at least use a factor of ten.
3.
Balance and to match via by taking into account the law of similarity for the Womersley number: .
⇒ There is no unique way to choose and , but keep in mind already now that the relaxation parameter should not be too close to or much larger than unity.
4.
Estimate the velocity from using the selected values for and .
5.
Check the validity of :
•
If its value is not in the desired range (too large for reasonable stability or accuracy or too small for a feasible time step), the parameters have to be re-balanced while keeping and invariant.
⇒ This process is more complicated than for the Poiseuille flow because and have to be considered simultaneously.
6.
The required pressure difference finally can be obtained from:
Example:
5.3.5 Surface Tension and Gravity
•
Considering a droplet of a liquid in vapour (or the other way around: a vapour bubble in a liquid).
◦
The surface tension of the liquid-gas interface is .
◦
The droplet/bubble may be put on a flat substrate or into a narrow capillary.
•
The density difference of the liquid and vapour phases is defined as .
•
In the presence of the gravitational acceleration with magnitude , we can define the dimensionless Bond number:
◦
It characterizes the relative strength of gravity and surface tension effects where is a length scale typical for the droplet/bubble.
◦
A common definition for is the radius of a sphere with the same volume as the droplet/bubble:
•
Small Bond number: gravity negligible, surface tension dominates (spherical shapes).
•
Large Bond number: gravity important, droplet/bubble deformed.
•
To find the simulation parameters in lattice units for a given Bond number, first set the lattice densities:
◦
Where is the achievable density ratio of the model.
•
The next step is to choose the radius properly.
◦
The droplet radius must be significantly larger than interface width: , typically .
•
From Bond number scaling:
◦
Where we have approximated , which is valid for & . → All quantities on the right-hand-side are known.
◦
One degree of freedom remains to choose and satisfying the constraint.
•
Must consider model limitations on surface tension range and stability constraints on gravity/velocity.
•
Time step effectively defined by via:
◦
The user has to consider the total runtime of the simulation as well.
◦
Reducing and will decrease the time step and result in a longer computing time.
Example:
5.4 Summary
•
Purely mechanical systems require exactly three conversion factors.
◦
First define three independent (basic) ones, then derive all others according to .
•
The law of similarity is the physical basis for consistent non-dimensionalization. → Systems with same dimensionless parameters are similar.
◦
Unit systems must not be mixed to avoid inconsistencies and wrong physical results.
•
Typical basic conversion factors for LB: length, time (or velocity), and density. → , (or ), and .
•
Key viscosity relation: constrains simulation parameters.
•
Choose parameters considering intrinsic LB restrictions for accuracy, stability, and efficiency.
◦
Diffusive scaling preferred for incompressible flows (second-order spatial accuracy).
◦
Acoustic scaling when speed of sound is physically relevant.
◦
For incompressible simulations, Mach number scaling unnecessary. → Increase for efficiency.
•
The relation of simulation parameters in terms of Reynolds and Mach numbers:
•
Set average lattice density as default.
•
LB simulations possible without specifying conversion factors. → Map to physical system later.
•
Ensure local density variation small compared to for incompressibility.
•
Number of independent parameters reduced by each imposed dimensionless constraint (Buckingham π theorem).
•
All relevant time scales must exceed acoustic time scale for proper physics.
•
LB most suitable for intermediate Reynolds numbers: to .