This description relates to computer simulation of physical processes, such as physical fluid flows.
The so called “Lattice Boltzmann Method” (LBM) is an advantageous technique for use in computational fluid dynamics. The underlying dynamics of a lattice Boltzmann system resides in the fundamental physics of kinetic theory that involves motion of many particles according to the Boltzmann equation. There are two fundamental dynamical processes in a basic Boltzmann kinetic system—collision and advection. The collision process involves interactions among particles obeying conservation laws and to relax to an equilibrium. The advection process involves modeling movement of particles from one location to another according to the particles microscopic velocities.
In a standard LBM model, particle velocity takes on a discrete set of constant values, and the latter form exact links from one lattice site to its neighboring sites on a simple Bravais lattice corresponding to a three dimensional (3D) uniform cubical Cartesian mesh.
Various attempts have been made to extend LBM to meshes based on arbitrary coordinate systems (arbitrary mesh(es)). One of the main representative approaches is to relax a one-to-one advection mapping between a pair of lattice sites. On such arbitrary meshes, a particle after advection from its original mesh site does not in general land on a single neighboring site. In those solutions, the location of the particle is represented by those mesh sites by interpolation.
While important in many applications, a uniform cubical Cartesian mesh poses fundamental limitations for other applications. For example, often in realistic fluid simulations, the simulation is of a solid geometric curved surface. A Cartesian mesh does not present a smooth conformance to a solid geometric curved surface. In addition, a realistic physical flow usually has small structures concentrated in certain spatial areas and directions. For instance, in the so called turbulent boundary layer, the flow scale normal to the wall is much smaller than in the tangential direction or in the bulk of the fluid region. Consequently, the requirement on spatial resolution is significantly higher in the normal direction to the wall inside a boundary layer. A cubic Cartesian mesh does not provide the flexibility with different spatial resolutions in different directions.
According to an aspect, a computer implemented method for simulating a fluid flow about a surface of a solid, includes receiving by the computing system, a coordinate system for representation of a curvilinear mesh that conforms to the surface of the solid, simulating, with a lattice velocity set transport of particles in a volume of fluid, with the transport causing collision among the particles, executing a distribution function for transport of the particles, with the distribution function including a particle collision determination and a change in particle distribution associated with the curvilinear mesh, performing by the computing system, advection operations in the coordinate system under constraints applied to particle momentum values, and mapping by the computer system values resulting from simulating onto the curvilinear mesh by translation of the particle momentum values and spatial coordinates determined in the coordinate system into momentum and spatial values in the curvilinear space.
Other aspects include computer program products, one or more machine-readable hardware storage devices, apparatuses and computing system.
The approaches disclosed herein extend the current LBM based simulation predicated on Cartesian mesh to non-Cartesian mesh frameworks in curvilinear space. The approaches disclosed herein are based on a volumetric formulation so that mass and momentum conservations are satisfied. The resulting continuity equation of mass will have the correct form in curvilinear coordinates, and therefore the approach does not need to introduce any artificial mass source terms to correct for artifacts in the resulting hydrodynamics. In addition, as in continuum kinetic theory on a manifold, the only external source term in the disclosed extended LBM is due to the presence of an inertial force due to the curvilinear space. This inertial force term contributes no mass and is constructed without relying on the analytical form in the continuum kinetic theory.
This inertia force term in discrete space and time recovers asymptotically the force in the continuum kinetic theory in the hydrodynamic limit. Further, the inertial force enforces the exact momentum conservation for underlying Euclidian space in the discrete space-time LBM model. The force term is constructed so that the force term adds momentum to the system at proper discrete time moments in order to produce the correct resulting Navier-Stokes hydrodynamics at the viscous order.
Other features and advantages will be apparent from the following description, including the drawings, and the claims.
Model Simulation Space
In a LBM-based physical process simulation system, fluid flow is represented by the distribution function values ƒi, evaluated at a set of discrete velocities ci. The dynamics of the distribution function is governed by Equation I.1,
ƒi(x+ci,t+1)=ƒi(x,t)+Ci(x,t) Eq. (I.1)
This equation is the well-known lattice Boltzmann equation that describes the time-evolution of the distribution function, ƒi. The left-hand side represents the change of the distribution due to the so-called “streaming process.” The streaming process is when a pocket of fluid starts out at a mesh location, and then moves along one of plural velocity vectors to the next mesh location. At that point, the “collision factor,” i.e., the effect of nearby pockets of fluid on the starting pocket of fluid, is calculated. The fluid can only move to another mesh location, so the proper choice of the velocity vectors is necessary so that all the components of all velocities are multiples of a common speed.
The right-hand side of the first equation is the aforementioned “collision operator” which represents the change of the distribution function due to the collisions among the pockets of fluids. The particular form of the collision operator can be, but not limited to, of the Bhatnagar, Gross and Krook (BGK) operator. The collision operator forces the distribution function to go to the prescribed values given by the second equation, which is the “equilibrium” form.
The BGK operator is constructed according to the physical argument that, no matter what the details of the collisions, the distribution function approaches a well-defined local equilibrium given by {ƒeq(x, v, t)} via collisions:
where the parameter τ represents a characteristic relaxation time to equilibrium via collisions.
From this simulation, conventional fluid variables, such as mass ρ and fluid velocity u, are obtained as simple summations in Eq.(I.3) see below.
Due to symmetry considerations, the set of velocity values are selected in such a way that they form certain lattice structures when spanned in the configuration space. The dynamics of such discrete systems obeys the LBM equation having the form
ƒi(x+ci,t+1)=ƒi(x,t)+Ci(x,t)
where the collision operator usually takes the BGK form, as described above. By proper choices of the equilibrium distribution forms, it can be theoretically shown that the lattice Boltzmann equation gives rise to correct hydrodynamic and thermo-hydrodynamic results. That is, the hydrodynamic moments derived from ƒi(x, t) obey the Navier-Stokes equations in the macroscopic limit. These moments are defined as:
ρ(x,t)=Σiƒi(x,t); ρ(x,t)u(x,t)=Σiciƒi(x,t) Eq.(I.3)
where ρ and u are, respectively, the fluid density and velocity.
The collective values of ci and wi define a LBM model. The LBM model can be implemented efficiently on scalable computer platforms and run with great robustness for time unsteady flows and complex boundary conditions.
A standard technique of obtaining the macroscopic equation of motion for a fluid system from the Boltzmann equation is the Chapman-Enskog method in which successive approximations of the full Boltzmann equation are taken. In a fluid system, a small disturbance of the density travels at the speed of sound. In a gas system, the speed of the sound is generally determined by the temperature. The importance of the effect of compressibility in a flow is measured by the ratio of the characteristic velocity and the sound speed, which is known as the Mach number.
For a further explanation of conventional LBM-based physical process simulation systems the reading is referred to US Patent Publication US-2016-0188768-A1, the entire contents of which are incorporated herein by reference.
Referring to
While
Referring now to
Referring now to
The system 10 starts 52 with a 3D curvilinear mesh, in which the curvilinear mesh has a layout in space that is given, so that all its vertex locations in space are known and specified. Let x be any spatial point in the 3-dimensional (3D) Euclidian space. The spatial points x are only defined 54 on sites (i.e., vertices) of the curvilinear mesh. Once the curvilinear mesh is given, (i.e., the ‘original’ curvilinear mesh {x}) all spatial locations xi on the mesh {x} are known.
The system 10 chooses 56 a coordinate system {q} that is a one-to-one mapping between the spatial points x and sites (q) on the curvilinear mesh. For any site x on the curvilinear mesh{x}, there is a unique value q associated with x, that is x=x(q) such that x is uniquely defined. The system 10 constructs the coordinate values of q on the mesh as follows:
For any site x(q), on the curvilinear mesh, the site's nearest neighbor site along the αth (α=1,2,3) coordinate curve in the positive or negative direction is a spatial point x±i. Due to this unique mapping x±α=x(q±α), where q±α is a unique coordinate value for the neighboring site, it is entirely possible to choose the spatial variation of q in such a way that q±α and q only differ in their αth coordinate component values by a constant distance (d0), q±α=(q±α1, q±α2, q±α3) and q±αβ−qβ=±d0δαβ where (α, β=1, 2, 3). The constant d0 is chosen in this example to be unity (1) without loss of generality.
Under this construction, the coordinate values {q} provided a simple, uniform 3D cubic Cartesian lattice structure with lattice spacing of unity (value of d0). This morphed “Cartesian” lattice {q} results from deformation (bending, twisting and stretching/compressing) of the original curvilinear mesh {x} in the Euclidian space. Thus, the topological structure of “Cartesian” lattice {q} is the same as the original curvilinear mesh {x}, but the resulting Cartesian lattice is on a non-Euclidian space.
When the curvilinear mesh is provided, the spatial locations of all vertices {x} on the mesh are specified and the distance from any one vertex to another vertex on the curvilinear mesh is also fully determined. A distance vector D±α (q) from a site x(q) to one of the site's neighbors x(q±α) (α=1; 2; 3) is defined as:
D±α(q)≡x(q±α)−x(q); α=1,2,3 (Equation 1)
For instance, D±1 (q)≡x(q1±1, q2, q3)−x(q1, q2, q3).
Due to spatial non-uniformity of a general curvilinear mesh, the spatial distance from one mesh site to its nearest neighbor site in general changes from location to location. In other words, D±α (q) is a function of q. Furthermore, the distance value in the positive direction along the αth coordinate curve is in general not equal to the distance value in the negative direction.
Explicitly, in terms of the distance vectors, Dα (q)≠−D−α (q). For example, according to the definition given by (Equation 1),
D−1(q)=x(q1−1,q2,q3)−x(q1,q2,q3)=−D1(q1−1,q2,q3)≠−D1(q)=−(x(q1+1,q2,q3)−x(q1,q2,q3)) Equation 2
the inequality only turns to an equality everywhere when the curvilinear mesh is a uniform Cartesian lattice (so that |Dα|=Const, independent of spatial coordinate valueq).
The system 10 can store 58 the constructed coordinate system for the selected curvilinear mesh.
Following concepts in basic differential geometry (Riemannian geometry), the system 10 constructs 60 tangent basis vectors along each of the coordinate directions
gα(q)=[Dα(q)−D−α(q)]/2; α=1,2,3 (Equation 3)
With such a construction, parity symmetry is achieved so that gα(q)=−g−α(q). Unlike a Cartesian coordinate system in Euclidian space, the basis tangent vectors gα(q)(α=1, 2, 3) of a curvilinear coordinate system are not orthonormal in general. That is, gα(
Therefore, the system 10 constructs 62 a corresponding metric tensor that is defined based on the above basis tangent vectors, as:
gαβ(q)≡gα(q)·gβ(q), α,β=1,2,3 (Equation 4)
as well as the volume J of the cell centered at x(q), as
J(q)≡(g1(q)×g2(q))·g3(q) (Equation 5)
and chooses a proper “handedness” so that J (q)>0, where J (q) is a constant in space for a uniform Bravais lattice. (Handedness as used herein refers to a direction convention (typically right hand rule) of a resulting vector as is typically referred to in vector analysis.) It can be verified that
g(q)=det[gαβ(q)]=J2(q) (Equation 6)
with det[gαβ(q)] being the determinant of the metric [gαβ(q)] tensor. The co-tangent basis vectors gα (q) (α=1, 2, 3) are constructed 64 as:
g1(q)≡g2(q)×g3(q)/J(q)
g2(q)≡g3(q)×g1(q)/J(q)
g3(q)≡g1(q)×g2(q)/J(q) (Equation 7)
The basis tangent vectors and the co-tangent vectors are orthonormal to each other, where δαβ is the Kronecker delta function.
Similarly, the inverse metric tensor is defined as:
gαβ(q)≡gα(q)·gβ(q), α,β=1,2,3 (Equation 8)
and the inverse matric tensor is the inverse of the metric tensor, [gαβ(q)]=[gαβ(q)]−1 or
Having the fundamental geometric quantities defined above, the lattice Boltzmann velocity vectors are introduced 66 on a general curvilinear mesh, similar to the velocity vectors on a standard Cartesian lattice.
ei(q)≡ciαgα(q) (Equation 9)
The constant number ciα is either a positive or negative integer or zero, and it is the αth component value of the three dimensional coordinate array ci≡(ci1, ci2, ci3). For example, in the so called D3Q19 the Greek indices runs from 0 to 18,
ciϵ{(0,0,0),(±1,0,0),(0±1,0),(0,0,±1),(±1,±1,0),(±1,0,±1),(0,±1,±1)}
A set of moment isotropy and normalization conditions are satisfied in order to recover the correct full Navier-Stokes hydrodynamics. These are, when exists a proper set of constant weights {ωi i=1, . . . b} the set of lattice component vectors admit moment isotropy up to the 6th order, namely
where T0 is a constant temperature and depends on the choice of a set of lattice vectors and δαβ is the Kronecker delta function. Note that the three dimensional array is ci whereas, ei (q) is the lattice vector of Equation 9.
A set of specific geometric quantities are defined for use with the LBM model, as
Θβα(q+ci,q)≡[gβ(q+ci)−gβ(q)]·gα(q) (Equation 11)
α,β=1,2,3; i=0,1, . . . ,b
the term Θβα(q+ci, q) vanishes when the mesh is a uniform Cartesian lattice.
Therefore, once the curvilinear mesh is specified, all the geometric quantities above are fully determined and the curvilinear mesh conforming to the physical object to be simulated can be stored 68, and because the geometric quantities
0 are fully determined these can be pre-computed before starting a dynamic LBM simulation (see
Referring to
Referring to
Referring now to
Referring now to
Referring now to
Referring now to
Volumetric Lattice Boltzmann Model on a Curvilinear Lattice
Described is a volumetric lattice Boltzmann model approach, and while this approach is generally applicable for various formulations, for an illustrative example, discussed will be a formulation for the so called “isothermal LBM.”
The modified distribution is similar to the standard distribution for evolution of particle distribution. The volumetric lattice Boltzmann model on a curvilinear lattice is provided as:
Ni(q+ci,t+1)=Ni(q,t)+Ωi(q,t)+δNi(q,t) Equation 12
where Ni(q, t) is the number of particles belong to the discrete direction ci in the cell q at time t for a unity increment of t without loss of generality. The term Ωα (q, t) in (Equation 12) is the collision term that satisfies local mass and momentum conservation equations:
The extra term δNi (q, t) in Eq. 12 represents the change of particle distribution due to an effective external force associated with the curvature and non-uniformity of the general curvilinear mesh. This extra term vanishes in the standard LBM on a Cartesian lattice.
The particle density distribution function is related to Ni(q, t) by
J(q)ƒi(q,t)=Ni(q,t) Equation 14
where J(q) is the volume of cell centered at q, as defined previously. The fundamental fluid quantities are given by the standard hydrodynamic moments,
where ρ(q, t) and u(q, t) are fluid density and velocity at the location q and time t. Using the relationship in (Eq. 9), the velocity moment above is rewritten as
and the velocity component value in the curvilinear coordinate system is given by,
For simplicity of notation, a three-dimensional fluid velocity array is defined as U(q, t)≡(U1(q, t), U2(q, t) U3(q, t)) is defined, and Eq. 17 is equivalently expressed as:
Eq. 18 has the same form for the fluid velocity as the standard Cartesian lattice based LBM. Similarly, the momentum conservation of the collision term in Eq. 13 can also be written as,
Often in LBM the collision term takes on a linearized form, where Mij and ƒi(q, t) represent a collision matrix and the equilibrium distribution function, respectively. In particular, the so called Bhatnagar-Gross-Krook (BGK) form corresponds to
with τ being the collision relaxation time. In order to recover the correct Navier-Stokes hydrodynamics, besides Eq. 13 and Eq. 19, the collision matrix needs to satisfy an additional condition.
The BGK form satisfies such an additional property. As mentioned above, the extra term δNi (q, t) in Equation 12 represents the change of particle distribution due to an effective external force associated with the curvature and non-uniformity of a general curvilinear mesh. This extra term vanishes in the standard LBM on a Cartesian lattice. The advection process is an exact one-to-one hop from one site in the curvilinear mesh to another as in the standard LBM, namely
Ni(q+ci,t+1)=Ni′(q,t) (Equation 22)
where Ni′(q, t) is the post-collide distribution at (q, t). Due to the curvilinear mesh, while the amount of particles advected from cell q is exactly equal to what arrives at cell q+ci (see Eq. 22), the momentum changes during the advection.
In general,
(ei(q+ci)Ni(q+ci,t+1))≠ei(q)Ni′(q,t).
In the above equation, the left side of the inequality sign is the momentum value at the end of an advection process while the right side is the value at the beginning of the process. The inequality exists because the path of particles is curved (as well as stretched or compressed) due to the curvilinear mesh, so that its velocity at the end of the advection is changed from its original value. This is fundamentally different from that on a uniform Cartesian lattice, in that the particles have a constant velocity throughout the advection process.
Consequently, the following inequalities are present in the overall momentum values,
where the right side of the unequal sign in (23) represents the total amount of momentum advected out of all the neighboring cells, while the left side is the total momentum arriving at cell q after advection along the curved paths. Thus from Eq. 22 and Eq. 23, the net momentum change via advection from all the neighboring cells into cell q is given by,
Likewise, the net momentum change via advection out of cell q to all its neighboring cells is given by
Subsequently, if constraints are imposed on δNi(q, t) below:
then the mass conservation is preserved and the exact momentum conservation is recovered, for the underlying Euclidian space. Here
x(q,t)=[xI(q,t)+xo(q,t)]/2
x(q,t)=[xI(q,t)+xo(q,t)]/2
More specifically, the first constraint in Eq. 26 has no mass source being introduced by δNi(q, t). The second constraint in Eq. 26 introduces an “inertial force” that equals exactly the amount satisfy momentum conservation in the underlying Euclidian space at any lattice site q and time t. The mechanism is analogous to the continuum kinetic theoretic description in a curved space. Writing in the coordinate component form as Fα(q, t)=X (q, t)·gα(q), where with a direct placement of symbols from the previous subsection, provides
where the geometric function ⊖βα(q+ci, q)Ni′ (q, t) is defined in (Eq. 11). From (2) and (11), one sees that Fα(q, t) vanishes if the curvilinear mesh is a regular uniform Cartesian lattice, as in conventional LBM. The second constraint in (26) can also be expressed in coordinate component form as
In order to recover the full viscous Navier-Stokes equation, an additional constraint on the momentum flux also needs is imposed below,
A specific form of SN (q, t) is chosen as:
The equation satisfies the moment constraints of Equations 26, 28, and 29. The form of the equilibrium distribution function is defined in order to recover the correct Euler equation as well as the Navier-Stokes equation in curvilinear coordinates in the hydrodynamic limit. In particular, the following fundamental conditions on hydrodynamic moments are:
where in the above,
These fundamental conditions are met by the following equilibrium distribution form:
The equilibrium distribution form above is analogous to that of a low Mach number expansion of the Maxwell-Boltzmann distribution, but is expressed in curvilinear coordinates. Indeed, equilibrium distribution form above reduces to the standard LBM equilibrium distribution if the curvilinear mesh is a uniform Cartesian lattice with gαβ=δαβ. With all the quantities and dynamics defined above, the lattice Boltzmann Eq. 12 simulated on the (non-Euclidian) uniform Cartesian lattice {q} obeys the Navier-Stokes hydrodynamics with curvilinear coordinates. Therefore, mapping the resulting values can be mapped onto the original curvilinear mesh by a simple translation below,
ρ(x,t)=ρ(q,t),
u(x,t)=Uα(q,t)gα(q) Equation 34
Cartesian Coordinates in Non-Euclidian Velocity Space
The morphed “Cartesian” lattice {q} that results from deformation (bending, twisting and stretching/compressing) the original curvilinear mesh {x} in the Euclidian space can be used in simulation fluids flows about physical bodies in the same manner as conventional Cartesian lattice (x) for the LBM provided that upon advection in the topological structure of the non-Euclidian space “Cartesian” lattice {q} constraints are applied to particle momentum, as discussed above to return the general curvilinear mesh in Euclidian space.
Referring to
As also illustrated in
More complex models, such as a 3D-2 model includes 101 velocities and a 2D-2 model includes 37 velocities also may be used.
For the three-dimensional model 3D-2, of the 101 velocities, one represents particles that are not moving (Group 1); three sets of six velocities represent particles that are moving at either a normalized speed (r), twice the normalized speed (2r), or three times the normalized speed (3r) in either the positive or negative direction along the x, y or z axis of the lattice (Groups 2, 4, and 7); three sets of eight represent particles that are moving at the normalized speed (r), twice the normalized speed (2r), or three times the normalized speed (3r) relative to all three of the x, y, z lattice axes (Groups 3, 8, and 10); twelve represent particles that are moving at twice the normalized speed (2r) relative to two of the x, y, z lattice axes (Group 6); twenty four represent particles that are moving at the normalized speed (r) and twice the normalized speed (2r) relative to two of the x, y, z lattice axes, and not moving relative to the remaining axis (Group 5); and twenty four represent particles that are moving at the normalized speed (r) relative to two of the x, y, z lattice axes and three times the normalized speed (3r) relative to the remaining axis (Group 9).
For the two-dimensional model 2D-2, of the 37 velocities, one represents particles that are not moving (Group 1); three sets of four velocities represent particles that are moving at either a normalized speed (r), twice the normalized speed (2r), or three times the normalized speed (3r) in either the positive or negative direction along either the x or y axis of the lattice (Groups 2, 4, and 7); two sets of four velocities represent particles that are moving at the normalized speed (r) or twice the normalized speed (2r) relative to both of the x and y lattice axes; eight velocities represent particles that are moving at the normalized speed (r) relative to one of the x and y lattice axes and twice the normalized speed (2r) relative to the other axis; and eight velocities represent particles that are moving at the normalized speed (r) relative to one of the x and y lattice axes and three times the normalized speed (3r) relative to the other axis.
The LBM models described above provide a specific class of efficient and robust discrete velocity kinetic models for numerical simulations of flows in both two- and three-dimensions. A model of this kind includes a particular set of discrete velocities and weights associated with those velocities. The velocities coincide with grid points of Cartesian coordinates (in non-Euclidian space) in velocity space which facilitates accurate and efficient implementation of discrete velocity models, particularly the kind known as the lattice Boltzmann models. Using such models, flows can be simulated with high fidelity.
Referring to
The resolution of the lattice may be selected based on the Reynolds number of the system being simulated. The Reynolds number is related to the viscosity (v) of the flow, the characteristic length (L) of an object in the flow, and the characteristic velocity (u) of the flow:
Re=uL/v. Eq.(I.5)
The characteristic length of an object represents large scale features of the object. For example, if flow around a micro-device were being simulated, the height of the micro-device might be considered to be the characteristic length. When flow around small regions of an object (e.g., the side mirror of an automobile) is of interest, the resolution of the simulation may be increased, or areas of increased resolution may be employed around the regions of interest. The dimensions of the voxels decrease as the resolution of the lattice increases.
The state space is represented as ƒi (x, t), where ƒi represents the number of elements, or particles, per unit volume in state i (i.e., the density of particles in state i) at a lattice site denoted by the three-dimensional vector x at a time t. For a known time increment, the number of particles is referred to simply as ƒi (x). The combination of all states of a lattice site is denoted as ƒ(x).
The number of states is determined by the number of possible velocity vectors within each energy level. The velocity vectors consist of integer linear speeds in a space having three dimensions: x, y, and z. The number of states is increased for multiple-species simulations.
Each state i represents a different velocity vector at a specific energy level (i.e., energy level zero, one or two). The velocity ci of each state is indicated with its “speed” in each of the three dimensions as follows:
ci=(cix,ciy,ciz). Eq.(I.6)
The energy level zero state represents stopped particles that are not moving in any dimension, i.e. cstopped=(0, 0, 0). Energy level one states represents particles having a ±1 speed in one of the three dimensions and a zero speed in the other two dimensions. Energy level two states represent particles having either a ±1 speed in all three dimensions, or a ±2 speed in one of the three dimensions and a zero speed in the other two dimensions.
Generating all of the possible permutations of the three energy levels gives a total of 39 possible states (one energy zero state, 6 energy one states, 8 energy three states, 6 energy four states, 12 energy eight states and 6 energy nine states).
Each voxel (i.e., each lattice site) is represented by a state vector ƒ(x). The state vector completely defines the status of the voxel and includes 39 entries. The 39 entries correspond to the one energy zero state, 6 energy one states, 8 energy three states, 6 energy four states, 12 energy eight states and 6 energy nine states. By using this velocity set, the system can produce Maxwell-Boltzmann statistics for an achieved equilibrium state vector.
For processing efficiency, the voxels are grouped in 2×2×2 volumes called microblocks. The microblocks are organized to permit parallel processing of the voxels and to minimize the overhead associated with the data structure. A short-hand notation for the voxels in the microblock is defined as Ni (n), where n represents the relative position of the lattice site within the microblock and nϵ{0, 1, 2, . . . , 7}. A microblock is illustrated in
Referring to
S={Fα} Eq.(I.7)
where α is an index that enumerates a particular facet. A facet is not restricted to the voxel boundaries, but is typically sized on the order of or slightly smaller than the size of the voxels adjacent to the facet so that the facet affects a relatively small number of voxels. Properties are assigned to the facets for the purpose of implementing surface dynamics. In particular, each facet Fα has a unit normal (nα), a surface area (Aα), a center location (xα), and a facet distribution function (ƒi(α)) that describes the surface dynamic properties of the facet.
Referring to
C. Identify Voxels Affected By Facets
Referring again to
Voxels that interact with one or more facets by transferring particles to the facet or receiving particles from the facet are also identified as voxels affected by the facets. All voxels that are intersected by a facet will include at least one state that receives particles from the facet and at least one state that transfers particles to the facet. In most cases, additional voxels also will include such states.
Referring to
Viα=|cinα|Aα Eq.(I.8)
The facet Fα receives particles from the volume Viα when the velocity vector of the state is directed toward the facet (|ci ni|<0), and transfers particles to the region when the velocity vector of the state is directed away from the facet (|cini|>0). As will be discussed below, this expression must be modified when another facet occupies a portion of the parallelepiped Giα, a condition that could occur in the vicinity of non-convex features such as interior corners.
The parallelepiped G1a of a facet Fα may overlap portions or all of multiple voxels. The number of voxels or portions thereof is dependent on the size of the facet relative to the size of the voxels, the energy of the state, and the orientation of the facet relative to the lattice structure. The number of affected voxels increases with the size of the facet. Accordingly, the size of the facet, as noted above, is typically selected to be on the order of or smaller than the size of the voxels located near the facet.
The portion of a voxel N(x) overlapped by a parallelepiped Giα is defined as Viα(x). Using this term, the flux Γiα(x) of state i particles that move between a voxel N(x) and a facet Fα equals the density of state i particles in the voxel (Ni(x)) multiplied by the volume of the region of overlap with the voxel (Viα(x)):
Γiα(x)=Ni(x)Viα(x). Eq.(I.9)
When the parallelepiped Giα is intersected by one or more facets, the following condition is true:
Viα=ΣVα(x)+ΣViα(β) Eq.(I.10)
where the first summation accounts for all voxels overlapped by Giα and the second term accounts for all facets that intersect Giα. When the parallelepiped Giα is not intersected by another facet, this expression reduces to:
Viα=ΣViα(x). Eq.(I.11)
D. Perform Simulation Once the voxels that are affected by one or more facets are identified (step 304), a timer is initialized to begin the simulation (step 306). During each time increment of the simulation, movement of particles from voxel to voxel is simulated by an advection stage (steps 308-316) that accounts for interactions of the particles with surface facets. Next, a collision stage (step 318) simulates the interaction of particles within each voxel. Thereafter, the timer is incremented (step 320). If the incremented timer does not indicate that the simulation is complete (step 322), the advection and collision stages (steps 308-320) are repeated. If the incremented timer indicates that the simulation is complete (step 322), results of the simulation are stored and/or displayed (step 324).
1. Boundary Conditions For Surface
To correctly simulate interactions with a surface, each facet must meet four boundary conditions. First, the combined mass of particles received by a facet must equal the combined mass of particles transferred by the facet (i.e., the net mass flux to the facet must equal zero). Second, the combined energy of particles received by a facet must equal the combined energy of particles transferred by the facet (i.e., the net energy flux to the facet must equal zero). These two conditions may be satisfied by requiring the net mass flux at each energy level (i.e., energy levels one and two) to equal zero.
The other two boundary conditions are related to the net momentum of particles interacting with a facet. For a surface with no skin friction, referred to herein as a slip surface, the net tangential momentum flux must equal zero and the net normal momentum flux must equal the local pressure at the facet. Thus, the components of the combined received and transferred momentums that are perpendicular to the normal nα of the facet (i.e., the tangential components) must be equal, while the difference between the components of the combined received and transferred momentums that are parallel to the normal nα of the facet (i.e., the normal components) must equal the local pressure at the facet. For non-slip surfaces, friction of the surface reduces the combined tangential momentum of particles transferred by the facet relative to the combined tangential momentum of particles received by the facet by a factor that is related to the amount of friction.
2. Gather From Voxels to Facets
As a first step in simulating interaction between particles and a surface, particles are gathered from the voxels and provided to the facets (step 308). As noted above, the flux of state i particles between a voxel N(x) and a facet Fα is:
Γiα(x)=Ni(x)Viα(x). Eq.(I.12)
From this, for each state i directed toward a facet Fα (cinα<0), the number of particles provided to the facet Fα by the voxels is:
ΓiαV→F=ΣXΓiα(x)=ΣXNi(x)Viα(x) Eq.(I.13)
Only voxels for which Viα (x) has a non-zero value must be summed. As noted above, the size of the facets is selected so that Viα (x) has a non-zero value for only a small number of voxels. Because Viα (x) and Pf (x) may have non-integer values, Γα (x) is stored and processed as a real number.
3. Move from Facet to Facet
Next, particles are moved between facets (step 310). If the parallelepiped Giα for an incoming state (cinα<0) of a facet Fα is intersected by another facet Fβ, then a portion of the state i particles received by the facet Fα will come from the facet Fβ. In particular, facet Fα will receive a portion of the state i particles produced by facet Fβ during the previous time increment. This relationship is illustrated in
Γiα(β,t−1)=Γi(β)Viα(β)/Viα Eq.(I.14)
where Γi(β,t−1) is a measure of the state i particles produced by the facet Fβ during the previous time increment. From this, for each state i directed toward a facet Fα (ci nα<0), the number of particles provided to the facet Fα by the other facets is:
ΓiαF→F=ΣβΓiα(β)=ΣβΓi(β,t−1)Viα(β)/Viα Eq.(I.15)
and the total flux of state i particles into the facet is:
ΓiIN(α)=ΓiαF→F+ΓiαF→F=ΣxNi(x)Viα+ΣβΓi(β,t−1)Viα(β)/Viα Eq.(I.16)
The state vector N(α) for the facet, also referred to as a facet distribution function, has M entries corresponding to the M entries of the voxel states vectors. M is the number of discrete lattice speeds. The input states of the facet distribution function N(α) are set equal to the flux of particles into those states divided by the volume Viα:
Ni(α)=ΓiIN(α)/Viα Eq.(1.17)
for ci nα<0.
The facet distribution function is a simulation tool for generating the output flux from a facet, and is not necessarily representative of actual particles. To generate an accurate output flux, values are assigned to the other states of the distribution function. Outward states are populated using the technique described above for populating the inward states:
Ni(α)=ΓiOTHER(α)/Viα Eq.(I.18)
for ci nα≥0, wherein ΓiOTHER (α) is determined using the technique described above for generating ΓiIN (α), but applying the technique to states (ci nα≥0) other than incoming states (ci nα<0)). In an alternative approach, ΓiOTHER (α) may be generated using values of ΓiOUT (α) from the previous time step so that:
ΓiOTHER(α,t)=ΓiOUT(α,t−1). Eq.(I.19)
For parallel states (cinα=0), both Viα and Viα(x) are zero. In the expression for Ni (α), Viα (x) appears in the numerator (from the expression for ΓiOTHER (α) and Viα appears in the denominator (from the expression for Ni (α)). Accordingly, Ni (α) for parallel states is determined as the limit off Ni(α) as Viα and Viα(x) approach zero. The values of states having zero velocity (i.e., rest states and states (0, 0, 0, 2) and (0, 0, 0, −2)) are initialized at the beginning of the simulation based on initial conditions for temperature and pressure. These values are then adjusted over time.
4. Perform Facet Surface Dynamics
Next, surface dynamics are performed for each facet to satisfy the four boundary conditions discussed above (step 312). A procedure for performing surface dynamics for a facet is illustrated in
P(α)=Σici*Niα Eq.(1.20)
for all i. From this, the normal momentum Pn (α) is determined as:
Pn(α)=nα·P(α). Eq.(I.21)
This normal momentum is then eliminated using a pushing/pulling technique (step 1110) to produce Nn-(α). According to this technique, particles are moved between states in a way that affects only normal momentum. The pushing/pulling technique is described in U.S. Pat. No. 5,594,671, which is incorporated by reference.
Thereafter, the particles of Nn-(α) are collided to produce a Boltzmann distribution Nn-β (α) (step 1115). As described below with respect to performing fluid dynamics, a Boltzmann distribution may be achieved by applying a set of collision rules to Nn-(α).
An outgoing flux distribution for the facet Fα is determined (step 1120) based on the incoming flux distribution and the Boltzmann distribution. First, the difference between the incoming flux distribution Γi (α) and the Boltzmann distribution is determined as:
ΔΓi(α)=ΓiIN(α)−Nn-βi(α)Viα Eq.(I.22)
Using this difference, the outgoing flux distribution is:
ΓiOUT(α)=Nn-βi(α)Viα−.Δ.Γi*(α), Eq.(I.23)
for nαci>0 and where i* is the state having a direction opposite to state i. For example, if state i is (1, 1, 0, 0), then state i* is (−1, −1, 0, 0). To account for skin friction and other factors, the outgoing flux distribution may be further refined to:
ΓiOUT(α)=Nn-Bi(α)Viα−ΔΓi*(α)+Cf(nα·ci)−[Nn-βi*(α)−Nn-βi(α)]Viα+(nα·ci)(t1α·ci)ΔNj,1Viα+(nα·ci)(t2α·ci)ΔNj,2Viα Eq.(1.24)
for nαci>0, where Cf is a function of skin friction, tiα is a first tangential vector that is perpendicular to nα, t2α, is a second tangential vector that is perpendicular to both nα and t1α, and ΔNj,1 and ΔNj,2 are distribution functions corresponding to the energy (j) of the state i and the indicated tangential vector. The distribution functions are determined according to:
where j equals 1 for energy level 1 states and 2 for energy level 2 states.
The functions of each term of the equation for ΓiOUT (α) are as follows. The first and second terms enforce the normal momentum flux boundary condition to the extent that collisions have been effective in producing a Boltzmann distribution, but include a tangential momentum flux anomaly. The fourth and fifth terms correct for this anomaly, which may arise due to discreteness effects or non-Boltzmann structure due to insufficient collisions. Finally, the third term adds a specified amount of skin fraction to enforce a desired change in tangential momentum flux on the surface. Generation of the friction coefficient Cf is described below. Note that all terms involving vector manipulations are geometric factors that may be calculated prior to beginning the simulation.
From this, a tangential velocity is determined as:
ui(α)=(P(α)−Pn(α)nα)/ρ, Eq.(1.26)
where ρ is the density of the facet distribution:
As before, the difference between the incoming flux distribution and the Boltzmann distribution is determined as:
ΔΓi(α)=ΓiIN(α)−Nn-βi(α)Viα. Eq.(I.28)
The outgoing flux distribution then becomes:
ΓiOUT(α)=Nn-βi(α)Viα−ΔΓi*(α)+Cf(nαci)[Nn-βi*(α)−Nn-βi(α)]Viα, Eq.(I.29)
which corresponds to the first two lines of the outgoing flux distribution determined by the previous technique but does not require the correction for anomalous tangential flux.
Using either approach, the resulting flux-distributions satisfy all of the momentum flux conditions, namely:
where pα is the equilibrium pressure at the facet Fα and is based on the averaged density and temperature values of the voxels that provide particles to the facet, and uα is the average velocity at the facet.
To ensure that the mass and energy boundary conditions are met, the difference between the input energy and the output energy is measured for each energy level j as:
where the index j denotes the energy of the state i. This energy difference is then used to generate a difference term:
for cjinα>0. This difference term is used to modify the outgoing flux so that the flux becomes:
ΓajiOUTf=ΓαjiOUT+δΓαji Eq.(I.33)
for cjinα>0. This operation corrects the mass and energy flux while leaving the tangential momentum flux unaltered. This adjustment is small if the flow is approximately uniform in the neighborhood of the facet and near equilibrium. The resulting normal momentum flux, after the adjustment, is slightly altered to a value that is the equilibrium pressure based on the neighborhood mean properties plus a correction due to the non-uniformity or non-equilibrium properties of the neighborhood.
5. Move From Voxels to Voxels
Referring again to
Each of the separate states represents particles moving along the lattice with integer speeds in each of the three dimensions: x, y, and z. The integer speeds include: 0, ±1, and +2. The sign of the speed indicates the direction in which a particle is moving along the corresponding axis.
For voxels that do not interact with a surface, the move operation is computationally quite simple. The entire population of a state is moved from its current voxel to its destination voxel during every time increment. At the same time, the particles of the destination voxel are moved from that voxel to their own destination voxels. For example, an energy level 1 particle that is moving in the +1x and +1y direction (1, 0, 0) is moved from its current voxel to one that is +1 over in the x direction and 0 for other direction. The particle ends up at its destination voxel with the same state it had before the move (1,0,0). Interactions within the voxel will likely change the particle count for that state based on local interactions with other particles and surfaces. If not, the particle will continue to move along the lattice at the same speed and direction.
The move operation becomes slightly more complicated for voxels that interact with one or more surfaces. This can result in one or more fractional particles being transferred to a facet. Transfer of such fractional particles to a facet results in fractional particles remaining in the voxels. These fractional particles are transferred to a voxel occupied by the facet.
Referring to
where N(x) is the source voxel.
6. Scatter From Facets to Voxels
Next, the outgoing particles from each facet are scattered to the voxels (step 316). Essentially, this step is the reverse of the gather step by which particles were moved from the voxels to the facets. The number of state i particles that move from a facet Fα to a voxel N(x) is:
where Pf(x) accounts for the volume reduction of partial voxels. From this, for each state i, the total number of particles directed from the facets to a voxel N(x) is:
After scattering particles from the facets to the voxels, combining them with particles that have advected in from surrounding voxels, and integerizing the result, it is possible that certain directions in certain voxels may either underflow (become negative) or overflow (exceed 255 in an eight-bit implementation). This would result in either a gain or loss in mass, momentum and energy after these quantities are truncated to fit in the allowed range of values. To protect against such occurrences, the mass, momentum and energy that are out of bounds are accumulated prior to truncation of the offending state. For the energy to which the state belongs, an amount of mass equal to the value gained (due to underflow) or lost (due to overflow) is added back to randomly (or sequentially) selected states having the same energy and that are not themselves subject to overflow or underflow. The additional momentum resulting from this addition of mass and energy is accumulated and added to the momentum from the truncation. By only adding mass to the same energy states, both mass and energy are corrected when the mass counter reaches zero. Finally, the momentum is corrected using pushing/pulling techniques until the momentum accumulator is returned to zero.
7. Perform Fluid Dynamics
Fluid dynamics are performed (step 318)
The fluid dynamics is ensured in the lattice Boltzmann equation models by a particular collision operator known as the BGK collision model. This collision model mimics the dynamics of the distribution in a real fluid system. The collision process can be well described by the right-hand side of Equation I.1 and Equation I.2. After the advection step, the conserved quantities of a fluid system, specifically the density, momentum and the energy are obtained from the distribution function using Equation I.3. From these quantities, the equilibrium distribution function, noted by ƒeq in equation (I.2), is fully specified by Equation (I.4). The choice of the velocity vector set ci, the weights, both are listed in Table 1, together with Equation I.2 ensures that the macroscopic behavior obeys the correct hydrodynamic equation.
E. Variable Resolution
Referring to
When variable resolution is employed at or near a surface, facets may interact with voxels on both sides of the VR interface. These facets are classified as VR interface facets 1215 (FαIC) or VR fine facets 1220 (FαIF). A VR interface facet 1215 is a facet positioned on the coarse side of the VR interface and having a coarse parallelepiped 1225 extending into a fine voxel. (A coarse parallelepiped is one for which ci is dimensioned according to the dimensions of a coarse voxel, while a fine parallelepiped is one for which ci is dimensioned according to the dimensions of a fine voxel.) A VR fine facet 1220 is a facet positioned on the fine side of the VR interface and having a fine parallelepiped 1230 extending into a coarse voxel. Processing related to interface facets may also involve interactions with coarse facets 1235 (FαC) and fine facets 1240 (FαF).
For both types of VR facets, surface dynamics are performed at the fine scale, and operate as described above. However, VR facets differ from other facets with respect to the way in which particles advect to and from the VR facets.
A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the claims. Accordingly, other implementations are within the scope of the following claims.
Number | Name | Date | Kind |
---|---|---|---|
5594671 | Chen et al. | Jan 1997 | A |
5910902 | Molvig | Jun 1999 | A |
7542885 | Majumdar | Jun 2009 | B1 |
11544423 | Chen | Jan 2023 | B2 |
20100169062 | Linn et al. | Jul 2010 | A1 |
20100185420 | Ding | Jul 2010 | A1 |
20100250205 | Velazquez Lopez | Sep 2010 | A1 |
20110196656 | Yu | Aug 2011 | A1 |
20110268147 | Bornoff et al. | Nov 2011 | A1 |
20110289043 | Suresh et al. | Nov 2011 | A1 |
20130151221 | Chen et al. | Jun 2013 | A1 |
20130246024 | Rodriguez | Sep 2013 | A1 |
20140136159 | Chen | May 2014 | A1 |
20150356217 | Chen et al. | Dec 2015 | A1 |
20160188768 | Gopalakrishnan et al. | Jun 2016 | A1 |
20160321384 | Pal | Nov 2016 | A1 |
20200050715 | Krishnamurthy et al. | Feb 2020 | A1 |
20200394277 | Krishnamurthy et al. | Dec 2020 | A1 |
Number | Date | Country |
---|---|---|
2013-037434 | Feb 2013 | JP |
2015-507778 | Mar 2015 | JP |
2016-534436 | Nov 2016 | JP |
Entry |
---|
Ambrus et al., “High-order quadrature-based lattice Boltzmann models for the f low of ultrarelativistic rarefied gases,” Phys. Rev., Sep. 2018, 98:035201. |
Bardow et al., “General characteristic-based algorithm for off-lattice Boltzmann simulations,” EPL (Europhysics Letters) 75, No. 3 , Aug. 1, 2006, 434-440. |
Bo et al., “Numerical simulation of thermal flow of power-law fluids using lattice Boltzmann method on non-orthogonal grids”, International J. of Heat and Mass Transfer, May 2018, 126:293-305. |
Chen, “Volumetric formulation of the lattice Boltzmann method for fluid dynamics: Basic concept,” Physical Review E 58, No. 3, Mar. 25, 1998, pp. 3955-3963. |
Extended European Search Report in EP Appln. No. 19218794.6, dated May 12, 2020, 6 pages. |
Extended European Search Report in EP Appln. No. 20179651.3, dated Nov. 5, 2020, 12 pages. |
Guo and Zhao, “Explicit finite-difference lattice Boltzmann method for curvilinear coordinates,” Phys. Rev. E., 2003, 67(6):066709, 12 pages. |
Imamura et al., “Acceleration of steady-state lattice Boltzmann simulations on non-uniform mesh using local time step method,” Journal of Computational Physics 202, No. 2, Sep. 15, 2004, pp. 645-663. |
McNamara et al., “Stabilization of Thermal Lattice Boltzmann Models,” Journal of Statistical Physics 81, No. 1,: 395-408. |
McNamara et al., “Stabilization of thermal lattice Boltzmann models. Journal of Statistical Physics,” Oct. 1, 1995, 81(1-2):395-408. |
Mirzaei et al., “Simulation of fluid flow in a body-fitted grid system using the lattice Boltzmann method,” Physical Review, Jun. 28, 2013, 87(6):1-9. |
Zarghami et al., “Lattice Boltzmann Finite Volume Formulation with Improved Stability,” Jan. 16, 2012, Communications in Computational Physics 12, No. 1, 42-64. |
Zhang et al., “Effective volumetric lattice Boltzmann scheme,” Apr. 24, 2001, Physical review E. vol. 63, No. 5056705, 6 pages. |
Office Action in Japanese Appln. No. 2020000221, dated Jul. 18, 2023, 4 pages. |
Number | Date | Country | |
---|---|---|---|
20230108734 A1 | Apr 2023 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16236799 | Dec 2018 | US |
Child | 18074646 | US |