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: $$\ell^* U^/\nu^ = \ell U/\nu$$, which yields the relation $$C_\ell C_u/C_\nu = 1$$.
•
From this relation, we can derive that $$C_\nu = C_\ell C_u$$, showing how the conversion factor for viscosity is related to those for length and velocity.
•
Any derived conversion factor $$C_q$$ can be constructed directly by writing down a suitable combination of basic conversion factors: $$C_q = C_1^{q_1} C_2^{q_2} C_3^{q_3}$$ 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
•
Consider force-driven 2D Poiseuille flow with physical parameters: channel diameter $$w = 10^{-3}$$ m, kinematic viscosity $$\nu = 10^{-6}$$ m²/s, density $$\rho = 10^3$$ kg/m³, gravity $$g = 10$$ m/s².