Computer simulation of physical processes including modeling of laminar-to-turbulent transition
09542506 ยท 2017-01-10
Assignee
Inventors
- Hudong Chen (Newton, MA)
- Rupesh Kotapati (Lowell, MA, US)
- Raoyang Zhang (Burlington, MA)
- Richard Shock (Winchester, MA, US)
- Ilya Staroselsky (Lincoln, MA, US)
- Yanbing Li (Westford, MA, US)
Cpc classification
G06F30/23
PHYSICS
G06F30/28
PHYSICS
International classification
Abstract
A method for simulating a fluid flow that includes a laminar to turbulent boundary layer transition on a computer, the method comprising: for one or more locations on or near a boundary surface: performing a first calculation where a local boundary layer is taken to be a laminar boundary layer; performing a second calculation where the local boundary layer is taken to be a turbulent boundary layer; comparing a result from the first calculation to a result from the second calculation; and based on the comparing, selecting the result of the first calculation or the result of the second calculation; and inputting the selected result for the one or more locations into a simulation of activity of a fluid in a volume comprising the boundary surface.
Claims
1. A method for simulating a fluid flow on a computer, the method comprising: for one or more locations on or near a boundary surface: performing a first calculation where a local boundary layer is taken to be a laminar boundary layer; performing a second calculation where the local boundary layer is taken to be a turbulent boundary layer; comparing a result from the first calculation where the local boundary layer is taken to be the laminar boundary layer to a result from the second calculation where the local boundary layer is taken to be the turbulent boundary layer; and based on the comparing, selecting the result of the first calculation where the local boundary layer is taken to be the laminar boundary layer or the result of the second calculation where the local boundary layer is taken to be the turbulent boundary layer; and inputting the selected result for the one or more locations into a simulation of activity of a fluid in a volume comprising the boundary surface.
2. The method of claim 1, wherein: performing the first calculation where the local boundary layer is taken to be the laminar boundary layer comprises calculating a wall momentum flux tensor property for a laminar flow; performing the second calculation where the local boundary layer is taken to be the turbulent boundary layer comprises calculating a wall momentum flux tensor property for a turbulent flow; and selecting comprises selecting the laminar wall momentum flux tensor property or the turbulent wall momentum flux tensor property.
3. The method of claim 1, further comprising: determining a laminar to turbulent boundary layer transition by: determining, for each of multiple facets on the boundary surface, a first measure based on the first calculation and a second measure based on the second calculation; and classifying the fluid flow for at least some of the multiple facets as laminar or turbulent by comparing at least one of the first and second measures to a criterion.
4. The method of claim 3, wherein selecting comprises: for facets classified as laminar, selecting a wall momentum flux tensor property for laminar flow; and for facets classified as turbulent, selecting a wall momentum flux tensor property for turbulent flow.
5. The method of claim 3, wherein: the result of the first calculation comprises a measure of laminar wall momentum flux tensor; and the result of the second calculation comprises a measure of turbulent wall momentum flux tensor; and the criterion comprises a measure of turbulence intensity.
6. The method of claim 1, wherein: performing the first calculation comprises calculating, for each of multiple facets on the boundary surface, a measure of laminar wall momentum flux tensor and performing the second calculation comprises calculating, for each of multiple facets on the boundary surface, a measure of turbulent wall momentum flux tensor using the second calculation; comparing comprises comparing, for each of the multiple facets on the boundary surface, a calculated measure of turbulence intensity and the measure of turbulent wall momentum flux tensor; and selecting comprises selecting, for at least some of the multiple facets on the boundary surface, one of the calculated turbulent wall momentum flux tensor and laminar wall momentum flux tensor based on the comparison of the measure of turbulence intensity and the measure of turbulent wall momentum flux tensor.
7. The method of claim 6, wherein: comparing, for each of the multiple facets on the boundary surface, the measure of turbulence intensity and the measure of turbulent wall momentum flux tensor comprises determining if the measure of turbulence intensity is greater than the measure of wall momentum flux tensor; and selecting, for at least some of the multiple facets on the boundary surface, one of the calculated turbulent wall momentum flux tensor and laminar wall momentum flux tensor comprises, for a particular facet, selecting the turbulent wall momentum flux tensor if the measure of turbulence intensity is greater than the measure of turbulent wall momentum flux tensor and selecting the measure of laminar wall momentum flux tensor if the measure of turbulence intensity is less than the measure of turbulent wall momentum flux tensor.
8. The method of claim 6, further comprising calculating a value of local turbulent kinetic energy.
9. The method of claim 6, wherein, for a given near-wall fluid velocity the measure of turbulent wall momentum flux tensor is greater than the measure of laminar wall momentum flux tensor.
10. The method of claim 1, further comprising simulating activity of the fluid in the volume by: performing interaction operations on state vectors, the interaction operations modeling interactions between elements of different momentum states according to a model; and performing first move operations of the state vectors to reflect movement of elements to new voxels in the volume according to the model.
11. The method of claim 1, wherein the second calculation comprises a calculation to determine a measure of turbulent wall momentum flux tensor based on a velocity profile and a wall distance.
12. The method of claim 1, further comprising: selecting, for at least some of multiple facets on the boundary surface, a value that is based on a weighted average of the result of the first calculation and the result of the second calculation.
13. The method of claim 3, further comprising: selecting, for at least some of the multiple facets on the boundary surface, a wall momentum flux tensor property that is based on a combination of a turbulent wall momentum flux tensor property and a laminar wall momentum flux tensor property.
14. The method of claim 1, wherein the second calculation comprises a calculation to determine a measure of turbulent wall momentum flux tensor based on local turbulent kinetic energy and a local fluid velocity.
15. The method of claim 1, wherein a voxel size in a region adjacent to the boundary surface is similar to a voxel size at regions spaced apart from the boundary surface.
16. The method of claim 1, wherein a voxel size in a region adjacent to the boundary surface is the same as a voxel size at regions spaced apart from the boundary surface.
17. A computer program product tangibly embodied in a computer readable hardware storage device, the computer program product including instructions that, when executed, simulate a fluid flow, the computer program product configured to cause a computer to: for one or more locations on or near a boundary surface: perform a first calculation where a local boundary layer is taken to be a laminar boundary layer; perform a second calculation where the local boundary layer is taken to be a turbulent boundary layer; compare a result from the first calculation where the local boundary layer is taken to be the laminar boundary layer to a result from the second calculation where the local boundary layer is taken to be the turbulent boundary layer; and based on the compare, select the result of the first calculation where the local boundary layer is taken to be the laminar boundary layer or the result of the second calculation where the local boundary layer is taken to be the turbulent boundary layer; and input the selected result for the one or more locations into a simulation of activity of a fluid in a volume comprising the boundary surface.
18. The computer program product of claim 17, wherein: the instructions to perform the first calculation comprise instructions to calculate a wall momentum flux tensor property for a laminar flow; the instructions to perform the second calculation comprise instructions to calculate a wall momentum flux tensor property for a turbulent flow; and the instructions to select comprise instructions to select the laminar wall momentum flux tensor property or the turbulent wall momentum flux tensor property.
19. The computer program product of claim 17, further comprising instructions to determine a laminar to turbulent boundary layer transition by comprising instructions to: determine, for each of multiple facets on the boundary surface, a first measure based on the first calculation and a second measure based on the second calculation; and classify the fluid flow for at least some of the multiple facets as laminar or turbulent by comparing at least one of the first and second measures to a criterion.
20. The computer program product of claim 19, wherein the instructions to select comprise: for facets classified as laminar, instructions to select a wall momentum flux tensor property for laminar flow; and for facets classified as turbulent, instructions to select a wall momentum flux tensor property for turbulent flow.
21. The computer program product of claim 19, wherein: the result of the first calculation comprises a measure of laminar wall momentum flux tensor; and the result of the second calculation comprises a measure of turbulent wall momentum flux tensor; and the criterion comprises a measure of turbulence intensity.
22. The computer program product of claim 17, wherein: the instructions to perform the first calculation comprise instructions to calculate, for each of multiple facets on the boundary surface, a measure of laminar wall momentum flux tensor and perform the second calculation comprises instructions to calculate, for each of multiple facets on the boundary surface, a measure of turbulent wall momentum flux tensor using the second boundary layer calculation; and the instructions to compare comprise instructions to compare, for each of the multiple facets on the boundary surface, a calculated measure of turbulence intensity and the measure of turbulent wall momentum flux tensor; and the instructions to select comprise instructions to select, for at least some of the multiple facets on the boundary surface, one of the calculated turbulent wall momentum flux tensor and laminar wall momentum flux tensor based on the comparison of the measure of turbulence intensity and the measure of turbulent wall momentum flux tensor.
23. A computer system for simulating a fluid flow, the system being configured to: for one or more locations on or near a boundary surface: perform a first calculation where a local boundary layer is taken to be a laminar boundary layer; perform a second calculation where the local boundary layer is taken to be a turbulent boundary layer; compare a result from the first calculation where the local boundary layer is taken to be the laminar boundary layer to a result from the second calculation where the local boundary layer is taken to be the turbulent boundary layer; and based on the compare, select the result of the first calculation where the local boundary layer is taken to be the laminar boundary layer or the result of the second calculation where the local boundary layer is taken to be the turbulent boundary layer; and input the selected result for the one or more locations into a simulation of activity of a fluid in a volume comprising the boundary surface.
24. The system of claim 23, wherein: the configurations to perform the first calculation for the laminar boundary layer flow comprise configurations to calculate a wall momentum flux tensor property for the laminar flow; the configurations to perform the second calculation for the turbulent boundary layer flow comprise configurations to calculate a wall momentum flux tensor property for the turbulent flow; and the configurations to select the results of the first boundary layer calculation or the results of the second calculation for a turbulent boundary layer flow comprise configurations to select the laminar wall momentum flux tensor property or the turbulent wall momentum flux tensor property.
25. The system of claim 23, further comprising configurations to determine a laminar to turbulent boundary layer transition for the boundary layer that comprise configurations to: determine, for each of multiple facets on the boundary surface, a first measure based on the first calculation and a second measure based on the second calculation; and classify the fluid flow for at least some of the multiple facets as laminar or turbulent by comparing at least one of the first and second measures to a criterion.
26. The system of claim 25, wherein the configurations to select comprise configurations to: for facets classified as laminar, configurations to select a wall momentum flux tensor property value for laminar flow; and for facets classified as turbulent, configurations to select a wall momentum flux tensor property for turbulent flow.
27. The system of claim 25, wherein: the result of the first calculation comprises a measure of laminar wall momentum flux tensor; the result of the second calculation comprises a measure of wall momentum flux tensor; and the criteria comprises a measure of turbulence intensity.
28. The system of claim 23, wherein: the configurations to perform the first calculation comprise configurations to calculate, for each of multiple facets on the boundary surface, a measure of laminar wall momentum flux tensor and the configurations to perform the second calculation comprise configurations to calculate, for each of multiple facets on the boundary surface, a measure of turbulent wall momentum flux tensor using the second calculation; and the configurations to compare comprise configurations to compare, for each of the multiple facets on the boundary surface, a calculated measure of turbulence intensity and the measure of turbulent wall momentum flux tensor; and the configurations to select comprise configurations to: select, for at least some of the multiple facets on the boundary surface, one of the calculated turbulent wall momentum flux tensor and laminar wall momentum flux tensor based on the comparison of the measure of turbulence intensity and the measure of wall momentum flux tensor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DESCRIPTION
(13) A. Approach to Modeling Wall-Shear Stress
(14) When completing complex fluid flow simulations it can be beneficial to take into account the differences in wall-shear stress between a laminar boundary layer flow and a turbulent boundary layer flow.
(15) Application of the universal law of the wall is valid and reliable if the flow everywhere in the boundary layer is fully turbulent and if the boundary layer is developing under zero pressure gradient. However, this condition is not always satisfied in a high Reynolds number wall-bounded flow. Indeed, close to the leading edges of fluid dynamic devices, the developing boundary layer flow is often not fully turbulent but rather laminar which can affect resulting values of wall-shear stress. The consequence on predicting global flow properties like lift and drag can be substantial, especially for streamlined bodies. Therefore, described herein are methods and systems for identifying where (and when) the flow is laminar or turbulent over solid surfaces. By identifying where the flow is laminar, the model for wall-shear stress can properly and automatically account the laminar flow situations (e.g., by modifying a value for the skin friction/wall-shear stress at a particular location). More particularly, for every location on a surface, a calculation can be performed to determine whether the flow at the location is laminar or turbulent and the first value for the wall-shear stress can be used in the flow dynamics simulation if the flow at the location is laminar and the second, different value for the wall-shear stress can be used in the flow dynamics simulation if the flow at the location is turbulent. In the systems and methods described herein, a lattice Boltzmann boundary condition ensures the momentum flux (i.e., wall-shear stress) at the wall on arbitrary geometries, as long as the wall-shear stress value is prescribed. The systems and methods described herein include identifying, on a per facet/surfel basis, if the flow is turbulent or not based on a comparison of the turbulent kinetic energy level to the wall-shear stress value for the surface location: it is turbulent if the turbulent kinetic energy level is greater or equal to the wall-shear stress value, and is laminar if otherwise. Based on this determination of whether the flow is laminar or turbulent, the appropriate wall-shear stress value is located and applied to the surface location (e.g., a laminar wall-shear stress value is assigned to regions of laminar flow and a turbulent wall-shear stress value is applied to regions of turbulent flow).
(16) This approach for modeling wall-shear stress may be used in conjunction with a time-explicit CFD/CAA solution method based on the Lattice Boltzmann Method (LBM), such as the PowerFLOW system available from Exa Corporation of Burlington, Mass. Unlike methods based on discretizing the macroscopic continuum equations, LBM starts from a mesoscopic Boltzmann kinetic equation to predict macroscopic fluid dynamics. The resulting compressible and unsteady solution method may be used for predicting a variety of complex flow physics, such as aeroacoustics and pure acoustics problems. A general discussion of a LBM-based simulation system is provided below and followed by a discussion of a scalar solving approach that may be used in conjunction with fluid flow simulations to support such a modeling approach.
(17) B. Model Simulation Space
(18) In a LBM-based physical process simulation system, fluid flow may be represented by the distribution function values .sub.i, evaluated at a set of discrete velocities c.sub.i. The dynamics of the distribution function is governed by Equation 4 where .sub.i(0) is known as the equilibrium distribution function, defined as:
(19)
This equation is the well-known lattice Boltzmann equation that describe the time-evolution of the distribution function, .sub.i. The left-hand side represents the change of the distribution due to the so-called streaming process. The streaming process is when a pocket of fluid starts out at a grid location, and then moves along one of the velocity vectors to the next grid location. At that point, the collision factor, i.e., the effect of nearby pockets of fluid on the starting pocket of fluid, is calculated. The fluid can only move to another grid location, so the proper choice of the velocity vectors is necessary so that all the components of all velocities are multiples of a common speed.
(20) The right-hand side of the first equation is the aforementioned collision operator which represents the change of the distribution function due to the collisions among the pockets of fluids. The particular form of the collision operator used here is due to Bhatnagar, Gross and Krook (BGK). It forces the distribution function to go to the prescribed values given by the second equation, which is the equilibrium form.
(21) From this simulation, conventional fluid variables, such as mass p and fluid velocity u, are obtained as simple summations in Equation (3). Here, the collective values of c.sub.i and w.sub.i define a LBM model. The LBM model can be implemented efficiently on scalable computer platforms and run with great robustness for time unsteady flows and complex boundary conditions.
(22) A standard technique of obtaining the macroscopic equation of motion for a fluid system from the Boltzmann equation is the Chapman-Enskog method in which successive approximations of the full Boltzmann equation are taken.
(23) In a fluid system, a small disturbance of the density travels at the speed of sound. In a gas system, the speed of the sound is generally determined by the temperature. The importance of the effect of compressibility in a flow is measured by the ratio of the characteristic velocity and the sound speed, which is known as the Mach number.
(24) Referring to
(25) As also illustrated in
(26) More complex models, such as a 3D2 model includes 101 velocities and a 2D2 model includes 37 velocities also may be used.
(27) For the three-dimensional model 3D2, of the 101 velocities, one represents particles that are not moving (Group 1); three sets of six velocities represent particles that are moving at either a normalized speed (r), twice the normalized speed (2r), or three times the normalized speed (3r) in either the positive or negative direction along the x, y or z axis of the lattice (Groups 2, 4, and 7); three sets of eight represent particles that are moving at the normalized speed (r), twice the normalized speed (2r), or three times the normalized speed (3r) relative to all three of the x, y, z lattice axes (Groups 3, 8, and 10); twelve represent particles that are moving at twice the normalized speed (2r) relative to two of the x, y, z lattice axes (Group 6); twenty four represent particles that are moving at the normalized speed (r) and twice the normalized speed (2r) relative to two of the x, y, z lattice axes, and not moving relative to the remaining axis (Group 5); and twenty four represent particles that are moving at the normalized speed (r) relative to two of the x, y, z lattice axes and three times the normalized speed (3r) relative to the remaining axis (Group 9).
(28) For the two-dimensional model 2D2, of the 37 velocities, one represents particles that are not moving (Group 1); three sets of four velocities represent particles that are moving at either a normalized speed (r), twice the normalized speed (2r), or three times the normalized speed (3r) in either the positive or negative direction along either the x or y axis of the lattice (Groups 2, 4, and 7); two sets of four velocities represent particles that are moving at the normalized speed (r) or twice the normalized speed (2r) relative to both of the x and y lattice axes; eight velocities represent particles that are moving at the normalized speed (r) relative to one of the x and y lattice axes and twice the normalized speed (2r) relative to the other axis; and eight velocities represent particles that are moving at the normalized speed (r) relative to one of the x and y lattice axes and three times the normalized speed (3r) relative to the other axis.
(29) The LBM models described above provide a specific class of efficient and robust discrete velocity kinetic models for numerical simulations of flows in both two- and three-dimensions. A model of this kind includes a particular set of discrete velocities and weights associated with those velocities. The velocities coincide with grid points of Cartesian coordinates in velocity space which facilitates accurate and efficient implementation of discrete velocity models, particularly the kind known as the lattice Boltzmann models. Using such models, flows can be simulated with high fidelity.
(30) Referring to
(31) The resolution of the lattice may be selected based on the Reynolds number of the system being simulated. The Reynolds number is related to the viscosity (v) of the flow, the characteristic length (L) of an object in the flow, and the characteristic velocity (u) of the flow:
Re=uL/v.Eq. (5)
(32) The characteristic length of an object represents large scale features of the object. For example, if flow around a micro-device were being simulated, the height of the micro-device might be considered to be the characteristic length. When flow around small regions of an object (e.g., the side mirror of an automobile) is of interest, the resolution of the simulation may be increased, or areas of increased resolution may be employed around the regions of interest. The dimensions of the voxels decrease as the resolution of the lattice increases.
(33) The state space is represented as .sub.i(x, t), where .sub.i represents the number of elements, or particles, per unit volume in state i (i.e., the density of particles in state i) at a lattice site denoted by the three-dimensional vector x at a time t. For a known time increment, the number of particles is referred to simply as .sub.i(x). The combination of all states of a lattice site is denoted as (x).
(34) The number of states is determined by the number of possible velocity vectors within each energy level. The velocity vectors consist of integer linear speeds in a space having three dimensions: x, y, and z. The number of states is increased for multiple-species simulations.
(35) Each state i represents a different velocity vector at a specific energy level (i.e., energy level zero, one or two). The velocity c.sub.i of each state is indicated with its speed in each of the three dimensions as follows:
c.sub.i=(c.sub.i,x,c.sub.i,y,c.sub.i,z).Eq. (6)
(36) The energy level zero state represents stopped particles that are not moving in any dimension, i.e. c.sub.stopped=(0, 0, 0). Energy level one states represents particles having a 1 speed in one of the three dimensions and a zero speed in the other two dimensions. Energy level two states represent particles having either a 1 speed in all three dimensions, or a 2 speed in one of the three dimensions and a zero speed in the other two dimensions.
(37) Generating all of the possible permutations of the three energy levels gives a total of 39 possible states (one energy zero state, 6 energy one states, 8 energy three states, 6 energy four states, 12 energy eight states and 6 energy nine states.).
(38) Each voxel (i.e., each lattice site) is represented by a state vector f(x). The state vector completely defines the status of the voxel and includes 39 entries. The 39 entries correspond to the one energy zero state, 6 energy one states, 8 energy three states, 6 energy four states, 12 energy eight states and 6 energy nine states. By using this velocity set, the system can produce Maxwell-Boltzmann statistics for an achieved equilibrium state vector.
(39) For processing efficiency, the voxels are grouped in 222 volumes called microblocks. The microblocks are organized to permit parallel processing of the voxels and to minimize the overhead associated with the data structure. A short-hand notation for the voxels in the microblock is defined as N.sub.i(n), where n represents the relative position of the lattice site within the microblock and n{0, 1, 2, . . . , 7}. A microblock is illustrated in
(40) Referring to
S={F.sub.}Eq. (7)
where is an index that enumerates a particular facet. A facet is not restricted to the voxel boundaries, but is typically sized on the order of or slightly smaller than the size of the voxels adjacent to the facet so that the facet affects a relatively small number of voxels. Properties are assigned to the facets for the purpose of implementing surface dynamics. In particular, each facet F.sub. has a unit normal (n.sub.), a surface area (A.sub.), a center location (x.sub.), and a facet distribution function (.sub.i()) that describes the surface dynamic properties of the facet.
(41) Referring to
(42) C. Identify Voxels Affected by Facets
(43) Referring again to
(44) Voxels that interact with one or more facets by transferring particles to the facet or receiving particles from the facet are also identified as voxels affected by the facets. All voxels that are intersected by a facet will include at least one state that receives particles from the facet and at least one state that transfers particles to the facet. In most cases, additional voxels also will include such states.
(45) Referring to
V.sub.i=|c.sub.in.sub.|A.sub.Eq. (8)
(46) The facet F.sub. receives particles from the volume V.sub.i when the velocity vector of the state is directed toward the facet (|c.sub.in.sub.i|<0), and transfers particles to the region when the velocity vector of the state is directed away from the facet (|c.sub.in.sub.i|>0). As will be discussed below, this expression must be modified when another facet occupies a portion of the parallelepiped G.sub.i, a condition that could occur in the vicinity of non-convex features such as interior corners.
(47) The parallelepiped G.sub.i of a facet F.sub. may overlap portions or all of multiple voxels. The number of voxels or portions thereof is dependent on the size of the facet relative to the size of the voxels, the energy of the state, and the orientation of the facet relative to the lattice structure. The number of affected voxels increases with the size of the facet. Accordingly, the size of the facet, as noted above, is typically selected to be on the order of or smaller than the size of the voxels located near the facet.
(48) The portion of a voxel N(x) overlapped by a parallelepiped G.sub.i is defined as V.sub.i(x). Using this term, the flux .sub.i(x) of state i particles that move between a voxel N(x) and a facet F.sub. equals the density of state i particles in the voxel (N.sub.i(x)) multiplied by the volume of the region of overlap with the voxel (V.sub.i(x)):
.sub.i(x)=N.sub.i(x)V.sub.i(x).Eq. (9)
(49) When the parallelepiped G.sub.i, is intersected by one or more facets, the following condition is true:
V.sub.i=V.sub.(x)+V.sub.i()Eq. (10)
(50) where the first summation accounts for all voxels overlapped by G.sub.i and the second term accounts for all facets that intersect G.sub.i. When the parallelepiped G.sub.i is not intersected by another facet, this expression reduces to:
V.sub.i=V.sub.i(x).Eq. (11)
(51) D. Perform Simulation
(52) Once the voxels that are affected by one or more facets are identified (step 304), a timer is initialized to begin the simulation (step 306). During each time increment of the simulation, movement of particles from voxel to voxel is simulated by an advection stage (steps 308-316) that accounts for interactions of the particles with surface facets. Next, a collision stage (step 318) simulates the interaction of particles within each voxel. Thereafter, the timer is incremented (step 320). If the incremented timer does not indicate that the simulation is complete (step 322), the advection and collision stages (steps 308-320) are repeated. If the incremented timer indicates that the simulation is complete (step 322), results of the simulation are stored and/or displayed (step 324).
(53) 1. Boundary Conditions for Surface
(54) To correctly simulate interactions with a surface, each facet must meet four boundary conditions. First, the combined mass of particles received by a facet must equal the combined mass of particles transferred by the facet (i.e., the net mass flux to the facet must equal zero). Second, the combined energy of particles received by a facet must equal the combined energy of particles transferred by the facet (i.e., the net energy flux to the facet must equal zero). These two conditions may be satisfied by requiring the net mass flux at each energy level (i.e., energy levels one and two) to equal zero.
(55) The other two boundary conditions are related to the net momentum of particles interacting with a facet. For a surface with no skin friction, referred to herein as a slip surface, the net tangential momentum flux must equal zero and the net normal momentum flux must equal the local pressure at the facet. Thus, the components of the combined received and transferred momentums that are perpendicular to the normal n.sub. of the facet (i.e., the tangential components) must be equal, while the difference between the components of the combined received and transferred momentums that are parallel to the normal n.sub. of the facet (i.e., the normal components) must equal the local pressure at the facet. For non-slip surfaces, friction of the surface reduces the combined tangential momentum of particles transferred by the facet relative to the combined tangential momentum of particles received by the facet by a factor that is related to the amount of friction.
(56) 2. Gather From Voxels to Facets
(57) As a first step in simulating interaction between particles and a surface, particles are gathered from the voxels and provided to the facets (step 308). As noted above, the flux of state i particles between a voxel N(x) and a facet F.sub. is:
.sub.i(x)=N.sub.i(x)V.sub.i(x).Eq. (12)
(58) From this, for each state i directed toward a facet F.sub.(c.sub.in.sub.<0), the number of particles provided to the facet F.sub. by the voxels is:
(59)
(60) Only voxels for which V.sub.i (x) has a non-zero value must be summed. As noted above, the size of the facets is selected so that V.sub.i(x) has a non-zero value for only a small number of voxels. Because V.sub.i (x) and P.sub. (x) may have non-integer values, .sub. (x) is stored and processed as a real number.
(61) 3. Move From Facet to Facet
(62) Next, particles are moved between facets (step 310). If the parallelepiped G.sub.i for an incoming state (c.sub.in.sub.<0) of a facet F.sub. is intersected by another facet F.sub., then a portion of the state i particles received by the facet F.sub. will come from the facet F.sub.. In particular, facet F.sub. will receive a portion of the state i particles produced by facet F.sub. during the previous time increment. This relationship is illustrated in
.sub.i(,t1)=.sub.i()V.sub.i()/V.sub.i,Eq. (14)
where .sub.i(,t1) is a measure of the state i particles produced by the facet F.sub. during the previous time increment. From this, for each state i directed toward a facet F.sub.(c.sub.in.sub.<0), the number of particles provided to the facet F.sub. by the other facets is:
(63)
(64) and the total flux of state i particles into the facet is:
(65)
(66) The state vector N() for the facet, also referred to as a facet distribution function, has M entries corresponding to the M entries of the voxel states vectors. M is the number of discrete lattice speeds. The input states of the facet distribution function N() are set equal to the flux of particles into those states divided by the volume V.sub.i:
N.sub.i()=.sub.iIN()/V.sub.i,Eq. (17)
for c.sub.i n.sub.<0.
(67) The facet distribution function is a simulation tool for generating the output flux from a facet, and is not necessarily representative of actual particles. To generate an accurate output flux, values are assigned to the other states of the distribution function. Outward states are populated using the technique described above for populating the inward states:
N.sub.i()=.sub.iOTHER()/VEq. (18)
for c.sub.in.sub.>0, wherein .sub.iOTHER () is determined using the technique described above for generating .sub.iIN(), but applying the technique to states (c.sub.in.sub.0) other than incoming states (c.sub.in.sub.<0)). In an alternative approach, .sub.iOTHER () may be generated using values of .sub.iOUT () from the previous time step so that:
.sub.iOTHER(,t).sub.iOUT(,t1).Eq. (19)
(68) For parallel states (c.sub.in.sub.=0), both V.sub.i and V.sub.i(x) are zero. In the expression for N.sub.i(), V.sub.i(x) appears in the numerator (from the expression for .sub.iOTHER () and V.sub.i appears in the denominator (from the expression for N.sub.i()). Accordingly, N.sub.i() for parallel states is determined as the limit of N.sub.i() as V.sub.i and V.sub.i(x) approach zero.
(69) The values of states having zero velocity (i.e., rest states and states (0, 0, 0, 2) and (0, 0, 0, 2)) are initialized at the beginning of the simulation based on initial conditions for temperature and pressure. These values are then adjusted over time.
(70) 4. Perform Facet Surface Dynamics
(71) Next, surface dynamics are performed for each facet to satisfy the four boundary conditions discussed above (step 312). A procedure for performing surface dynamics for a facet is illustrated in
(72)
for all i. From this, the normal momentum P.sub.n() is determined as:
P.sub.n()=n.sub..Math.P().Eq. (21)
(73) This normal momentum is then eliminated using a pushing/pulling technique (step 1110) to produce N.sub.n-(). According to this technique, particles are moved between states in a way that affects only normal momentum. The pushing/pulling technique is described in U.S. Pat. No. 5,594,671, which is incorporated by reference.
(74) Thereafter, the particles of N.sub.n() are collided to produce a Boltzmann distribution N.sub.n-() (step 1115). As described below with respect to performing fluid dynamics, a Boltzmann distribution may be achieved by applying a set of collision rules to N.sub.n().
(75) An outgoing flux distribution for the facet F.sub. is then determined (step 1120) based on the incoming flux distribution and the Boltzmann distribution. First, the difference between the incoming flux distribution .sub.i() and the Boltzmann distribution is determined as:
.sub.i()=.sub.iIN()N.sub.n-i()V.sub.i.Eq. (22)
(76) Using this difference, the outgoing flux distribution is:
.sub.iOUT()=N.sub.n-i()V.sub.i...sub.i*(),Eq. (23)
for n.sub.c.sub.i>0 and where i* is the state having a direction opposite to state i. For example, if state i is (1, 1, 0, 0), then state i* is (1, 1, 0, 0). To account for skin friction (also referred to as wall shear stress) and other factors, the outgoing flux distribution may be further refined to:
.sub.iOUT()=N.sub.n-Bi()V.sub.i.sub.i*()+C.sub.f(n.sub..Math.c.sub.i)[N.sub.n-Bi*()N.sub.n-Bi()]V.sub.i+(n.sub..Math.c.sub.i)(t.sub.I.Math.c.sub.i)N.sub.j,IV.sub.i+(n.sub..Math.c.sub.i)(t.sub.2.Math.c.sub.i)N.sub.j,2V.sub.iEq. (24)
for n.sub.c.sub.i>0, where C.sub. is a function of skin friction (also referred to as wall shear stress), t.sub.i is a first tangential vector that is perpendicular to n.sub., t.sub.2, is a second tangential vector that is perpendicular to both n.sub. and t.sub.1, and N.sub.j,1 and N.sub.j,2 are distribution functions corresponding to the energy (j) of the state i and the indicated tangential vector. The distribution functions are determined according to:
(77)
where j equals 1 for energy level 1 states and 2 for energy level 2 states.
(78) The functions of each term of the equation for .sub.iOUT() are as follows. The first and second terms enforce the normal momentum flux boundary condition to the extent that collisions have been effective in producing a Boltzmann distribution, but include a tangential momentum flux anomaly. The fourth and fifth terms correct for this anomaly, which may arise due to discreteness effects or non-Boltzmann structure due to insufficient collisions. Finally, the third term adds a specified amount of skin fraction to enforce a desired change in tangential momentum flux on the surface. Generation of the friction coefficient C.sub. is described below. Note that all terms involving vector manipulations are geometric factors that may be calculated prior to beginning the simulation.
(79) From this, a tangential velocity is determined as:
u.sub.i()=(P()P.sub.n()n.sub.)/,Eq. (26)
where is the density of the facet distribution:
(80)
(81) As before, the difference between the incoming flux distribution and the Boltzmann distribution is determined as:
.sub.i()=.sub.iIN()N.sub.n-i()V.sub.i.Eq. (28)
(82) The outgoing flux distribution then becomes:
.sub.iOUT()=N.sub.n-i()V.sub.i.sub.i*()+C.sub.f(n.sub.c.sub.i)[N.sub.n-i*()N.sub.n-i()]V.sub.i,Eq. (29)
which corresponds to the first two lines of the outgoing flux distribution determined by the previous technique but does not require the correction for anomalous tangential flux.
(83) Using either approach, the resulting flux-distributions satisfy all of the momentum flux conditions, namely:
(84)
(85) where p.sub. is the equilibrium pressure at the facet F.sub. and is based on the averaged density and temperature values of the voxels that provide particles to the facet, and u.sub. is the average velocity at the facet.
(86) To ensure that the mass and energy boundary conditions are met, the difference between the input energy and the output energy is measured for each energy level j as:
(87)
where the index j denotes the energy of the state i. This energy difference is then used to generate a difference term:
(88)
(89) for c.sub.jin.sub.>0. This difference term is used to modify the outgoing flux so that the flux becomes:
.sub.jiOUTf=.sub.jiOUT+.sub.jiEq. (33)
for c.sub.jin.sub.>0. This operation corrects the mass and energy flux while leaving the tangential momentum flux unaltered. This adjustment is small if the flow is approximately uniform in the neighborhood of the facet and near equilibrium. The resulting normal momentum flux, after the adjustment, is slightly altered to a value that is the equilibrium pressure based on the neighborhood mean properties plus a correction due to the non-uniformity or non-equilibrium properties of the neighborhood.
(90) 5. Move from Voxels to Voxels
(91) Referring again to
(92) Each of the separate states represents particles moving along the lattice with integer speeds in each of the three dimensions: x, y, and z. The integer speeds include: 0, 1, and 2. The sign of the speed indicates the direction in which a particle is moving along the corresponding axis.
(93) For voxels that do not interact with a surface, the move operation is computationally quite simple. The entire population of a state is moved from its current voxel to its destination voxel during every time increment. At the same time, the particles of the destination voxel are moved from that voxel to their own destination voxels. For example, an energy level 1 particle that is moving in the +1x and +1y direction (1, 0, 0) is moved from its current voxel to one that is +1 over in the x direction and 0 for other direction. The particle ends up at its destination voxel with the same state it had before the move (1,0,0). Interactions within the voxel will likely change the particle count for that state based on local interactions with other particles and surfaces. If not, the particle will continue to move along the lattice at the same speed and direction.
(94) The move operation becomes slightly more complicated for voxels that interact with one or more surfaces. This can result in one or more fractional particles being transferred to a facet. Transfer of such fractional particles to a facet results in fractional particles remaining in the voxels. These fractional particles are transferred to a voxel occupied by the facet. For example, referring to
(95)
where N(x) is the source voxel.
(96) 6. Scatter from Facets to Voxels
(97) Next, the outgoing particles from each facet are scattered to the voxels (step 316). Essentially, this step is the reverse of the gather step by which particles were moved from the voxels to the facets. The number of state i particles that move from a facet F.sub. to a voxel N(x) is:
(98)
where P.sub.f(x) accounts for the volume reduction of partial voxels. From this, for each state i, the total number of particles directed from the facets to a voxel N.sub.(x) is:
(99)
(100) After scattering particles from the facets to the voxels, combining them with particles that have advected in from surrounding voxels, and integerizing the result, it is possible that certain directions in certain voxels may either underflow (become negative) or overflow (exceed 255 in an eight-bit implementation). This would result in either a gain or loss in mass, momentum and energy after these quantities are truncated to fit in the allowed range of values. To protect against such occurrences, the mass, momentum and energy that are out of bounds are accumulated prior to truncation of the offending state. For the energy to which the state belongs, an amount of mass equal to the value gained (due to underflow) or lost (due to overflow) is added back to randomly (or sequentially) selected states having the same energy and that are not themselves subject to overflow or underflow. The additional momentum resulting from this addition of mass and energy is accumulated and added to the momentum from the truncation. By only adding mass to the same energy states, both mass and energy are corrected when the mass counter reaches zero. Finally, the momentum is corrected using pushing/pulling techniques until the momentum accumulator is returned to zero.
(101) 7. Perform Fluid Dynamics
(102) Finally, fluid dynamics are performed (step 318). This step may be referred to as microdynamics or intravoxel operations. Similarly, the advection procedure may be referred to as intervoxel operations. The microdynamics operations described below may also be used to collide particles at a facet to produce a Boltzmann distribution.
(103) The fluid dynamics is ensured in the lattice Boltzmann equation models by a particular collision operator known as the BGK collision model. This collision model mimics the dynamics of the distribution in a real fluid system. The collision process can be well described by the right-hand side of Equation 1 and Equation 2. After the advection step, the conserved quantities of a fluid system, specifically the density, momentum and the energy are obtained from the distribution function using Equation 3. From these quantities, the equilibrium distribution function, noted by .sup.eq in equation (2), is fully specified by Equation (4). The choice of the velocity vector set c.sub.i, the weights, both are listed in Table 1, together with Equation 2 ensures that the macroscopic behavior obeys the correct hydrodynamic equation.
(104) E. Variable Resolution
(105) Referring to
(106) When variable resolution is employed at or near a surface, facets may interact with voxels on both sides of the VR interface. These facets are classified as VR interface facets 1215 (F.sub.IC) or VR fine facets 1220 (F.sub.IF). A VR interface facet 1215 is a facet positioned on the coarse side of the VR interface and having a coarse parallelepiped 1225 extending into a fine voxel. (A coarse parallelepiped is one for which c.sub.i is dimensioned according to the dimensions of a coarse voxel, while a fine parallelepiped is one for which c.sub.i is dimensioned according to the dimensions of a fine voxel.) A VR fine facet 1220 is a facet positioned on the fine side of the VR interface and having a fine parallelepiped 1230 extending into a coarse voxel. Processing related to interface facets may also involve interactions with coarse facets 1235 (F.sub.C) and fine facets 1240 (F.sub.F).
(107) For both types of VR facets, surface dynamics are performed at the fine scale, and operate as described above. However, VR facets differ from other facets with respect to the way in which particles advect to and from the VR facets.
(108) Interactions with VR facets are handled using a variable resolution procedure 1300 illustrated in
(109) Initially, particles are moved (advected) between facets by a first surface-to-surface advection stage (step 1302). Particles are moved from black facets F.sub.ICb to coarse facets F.sub.C with a weighting factor of V.sub. that corresponds to the volume of the unblocked portion of the coarse parallelepiped (
V.sub.i=|c.sub.in.sub.|A.sub..Eq. (37)
(110) Accordingly, because the surface area A.sub. of a facet does not change between coarse and fine parallelepipeds, and because the unit normal n.sub. always has a magnitude of one, the volume of a fine parallelepiped corresponding to a facet is one half the volume of the corresponding coarse parallelepiped for the facet.
(111) Particles are moved from coarse facets F.sub.C to black facets F.sub.ICb with a weighting factor of V.sub. that corresponds to the volume of the unblocked portion of the fine parallelepiped that extends from a facet F.sub. and that lies behind a facet F.sub..
(112) Particles are moved from red facets F.sub.ICr to coarse facets F.sub.C with a weighting factor of V.sub., and from coarse facets F.sub.C to red facets F.sub.ICr with a weighting factor of V.sub..
(113) Particles are moved from red facets F.sub.ICr to black facets F.sub.ICr with a weighting factor of V.sub.. In this stage, black-to-red advections do not occur. In addition, because the black and red facets represent consecutive time steps, black-to-black advections (or red-to-red advections) never occur. For similar reasons, particles in this stage are moved from red facets F.sub.ICr to fine facets F.sub.IF or F.sub.F with a weighting factor of V.sub., and from fine facets F.sub.IF or F.sub.F to black facets F.sub.ICb with the same weighting factor.
(114) Finally, particles are moved from fine facets F.sub.IF or F.sub.F to other fine facets F.sub.IF or F.sub.F with the same weighting factor, and from coarse facets F.sub.C to other coarse facets F.sub.C with a weighting factor of V.sub.C that corresponds to the volume of the unblocked portion of the coarse parallelepiped that extends from a facet F.sub. and that lies behind a facet F.sub..
(115) After particles are advected between surfaces, particles are gathered from the voxels in a first gather stage (steps 1304-1310). Particles are gathered for fine facets F.sub.F from fine voxels using fine parallelepipeds (step 1304), and for coarse facets F.sub.C from coarse voxels using coarse parallelepipeds (step 1306). Particles are then gathered for black facets F.sub.IRb and for VR fine facets F.sub.IF from both coarse and fine voxels using fine parallelepipeds (step 1308). Finally, particles are gathered for red facets F.sub.IRr from coarse voxels using the differences between coarse parallelepipeds and fine parallelepipeds (step 1310).
(116) Next, coarse voxels that interact with fine voxels or VR facets are exploded into a collection of fine voxels (step 1312). The states of a coarse voxel that will transmit particles to a fine voxel within a single coarse time step are exploded. For example, the appropriate states of a coarse voxel that is not intersected by a facet are exploded into eight fine voxels oriented like the microblock of
(117) Thereafter, surface dynamics are performed for the fine facets F.sub.IF and F.sub.F (step 1314), and for the black facets F.sub.ICb (step 1316). Dynamics are performed using the procedure illustrated in
(118) Next, particles are moved between fine voxels (step 1318) including actual fine voxels and fine voxels resulting from the explosion of coarse voxels. Once the particles have been moved, particles are scattered from the fine facets F.sub.IF and F.sub.F to the fine voxels (step 1320).
(119) Particles are also scattered from the black facets F.sub.ICb to the fine voxels (including the fine voxels that result from exploding a coarse voxel) (step 1322). Particles are scattered to a fine voxel if the voxel would have received particles at that time absent the presence of a surface. In particular, particles are scattered to a voxel N(x) when the voxel is an actual fine voxel (as opposed to a fine voxel resulting from the explosion of a coarse voxel), when a voxel N(x+c.sub.i) that is one velocity unit beyond the voxel N(x) is an actual fine voxel, or when the voxel N(x+c.sub.i) that is one velocity unit beyond the voxel N(x) is a fine voxel resulting from the explosion of a coarse voxel.
(120) Finally, the first fine time step is completed by performing fluid dynamics on the fine voxels (step 1324). The voxels for which fluid dynamics are performed do not include the fine voxels that result from exploding a coarse voxel (step 1312).
(121) The procedure 1300 implements similar steps during the second fine time step. Initially, particles are moved between surfaces in a second surface-to-surface advection stage (step 1326). Particles are advected from black facets to red facets, from black facets to fine facets, from fine facets to red facets, and from fine facets to fine facets.
(122) After particles are advected between surfaces, particles are gathered from the voxels in a second gather stage (steps 1328-1330). Particles are gathered for red facets F.sub.IRr from fine voxels using fine parallelepipeds (step 1328). Particles also are gathered for fine facets F.sub.F and F.sub.IF from fine voxels using fine parallelepipeds (step 1330).
(123) Thereafter, surface dynamics are performed for the fine facets F.sub.IF and F.sub.F (step 1332), for the coarse facets F.sub.C (step 1134), and for the red facets F.sub.ICr (step 1336) as discussed above.
(124) Next, particles are moved between voxels using fine resolution (step 1338) so that particles are moved to and from fine voxels and fine voxels representative of coarse voxels. Particles are then moved between voxels using coarse resolution (step 1340) so that particles are moved to and from coarse voxels.
(125) Next, in a combined step, particles are scattered from the facets to the voxels while the fine voxels that represent coarse voxels (i.e., the fine voxels resulting from exploding coarse voxels) are coalesced into coarse voxels (step 1342). In this combined step, particles are scattered from coarse facets to coarse voxels using coarse parallelepipeds, from fine facets to fine voxels using fine parallelepipeds, from red facets to fine or coarse voxels using fine parallelepipeds, and from black facets to coarse voxels using the differences between coarse parallelepipeds and find parallelepipeds. Finally, fluid dynamics are performed for the fine voxels and the coarse voxels (step 1344).
(126) G. Wall-Shear Stress Determination
(127) As noted above, various types of LBM may be applied for solving fluid flows. Accurate prediction of high Reynolds number boundary layer flows over solid surfaces is of great significance in computational aerodynamics, for it determines the aero/hydrodynamic forces acting on a body moving in a fluid. One physical quantity affected by the boundary layer flow is the wall shear stress (i.e., skin friction), which in turn affects fundamental flow properties including but not limited to pressure distribution and fluctuations, flow separation and stall characteristics of fluid dynamic devices such as an aircraft wing or a ground vehicle. Thus, the fluid flow simulations rely in part on skin friction (also referred to as wall shear stress) to enforce a desired change in tangential momentum flux on the surface. The wall-shear stress at a particular location on the surface is affected by the fluid flow at the surface. For example, the wall-shear stress for regions of the surface exhibiting laminar flow is lower than the wall-shear stress for regions of the surface exhibiting turbulent flow. Due to this difference in wall-shear stress, it can be beneficial to predict the phenomena of laminar-to-turbulent transition in boundary layers and select an appropriate wall-shear stress value for regions (e.g., facets, surfels) on the surface based on the predicted laminar-to-turbulent transition.
(128) In the systems and methods described herein, values for the wall shear stress are assigned on a per-facet (e.g., per-surfel) basis and re-determined at each time step during the fluid flow simulation. Wall shear stress is calculated and used in the dynamics for each surfel, rather than near wall voxels. More particularly, for each facet and each time step a determination is made as to whether the fluid flow at the surface location is laminar or turbulent. Based on the determination, a laminar wall shear stress value or a turbulent wall shear stress value is assigned to the facet and used during the fluid flow simulation. Once the shear stress is calculated for a surfel, the amount of tangentially reflected particles on that surfel can be determined. Note that the particle distribution in a near wall voxel (e.g., near a set of surfels) is influenced by the particles reflected from the nearby surfels.
(129) Because of the existence of a high concentration of very small flow structures in the boundary layer, the one way to numerically solve the boundary layer flow is to apply sufficiently dense grid points near the wall to resolve these structures. This approach is computationally prohibitive and not feasible for most of the real world engineering problems involving very high Reynolds numbers flows and complex geometries. On the other hand, if the flow near a wall is considered as a fully developed turbulent boundary layer, then its overall velocity profile is well argued to satisfy a well known universal law of the wall. In fluid dynamics, the law of the wall states that the average velocity of a turbulent flow at a certain point is proportional to the logarithm of the distance from that point to the wall, or the boundary of the fluid region. As a consequence, one may simply infer the value of the local wall-shear stress from such a velocity profile (in fact just from a single velocity value at some given distance from the wall) without directly computing the actual velocity distribution inside the boundary layer. By doing so the computational cost near the wall is significantly reduced. This indirect approach is robust and accurate as long as the flow near the wall is attached and is sufficiently developed as a turbulent boundary layer. Extensions have also been made to address flow separations on curved geometry via incorporation of pressure gradient effects, for example as described in U.S. Pat. No. 5,910,902 filed on Mar. 28, 1997 and entitled Computer Simulation of Physical Processes, the contents of which are hereby incorporated by reference. Modeling the physics of high Reynolds number boundary layer flows is commonly referred to as turbulent wall modeling. Using a wall model to predict turbulent skin-friction distribution is a common practice in the computational fluid dynamics (CFD) of high Reynolds number flows found in real world engineering applications.
(130) Application of the universal law of the wall is valid and reliable if the flow everywhere in the boundary layer is fully turbulent and the boundary layer is developing under zero pressure gradient. In reality this condition is not always satisfied in a high Reynolds number wall-bounded flow. Indeed, close to the leading edges of fluid dynamic devices, the developing boundary layer flow is often not fully turbulent but rather laminar. This could be due to many reasons such as incoming flow properties and favorable pressure gradient effects. The main difference between a laminar boundary layer flow and a turbulent one is their resulting values of wall-shear stress. The former is significantly smaller compared to the latter under the same near-wall flow velocity value. As a consequence, a wall-shear stress value predicted from a wall model based on a fully developed turbulent boundary layer is likely to be significantly higher than the physically correct value when the boundary layer is not fully turbulent. The consequence on predicting global flow properties like lift and drag can be substantial, especially for streamlined bodies. Therefore, the methods and systems described herein identify where (and when) the flow is laminar or turbulent over solid surfaces.
(131) One method for calculating the wall shear stress may include inferring the wall shear stress from its relationship with the near-wall fluid velocity, for example, according to the following:
U(y)=u.sub.(y+)Eq. (38)
(132) where U(y) is the local fluid velocity value measured at y distance from the wall u.sub. is the friction velocity whose squared value (u.sub..sup.2) is the wall shear stress, (y+) is the dimensionless fluid velocity profile defined in terms of y+, y+=(y*u.sub./v) is the dimensionless distance from the wall, and nu(v) is the fluid kinematic viscosity.
(133) Rewriting to solve for the wall shear stress:
u.sub..sup.2=(U(y)/(y+)).sup.2
(134) For y+>15, the dimensionless fluid velocity profile (y+) is well known to be smaller for turbulent boundary layer flow than for a laminar boundary layer. As a result, for the same U(y), the shear stress value is larger for a turbulent flow than for a laminar one.
(135) Estimates of (y+), can be determined according to the following:
(136) For a laminar boundary layer:
for ally+values:(y+)=y+
(137) For a turbulent boundary layer:
for y+<10:(y+)=y+
for y+>10:(y+)=(1/)*ln(y+)+Eq. (39)
(138) where is approximately 0.4 and is approximately 5. Thus, for y+>10, the estimate of (y+) follows the well-known law of the wall.
(139) Thus, the ratio of turbulent to laminar shear stress for the same U(y) value can be found for a given y+ value. In some examples, the simulations of typical high Reynolds number flows, the near wall voxel size is typically chosen to give a y+ value on the order of 100. Using y+=100 as an example, the resulting turbulent to laminar f ratio is about 1/6 and hence the shear stress ratio is about 36.
(140) The task of determining turbulent versus laminar flow can be difficult due to the overall difficulty of turbulence physics. In one typical attempt to determine whether a flow is laminar or turbulent, a model can be formulated based on two transport equations, one for intermittency and another for a transition onset criterion in terms of momentum thickness Reynolds number, e.g., as described in Langtry et al, Proceedings of ASME Turbo Expo 2004 entitled A Correlation-Based Transition Model Using Local Variables. These transport equations form a framework for implementation of transition-related correlations based on freestream turbulence intensity and pressure gradient that is consistent with general purpose CFD methods. Transition from laminar to turbulent flow in the boundary layer was thus shown to be captured for certain benchmark flow cases. Unfortunately, this model requires integrating two additional partial differential equations (PDEs) in the flow field all the way to the wall (i.e., y+1), besides having to compute the distance to the nearest wall at every point of the computational grid. This is not only exceedingly expensive computationally but also extremely inconvenient algorithmically in complex geometries.
(141) Rather than making further extensions to the fluid turbulence model near wall (e.g., such as the extensions described in Langtry et al), the systems and methods described herein provide a generalized wall model for wall-shear stress that properly and automatically takes into account the laminar flow scenarios. As described above turbulent VLES model is believed to be largely adequate in predicting the dynamic behavior of turbulence. In general, as described herein, a VLES model includes modeling both in the fluid and at the wall. The wall model is based on the law of the wall described above, which is valid for a fully developed boundary layer flow in the absence of a pressure gradient. However in real flows there are pressure gradients, and the wall model can include an advanced boundary layer method scheme, which modifies the law of the wall to take into account the local pressure gradients. The fluid model accounts for the physical effects of turbulence through the eddy viscosity, which is partly determined by two PDE's), one governing the evolution of turbulent kinetic energy k and the other governing the evolution of turbulent dissipation epsilon. This type of k-epsilon model is commonly used, especially in Reynolds Averaged Navier Stokes (RANS) solvers. Our eddy viscosity formulation also includes a proprietary component based on local turbulent and mean flow characteristics and the Reynolds number, enabling accurate prediction of both the mean and time-varying properties of unsteady turbulent flows. Our VLES turbulence model also results in accurate prediction of the temporal and spatial distribution of the turbulent kinetic energy k, which is important for the new transition model scheme described herein.
(142) In order for the model to accurately predict the dynamic behavior in non-turbulent regions, the definition of the wall-shear stress in the wall model needs to account for differences in wall-shear stress in laminar regions versus turbulent regions. The latter is constructed out of the law of the wall assumption for a fully developed turbulent boundary layer. In order to determine whether a region is laminar or turbulent, the models and systems described herein do not require solving a dedicated PDE for an additional flow property or using the lattice Boltzmann solver in an extremely thin near wall region. In addition, as described above the facet or surfel-based lattice Boltzmann boundary condition accurately and robustly defines the momentum flux tensor (including wall-shear stress) at the wall in arbitrary geometries, as long as the wall-shear stress value is prescribed (e.g. as described above in relation to equations (38-39)). Therefore, by appropriately assigning the wall-shear stress, there is no need to further enforce a condition on mesh resolution in the boundary layer at the wall. As such, the mesh resolution at the boundary layer at the wall can be the same as or similar to (e.g., within 10%) the mesh resolution in other regions of the simulated system.
(143)
(144) The method includes calculating two sets of characteristics, such as wall-shear stress values or other wall momentum flux tensor property values, for each and every local area of a solid surface (e.g., for each facet/surfel in the system). More particularly, in a simplistic example, a first wall shear-stress value is calculated based on an assumption of turbulent fluid flow in the system (1410). This calculation is based only on the fully developed turbulent boundary layer profile. Additionally, a second and independent wall-shear stress value is calculated based on the assumption of a laminar flow near the wall. The latter (i.e., the wall-shear stress value calculated based on a laminar flow assumption) has a substantially smaller wall-shear stress value than the former (i.e., the wall-shear stress value calculated based on a turbulent flow assumption) for a given near-wall fluid velocity value.
(145) The actual wall-shear stress to be used in the flow dynamics simulation is chosen from either of the two different calculated wall-shear stress values depending on whether the local flow near wall is laminar or turbulent. Whether the flow is laminar or turbulent is determined by comparing a result from at least one of the first and second boundary layer calculations to a criterion. In one example, a key parameter entering this criterion is the level of local turbulence intensity (related to the value of turbulent kinetic energy). The turbulent kinetic energy value is higher for a turbulent flow than for a laminar flow. Thus, a criterion is based on whether the local turbulent kinetic energy level exceeds the value of another fundamental fluid quantity that is related to forcing at the wall that is given by a property based on the momentum flux tensor, e.g. the turbulent wall-shear stress. The method, therefore, includes comparing the turbulent kinetic energy with a measure of turbulent wall momentum flux tensor that is calculated under the assumption of turbulent flow regime near the wall. Furthermore, it is assumed that the near wall turbulence is fully developed and a criterion is applied to compare a measure of near-wall turbulent kinetic energy against this calculated measure of turbulent wall momentum flux tensor (1416). If the criterion is satisfied, then the flow at the given surface location is assumed to be turbulent and the method assigns/applies the calculated turbulent wall-shear stress value to the facet/surfel (1418). On the other hand, if the criterion is not satisfied, then the flow at the surface location is assumed to be laminar and the method assigns/applies the calculated laminar wall-shear stress value to the facet/surfel (1420). The method then performs flow dynamics simulation using the applied wall-shear stress (1422). This measure of the turbulence kinetic energy level is reasonable and desirable based on the following argument: it is known that in a fully developed turbulent boundary layer the turbulent kinetic energy is approximately constant inside the boundary layer and is proportional to the turbulent wall-shear stress by a constant factor (of order unity). Hence, one can apply this robust measure to identify if the flow is turbulent or not: it is turbulent if the turbulent kinetic energy level is greater or equal to that related to the wall-shear stress value, and is laminar otherwise.
(146) Thus, in general, the systems and methods described herein not only determine laminar wall-shear stress values, but also automatically identify where on solid surfaces such a laminar wall-shear stress value is located and applied.
(147) While in the example described above, the kinetic energy was compared to a threshold to determine whether the fluid flow is turbulent or laminar, in some examples, the local turbulence intensity can be used. The local turbulence intensity can be inferred from the turbulent kinetic energy value k combined with the local fluid velocity value. Either kinetic energy or turbulence intensity can be used in the methods and systems described herein.
(148) While in the example described above, the applied wall-shear stress value was selected to be either the turbulent wall-shear stress value or the laminar wall shear stress value based on whether the local flow is laminar or turbulent, in some examples, the wall-shear stress to be used in the flow dynamics simulation is chosen from either the two different calculated wall-shear stress values or their combination depending on whether the local flow near wall is laminar or fully turbulent, or something in between. As an example of such combination, when the local turbulent kinetic energy is close to a threshold value, a combined value of the laminar and turbulent shear stresses is used instead of selecting one or the other. This forms a transitional boundary layer that smoothes out the change in the wall model scheme in the vicinity of the threshold. This combined shear stress value could be determined in any desired way from the pure laminar and turbulent values, e.g., by applying weighting factors to the two wall-shear stress values. In one particular example, the following linearly weighted averaging procedure could be used:
u.sub.trans.sup.2=[u.sub.lam.sup.2(k.sub.2k)+u.sub.turb.sup.2(kk.sub.1)](k.sub.2k.sub.1).sup.1,
where u.sub. trans.sup.2 is the transitional wall shear stress value, u.sub. lam.sup.2 is the pure laminar value, u.sub. turb.sup.2 is the pure turbulent value, k is local turbulent kinetic energy, k.sub.1 indicates the start of the transition range, and k.sub.2 indicates the end of the transition range. A transitional (in between) value would be used when the local turbulent kinetic energy value k is within some fraction of the threshold value, say within +/10 percent. Using the variables defined above, this would imply k.sub.1=0.9 k.sub.0 and k.sub.2=1.1 k.sub.0, where k.sub.0 is the nominal threshold value (which as noted previously is a constant times the local turbulent shear stress value for the present scheme).
(149) A number of implementations have been described above. Nevertheless, it will be understood that various generalizations and extensions may be made without departing from the spirit and scope of the claims. For example, the methods described herein may be extended to include factors other than wall momentum flux tensor. As another example, the methods described herein may be extended to cover any situation in which several boundary layer calculations are performed with some being based on a laminar flow and the others based on a turbulent flow and the results from at least one of the calculation is compared to a threshold, while the result of this comparison is used to select the results of the laminar or turbulent boundary layer calculation to be used in simulation of a fluid flow. Examples of flow properties that could be used instead of or in addition to the wall-shear stress described in at least some of the examples above include, but are not limited to, various tensorially invariant properties of the wall momentum flux tensor including their spatial and temporal derivatives as well as locally and non-locally defined integral values of the related mean flow and turbulent properties. Also, our VLES model is but one possibility among the efficient vehicles for accurate determination of unsteady turbulent properties such as local turbulent kinetic energy. The following claims do not depend on using any particular model of turbulent flow, as long as it adequately and accurately describes the spatiotemporal distribution of flow properties. Accordingly, various other general and extended implementations are within the scope of the following claims.