A flow field calculation method combining gas Reynolds equation and compressible NS equation
By combining the flow field calculation method of the gas Reynolds equation and the compressible NS equation, a right-angle adaptive grid is generated and the embedded boundary method is used to solve the problem of high flow calculation complexity in the gap and achieve efficient flow numerical simulation and grid generate.
Patent Information
- Application Number
- CN202411157427.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-22
Smart Images

Figure CN118690685B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fluid mechanics and specifically relates to a method combining the gas Reynolds equation and compressible NS Design of flow field calculation method based on Eq. Background Art
[0002] Flow phenomena involving contact problems are often encountered in real engineering, such as the rolling of elastic rubber tires on the ground, the airflow caused by the instantaneous contact of moving objects, and the lubrication flow between gear contact surfaces.
[0003] In numerical simulation, gaps can sometimes be ignored and the contact surfaces can be approximated to be in complete close contact. However, in some cases, the flow in the gap still needs to be considered, such as the separation of two objects that were originally in contact in the fluid. If the gap is ignored, the fluid pressure in the gap cannot be obtained, resulting in the inability to achieve surface pressure balance, causing the two objects to attract each other due to the vacuum at the contact surface and unable to separate naturally.
[0004] If the traditional method is used, for gaps that cannot be ignored, the gap is treated as a region of tiny thickness during numerical simulation, and enough grids are divided in it to simulate the flow in the gap, thereby obtaining the pressure in the contact gap. However, this method requires drawing the gap grid, and the grid scale in the gap is extremely small, and the scale difference between it and the external grid is large, which makes the calculation difficult. If you want to simulate the relative motion between contacting objects, for example, when the gap distance range changes dramatically, you need to consider using grid redrawing technology. While retaining the above difficulties, it also further increases the complexity. Another method is to use overlapping grid technology. In this case, the external field grids of the two solids belong to two independent grids, and these two grids overlap inside the gap. The overlapping grid method has very high requirements on the scale of grid generation when dealing with gaps, which also increases the complexity of the calculation. Summary of the invention
[0005] The purpose of the present invention is to solve the problems of meshing and redrawing difficulties in the existing method within a small thickness, as well as the high complexity of flow field calculation due to the huge difference in the external grid scale. A method combining the gas Reynolds equation and compressible NS The flow field calculation method of Eq.
[0006] The technical solution of the present invention is: a method combining the gas Reynolds equation and compressible NS The flow field calculation method of the equation includes the following steps:
[0007] S1. Generate a rectangular adaptive grid for the entire flow field, wherein the rectangular adaptive grid is generated based on objects in contact with each other. A and objects B location;
[0008] S2. Based on the embedded boundary method, a discrete surface is constructed in the rectangular adaptive grid, and the thickness of the gap is calculated at the discrete unit;
[0009] S3. Utilization NS The equation is used to calculate the flow field outside the gap;
[0010] S4. Calculate the flow field inside the gap using the gas Reynolds equation according to the thickness of the gap at the discrete unit;
[0011] S5. performing coupling iteration on the flow field outside the gap and the flow field inside the gap until the coupling result of the flow field outside the gap and the flow field inside the gap meets the convergence condition;
[0012] S6. Calculate the next time step until the preset time step is reached and the flow field calculation is completed. If the object A and objects B If motion occurs, steps S1 to S4 need to be repeated until the calculation of all time steps is completed.
[0013] The beneficial effects of the present invention are:
[0014] 1. The present invention adopts the gas Reynolds equation and NS The numerical simulation of gas flow with contact surface is solved by equation coupling, which has good flexibility.
[0015] 2. The present invention adopts a right-angle adaptive grid combined with an embedded boundary method to effectively construct the walls on both sides of the gap, avoid the generation of body-fitting grids in the gap, and greatly reduce the complexity of grid generation.
[0016] 3. In the present invention, after constructing the walls on both sides of the gap using the embedded boundary method, the thickness of the gap at each location can be directly calculated, and then directly brought into the discrete Reynolds equation for solution.
[0017] Preferably, in the process of generating a rectangular adaptive grid for the entire flow field in step S1, the grid is encrypted where the gap curvature is greater than a preset threshold.
[0018] The beneficial effects of the above preferred solution are:
[0019] The mesh is encrypted at the location with larger curvature of the gap, which increases the calculation accuracy of the flow field near the wall and can more accurately calculate the thickness of the discrete units in the gap.
[0020] Preferably, the step S1 specifically includes the following steps:
[0021] S11. Define objects that are in contact with each other A and objects B ;
[0022] S12. Objects A and objects B Right-angle elements where surfaces intersect C Mark and perform mesh encryption where the gap curvature is greater than a preset threshold, and specify the maximum level of mesh encryption;
[0023] S13. According to the set maximum level of mesh encryption, the number of basic meshes in each coordinate axis direction is set, and the basic mesh is generated by interpolation method;
[0024] S14. Refine the basic grid to generate a rectangular adaptive grid;
[0025] The mesh refinement is specifically as follows: A single coarse unit is replaced or covered by a refined block of units, where r represents the refinement factor, d Indicates the mesh refinement level.
[0026] The beneficial effects of the above preferred solution are:
[0027] By generating a rectangular adaptive grid, meshing and mesh redrawing within a small thickness are avoided.
[0028] Preferably, the step S2 specifically comprises the following steps:
[0029] S21. Based on the embedded boundary method, the rectangular adaptive grid is cut to obtain the cut unit;
[0030] S22. For all right-angle units C Classify and identify the internal units of the gap C i and the cells at the edge of the gap C b ;
[0031] S23. Calculate the cells at the edge of the gap C b and objects A Surfaces and objects B The cut section of the surface serves as the interface between the field outside the gap and the field inside the gap;
[0032] S24. Based on the cutting unit, use multiple discrete cutting surfaces to face the object A and objects B The shape of the model is approximated and the thickness of the gap at each discrete unit is calculated.
[0033] The beneficial effects of the above preferred solution are:
[0034] The use of rectangular adaptive grid combined with embedded boundary method can effectively construct the walls on both sides of the gap, avoid the generation of body-fitting grids in the gap, and greatly reduce the complexity of grid generation.
[0035] Preferably, the step S24 specifically includes the following steps:
[0036] S241. Calculate the internal unit of the gap C i With objects A Surface or object B The cut mesh of the surface forms the internal mesh of the gap;
[0037] S242. Based on the gap internal unit C i , calculate the object at each internal unit of the gap A Surfaces and objects B The normal distance between the surfaces, which serves as the thickness of the gap;
[0038] S243. Based on the internal mesh of the gap, a two-dimensional surface mesh inside the gap is constructed, and thickness data of the gap is set at each discrete point.
[0039] The beneficial effects of the above preferred solution are:
[0040] After constructing the walls on both sides of the gap using the embedded boundary method, the thickness of the gap at each location can be directly calculated and then directly brought into the discrete Reynolds equation for solution.
[0041] Preferably, the step S3 specifically comprises the following steps:
[0042] S31. Setting boundary conditions of the outer boundary;
[0043] S32. Apply boundary conditions to the cut cells outside the gap using the embedded boundary method;
[0044] S33. According to the imposed boundary conditions, use NS The equation is used to calculate the flow field outside the gap.
[0045] The beneficial effects of the above preferred solution are:
[0046] Combined with the boundary embedding method to impose boundary conditions outside the gap, and using NS The equation is used to calculate the external flow field of the gap, which greatly simplifies the solution difficulty and improves the solution efficiency.
[0047] Preferably, the step S4 specifically comprises the following steps:
[0048] S41. In a rectangular cell grid, mark the cells inside the gap as near-wall cells and define the near-wall cells according to the wall direction. Coordinate system;
[0049] S42. Setting boundary conditions of the Reynolds equation inside the gap;
[0050] S43. According to the boundary conditions and the thickness of the gap at the discrete unit, the Reynolds equation is solved for the plane of the gap surface expanded by the two-dimensional reconstruction to obtain the flow field inside the gap. The Reynolds equation is based on the near-wall unit Reynolds equation for the coordinate system.
[0051] Preferably, the formula of the Reynolds equation in step S43 is:
[0052]
[0053] in, is the gas pressure; is the gas density; is the gap thickness; For time; is the fluid dynamic viscosity coefficient; Near-wall unit Coordinate system coordinate; Near-wall unit Coordinate system coordinate; For Objects A With objects B exist The speed of movement in the direction, , For Objects A With objects B Surface The velocity component of the direction of motion; For Objects A With objects B exist The speed of movement in the direction, , For Objects A With objects B Surface The velocity component of the direction of motion.
[0054] The beneficial effects of the above preferred solution are:
[0055] The Reynolds equation of the two-dimensional lubrication equation is used to describe the flow problem inside the gap, which effectively avoids discretization in the thickness direction, greatly simplifies the solution difficulty and improves the solution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 The figure shows a method combining the Reynolds equation for gases and compressibility NS Flowchart of the flow field calculation method based on Eq.
[0057] Figure 2 Shown is a schematic diagram of the location of gaps between objects.
[0058] Figure 3 Shown is a schematic diagram of the rectangular adaptive mesh generated in the gap area.
[0059] Figure 4 Shown are the fluxes of a cut cell cut by the embedded boundary method.
[0060] Figure 5 Shown is a schematic diagram of the application of boundary conditions on the gap interface. DETAILED DESCRIPTION
[0061] Now, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be understood that the embodiments shown and described in the accompanying drawings are only exemplary and are intended to explain the principles and spirit of the present invention, rather than to limit the scope of the present invention.
[0062] like Figure 1 As shown, a method combining the gas Reynolds equation and compressible NS The flow field calculation method of the equation includes the following steps:
[0063] S1. Generate a rectangular adaptive grid for the entire flow field, wherein the rectangular adaptive grid is generated based on objects in contact with each other. A and objects B location;
[0064] S2. Based on the embedded boundary method, a discrete surface is constructed in the rectangular adaptive grid, and the thickness of the gap is calculated at the discrete unit;
[0065] S3. Utilization NS The equation is used to calculate the flow field outside the gap;
[0066] S4. Calculate the flow field inside the gap using the gas Reynolds equation according to the thickness of the gap at the discrete unit;
[0067] S5. performing coupling iteration on the flow field outside the gap and the flow field inside the gap until the coupling result of the flow field outside the gap and the flow field inside the gap meets the convergence condition;
[0068] S6. Calculate the next time step until the preset time step is reached and the flow field calculation is completed. If the object A and objects B If motion occurs, steps S1 to S4 need to be repeated until the calculation of all time steps is completed.
[0069] In this embodiment, in the process of generating a rectangular adaptive grid for the entire flow field in step S1, the grid is encrypted where the gap curvature is greater than a preset threshold.
[0070] In this embodiment, step S1 specifically includes the following steps:
[0071] S11. Define objects that are in contact with each other A and objects B ,like Figure 2 As shown, the object A and B can be stl The file is given, and the surface is represented by several triangular units at this time;
[0072] S12. Objects A and objects B Right-angle elements where surfaces intersect C Marking, such as Figure 3 As shown, and specify the maximum level of mesh refinement;
[0073] S13. According to the set maximum level of mesh encryption, the number of basic meshes in each coordinate axis direction is set, and the basic mesh is generated by interpolation method;
[0074] S14. Refine the basic grid to generate a rectangular adaptive grid;
[0075] The mesh refinement is specifically as follows: A single coarse unit is replaced or covered by a refined block of units, where r represents the refinement factor, d Indicates the mesh encryption level;
[0076] In this embodiment, step S2 specifically includes the following steps:
[0077] S21. Based on the embedded boundary method, the rectangular adaptive grid is cut to obtain the cut unit;
[0078] S22. For all right-angle units C Classify and identify the internal units of the gap C i and the cells at the edge of the gap C b ;
[0079] S23. Calculate the cells at the edge of the gap C b and objects A Surfaces and objects B The cut section of the surface serves as the interface between the field outside the gap and the field inside the gap;
[0080] S24. Based on the cutting unit, use multiple discrete cutting surfaces to face the object A and objects B The shape of the model is approximated and the thickness of the gap at each discrete unit is calculated.
[0081] In this embodiment, step S24 specifically includes the following steps:
[0082] S241. Calculate the internal unit of the gap C i With objects A Surface or object B The cut mesh of the surface forms the internal mesh of the gap;
[0083] S242. Based on the gap internal unit C i , calculate the object at each internal unit of the gap A Surfaces and objects B The normal distance between the surfaces, which serves as the thickness of the gap;
[0084] S243. Based on the internal mesh of the gap, a two-dimensional surface mesh inside the gap is constructed, and thickness data of the gap is set at each discrete point.
[0085] In this embodiment, step S3 specifically includes the following steps:
[0086] S31. Setting boundary conditions of the outer boundary;
[0087] S32. Apply boundary conditions to the cut cells outside the gap using the embedded boundary method;
[0088] The cells cut by the embedded boundary method can be divided into two categories: one is the cells cut inside the gap, and the other is the cells cut outside the gap. For the cells cut outside the gap, if the finite volume discretization is performed in the irregular cells, the wall boundary conditions are applied to the cut wall, that is, the algebraic equation after discretization is given as F EB The value of Figure 4 shown. Figure 4 The gray area in the middle represents the area excluded from the solution domain, and the arrows represent the flux. The volume of fluid in the cut cell can be given by V l = vdxd calculate, v is the ratio of the fluid volume calculated by the embedded boundary method to the total cell volume.
[0089] For the cut elements adjacent to the mesh inside the gap interface, such as Figure 5 As shown in and , then there is no corresponding fluid unit inside the gap. In this case, the flow on the gap boundary and The application of boundary conditions can be accomplished as source terms within contributing cells.
[0090] S33. According to the imposed boundary conditions, use NS The equation is used to calculate the flow field outside the gap.
[0091] If during the entire calculation process, the object A and objects B If there is no movement, it is called a static problem. For static problems, if the flow field calculation within the gap interface is required, when a rectangular grid is used in the entire area, there is no corresponding surface grid unit on the boundary between the gap and the external field grid. In this case, it is necessary to determine the contribution unit of the surface element on the interface in the external field grid, and directly use the flow state in the contribution unit as the gap boundary condition. The flow on the gap boundary can be used as the source item (mass source, momentum source and energy source) in the contribution unit.
[0092] In addition, for the case of contact surface separation, the distance from each surface element can be searched C f Several grid cells on the nearest gap interface. When coupling, the states of these neighboring cells are weighted averaged as the surface element C f At the same time, C f The traffic is also distributed to these neighboring units as source items.
[0093] When the contact surfaces separate to a sufficient thickness, the objects A and objects B When there are enough cells between the gaps, an effective overlapping grid can be formed, and the solution of the lubrication equation in the gap can be switched to the normal NS Solve the equation. At this point, it is necessary to interpolate the solution of the lubrication equation on the gap surface into the overlapping grid.
[0094] In this embodiment, step S4 specifically includes the following steps:
[0095] S41. In a rectangular cell grid, mark the cells inside the gap as near-wall cells and define the near-wall cells according to the wall direction. Coordinate system;
[0096] S42. Setting boundary conditions of the Reynolds equation inside the gap;
[0097] S43. According to the boundary conditions and the thickness of the gap at the discrete unit, the Reynolds equation is solved for the plane of the gap surface expanded by the two-dimensional reconstruction to obtain the flow field inside the gap. The Reynolds equation is based on the near-wall unit. The Reynolds equation of the coordinate system, the pressure value on the boundary node of the two-dimensional calculation area is obtained by the weighted average of the pressure values of its neighboring external flow field units.
[0098] In this embodiment, the formula of the Reynolds equation in step S43 is:
[0099]
[0100] in, is the gas pressure; is the gas density; is the gap thickness; For time; is the fluid dynamic viscosity coefficient; Near-wall unit Coordinate system coordinate; Near-wall unit Coordinate system coordinate; For Objects A With objects B exist The speed of movement in the direction, , For Objects A With objects B Surface The velocity component of the direction of motion; For Objects A With objects B exist The speed of movement in the direction, , For Objects A With objects B Surface The velocity component of the direction of motion.
[0101] During the entire calculation process, for static problems, if the flow between the gaps can be ignored, then only the flow field in the external field grid needs to be calculated. For static problems, if the flow between the gaps cannot be ignored, the external field grid needs to be calculated at each time step. NS The coupled iteration of the solution of the equation and the solution of the Reynolds equation in the gap is performed until convergence, and then the calculation of the next time step is performed. If the motion separation of the contact surface is considered, it is necessary to regenerate the adaptive grid at each time step, then construct a discrete surface in the rectangular grid, and finally perform the coupled calculation of the gap area and the external field flow field.
[0102] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A method combining the gas Reynolds equation and compressible NS The flow field calculation method of the equation is characterized by: The following steps are involved: S1. Generate a rectangular adaptive grid for the entire flow field, specifically including the following steps: S11. Define objects that are in contact with each other A and objects B ; S12. Objects A and objects B Right-angle elements where surfaces intersect C Mark and perform mesh encryption where the gap curvature is greater than a preset threshold, and specify the maximum level of mesh encryption; S13. According to the set maximum level of mesh encryption, the number of basic meshes in each coordinate axis direction is set, and the basic mesh is generated by interpolation method; S14. Refine the basic grid to generate a rectangular adaptive grid; The mesh refinement is specifically as follows: A single coarse unit is replaced or covered by a refined block of units, where r represents the refinement factor, d Indicates the mesh encryption level; S2. Based on the embedded boundary method, a discrete surface is constructed in the rectangular adaptive grid, and the thickness of the gap is calculated at the discrete unit, which specifically includes the following steps: S21. Based on the embedded boundary method, the rectangular adaptive grid is cut to obtain the cut unit; S22. For all right-angle units C Classify and identify the internal units of the gap C i and the cells at the edge of the gap C b ; S23. Calculate the cells at the edge of the gap C b and objects A Surfaces and objects B The cut section of the surface serves as the interface between the field outside the gap and the field inside the gap; S24. Based on the cutting unit, use multiple discrete cutting surfaces to face the object A and objects B The shape of the surface is approximated and the thickness of the gap at each discrete unit is calculated, which is: S241. Calculate the internal unit of the gap C i With objects A Surface or object B The cut mesh of the surface forms the internal mesh of the gap; S242. Based on the gap internal unit C i , calculate the object at each internal unit of the gap A Surfaces and objects B The normal distance between the surfaces, which serves as the thickness of the gap; S243. According to the internal mesh of the gap, construct a two-dimensional surface mesh inside the gap, and set the thickness data of the gap at each discrete point; S3. Utilization NS The equation is used to calculate the flow field outside the gap; S4. Calculate the flow field inside the gap using the gas Reynolds equation according to the thickness of the gap at the discrete unit; S5. performing coupling iteration on the flow field outside the gap and the flow field inside the gap until the coupling result of the flow field outside the gap and the flow field inside the gap meets the convergence condition; S6. Calculate the next time step until the preset time step is reached and the flow field calculation is completed. If the object A and objects B If motion occurs, steps S1 to S4 need to be repeated until the calculation of all time steps is completed.
2. The combined gas Reynolds equation and compressible NS The flow field calculation method of the equation is characterized by: The step S3 specifically comprises the following steps: S31. Setting boundary conditions of the outer boundary; S32. Apply boundary conditions to the cut cells outside the gap using the embedded boundary method; S33. According to the imposed boundary conditions, use NS The equation is used to calculate the flow field outside the gap.
3. The combined gas Reynolds equation and compressible NS The flow field calculation method of the equation is characterized by: The step S4 specifically comprises the following steps: S41. In a rectangular cell grid, mark the cells inside the gap as near-wall cells and define the near-wall cells according to the wall direction. Coordinate system; S42. Setting boundary conditions of the Reynolds equation inside the gap; S43. According to the boundary conditions and the thickness of the gap at the discrete unit, the Reynolds equation is solved for the plane of the gap surface expanded by the two-dimensional reconstruction to obtain the flow field inside the gap. The Reynolds equation is based on the near-wall unit Reynolds equation for the coordinate system.
4. The combined gas Reynolds equation and compressible NS The flow field calculation method of the equation is characterized by: The formula of the Reynolds equation in step S43 is: in, is the gas pressure; is the gas density; is the gap thickness; For time; is the fluid dynamic viscosity coefficient; Near-wall unit Coordinate system coordinate; Near-wall unit Coordinate system coordinate; For Objects A With objects B exist The speed of movement in the direction, , For Objects A With objects B Surface The velocity component of the direction of motion; For Objects A With objects B exist The speed of movement in the direction, , For Objects A With objects B Surface The velocity component of the direction of motion.
Citation Information
Patent Citations
Non-structural right-angle grid acceleration generation method
CN111400969A
High-rise building wind resistance design method based on gap flow effect
CN114647966A
