Lattice Boltzmann solver for total energy conservation
By using the modified state vector set and the second distribution function in the lattice Boltzmann method, the total energy conservation problem when simulating compressible flow is solved, the stability and accuracy of fluid flow simulation are improved, and it is suitable for high-speed flow and complex boundary conditions.
Patent Information
- Application Number
- CN202010026293.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-10
- Filing Date
- 2020-01-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-01-10
AI Technical Summary
Existing lattice Boltzmann methods have difficulty achieving total energy conservation when simulating compressible flows, leading to computational complexity and stability issues, especially under high-speed flows and complex boundary conditions.
By using the modified state vector set and the second distribution function in the computer simulation, combined with the collision and advection processes, the conservation and balance of the total energy are achieved, and specific collision operators and equilibrium distribution functions are used to handle the pressure convection term to ensure energy conservation and Momentum consistency.
It improves the stability and accuracy of fluid flow simulations, especially under high-speed flows and complex boundary conditions, and can effectively recover the total energy and pressure gradient, making it suitable for real-world applications.
Smart Images

Figure CN111428423B_ABST
Abstract
Description
[0001] Priority claim
[0002] This application claims priority under 35 USC §119(e) to U.S. Provisional Patent Application No. 62 / 790,528, filed on January 10, 2019, entitled “LATTICEBOLTZMANN SOLVER ENFORMCING TOTAL ENERGY CONSERVE SERVICE,” the entire contents of which are incorporated herein by reference. Background Art
[0003] The present description relates to computer simulations of physical processes such as physical fluid flow.
[0004] The so-called "Lattice Boltzmann Method" (LBM) is an advantageous technique used in computational fluid dynamics. The underlying dynamics of a lattice Boltzmann system lies in the basic physics of kinetic theory, which involves the motion of many particles according to the Boltzmann equation. There are two basic dynamical processes in the basic Boltzmann dynamics system - collision and advection. The collision process involves the interaction between particles that obey conservation laws and relax to equilibrium. The advection process involves modeling the movement of particles from one location to another according to their microscopic velocities.
[0005] For compressible flows, a single distribution function is typically used to satisfy conservation of mass, momentum, and total energy. If a single distribution function is used to solve for all three quantities, the lattice used for the LBM should satisfy moments up to the eighth order. In this case, as the moment requirements increase, a large amount of lattice velocity is required, and the resulting template size also increases. Other considerations involved in using a single particle distribution function include distribution function stability, boundary conditions for both momentum and energy, considerations regarding body forces and heat sources, and so on. Summary of the invention
[0006] According to one aspect, a method for simulating fluid flow on a computer, wherein the simulation implements conservation of total energy, includes simulating the behavior of a fluid on a grid, the behavior of the fluid being simulated so as to model the movement of particles on the grid, storing a set of state vectors for each grid position in the grid in a computer-accessible memory, each state vector including a plurality of entries corresponding to a particular momentum state among possible momentum states at the corresponding grid position, calculating, by the computer, a set of energy values for the grid positions in the grid, performing, by the computer, advection of particles to subsequent grid positions for time intervals, and modifying, by the computer, the state vector of the particle by adding a particular total energy value to the state of the advected particle and subtracting the particular total energy value from the state of the particle that was not advected during the time interval.
[0007] Aspects also include a computer program product, one or more machine-readable hardware storage devices, apparatus, and computing systems.
[0008] Among the features described herein, one or more of the above aspects may include one or more of the following features.
[0009] After the particle is advected to the subsequent grid position according to the revised set of states, this aspect includes adding the local pressure term back to the particle state to provide the appropriate pressure gradient before computing the moments The local pressure term includes θ-1 terms calculated by a computer. The activity of simulating fluid flow includes simulating fluid flow based in part on a first discrete lattice rate set. The method also includes simulating a time evolution of a scalar based in part on a second discrete lattice rate set. The second discrete lattice rate set is the same as the first discrete lattice rate set. The number of lattice rates of the second discrete lattice rate set is different from the first discrete lattice rate set. Simulating the time evolution of total energy includes collecting incoming distributions from neighboring grid locations for collision and energy operators, weighting the incoming distributions, determining an outgoing distribution that is a product of the collision and energy operators, and propagating the determined outgoing distribution.
[0010] Simulating the time evolution of a scalar includes simulating the time evolution of a scalar based in part on a collision operator that effectively expresses the momentum flux resulting from the product of the collision and energy operators as a first-order term. In order to recover the exact shear stress for any Prandtl number, the energy collision term is given by:
[0011]
[0012] Where Π=Σ i c i c i (f i -fi eq is the filtered second-order moment of the unbalanced component.
[0013] The aspect also includes applying a zero net surface flux boundary condition such that the incoming distribution is equal to the determined outgoing distribution. Determining the outgoing distribution includes determining the outgoing distribution to provide a zero surface scalar flux. The scalar includes a scalar selected from the group consisting of temperature, concentration, and density. Calculating a set of energy values for a grid location in the grid includes calculating a value determined by E t =E+v 2 / 2 gives the total energy E t , where E is energy and ν is velocity.
[0014] The simulation consists of a computer program that calculates the total energy E t Apply the equilibrium distribution and the second distribution function, where the second distribution is defined as follows: i The second distribution function takes into account f i The non-equilibrium contribution to the energy equation is given by:
[0015]
[0016]
[0017] The term Ω f ,Ω q represents the corresponding collision operator; the equilibrium distribution used in the above equation is:
[0018]
[0019]
[0020] The total energy is added before advection, so that the pressure is advected, and to compensate for the added energy, energy is removed from the stopped state. Removing the added energy conserves the total energy and provides the correct pressure velocity term. By correcting the stopped state so that Increased energy removal may be provided.
[0021] In the techniques disclosed herein, solving for total energy uses a second distribution of a specific scalar that is defined as advected along with the flow distribution. The techniques described herein for simulating fluid flow use a lattice Boltzmann (LB) method and a scalar solver transport equation. An LBM solver for compressible flow with total energy conservation and higher stability range is provided, which can be used in real world applications. During collision, the equilibrium distribution adopted in the solver is positive, and temperature coupling is performed during advection.
[0022] Other features and advantages will become apparent from the following description, including the drawings and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A system for fluid flow simulation is depicted.
[0024] Figure 2-3 A flow chart is depicted showing operations for complex fluid flow simulation and total energy calculation.
[0025] Figure 4-6 It is an illustrative comparison of expected and predicted results based on calculations.
[0026] 7 and 8 illustrate the velocity components of two LBM models (prior art).
[0027] Fig. 9 It is a flow chart of the process followed by the physical process simulation system.
[0028] FIG. 10 is a perspective view of a microblock (prior art).
[0029] 11A and 11B are Figure 1 Illustration of a lattice structure used in a system of (prior art).
[0030] 12 and 13 illustrate variable resolution techniques (prior art).
[0031] FIG. 14 illustrates a parallelepiped that helps to understand the interaction of particles with panels.
[0032] FIG. 15 illustrates the movement of particles from a voxel to a surface (prior art).
[0033] Figure 16 illustrates the movement of particles from surface to surface (prior art).
[0034] 17 is a flow chart of a process for performing surface dynamics (prior art).
[0035] 18 is a process for generating a distribution function having a thermodynamic step independent of the particle collision step (prior art flow chart). DETAILED DESCRIPTION
[0036] Below Fig. 9 In the procedure discussed in , the flow simulation process using a lattice Boltzmann solver that implements total energy conservation is described.
[0037] In Figures 7, 8, and 10-18, these figures are labeled "Prior Art". These figures are labeled as prior art because these figures generally appear in the patents cited above. However, these figures are as they appear in the patent applications cited above. However, these figures do not take into account any modifications to the flow simulation using a lattice Boltzmann solver that achieves total energy conservation as described below, because the LB solver is not described in the patent applications cited above.
[0038] A. Methods for solving scalar quantities
[0039] When performing complex fluid flow simulations, it may be beneficial to solve for scalar quantities (e.g., temperature distribution, concentration distribution, and / or density) in conjunction with solving for the fluid flow. In the systems and methods described herein, modeling of scalar quantities (as opposed to vector quantities) is coupled with modeling of fluid flow based on a physical process simulation system based on LBM. Exemplary scalar quantities that may be modeled include temperature, concentration, and density.
[0040] Specific details of the technique for coupling scalar modeling with simulated fluid flow are described in detail in co-pending U.S. Patent Publication US-2016-0188768-A1 to Pradeep Gopalakrishnan et al., entitled: "Temperature Coupling Algorithm for Hybrid Thermal Lattice Boltzmann Method," which is incorporated herein by reference in its entirety. A collision operator based on a Galilean invariant collision operator with a relatively high stability range is used. Specific details of the collision operator are described in detail in U.S. Patent 9,576,087, which is incorporated herein by reference in its entirety.
[0041] For example, the system can be used to determine the convective temperature distribution within a system. For example, if the system (formed by a volume represented by multiple voxels) includes a heat source, and there is airflow within the system, then some areas of the system will be hotter than other areas depending on the airflow and proximity to the heat source. To model this situation, the temperature distribution within the system can be represented as a scalar, where each voxel has an associated temperature.
[0042] In another example, the system can be used to determine the chemical distribution within a system. For example, if the system (formed by a volume represented by multiple voxels) includes a source of contaminants, such as a dirty bomb or chemicals or other particles suspended in air or liquid, and there is air or liquid flow within the system, some areas of the system will have higher concentrations than other areas based on the flow and proximity to the source. To model this situation, the chemical distribution within the system can be represented as a scalar, where each voxel has an associated concentration.
[0043] In some applications, multiple different scalar quantities can be simulated simultaneously. For example, the system can simulate both the temperature distribution and the concentration distribution in the system.
[0044] Scalars can be modeled in different ways. For example, the lattice Boltzmann (LB) method for solving scalar transport equations can be used to solve scalar transport indirectly. For example, the method described in this article can provide an indirect solution to the following second-order macroscopic scalar transport equation:
[0045]
[0046] In addition to the lattice Boltzmann functions for fluid flow, a second set of distribution functions is introduced for transporting scalars. This method assigns a vector to each voxel in a volume to represent the fluid flow, and assigns a scalar to each voxel in the volume to represent the desired scalar variable (e.g., temperature, density, concentration, etc.). The method fully recovers the macroscopic scalar transport equations that satisfy the exact conservation laws. The method is believed to improve the accuracy of the determined scalars compared to other non-LBM methods. In addition, this method provides an enhanced ability to resolve complex boundary shapes.
[0047] This approach to modeling scalars can be used in conjunction with time-explicit CFD / CAA solution methods based on the Lattice Boltzmann Method (LBM), such as the PowerFLOW system available from Exa, Inc. of Burlington, Massachusetts. Unlike methods based on discretized macroscopic continuum equations, LBM starts from the "mesoscopic" Boltzmann dynamic equations to predict macroscopic fluid dynamics. The resulting compressible and unsteady solution method can be used to predict a variety of complex flow physics, such as aeroacoustics and pure acoustics problems. An overall discussion of LBM-based simulation systems is provided below, followed by a discussion of scalar solution methods that can be used in conjunction with fluid flow simulations to support this modeling approach.
[0048] Modeling the Simulation Space
[0049] In the physical process simulation system based on LBM, the fluid flow can be represented by a set of discrete velocities ci The distribution function value f to be evaluated i The dynamics of the distribution function is governed by equation (I.1), where f i (0) is known as the equilibrium distribution function, which is defined as:
[0050]
[0051] in,
[0052] This equation describes the distribution function f i The well-known lattice Boltzmann equation for the time evolution of . The left-hand side shows the changes in the distribution due to the so-called "fluidization process". A fluidization process is a block of fluid starting at a grid location and moving along one of the velocity vectors to the next grid location. At that point, the "collision operator" is calculated, i.e. the influence of nearby fluid blocks on the starting block of fluid. The fluid can only move to one other grid location, so a proper choice of the velocity vectors is necessary so that all components of all velocities are multiples of a common speed.
[0053] The right hand side of the first equation is the "collision operator" mentioned above, which represents the change in the distribution function due to collisions between fluid blocks. The specific form of the collision operator used here is Bhatnagar, Gross and Krook (BGK). It forces the distribution function to go to a prescribed value given by the second equation, which is an "equilibrium" form.
[0054] The BGK operator is constructed from the physical idea that, regardless of the details of the collision, the distribution function is approximated by {f eq (x,v,t)} gives a well-defined local equilibrium:
[0055]
[0056] where the parameter τ represents the characteristic relaxation time for reaching equilibrium via collisions. When dealing with particles (such as atoms or molecules), the relaxation time is usually considered to be a constant.
[0057] From this simulation, conventional fluid variables, such as mass ρ and fluid velocity u, are obtained as simple summations in equation (I3):
[0058]
[0059] where ρ, μ and T are the fluid density, velocity and temperature, respectively, and D is the dimension of the discrete velocity space (not necessarily equal to the physical space dimension).
[0060] Due to symmetry considerations, the set of velocity values is chosen in such a way that they form a certain lattice structure when spanned in the configuration space. The dynamics of this discrete system follows an LBE of the form:
[0061] f i (x+c i ,t+1)-f i (x,t)=C i (x,t)
[0062] where the collision operator usually takes the BGK form as described above. By appropriate choice of the equilibrium distribution form, it can be shown theoretically that the lattice Boltzmann equation yields the correct fluid dynamics and thermo-fluid dynamics. That is, from f i The (x, t) derived hydrodynamic moments obey the Navier-Stokes equations in the macroscopic limit. These moments are defined by equation (I3) above.
[0063] c i and w i The LBM model can be efficiently implemented on scalable computer platforms and runs with maximum robustness to time-unstable flows and complex boundary conditions.
[0064] The standard technique for obtaining the macroscopic equations 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, small perturbations of density travel at the speed of sound. In a gas system, the speed of sound is generally determined by the temperature. The importance of the effect of compressibility in a fluid is measured by the ratio of the characteristic velocity to the speed of sound, which is called the Mach number. For further description of conventional LBM-based physical process simulation systems, reference is made to the above incorporated by reference to application US-2016-0188768-A1.
[0065] refer to Figure 1 , a system 10 for simulating fluid flow (e.g., near a representation of a physical object) is shown. The system 10 in this implementation is based on a client-server architecture and includes a server system 12 and a client system 14 implemented as a massively parallel computing system. The server system 12 includes a memory 18, a bus system 11, an interface 20 (e.g., a user interface / network interface / display or monitor interface, etc.), and a processing device 24. In the memory 18 are a mesh preparation engine 32 and a simulation engine 34. The system 10 accesses a data repository 38 that stores 2D and / or 3D meshes, coordinate systems, and libraries.
[0066] Although Figure 1A grid preparation engine 32 in memory 18 is shown, but the grid preparation engine may be a third-party application executed on a different system than the server 12. Regardless of whether the grid preparation engine 32 is executed in memory 18 or on a different system than the server 12, the grid preparation engine 32 receives a user-provided grid definition 30, and the grid preparation engine 32 prepares the grid and sends the prepared grid to a simulation engine 34. The simulation engine 34 includes a particle collision interaction module, a particle boundary modeling module, and an advection module that performs advection operations as described below. The simulation engine 34 also includes a total energy solver, as discussed below in FIG. 3 .
[0067] Reference now Figure 2 , a process 40 for simulating fluid flow near a representation of a physical object is shown. In the example to be described herein, the physical object is an airfoil. However, the use of an airfoil is merely illustrative, since the physical object may be of any shape, and in particular may have (one or more) flat and / or curved surfaces. The process receives a mesh for the physical object being simulated, for example from a client system 14 or by retrieval from a data repository 42. In other embodiments, an external system or server 12 generates a mesh for the physical object being simulated based on user input. The process precomputes 44 geometric quantities based on the retrieved mesh, and performs 46 a dynamic lattice Boltzmann model simulation using the precomputed geometric quantities corresponding to the retrieved mesh. The lattice Boltzmann model simulation includes the evolution of the distribution of particles in the LBM mesh and the movement of the particles to the next cell based on a modified set of state vectors. The state vector set is modified by adding a certain total energy value to the state of the advected particles and subtracting the certain total energy value from the state of the particles that were not advected during the time interval in the simulation of advection.
[0068] Total Energy Conservation Compressible Flow Solver
[0069] When performing complex fluid flow simulations, it may be beneficial to solve for scalars (e.g., temperature distribution, concentration distribution, and / or density) in conjunction with solving for the fluid flow. A distinction is made between a specific scalar and a scalar distribution, which is the difference between q (Equation 10) and h (Equation 2), and the specific scalar q is used as E_t, while h is density*E_t. The method discussed is for scalar placement on top of a convected flow, as described in the above-mentioned U.S. Patent Publication US-2016-0188768-A1.
[0070] Treatment of Pressure Term in Conservation of Total Energy
[0071] Reference now Figure 3Now, a compressible LBM solver with a total energy conservation process 50 is described, which has a better stability range than existing methods and is suitable for real-world applications. The total energy conservation equation to be solved is:
[0072]
[0073] The total energy E t By E t =E+v 2 / 2, ρ is the density, v is the velocity, p is the pressure, k is the thermal conductivity, T is the temperature, and τ is the shear stress. This is a universal equation that all computational fluid dynamics tools for high-speed flows need to solve.
[0074] One of the complexities involved with the total energy solver is the addition of the pressure convection term "p" to Equation 1. Like all computational fluid dynamics tools for high-speed flows, the Lattice Boltzmann Method (LBM) must solve this equation for conservation of total energy. In all cases, and especially for the pressure convection term p, the LBM method has some drawbacks in solving this equation. The disclosed method is able to address this for complex problems and has other advantages.
[0075] The pressure convection problem of the LBM method can be explained as follows: The normal scalar transport has the following equation
[0076]
[0077] The left hand side of the above equation includes a convection term, while the right hand side of the equation has a diffusion term. Unlike the total energy equation, all terms in the above equation contain only one scalar variable S, which makes advection simpler. The process 50 simulates 52 the evolution of the particle distribution according to the selected form of the equilibrium distribution.
[0078] In addition to the equilibrium distribution (selected form of Equation 1) 52, 54 is used to calculate the specific total energy E t The process 50 includes advection 56 of the particle in the LBM to the next unit q. The energy conservation is achieved by the product of these two distributions. The product of these distribution functions is defined as i Unlike existing methods that use the second distribution function independently to solve for energy, this second distribution function takes into account f i Non-equilibrium contributions to the energy equation to obtain correct flow behavior near boundaries and across different grid resolutions.
[0079] The collision operator of the distribution function is given by:
[0080] fi ′(x, t) = f i (x,t)+Ω f [f i (x,t),f i eq (x, t)] Equation 2
[0081]
[0082] The term Ω in Equation 2 and Equation 3 f ,Ω q is used to represent the respective collision operator. The collision operator Ω in Equation 5 is extensively discussed in U.S. Patent No. 9,576,087. f , the entire contents of which are incorporated herein by reference. The equilibrium distribution used in the above equation is
[0083]
[0084]
[0085] The obvious observation in the above distribution function Eq. 7 for the total energy solver is that the equilibrium distribution does not involve the pressure term (p) and the θ-1 term in Eq. 1, i.e., p = ρRT, which is critical for heat flow. The second distribution is the specific total energy, which is the internal energy E = C ν T and kinetic energy ν 2 The sum of / 2.
[0086] Therefore, the distribution function will always provide positive values during the collision operation, and thus the distribution function provides a solver with correspondingly high stability. The state after the collision in equation (2) is advected as is, and the distribution function of equation 4 will only result in an isothermal pressure gradient in the momentum, but no pressure advection term in the total energy equation. The pressure gradient and pressure advection term arise due to advection, and the collision does not affect these terms, which is in contrast to other methods that use equilibrium distributions and include pressure terms during both advection and collision, as shown below.
[0087]
[0088]
[0089] The term θ=RT / T0 corresponds to pressure and makes the above balance negative, so the prior art is highly unstable. It should also be noted that the second distribution function are used independently for the total energy, which results in noise across different grid resolutions.
[0090] The process 50 modifies 58 the advected state by adding a certain total energy to the advected state while removing a certain total energy from the stopped state (non-moving state).
[0091] More specifically, in this correction 58, the pressure introduction is performed only during the advection step in order to restore the correct momentum and energy equations. The motion state at the grid position is corrected before the advection process value, as shown in Equation 8 below:
[0092]
[0093]
[0094] However, adding this term (the second equation in Equation 5) to q i Additional energy is also added to the moving state. To compensate for the added energy represented by this term, the same amount of energy is removed from the stopped state (a state where the particles are not convecting). By doing so, the process saves energy and provides the correct pressure velocity term. Specifically, by correcting the stopped state so that to provide total energy conservation.
[0095] After advection, the local pressure term is added back to the particle state before calculating the moments, resulting in the appropriate pressure gradient
[0096]
[0097] The corrections before advection (Eq. 8) and after advection (Eq. 6) restore the correct equation of state for momentum (or the correct pressure gradient ), and also recovers the correct pressure convection term for the total energy Since the pressure term (Eq. 9) is removed, the state becomes positive during the collision and improves the stability range of the total energy solver.
[0098] The advection is corrected by applying a total energy correction for advection, in which the computer corrects the state vector of the particle by adding a certain total energy value to the state of the advected particle and subtracting the certain total energy value from the state of the particle that was not advected during the time interval, as follows Fig. 9 discussed in .
[0099] Energy Regularized Collision Operator
[0100] The collision operator Ω for flow regimes is discussed in the aforementioned U.S. Patent No. 9,576,087. fThe collision operator Ω for the energy is discussed below. q . A canonical collision with a first-order moment is given by:
[0101]
[0102]
[0103] Equation 7 is the filtered non-equilibrium contribution to the total energy. Energy conservation is satisfied by multiplying these two states, which makes the collision term, the second term on the right hand side of equation (7) for:
[0104]
[0105] The zero moment of the above term is zero and conserves energy. In the Chapman-Enskog expansion process, the first moment of the collision term involves the derivation of heat diffusion and the work done by shear stress. As a first-order approximation, the collision term can be expressed as:
[0106]
[0107] In the above equation, the momentum flux term ρυυ is the product of two states This term ρυυ leads to numerical instabilities for high-speed flows and also causes a Mach number-dependent diffusion. To mitigate these effects, the term ρυυ is removed by defining the collision operator as:
[0108]
[0109] The above expression omits the momentum flux term ρυυ and improves the numerical stability for high Mach flows.
[0110] For the collision operator, many techniques can be used. One of the techniques is called "regularization". In the patent (pending) based on lattice Boltzmann scalars by Hudong and Raoyang, "regularization" is used with additional Galilean invariance features. However, this regularized collision operator is not ideal for high-speed flows. During the derivation, the operator ends up with high-order terms such as ρυυ (Equation 12). For LBM, the velocity values are usually always less than "1" (one), so for lower velocity flows, these error terms will be much lower and can be ignored. However, for higher rate flows, the velocity values will be as high as 1 order, so the error term ρυυ is relatively high and is removed by Equation 10.
[0111] Viscous Effects for Arbitrary Prandtl Numbers
[0112] The relaxation time used in the energy solver is τq , which will result in the viscosity being equal to the thermal diffusivity (τ q In order to recover the exact shear stress for arbitrary Prandtl numbers, the following additional term is added to the energy collision term.
[0113]
[0114] Where Π=Σ i c i c i (f i -f i eq ) is the second-order moment of the filtered unbalanced component.
[0115] Total Energy Solver Capability
[0116] The total energy solver can be included in The total energy solver can be used in a wide range of industrial applications, including those involving high subsonic and transonic flows.
[0117] Several benchmarks are discussed in this section to show some potential advantages of the disclosed total energy solver for compressible flows, especially in terms of energy conservation. The simulation results are compared with analytical solutions and typical PDE-based finite difference hybrid solver solutions.
[0118] Figure 4 A graph of the total temperature of the flow over a flat plate at Mach speed (Ma) for Ma = 0.7, x = 1.5 m from the leading edge is shown. Figure 4 As shown, the total energy solver for the flow over the plate (solid line 62) accurately recovers the total temperature, while the hybrid solvers (LBM flow solver and finite difference based entropy solver) (dashed line 64) fail to maintain the total temperature.
[0119] Figure 5 A graph of the static temperature of a plate at Mach speed (Ma) is shown for Ma = 0.7, x = 1.5 m from the leading edge. The graph is plotted against u / u ∞ (y-axis) u is plotted as T / T ∞ (x-axis) temperature T. The total energy solver of the present disclosure, represented by the solid line 66, is compared with a hybrid solver (LBM flow solver and finite difference based entropy solver) (dashed line 68). The figure illustrates that the static temperature of the plate at Mach speed (Ma) matches the Waltz equation (asterisk line 70) for Ma=0.7, x=1.5m from the leading edge.
[0120] refer to Figure 6 The back pressure P is shown b =0:75P t A graph of the temperature simulation results for a converging-diverging verification (CDV) nozzle. The graph plots temperature T against the x (y axis) as T / T ∞ (x-axis). The total energy solver of the present disclosure, represented by the solid line 72, is compared to the hybrid solvers (LBM flow solver and finite difference based entropy solver) (dashed line 74). The total energy solver of the present disclosure has good agreement with the analytically determined dotted line 76. The comparison of static temperatures shows that the compressible solver based on the finite difference method cannot recover the temperature after the impact, while the total energy solver of the present disclosure achieves the expected value.
[0121] A system with the disclosed total energy solver can be used to determine the convective temperature distribution within the system. For example, if the system (formed by a volume represented by multiple voxels) includes a heat source, and there is airflow within the system, some areas of the system will be hotter than other areas depending on the airflow and proximity to the heat source. To model such a system, the temperature distribution within the system can be represented as a scalar, where each voxel has an associated temperature.
[0122] In another example, the system can be used to determine the chemical distribution within a system. For example, if the system (formed by a volume represented by multiple voxels) includes a source of contaminants, such as a dirty bomb or chemicals or other particles suspended in air or liquid, and there is air or liquid flow within the system, some areas of the system will have higher concentrations than other areas based on the flow and proximity to the source. To model this situation, the chemical distribution within the system can be represented as a scalar, where each voxel has an associated concentration.
[0123] In some applications, multiple different scalar quantities can be simulated simultaneously. For example, the system can simulate both the temperature distribution and the concentration distribution in the system.
[0124] Scalars can be modeled in different ways. For example, the lattice Boltzmann (LB) method for solving scalar transport equations can be used to solve scalar transport indirectly. For example, the method described in this article can provide an indirect solution to the following second-order macroscopic scalar transport equation:
[0125]
[0126] In such an arrangement simulation, in addition to the lattice Boltzmann function for fluid flow, a second set of distribution functions is introduced for transporting scalars. This method assigns a vector to each voxel in a volume to represent the fluid flow, and assigns a scalar to each voxel in the volume to represent the required scalar variable (e.g., temperature, density, concentration, etc.). This method fully recovers the macroscopic scalar transport equations that satisfy the exact conservation laws. This method is believed to improve the accuracy of the determined scalars compared to other non-LBM methods. In addition, this method provides an enhanced ability to resolve complex boundary shapes.
[0127] This approach to modeling scalars can be used in conjunction with time-explicit CFD / CAA solution methods based on the Lattice Boltzmann Method (LBM), such as the PowerFLOW system available from Exa, Inc. of Burlington, Massachusetts. Unlike methods based on discretized macroscopic continuum equations, LBM starts from the "mesoscopic" Boltzmann dynamic equations to predict macroscopic fluid dynamics. The resulting compressible and unsteady solution method can be used to predict a variety of complex flow physics, such as aeroacoustics and pure acoustics problems. An overall discussion of LBM-based simulation systems is provided below, followed by a discussion of scalar solution methods that can be used in conjunction with fluid flow simulations to support this modeling approach.
[0128] 7, the first model (2D-1) 100 is a two-dimensional model including 21 velocities. Among the 21 velocities, one velocity (105) represents a particle that does not move; three groups of four velocities represent particles that move at a normalized velocity (r) (110-113), twice the normalized velocity (2r) (120-123), or three times the normalized velocity (3r) (130-133) in the positive or negative direction along the x or y axis of the lattice; and two groups of four velocities represent particles that move at a normalized velocity (r) (140-143) or twice the normalized velocity (2r) (150-153) relative to both the x and y lattice axes.
[0129] As also shown in Fig. 8, a second model (3D-1) 200 is shown, which is a three-dimensional model including 39 velocities, each of which is represented by one of the arrows of Fig. 8. Of the 39 velocities, one velocity represents a particle that does not move; three sets of six velocities represent particles that move at a normalized velocity (r), twice the normalized velocity (2r), or three times the normalized velocity (3r) in the positive or negative direction along the x, y, or z axis of the lattice; eight velocities represent particles that move at a normalized velocity (r) relative to all three of the x, y, and z lattice axes; and twelve velocities represent particles that move at twice the normalized velocity (2r) relative to two of the x, y, and z lattice axes.
[0130] More complex models may also be used, such as a 3D-2 model including 101 velocities and a 2D-2 model including 37 velocities.
[0131] For the three-dimensional model 3D-2, among the 101 velocities, one velocity represents a particle that does not move (Group 1); three groups of six velocities represent particles that move at a normalized velocity (r), twice the normalized velocity (2r), or three times the normalized velocity (3r) in the positive or negative direction along the x, y, or z axis of the lattice (Groups 2, 4, and 7); three groups of eight velocities represent particles that move at a normalized velocity (r), twice the normalized velocity (2r), or three times the normalized velocity (3r) relative to all three lattice axes among the x, y, and z lattice axes (Groups 3, 8, and 10); twelve velocities represent particles that move at twice the normalized velocity (2r) relative to two lattice axes among the x, y, and z lattice axes (Group 6); twenty-four velocities represent particles that move at a normalized velocity (r) and twice the normalized velocity (2r) relative to two lattice axes among the x, y, and z lattice axes and do not move relative to the remaining axes (Group 5); And twenty-four velocities represent particles moving at a normalized velocity (r) relative to two of the x, y, z lattice axes and at three times the normalized velocity (3r) relative to the remaining axes (Group 9).
[0132] For the two-dimensional model 2D-2, among the 37 velocities, one velocity represents a particle that does not move (Group 1); three groups of four velocities represent particles that move at a normalized velocity (r), twice the normalized velocity (2r), or three times the normalized velocity (3r) in the positive or negative direction along the x or y axis of the lattice (Groups 2, 4, and 7); two groups of four velocities represent particles that move at a normalized velocity (r) or twice the normalized velocity (2r) relative to both the x lattice axis and the y lattice axis; eight velocities represent particles that move at a normalized velocity (r) relative to one of the x lattice axis and the y lattice axis and at twice the normalized velocity (2r) relative to the other axis; and eight velocities represent particles that move at a normalized velocity (r) relative to one of the x lattice axis and the y lattice axis and at three times the normalized velocity (3r) relative to the other axis.
[0133] The LBM models described above provide a specific class of efficient and robust discrete velocity dynamic models for numerical simulation of flows in two and three dimensions. This type of model includes a special set of discrete velocities and weights associated with those velocities. These velocities correspond to grid points of Cartesian coordinates in velocity space, which facilitates accurate and efficient implementation of discrete velocity models, especially the class known as lattice Boltzmann models. Using such models, flows can be simulated with high fidelity.
[0134] refer to Fig. 9 , a physical process simulation system operates according to process 300 to simulate a physical process such as fluid flow. Prior to simulation, the simulation space is modeled as a collection of voxels (step 302). Typically, the simulation space is generated using a computer-aided design (CAD) program. For example, a CAD program can be used to draw a microdevice located in a wind tunnel. Thereafter, the data generated by the CAD program is processed to add a lattice structure with appropriate resolution and to account for objects and surfaces within the simulation space.
[0135] The resolution of the lattice can be chosen based on the Reynolds number of the system being simulated. The Reynolds number is related to the viscosity of the flow (v), the characteristic length of objects in the flow (L), and the characteristic velocity of the flow (u):
[0136] Re=uL / v Equation (I4)
[0137] The characteristic length of an object represents a large-scale feature of the object. For example, if the flow around a microdevice is being simulated, the height of the microdevice can be considered the characteristic length. When the flow around a small area of an object (e.g., the side-view mirror of a car) is of interest, the resolution of the simulation can be increased, or a region of increased resolution can be employed around the area of interest. The dimensionality of the voxel decreases as the resolution of the lattice increases.
[0138] The state space is represented as f i (x,t), where f i represents the number of elements or particles per unit volume in state i at the lattice site represented by the three-dimensional vector x at time t (i.e., the density of particles in state i). For a known time increment, the number of particles is simply referred to as f i (x). The combination of all states of the lattice site is denoted f(x).
[0139] The number of states is determined by the number of possible velocity vectors within each energy level. The velocity vectors consist of integer linear rates in a space with three dimensions x, y, and z. For multi-genus simulations, the number of states increases.
[0140] Each state i represents a different velocity vector at a particular energy level (i.e., energy level zero, one, or two). The velocity c of each state i The "velocity" in each of the three dimensions is indicated as follows:
[0141] c i =(c ix ,c iy ,c iz ,). Equation (I5)
[0142] The zero energy state represents a stationary particle that does not move in any dimension, i.e., c stopped =(0,0,0). The one state represents a particle with a velocity of ±1 in one of the three dimensions and zero velocity in the other two dimensions. The two state represents a particle with a velocity of ±1 in all three dimensions, or a velocity of ±2 in one of the three dimensions and zero velocity in the other two dimensions.
[0143] Generating all 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).
[0144] Each voxel (i.e., each lattice site) is represented by a state vector f(x). This state vector completely defines the state of the voxel and includes 39 entries. These 39 entries correspond to 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 set of velocities, the system can generate Maxwell-Boltzmann statistics for the achieved equilibrium state vector. For the total energy, for the second distribution q i(x, t) uses the same number of terms (39 states) to represent a certain total energy. Together with the state vector f(x), this is used to solve for conservation of total energy.
[0145] For processing efficiency, voxels are grouped in 2x2x2 volumes called microblocks. Microblocks are organized to allow parallel processing of voxels and minimize the overhead associated with data structures. The shorthand notation for voxels in a microblock is defined as N i (n), where n represents the relative position of the lattice site in the microscopic block and n{0,1,2,...,7}. The microscopic block is shown in FIG. 10 .
[0146] 11A and 11B, the surface S (FIG. 11A) is represented as a surface element F in the simulation space (FIG. 11B). α A collection of:
[0147] S={F α} Equation (I6) where α is an index that enumerates a particular facet. Facets are not limited to the boundaries of voxels, but typically have dimensions that are on the order of the dimensions of the voxels adjacent to the facet, or have dimensions that are slightly smaller than the dimensions of the voxels adjacent to the facet, so that the facet affects a relatively small number of voxels. To implement surface dynamics, attributes are assigned to facets. Specifically, each facet F α With unit normal (n α ), surface area (A α )、Center position(x α ) and the surface element distribution function (f i (α)). The total energy distribution function q i (α) is treated in the same way as for the flow distribution of surfels and voxel interactions.
[0148] Referring to FIG. 12 , different resolution levels can be used in different regions of the simulation space to improve processing efficiency. Typically, the region 650 around the object 655 is of greatest concern and is therefore simulated using the highest resolution. Because the effect of viscosity decreases with distance from the object, a reduced resolution level (i.e., an enlarged voxel volume) is used to simulate regions 660, 665 separated by increasing distances from the object 655. Similarly, as shown in FIG. 13 , a lower resolution level can be used to simulate a region 770 around less significant features of an object 775, while the highest resolution level is used to simulate a region 780 around the most significant features (e.g., leading and trailing edge surfaces) of the object 775. Remote regions 785 are simulated using the lowest resolution level and the largest voxels.
[0149] C. Identify voxels affected by facets
[0150] Reference again Fig. 9 Once the simulation space has been modeled (step 302), the voxels affected by one or more facets are identified (step 304). Voxels can be affected by facets in a number of ways. First, a voxel intersected by one or more facets is affected in that the voxel has a reduced volume relative to non-intersecting voxels. This occurs because the facet and the material beneath the surface represented by the facet occupy a portion of the voxel. The fractional factor P f (x) indicates the portion of the element that is not affected by the face element (i.e., the portion that can be occupied by the fluid or other material for which the flow is simulated). For non-intersecting elements, P f (x) is equal to 1.
[0151] Voxels that intersect one or more panels by transmitting particles to or receiving particles from the panels are also identified as voxels affected by the panels. All voxels intersected by a panel will include at least one state for receiving particles from the panel and at least one state for transmitting particles to the panel. In most cases, additional voxels will also include such states.
[0152] Referring to FIG14 , for a non-zero velocity vector c i For each state i, the face F α From the parallelepiped G iα The area defined by G receives particles or transmits particles to it, where the parallelepiped G iα With the velocity vector c i and facets (|c i n i |)'s unit normal n α The height is defined by the magnitude of the vector dot product and the surface area A of the bin α Define the base so that the parallelepiped G iα The volume V iα equal:
[0153] V ia =|c i n a |A a Equation (I7)
[0154] When the velocity vector of the state points to the surface element (|c i n i |<0), facet F α From the volume V iα Receive particles, and when the velocity vector of the state points away from the surface element (|c i n i|>0), and transmit particles to this region. As will be discussed below, when another facet occupies the parallelepiped G iα This expression is modified when θ is part of θ, i.e., a condition that occurs near non-convex features such as interior corners.
[0155] Panel F α The parallelepiped G iα Part or all of a plurality of voxels may be overlapped. The number of voxels or portions thereof depends on the size of the bin relative to the size of the voxel, the energy of the state, and the orientation of the bin relative to the lattice structure. The number of voxels affected increases with the size of the bin. Thus, as noted above, the size of a bin is typically selected to be of the order of magnitude of or smaller than the size of a voxel located near the bin.
[0156] Parallelepiped G iα The portion of the voxel N(x) that overlaps is defined as V iα (x). Using this term, in the volume element V iα (x) and panel F α The flux of particles moving between states i is Γ iα (x) is equal to the density of particles in state i in the voxel (N i (x)) multiplied by the volume of the region overlapping the voxel (V iα (x)):
[0157] Γ ia (x) = N i (x)+V ia (x) Equation (I8)
[0158] When the parallelepiped G iα When intersected by one or more polygons, the following conditions are true:
[0159] V ia =∑V a (x)+∑V ia (β) Equation (I9)
[0160] The first sum takes into account the iα All voxels that overlap and the second term takes into account the iα All the face elements intersecting. When the parallelepiped G iα When not intersected by another face, this expression simplifies to:
[0161] V ia =∑V ia (x) Equation (I10)
[0162] D. Execute simulation
[0163] Once the voxels 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, the movement of particles from voxel to voxel is simulated by an advection phase that accounts for the interaction of particles with surface facets (steps 308-316). Next, a collision phase (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 phase and the collision phase (steps 308-320) are repeated. If the incremented timer indicates that the simulation is complete (step 322), the results of the simulation are stored and / or displayed (step 324).
[0164] 1. Boundary conditions for surfaces
[0165] In order to correctly model the interaction with the surface, each bin satisfies four boundary conditions. First, the combined mass of particles received by the bin equals the combined mass of particles transmitted by the bin (i.e., the net mass flux to the bin equals zero). Second, the combined energy of particles received by the bin equals the combined energy of particles transmitted by the bin (i.e., the net energy flux to the bin equals zero). These two conditions can be satisfied by requiring that the net mass flux at each energy level (i.e., level one and level two) equals zero.
[0166] The other two boundary conditions are related to the net momentum of the particle interacting with the surface element. For a surface without skin friction (referred to herein as a sliding surface), the net tangential momentum flux is equal to zero and the net normal momentum flux is equal to the local pressure at the surface element. Therefore, the normal n to the surface element is α The perpendicular components of the combined received and transmitted momentum (i.e., the tangential components) are equal and are perpendicular to the surface element normal n α The difference between the parallel components of the combined received and transmitted momentum (i.e., the normal components) is equal to the local pressure at that cell. For a non-slip surface, the friction of the surface reduces the combined tangential momentum of the particles transmitted by the cell relative to the combined tangential momentum of the particles received by the cell by a factor related to the amount of friction.
[0167] 2. Aggregation from voxels to surfaces
[0168] As a first step in simulating the interaction between particles and surfaces, particles are aggregated from volume elements and provided to surface elements (step 308). As noted above, the volume element N(x) and the surface element F α The flux of particles in state i is:
[0169] Γ iα (x) = N i (x)Viα (x) Equation (I11)
[0170] From this it can be seen that for the pointing surface element F α Each state i(c i n α <0), provided by the voxel to the surface element F α The number of particles is:
[0171] Γ iαV→F =Σ X Γ iα (x) = Σ X N i (x)V iα (x) Equation (I12)
[0172] Only its V iα (x) The voxels with non-zero values need to be summed. As noted above, the size of the bins is chosen so that V iα (x) has non-zero values only for a few voxels. iα (x) and P f (x) can have non-integer values, so Γ α (x) is stored and processed as a real number.
[0173] 3. Movement from panel to panel
[0174] Next, the particles are moved between the bins (step 310). α The incoming state (c i n α <0) parallelepiped G iα By the other side element F β If they intersect, then F α The part of the particles in state i received will come from the surface element F β In particular, the face element F α will receive the bin F during the previous time increment β The part of the particle i in the state generated. This relationship is shown in Figure 17, where the surface element F β Intersecting parallelepipeds G iα The part 1000 is equal to the surface element F α Intersecting parallelepipeds G iβ As noted above, the intersecting portion is denoted as V iα (β). Using this term, the panel F β With face element F α The flux of particles between states i can be described as:
[0175] Γ iα(β, t-1) = Γ i (β)V iα (β) / V iα Equation (I.13)
[0176] where Γ i (β,t-1) is the value of the bin F during the previous time increment. β The measurement of the state i particle produced. From this, it can be seen that for the pointing surface element F α Each state i(c i n α <0), provided by other bins to bin F α The number of particles is:
[0177] Γ iαF→F =Σ β Γ iα (β)=Σ β Γ i (β, t-1)V iα (β) / V iα Equation (I.14)
[0178] And the total flux of particles of state i into the bin is:
[0179] Γ iIN (α) = Γ iαF→F +Γ iαF→F =Σ x N i (x)V iα +Σ β Γ i (β, t-1)V iα (β) / V iα
[0180] Equation (I.15)
[0181] The state vector N(α) for the bin (also called the bin distribution function) has M entries corresponding to the M entries of the voxel state vector. M is the number of discrete lattice rates. The input states to the bin distribution function N(α) are set equal to the flux of particles into those states divided by the volume V iα :
[0182] For c i n α <0,N i (α) = Γ iIN (α) / V iα Equation (I.16)
[0183] The bin distribution function is a simulation tool used to generate output flux from bins, and does not necessarily represent actual particles. In order to generate an accurate output flux, values are assigned to the other states of the distribution function. The outward states are filled using the technique described above for filling the inward states:
[0184] For c i n α ≥0,N i (α) = Γ iOTHER (α) / V Equation (I.17)
[0185] where Γ iOTHER (α) is the method used to generate Γ iIN (α), but applies the technique to all states except the incoming state (c i n α <0) (c i n α ≥0). In an alternative approach, Γ iOTHER (α) can use Γ from the previous time step iOTHER The value of (α) is generated so that:
[0186] Γ iOTHER (α,t)=Γ iOUT (α,t-1) Equation (I.18)
[0187] For the parallel state (c i n α =0), V iα and V iα (x) are all zero. i In the expression of (α), V iα (x) appears in the numerator (according to the iOTHER (α) expression) and V iα appears in the denominator (according to the i (α) expression). Therefore, when V iα and V iα When (x) is close to zero, N for parallel state i (α) is determined as N i The values of the states with zero velocity (ie, the stationary state and the states (0,0,0,2) and (0,0,0,-2)) are initialized at the beginning of the simulation based on the initial conditions for temperature and pressure. These values are then adjusted over time.
[0188] 4. Performing panel surface dynamics
[0189] Next, surface dynamics are performed for each bin to satisfy the four boundary conditions discussed above (step 312). The process for performing surface dynamics for a bin is shown in FIG. 18. Initially, the combined momentum P(α) of the particles at the bin is determined to be the velocity of the bin F. α Combined momentum (step 1105):
[0190] For all i, According to this equation, the normal momentum P n (α) is determined as:
[0191] P n (α) = n α ·P(α) Equation (I.20)
[0192] This normal momentum is then removed using a push / pull technique (step 1110) to produce N n- (α). According to this technique, particles are moved between states in a manner that affects only the normal momentum. The push / pull technique is described in U.S. Patent No. 5,594,671, which is incorporated herein by reference.
[0193] Afterwards, N n- (α) particles are collided to produce the Boltzmann distribution N n-β (α) (step 1115). As described below with respect to implementing fluid dynamics, the Boltzmann distribution can be obtained by adding N n- (α) This is achieved by applying a set of collision rules.
[0194] Then, based on the incoming flux distribution and the Boltzmann distribution, the α The outgoing flux distribution of (step 1120). First, the incoming flux distribution Γ i The difference between (α) and the Boltzmann distribution is determined as:
[0195] ΔΓ i (α) = Γ iIN (α)-N n-βi (α)V iα Equation (I.21)
[0196] Using this difference, the outgoing flux distribution is:
[0197] For n α c i >0,Γ iOUT (α) = N n-βi (α)V iα -.Δ.Γ i*(α) Equation (I.22) and where i* is the state with the opposite direction 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 can be further refined as:
[0198] For n α c i >0, Among them C f is a function of skin friction, t iα is with n α The vertical first tangent vector, t 2α is with n α and t 1α are perpendicular to the second tangent vector, and ΔN j,1 and ΔN j,2 is the distribution function of the energy (j) corresponding to state i and the indicated tangent vector. The distribution function is determined according to the following formula:
[0199]
[0200] where j is equal to 1 for the level 1 state and equal to 2 for the level 2 state.
[0201] For Γ iOUT The function of each term in the equation (α) is as follows. The first and second terms implement the normal momentum flux boundary conditions to the extent that the collisions have effectively produced a Boltzmann distribution, but include anomalies in the tangential momentum flux. The fourth and fifth terms correct for such anomalies, which may arise from discrete effects or non-Boltzmann structures due to insufficient collisions. Finally, the third term adds a specified amount of skin friction to implement the desired change in the tangential momentum flux on the surface. The friction coefficient C f The generation of is described below. Note that all terms involved in vector manipulation are geometric factors that can be calculated before starting the simulation.
[0202] From this, the tangential velocity is determined as:
[0203] u i (α)=(P(α)-P n (α)n α ) / ρ, Equation (I.25)
[0204] where ρ is the density of the bin distribution:
[0205]
[0206] As before, the difference between the incoming flux distribution and the Boltzmann distribution is determined as:
[0207] ΔΓ i (α) = Γ iIN (α)-N n-βi (α)V iα Equation (I.27)
[0208] Then, the outgoing flux distribution becomes:
[0209] Γ iOUT (α) = N n-βi (α)V iα -ΔΓ i* (α)+C f (n α c i )[N n-βi* (α)-N n-βi (α)]V iα Equation (I.28)
[0210] It corresponds to the first two rows of the outgoing flux distribution determined by the previous technique, but without the need for correction for the anomalous tangential flux.
[0211] Using either method, the resulting flux distribution satisfies all the momentum flux conditions, namely:
[0212]
[0213] Among them, p α It is in the face element F α The equilibrium pressure at the bin and based on the average density and temperature values of the volume element providing the particle to the bin, and u α is the average velocity at that bin.
[0214] 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:
[0215]
[0216] where index j represents the energy of state i. This energy difference is then used to generate the difference term:
[0217] For c ji n α >0, This difference term is used to modify the outgoing flux so that it becomes:
[0218] For c ji n α >0,Γ αjiOUTf =Γ αjiOUT +δΓ αji Equation (I.32)
[0219] This operation corrects the mass and energy fluxes while leaving the tangential momentum flux unchanged. If the flow in the neighborhood of the panel is roughly uniform and close to equilibrium, this adjustment is small. After the adjustment, the resulting normal momentum flux is slightly altered to a value that is the equilibrium pressure based on the neighborhood average properties plus a correction due to non-uniform or non-equilibrium properties of the neighborhood.
[0220] 5. Movement from voxel to voxel
[0221] Reference again Fig. 9 , particles are moved between voxels along the three-dimensional rectilinear lattice (step 314). This voxel-to-voxel movement is the only movement operation performed on voxels that do not interact with surface elements (i.e., voxels that are not located near the surface). In a typical simulation, voxels that are not located close enough to the surface to interact with the surface make up the majority of the voxels.
[0222] Each separate state represents a particle moving along the lattice at an integer rate in each of the three dimensions x, y, and z. Integer rates include: 0, ±1, and ±2. The sign of the rate indicates the direction the particle is moving along the corresponding axis.
[0223] For voxels that do not interact with surfaces, the move operation is computationally very simple. The entire population of the state moves from its current voxel to the destination voxel during each time increment. At the same time, the particle of the destination voxel moves from that voxel to its own destination voxel. For example, a level 1 particle moving in the +1x and +1y direction (1,0,0) moves from its current voxel to a voxel that is +1 in the x direction and 0 for all other directions. The particle ends up at its destination voxel with the state (1,0,0) it had before the move. Based on local interactions with other particles and surfaces, interactions within a voxel will likely change the particle count for that state. If not, the particle will continue to move along the lattice at the same rate and direction.
[0224] For voxels that interact with one or more surfaces, the move operation becomes slightly more complex. This results in one or more fractional particles being teleported to the surface. This fractional particle to surface teleportation results in fractional particles remaining in the voxel. These fractional particles are teleported to the voxels occupied by the surface.
[0225] Also shown is a total energy correction 315 for advection, where the computer corrects the state vector of the particle by adding a particular total energy value to the state of the particle that was advected and subtracting a particular total energy value from the state of the particle that was not advected during the time interval.
[0226] 15, when a portion 900 of the state i-particle of voxel 905 is moved to bin 910 (step 308), the remaining portion 915 is moved to voxel 920 in which bin 910 is located and from which the state i-particle points to bin 910. Therefore, if the state population is equal to 25 and V iα (x) is equal to 0.25 (i.e., one quarter of the volume element and the parallelepiped G iα intersect), then 6.25 particles will be moved to the surface element F α And 18.75 particles will be moved to the surface element F α Since multiple facets can intersect a single facet, the number of particles in state i that are teleported to a facet N(f) occupied by one or more facets is:
[0227]
[0228] Where N(x) is the source voxel.
[0229] 6. Dispersion from surface elements to volume elements
[0230] Next, the outgoing particles from each bin are scattered to the voxels (step 316). Essentially, this step is the inverse of the aggregation step of moving particles from voxels to bins. α The number of particles in state i that move from the surface element to the volume element N(x) is:
[0231]
[0232] Where P f (x) indicates that the volume of some voxels is reduced. Therefore, for each state i, the direction from the face element to the voxel N (x) The total number of particles is:
[0233]
[0234] After dispersing particles from bin to voxel, combining them with particles that have been advected from surrounding voxels, and integerizing the result, it is possible that some directions in some voxels may underflow (become negative) or overflow (exceed 255 in an eight-bit implementation). This will result in gains or losses in mass, momentum, and energy after these quantities have been truncated to fit within the allowed range of values.
[0235] To prevent this from happening, the out-of-bounds mass, momentum, and energy are accumulated before 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 a randomly (or sequentially) selected state of the same energy that is not itself subject to overflow or underflow. The extra momentum resulting from this addition of mass and energy is accumulated and added to the momentum from the truncation. By only adding mass to states of the same energy, both the mass and energy are corrected when the mass counter reaches zero. Finally, the momentum is corrected using a push / pull technique until the momentum accumulator returns to zero.
[0236] 7. Perform fluid dynamics
[0237] Perform fluid dynamics (step 318) Fig. 9 This step can be called microdynamics or intra-voxel operations. Similarly, the advection process can be called inter-voxel operations. The microdynamics operation described below can also be used to collide particles in a bin to produce a Boltzmann distribution.
[0238] The fluid dynamics are ensured in the lattice Boltzmann equation model by a special 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 1 and equation 2. After the advection step, the conserved quantities of the fluid system are obtained from the distribution function using equation 3, specifically density, momentum and energy. From these quantities, by f in equation (2) eq The equilibrium distribution function is completely defined by equation (4). The velocity vector set c i The choices of , weights are listed in Table 1, together with Equation 2 to ensure that the macroscopic behavior follows the correct fluid dynamics equations.
[0239] E. Variable resolution
[0240] 12 , variable resolution (as discussed above) employs voxels of different sizes, hereinafter referred to as coarse voxels 12000 and fine voxels 1205. (The following discussion relates to voxels having two different sizes; it should be appreciated that the described techniques may be applied to voxels of three or more different sizes to provide higher levels of resolution). The interface between the regions of coarse and fine voxels is referred to as a variable resolution (VR) interface 1210.
[0241] When variable resolution is used at or near a surface, the facets can interact with the voxels on both sides of the VR interface. These facets are classified as VR interface facets 1215 (F αIC ) or VR fine element 1220 (F αIF). VR interface facet 1215 is a facet located on the rough side of the VR interface and having a rough parallelepiped 1225 extending into the fine voxel. (The rough parallelepiped is determined based on the dimensions of the rough voxel c i The dimension of the fine parallelepiped is determined by the dimension of the fine volume element c i The VR fine facet 1220 is a facet located on the fine side of the VR interface and has a fine parallelepiped 1230 extending into the coarse facet. Processing related to the interface facet may also involve processing related to the coarse facet 1235 (F αC ) and fine bin 1240 (F αF ) interactions.
[0242] For both types of VR-surfaces, surface dynamics are performed at a fine scale and operate as described above. However, VR-surfaces differ from other surfaces in the way particles are advected to and from the VR-surfaces.
[0243] Interactions with VR surfels are handled using a variable resolution process 1300 shown in FIG. 13 . Most of the steps of this process are performed using the equivalent steps discussed above for interactions with non-VR surfels. Process 1300 is performed during a coarse time step (i.e., a time period corresponding to a coarse voxel) that includes two phases, one corresponding to a fine time step. Surf surface dynamics are performed during each fine time step. Thus, the VR interface surfel F αIC are considered as two fine planes of the same size and orientation, respectively referred to as black planes F αICb and red face F αIC . Black panel F αICb is associated with the first fine time step within the coarse time step, while the red face F αICr Associated with the second finer time step within the coarser time step.
[0244] Initially, particles are moved (advected) between bins through a first surface-to-surface advection phase (step 1302). -αβ From the black panel F αICb Move to the rough surface element F βC , the weight factor corresponds to the weight factor from the face element F α Extending out and located at the surface element F β The volume of the unobstructed portion of the rough parallelepiped (Fig. 12, 1225) behind is subtracted from the volume of the face element F α Extending out and located at the surface element F β The unblocked part of the fine parallelepiped behind (Fig. 12, 1245).i The magnitude is the c of the rough element i As mentioned above, for the face element F α The volume of a parallelepiped is defined as:
[0245] V iα =|c i n α |A α Equation (I.36)
[0246] Therefore, due to the surface area A of the volume element α does not vary between the rough parallelepiped and the fine parallelepiped, and since the unit normal n α The magnitude of is always 1, so the volume of the fine hexahedron corresponding to a surface element is half the volume of the corresponding rough parallelepiped of that surface element.
[0247] Particles are weighted by a factor V αβ From the rough surface element F αC Move to black panel F βIC , the weight factor V αβ Corresponding to the surface element F α Extending out and located at the surface element F β The volume of the unobstructed part of the fine parallelepiped behind.
[0248] Particles are weighted by a factor V αβ From the red panel F αICr Move to the rough surface element F βC , and with a weight factor V -αβ From the rough surface element F αC Move to the red panel F βICr .
[0249] Particles are weighted by a factor V αβ From the red panel F αICr Move to black panel F βICb In this phase, no black-to-red advection occurs. Furthermore, since the black and red bins represent consecutive time steps, no black-to-black advection (or red-to-red advection) occurs. For similar reasons, particles in this phase are weighted by a factor V. αβ From the red panel F αICr Move to fine surface element F βIF or F βF , and with the same weight factor from the fine surface element F αIF or F αF Move to black panel F αICb .
[0250] Finally, the particles are drawn from the fine surface element F with the same weight factor. αIFor F αF Move to other fine surface element F βIF or F βF , and then with the weight factor V Cαβ The rough surface element F αC Move to other rough surface element F C , whose weight factor V Cαβ Corresponding to the surface element F α Extending out and located at the surface element F β The volume of the unblocked part of the rough parallelepiped behind.
[0251] After the particles are advected between the surfaces, the particles are aggregated from the voxels in a first aggregation stage (steps 1304-1310). αF The particles are aggregated from the fine voxels using the fine parallelepiped (step 1304), and for the coarse facets F αC Use the rough parallelepiped to aggregate particles from the rough volume elements (step 1306). Then for the black surface element F αIRb And for VR fine surface element F αIF The fine parallelepiped is used to aggregate particles from both the coarse and fine voxels (step 1308). Finally, using the difference between the coarse parallelepiped and the fine parallelepiped, for the red face F αIRr Particles are aggregated from coarse voxels (step 1310).
[0252] Next, the coarse voxels that interact with the fine voxels or VR surfels are decomposed into a collection of fine voxels (step 1312). The states of the coarse voxels that transfer particles to the fine voxels within a single coarse time step are decomposed. For example, the appropriate states of the coarse voxels that are not intersected by the surfels are decomposed as follows: Figure 4 The appropriate state of a coarse voxel intersected by one or more facets is decomposed into a collection of complete and / or partial fine voxels corresponding to the portion of the coarse voxel not intersected by any facet. The particle density N of the coarse voxel and the fine voxels decomposed from it is i (x) is equal, but the fine voxel fraction factor P f It can be different from the fractional factor of the coarse voxel, and it can also be different from the fractional factors of other voxels.
[0253] After that, the fine surface element F αIF and F αF Perform surface dynamics (step 1314) and perform surface dynamics on the black face F αICb Perform surface dynamics (step 1316). Dynamics are performed using the process shown in Figure 11 and discussed above.
[0254] Next, the particle is moved between fine voxels including the actual fine voxel and the fine voxel decomposed from the coarse voxel (step 1318). Once the particle has moved, the particle is moved from the fine surface element F αIF and F αF Scatter into fine voxels (step 1320).
[0255] The particles also come from the black surface element F αICb The particles are dispersed to fine voxels (including fine voxels derived from the decomposition of coarse voxels) (step 1322). If the voxel receives the particle without the presence of a surface at the time, the particle is dispersed to the fine voxel. In particular, when the voxel is an actual fine voxel (as opposed to a fine voxel derived from the decomposition of a coarse voxel), the voxel N(x+c i ) is the actual fine voxel, or when the voxel N(x+c i ) is a fine voxel decomposed from a coarse voxel, the particles will be dispersed to the voxel N(x).
[0256] Finally, the first fine time step is completed by performing fluid dynamics on the fine voxels (step 1324). The voxels on which the fluid dynamics are performed do not include the fine voxels generated by the coarse voxel decomposition (step 1312).
[0257] Process 1300 performs similar steps during the second fine time step. Initially, particles are moved between surfaces in a second surface-to-surface advection phase (step 1326). Particles are advected from black bins to red bins, from black bins to fine bins, from fine bins to red bins, and from fine bins to fine bins.
[0258] After the particles are advected between the surfaces, particles are aggregated from the voxels in a second aggregation phase (steps 1328-1330). αIRr Use the fine parallelepiped to aggregate particles from the fine voxels (step 1328). Also for the fine bin F αF and F αIF Particles are aggregated from the fine voxels using the fine parallelepiped (step 1330).
[0259] Thereafter, as described above, for the fine bin F αIF and F αF (Step 1332), for the rough surface element F αC (Step 1134), and for the red face F αICr (Step 1336) Perform surface dynamics.
[0260] Next, the particles are moved between voxels using fine resolution (step 1338), so that the particles move back and forth between fine voxels and fine voxels representing coarse voxels. Then, the particles are moved between voxels using coarse resolution (step 1340), so that the particles move back and forth between coarse voxels.
[0261] Next, in the combining step, particles are dispersed from the surface element to the volume element, and the fine volume element representing the coarse volume element (i.e., the fine volume element obtained by decomposing the coarse volume element) is agglomerated into the coarse volume element (step 1342). In this combining step, particles are dispersed from the coarse surface element to the coarse volume element by using the coarse parallelepiped, from the fine surface element to the fine volume element by using the fine parallelepiped, from the red surface element to the fine or coarse volume element by using the fine parallelepiped, and from the black surface element to the coarse volume element by using the difference between the coarse parallelepiped and the fine parallelepiped. Finally, fluid dynamics is performed on the fine volume element and the coarse volume element (step 1344).
[0262] F. Scalar Transport Solver
[0263] As described above, various types of LBMs can be applied to solve fluid flow, which serves as a background carrier for scalar transport. During the simulation process, both fluid flow and scalar transport are simulated. For example, the fluid flow is a flow simulated using the lattice Boltzmann (LB) method, and the scalar transport is simulated using a set of distribution functions referred to herein as scalar transport equations.
[0264] While a detailed description of the LBM method for simulating fluid flow is provided here, the following is an example of one method for simulating fluid flow that can be used in conjunction with scalar simulations:
[0265]
[0266] where f i (x,t)(i=1,...,19) is the particle distribution function, τ is the individual relaxation time, is the equilibrium distribution function with a third-order fluid velocity expansion,
[0267]
[0268] Where T0 = 1 / 3. Discrete lattice velocity c i for:
[0269]
[0270] For stationary particles, w0 = 1 / 3, for the state in the Cartesian direction, w i =1 / 18, for the state in the double diagonal direction, w i=1 / 36. g i (x, t) is the external volume force term. The fluid dynamic force and u is the moment of the particle distribution function:
[0271]
[0272] As mentioned above, the fluid solver is used in conjunction with a scalar transport solver that generates scalar transport information. Therefore, in addition to the fluid solver, a separate set of distribution functions T is introduced i For scalar transport. Therefore, for each voxel in the system, the system simulates both fluid flow and scalar transport to generate a state vector representing the fluid flow and a scalar quantity representing the scalar variable. These simulation results are stored as entries in a computer-accessible medium.
[0273] The set of scalar transfer functions provides an indirect way to solve the second-order macroscopic scalar transfer equation. i Equations that model the dynamic evolution of a scalar quantity are provided:
[0274]
[0275]
[0276]
[0277] T i is a scalar distribution function, and T is the scalar to be solved. T is the relaxation time corresponding to the scalar diffusion rate. The relaxation time provides a measure of the time required for the system to relax to equilibrium. The term f is defined in equations (38), (39) and (41) respectively. i ,ρ,T0 and u.
[0278] Use c i The lattice velocity set represented can be a discrete lattice rate set for scalar simulation. In general, the lattice rate set for scalar distribution does not have to be the same as the lattice rate set for fluid distribution, because the scalar solver is an additional system attached to the basic fluid solver. For example, fewer lattice rates can be used in the simulation of scalar evolution than in the simulation of fluid flow. As long as the scalar lattice rate set is a subset of the fluid lattice rate set, a different scalar lattice rate set can be applied to the scalar. For example, when the 19-rate LB model is used for fluid simulation, the 6-rate LB model can be used for scalar simulation. Since the 19-rate LB model has a higher order lattice symmetry than the 6-rate LB model, the same 19-rate model for scalar is used in the example provided below.
[0279] The standard well-known BGK (e.g., as described above) includes all orders of non-equilibrium moments. It is not considered necessary to include all non-equilibrium moments to be isotropic, fluid dynamic, or physically meaningful. Therefore, the BGK regularization / filtering collision operator form is used. The collision operator Φ i represents the future collision factor. This collision operator extracts non-equilibrium scalar properties only at the relevant supported orders (e.g., only the first order). While the imbalance properties associated with unsupported / undesirable higher-order modes are removed, the operator also retains and releases the modes of interest. This projection is sufficient to recover scalar transport physics (e.g., convection and diffusion). It is believed that the use of this future collision operator can significantly reduce noise, provide better advection performance (e.g., can be more Galilean invariant), and is considered to be more stable than other solutions of the known BGK operator. Such a form (e.g., as shown in Eq. 43) ensures that only the first-order imbalance moment contributes to the scalar diffusion within the fluid dynamic range. Through this collision process, all higher-order imbalance moments can be filtered out. It is believed that the use of the collision operator Φ as described above i This provides benefits including the elimination of numerical noise exhibited in BGK and improved robustness. The scalar T acts as its own balance and does not require a complex expression for the scalar balance distribution function. The collision operator Φ i The overall computation of is quite efficient. It is believed that filtering the higher order unbalance moments may additionally provide the advantage of reducing aliasing that may be present in the higher order equilibrium solutions.
[0280] It can be shown that the collision in (42) obeys the scalar conservation law. Multiplying both sides of equation (42) by f i ′(x,t)=f i (x+c i ,t+1) and note:
[0281]
[0282] turn out
[0283]
[0284] Where T i ′(x, t) represents the right side of equation (42). Therefore, the scalar collision operator preserves the local ρT, which means that local energy conservation is achieved when the scalar is regarded as temperature. i With f i propagate together, so the energy distribution during advection is E = f i T iis completely preserved. Therefore, global conservation of ρT is achieved. In addition, and most notably, the scheme preserves the exact invariance of the uniformity of the scalar T. Intuitively, if Then, regardless of the background flow field, at all times and everywhere thereafter, φ(x,t) = 0 and This fundamental property has not been exhibited by any previous lattice Boltzmann scalar model.
[0285] Using the Chapmann-Enskog expansion, it can be shown that equation (42) recovers the following second-order macroscopic scalar transport equation:
[0286]
[0287] where κ=(τ T -1 / 2)T0. The uniformity condition ensures that ρ Besides.
[0288] Boundary conditions
[0289] A significant advantage of LBM is the ability to handle complex geometries. In the generalized volumetric LB surface algorithm for achieving frictionless / frictional boundary conditions (BC) on arbitrary geometries, mass is conserved and the tangential and normal momentum fluxes on the boundaries are accurately implemented. Local detailed balance is fully satisfied. As a direct extension of this approach, adiabatic (zero scalar flux) BC on arbitrary geometries for scalars can be derived. Once the adiabatic BC is achieved, the prescribed finite flux BC can be achieved.
[0290] Unlike other point-by-point LBs, boundary conditions are enforced on a discretized set of surface elements. These piecewise planar elements together represent a curved geometry. During particle advection, as shown in FIG14 , each surface element collects incoming particles from its neighboring fluid cells (step 1410). The incoming distribution is then overlapped by a parallelepiped from the underlying surface element with the cell's volume in the direction of particle movement. After receiving the input, the following surface scalar algorithm is applied (step 1414). The outgoing distribution of the surface is determined in the future.
[0291]
[0292] in,
[0293] P i (≡|n·c i |A)
[0294] c i·nn<0,c i n=-c i ·P i =P i·n
[0295] Here n is the surface normal pointing into the fluid domain, and c i·n n<0,c i n=-c i .P i (≡|n·c i |A) is the particle direction c associated with the surface normal n and the area A of a given surface element i The volume of the parallelepiped on P i =P i* According to the same surface advection process, the outgoing distribution propagates from the surface element back to the fluid element (step 1416). It is not difficult to prove that the above surface scalar collision achieves an exact zero surface scalar flux. Summing in the outgoing direction, the outgoing scalar flux is:
[0296]
[0297] NoteP i =P i* And T in equation (49) in The second summation on the right-hand side is zero. In addition, due to the conservation of mass flux, The total outgoing scalar flux is the same as the total incoming scalar flux:
[0298]
[0299] Therefore, zero net surface flux (adiabatic) BC is fully satisfied on arbitrary geometry. If an external scalar source Q(t) is specified on the surface, the source term can be added directly to Eq. (48)
[0300]
[0301] If the boundary conditions have a specified scalar quantity T w (e.g. surface temperature), the surface heat flux can be calculated accordingly:
[0302] Q(t)=ρC p κ(T ω -T in ).
[0303] Equation (I.52)
[0304] Numerical verification
[0305] Figures 15-18 show four sets of simulation results that demonstrate the capabilities of the LB scalar solver in terms of its numerical accuracy, stability, Galilean invariance, grid orientation independence, etc. As a comparison, results using two different second-order FD schemes, a van Leer type flux limiter scheme and a direct hybrid scheme (a hybrid of central and first-order upwind schemes) are also presented.
[0306] A. Shear wave attenuation
[0307] The first test case is the decay of a temperature shear wave carried by a constant uniform fluid flow. The initial temperature distribution is uniform, with a lattice wavelength of L = 16 and an amplitude of The spatial sinusoidal variation of T A is a constant. The velocity of the background mean flow is 0.2 and the thermal diffusion coefficient κ is 0.002, such a low resolution and κ can well verify the numerical stability and accuracy. For the temperature decay without background flow, the LB scalar solver and the finite difference method show excellent agreement with the theory. In the case of non-zero background mean flow, the LB scalar solver is still able to accurately compare with the theory. However, the FD results show obvious numerical errors; the temperature curve at lattice time step 81 is plotted in Figure 15. For the flux limiter FD scheme, the numerical diffusion can be clearly seen, while the hybrid FD scheme can neither maintain the correct temperature curve nor its position.
[0308] B. Inclined channel with heat source
[0309] The second test case simulates the temperature distribution in a channel flow with different lattice orientations. The channel walls are free to slide, so the fluid flow remains uniform, as a result U0 = 0.2. The channel width is 50 (lattice spacing) and the flow Re is 2000. The thermal diffusion coefficient κ is 0.005. The temperature on the wall is T W =1 / 3. A constant volume heat source q = 5 × 10 -6. The flow has periodic boundary conditions in the flow direction, which is easy to achieve in the lattice aligned case. When the channel (light color) is tilted as shown in Figure 16, the input and output channel boundaries match perfectly in the coordinate direction, thus achieving periodic boundary conditions in the flow direction again. To demonstrate lattice independence, we choose a tilt angle of 26.56 degrees. Like the first test case, when the channel is lattice aligned, the temperature distribution using the LB scalar solver and the two FD schemes matches the analytical solution very well. However, when the channel is tilted, the results of the FD scheme deviate significantly from the theory. The simulation results of the temperature distribution across the tilted channel are shown in Figure 16. The LB results are clearly shown to be independent of the lattice direction. The errors of the FD method also stem from its inherent difficulty in performing gradient calculations in the tilted boundary direction, thus introducing additional numerical artifacts. Since the LB scalar particle advection is accurate, the BC introduced here is accurate, so it is able to achieve scalar evolution independent of the lattice orientation.
[0310] C. Temperature propagation in an inclined channel
[0311] Due to the lack of neighbor information in the non-lattice-aligned near-wall region on a Cartesian grid, it is difficult to accurately estimate the local gradient, which is crucial for FD-based methods. In addition, the calculation of scalar advection may be further compromised for FD methods due to the strong reliance on upwind information. In contrast, the boundary treatment of the LB scalar solver achieves accurate conservation of local scalar fluxes as described above. Scalar advection in such near-wall regions can be accurately calculated. As an example, high-temperature convection was performed in a channel inclined at 30 degrees. Free sliding and adiabatic BCs were implemented on the solid walls, and the fluid velocity was constant along the channel at U0 = 0.0909. The thermal diffusion coefficient κ was 0.002. Initially, the temperature was 1 / 3 everywhere except T = 4 / 9 at the inlet. This temperature front should then be convected to downstream locations at a later time without deformation due to the uniform background fluid flow. The calculated temperature front distribution across the channel at a lattice time step of 2000 is shown in Figure 17. The temperature front of the LB scalar solver maintains an approximately straight curve. On the other hand, the temperature fronts of the two FD schemes show obvious deformation in the near-wall region. It is also worth mentioning that the LB scalar result shows the thinnest temperature front, which means that the numerical diffusion of the LB scalar solver is smaller.
[0312] D. Rayleigh-Bernard natural convection
[0313] Rayleigh-Bernard (RB) natural convection is a classic benchmark for the accuracy verification of numerical solvers. It has a simple case setting but complex physical phenomena. When the Rayleigh number Ra exceeds a certain critical value, the system undergoes a transition from no flow to convection. As shown in Figure 18, the current study is performed under the Boussinesq approximation, where the buoyancy force acting on the fluid is defined as αρg(TT m ), where α is the thermal expansion coefficient, g is gravity, T m is the average temperature of the top and bottom boundaries. a Exceeding the critical value R a =1707.762, the most unstable wave number is κ c =3.117, so the resolution used in the study is 101×50. The Pr used here is 0.71. After the RB convection is established, the heat transfer between the two plates is greatly enhanced. Nu=1+ y T>H / κΔT describes the enhancement of heat transfer.
[0314] Fluid simulation using the above-described total energy conservation (rather than the conventional method) will provide a similar description of the fluid simulation and any customized corresponding computational data output. However, when an object (e.g., an actual physical object) is modeled, such fluid simulation using the above-described curve method can perform the fluid simulation faster than other methods and / or by using fewer computational resources than other methods.
[0315] The equilibrium distribution discussed in this article does not involve a pressure term, so its value is always positive during the collision operation, providing relatively strong stability. After the collision state is advected as is, resulting in an isothermal pressure gradient in the momentum, there is no pressure advection term in the total energy equation. Conservation of the total P energy is accomplished by modifying the stopped state, such as adding the local pressure term back to the particle state after advection, before calculating the moment that provides the appropriate pressure gradient.
[0316] Many implementations have been described. However, it will be appreciated that various modifications may be made without departing from the spirit and scope of the claims. Therefore, other implementations are within the scope of the appended claims.
Claims
1. A method for simulating fluid flow on a computer, wherein the simulation achieves conservation of total energy, the method comprising: simulating the behavior of a fluid flow on a mesh having a representation of a physical object, the behavior of the fluid flow being simulated to model the movement of particles on the mesh, the mesh being generated from the physical object; storing a set of state vectors for the particle for each grid position in the grid in a computer-accessible memory, each state vector for the particle comprising a plurality of entries corresponding to a particular momentum state among the possible momentum states at the corresponding grid position; calculating, by a computer, sets of energy values for grid locations in the grid; performing advection of particles to subsequent grid locations for time intervals by a computer; as well as The set of state vectors of the particles is modified by the computer by adding a certain total energy value to the state of the advected particles and subtracting the certain total energy value from the state of the particles that were not advected during the time interval.
2. The method according to claim 1, wherein: After the particle is advected to a subsequent grid position according to the modified state vector set of the particle, the method further comprises: A local pressure term is added to the particle's state vector set before computing the moments to provide the appropriate pressure gradient 3. The method according to claim 2, wherein: The local pressure terms include θ-1 pressure terms calculated by the computer, where θ equals RT / T0, and where R is the gas constant, T is the temperature, and T0 is the lattice temperature.
4. The method according to claim 2, wherein: The activity of simulating fluid flow includes simulating fluid flow based in part on the first discrete lattice velocity set, and the method further includes: The time evolution of the scalar is simulated based in part on a second set of discrete lattice velocities, the second set of discrete lattice velocities being the same as the first set of discrete lattice velocities or having a different number of lattice velocities than the first set of discrete lattice velocities.
5. The method according to claim 4, wherein: Simulating the time evolution of the total energy involves: Collect incoming distributions from neighboring grid locations for collision and energy operators; Weighting of incoming distributions; determining the outgoing distribution as the product of collision and energy operators; and The outgoing distribution determined by propagation.
6. The method according to claim 1, wherein: To recover the exact shear stress for any Prandtl number, the energy collision term is given by: Where Π=∑ i c i c i (f i -f i eq ) is the filtered second-order moment of the unbalanced component, and where q′ i (x, t) is the specific total energy distribution after the collision, is the equilibrium specific total energy distribution, τ is the collision relaxation time, x is the lattice position in the volume, t is the specific time point, i is the index number of the lattice velocity in the lattice velocity set, T is the temperature, Π is the nonequilibrium momentum flux, υ is the discrete velocity, R is the gas constant, c i is the lattice velocity and ρ is the density.
7. The method according to claim 5, further comprising: A zero net surface flux boundary condition is applied so that the incoming distribution is equal to the determined outgoing distribution.
8. The method according to claim 1, wherein: Calculating a set of energy values for a grid location in a grid also includes: Calculated by E t =E+v 2 / 2 gives the total energy E t , where E t Refers to specific total energy, which is total energy divided by mass, where E is specific internal energy and v is velocity.
9. The method according to claim 1, wherein: Simulation activities include: By computer for a specific total energy E t Apply the equilibrium distribution and the second distribution function, where the second distribution is defined as follows: i A specific scalar for advection.
10. The method according to claim 9, wherein: The second distribution function takes into account f i The non-equilibrium contribution to the energy equation is given by: f i ′(x,t)=f i (x,t)+Ω f [f i (x,t),f i eq (x,t)] The term Ω f ,Ω q represents the corresponding collision operator; the equilibrium distribution used in the above equation is: in, is the equilibrium specific total energy distribution, E t refers to the specific total energy, which is the total energy divided by the mass, E is the specific internal energy, v is the velocity, q′ i (x, t) is the specific total energy distribution after the collision, x is the lattice position in the volume, t is the specific time point, i is the index number of the lattice velocity in the lattice velocity set, and f i (x, t) is the distribution function, is the equilibrium distribution function, ω i is the lattice weight, ξ i and u are dimensionless lattice and flow velocities normalized by the square root of the lattice temperature T0.
11. A computer program product tangibly embodied in a non-transitory computer readable medium, the computer program product comprising instructions that when executed simulate a physical process fluid flow and cause a computing system to: simulating the behavior of a fluid flow on a mesh having a representation of a physical object, the behavior of the fluid flow being simulated to model the movement of particles on the mesh, the mesh being generated from the physical object; storing in a computer memory a set of state vectors for the particle for each grid position in the grid, each state vector for the particle comprising a plurality of entries corresponding to a particular momentum state among the possible momentum states at the corresponding grid position; calculating sets of energy values for grid locations in the grid; For a time interval, advection of particles to subsequent grid positions is performed; as well as The set of state vectors of the particles is modified by adding a certain total energy value to the state of the advected particles and subtracting the certain total energy value from the state of the particles that were not advected during the time interval.
12. The computer program product according to claim 11, wherein: A certain total energy value is added before advection so that the pressure is convected, and in order to compensate for the added total energy value, the added total energy value is removed from the stopped state.
13. The computer program product of claim 12, wherein: Removing the total energy added conserves the total energy and provides the correct pressure-velocity term.
14. The computer program product of claim 13, wherein: By correcting the stop state so that Provides removal of the added energy, where is the stopped state, is the total energy, and is the flow distribution, is the specific total energy distribution.
15. A computer system for simulating fluid flow in a physical process, the system comprising: one or more processor devices; computer memory coupled to the one or more processor devices; as well as A computer readable medium storing instructions that, when executed, simulate a physical process fluid flow and cause a computing system to: simulating the behavior of a fluid flow on a mesh having a representation of a physical object, the behavior of the fluid flow being simulated to model the movement of particles on the mesh, the mesh being generated from the physical object; storing in a computer memory a set of state vectors for the particle for each grid position in the grid, each state vector for the particle comprising a plurality of entries corresponding to a particular momentum state among the possible momentum states at the corresponding grid position; calculating sets of energy values for grid locations in the grid; For a time interval, advection of particles to subsequent grid positions is performed; as well as The set of state vectors of the particles is modified by adding a certain total energy value to the state of the advected particles and subtracting the certain total energy value from the state of the particles that were not advected during the time interval.
16. The system of claim 15, wherein: The system further includes instructions to: After the particle is advected to the subsequent grid location according to the modified particle's state vector set, a local pressure term is added to the particle's state vector set to provide the appropriate pressure gradient before computing the moments 17. The system of claim 16, wherein: The local pressure term includes θ-1 terms calculated by the system, where θ equals RT / T0, and where R is the gas constant, T is the temperature, and T0 is the lattice temperature.
18. The system of claim 16, wherein: The commands for simulating fluid flow activities include the following: simulating fluid flow based in part on the first set of discrete lattice velocities; and The time evolution of the scalar is simulated based in part on a second set of discrete lattice velocities, the second set of discrete lattice velocities being the same as the first set of discrete lattice velocities or having a different number of lattice velocities than the first set of discrete lattice velocities.
19. The system of claim 15, wherein: The instructions for calculating a set of energy values for a grid position in a grid include calculating the energy values represented by E t =E+v 2 / 2 gives the total energy E t where E is the specific internal energy and v is the velocity.
20. The system of claim 15, further comprising instructions for causing the system to: For a specific total energy E t Apply the equilibrium distribution and the second distribution function, where the second distribution is defined as follows: i A specific scalar for advection.
