Search method, device, equipment and medium for minimum wall distance in turbulence model

By calculating the method of spatial block division and fluid nodes from the space block of the turbulence space, the problem of low search efficiency in the minimum wall of the turbulence model in turbulence models is solved, and a fast and efficient search process is achieved.

CN119150751BActive Publication Date: 2025-01-24CALCULATION AERODYNAMICS INST CHINA AERODYNAMICS RES & DEV CENT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411630470.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-01-24
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

When solving the minimum wall distance in the turbulence model, the calculation efficiency is low and a large number of wall grids is required to traverse, resulting in huge time consumption.

Method used

By dividing the space blocks of turbulence space, the segmentation order is determined according to the scale range of each space dimension, and the minimum wall distance is determined according to the distance from the fluid node to each space block to avoid calculating the distance between all wall grid.

Benefits of technology

A significant reduction of the calculation, improving the search efficiency of the minimum wall distance in the turbulence model, and allowing the minimum wall distance to quickly and accurately solve the minimum wall distance in the high -complication turbine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150751B_ABST
    Figure CN119150751B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for searching the minimum wall distance in a turbulence model. The method includes: determining the scale range of each spatial dimension in the turbulence space, sorting each spatial dimension in the order of the scale range from large to small to obtain a dimension segmentation sequence; using the first spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented; segmenting the turbulence space according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block; when the number of wall grids in the spatial block exceeds a preset threshold, using the next spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented, and returning to the step of segmenting the turbulence space according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block; otherwise, determining the minimum wall distance according to the distance from the fluid node in the turbulence space to each spatial block. This scheme can search for the minimum wall distance in the turbulence model more quickly and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of fluid mechanics, and in particular to a method for searching for a minimum wall distance in a turbulence model, and also to a device, electronic device and computer-readable storage medium for searching for a minimum wall distance in a turbulence model. Background Art

[0002] With the continuous development of computer technology and the increasing difficulty of design in the aerospace field, computational fluid dynamics (CFD) as one of the main research methods can greatly reduce the design and experimental cycle. For a long time, various CFD algorithms have been relatively mature for laminar flow simulation. Turbulence is a key factor affecting the flow field. Due to its high complexity and randomness, the current research on the flow mechanism of turbulent simulation is still one of the difficulties in the accurate simulation of the flow field.

[0003] At present, the turbulence calculation models commonly used in engineering applications usually use wall distance in the calculation process, that is, the closest distance from any fluid node in space to all walls. In related technologies, a direct solution method is usually used to solve the wall distance, that is: for any fluid node in the flow field space, search for the wall mesh closest to the node among all walls. However, the complete search process for the minimum wall distance of a fluid node requires traversing all wall meshes, and finally obtaining the minimum wall distance of this fluid node by calculating and comparing the minimum distance from point to surface one by one. However, in the actual calculation process, the number of fluid nodes can reach tens of millions or hundreds of millions, and the number of wall meshes will also be in the order of millions or tens of millions. Obviously, even the most advanced computer clusters will need to spend a lot of time for this.

[0004] Therefore, how to search for the minimum wall distance in the turbulence model more quickly and efficiently is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] The purpose of the present application is to provide a method for searching the minimum wall distance in a turbulence model, which can search the minimum wall distance in the turbulence model more quickly and efficiently; another purpose of the present application is to provide a device, electronic device and computer-readable storage medium for searching the minimum wall distance in a turbulence model, all of which have the above-mentioned beneficial effects.

[0006] In a first aspect, the present application provides a method for searching for a minimum wall distance in a turbulence model, comprising:

[0007] Determine the scale range of each spatial dimension in the turbulent space, and sort each of the spatial dimensions in descending order of the scale range to obtain a dimension segmentation sequence;

[0008] The first spatial dimension in the dimension segmentation sequence is used as the spatial dimension to be segmented;

[0009] In the dimension of the space to be segmented, the turbulent space is segmented according to a preset segmentation scale to obtain various space blocks;

[0010] When the number of wall grids in the spatial block exceeds a preset threshold, the next spatial dimension in the dimension segmentation sequence is used as the spatial dimension to be segmented, and the turbulent space is segmented according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block;

[0011] When the number of wall grids in the space block does not exceed a preset threshold, the minimum wall distance is determined according to the distance from the fluid node in the turbulent space to each of the space blocks.

[0012] Optionally, determining the minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks includes:

[0013] For each spatial block in the turbulent space, determining a positioning point of the spatial block in the turbulent space;

[0014] Taking the distance from the fluid node to the positioning point as the distance from the fluid node to the space block;

[0015] The minimum wall distance is determined according to the distance from the fluid node to each of the space blocks.

[0016] Optionally, determining the minimum wall distance according to the distance from the fluid node to each of the space blocks includes:

[0017] Sorting the distances from the fluid node to each of the space blocks in ascending order to obtain a distance sequence;

[0018] Traversing to the current distance according to the arrangement order of the distances in the distance sequence;

[0019] Determine whether the current distance is less than the current minimum wall distance; wherein the initial current minimum wall distance is the minimum distance between the space block corresponding to the first distance in the distance sequence and the fluid node;

[0020] If the current distance is not less than the current minimum wall distance, returning to the step of traversing to the current distance in the order of arrangement of the distances in the distance sequence;

[0021] If the current distance is less than the current minimum wall distance, then calculating the minimum distance from the fluid node to the space block corresponding to the current distance;

[0022] Determine whether the minimum distance is less than the current minimum wall distance;

[0023] If the minimum distance is less than the current minimum wall distance, the minimum distance is used as the new current minimum wall distance;

[0024] If the minimum distance is not less than the current minimum wall distance, retaining the current minimum wall distance as the new current minimum wall distance;

[0025] When the distance sequence is traversed completely, the new current minimum wall distance is obtained as the minimum wall distance.

[0026] Optionally, the calculating the minimum distance from the fluid node to the space block corresponding to the current distance includes:

[0027] Calculating the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance;

[0028] The wall distance with the smallest value is taken as the minimum distance.

[0029] Optionally, calculating the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance includes:

[0030] For each wall mesh in the space block corresponding to the current distance, calculating the point-to-surface distance between the fluid node and the wall mesh, and the point-to-point distance between the fluid node and each vertex in the wall mesh;

[0031] The distance with the smallest value among the point-to-surface distance and all the point-to-point distances is selected as the wall distance.

[0032] Optionally, for each space block in the turbulent space, determining a positioning point of the space block in the turbulent space includes:

[0033] For each space block in the turbulent space, the center point of the space block is used as the positioning point of the space block.

[0034] Optionally, when the number of wall grids in the space block does not exceed a preset threshold, after determining the minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks, the method further includes:

[0035] Switch to the next fluid node of the turbulent space, and return to the step of determining the minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks.

[0036] In a second aspect, the present application also discloses a search device for a minimum wall distance in a turbulence model, comprising:

[0037] A sorting module is used to determine the scale range of each spatial dimension in the turbulent space, and sort each of the spatial dimensions in order from large to small in scale range to obtain a dimension segmentation sequence;

[0038] A setting module, used for taking the first spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented;

[0039] A segmentation module, used to segment the turbulent space according to a preset segmentation scale in the dimension of the space to be segmented to obtain various space blocks;

[0040] A loop module, configured to, when the number of wall grids in the spatial block exceeds a preset threshold, use the next spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented, and return to the step of segmenting the turbulent space according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block;

[0041] The determination module is used to determine the minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks when the number of wall grids in the space block does not exceed a preset threshold.

[0042] In a third aspect, the present application further discloses an electronic device, comprising:

[0043] Memory for storing computer programs;

[0044] A processor is used to implement the steps of the method for searching the minimum wall distance in any turbulence model as described above when executing the computer program.

[0045] In a fourth aspect, the present application further discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for searching for the minimum wall distance in any turbulence model as described above.

[0046] The present application provides a method for searching for the minimum wall distance in a turbulence model, comprising: determining the scale range of each spatial dimension in the turbulent space, and sorting each of the spatial dimensions in order of the scale range from large to small to obtain a dimension segmentation sequence; using the first spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented; segmenting the turbulent space according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block; when the number of wall grids in the spatial block exceeds a preset threshold, using the next spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented, and returning to the step of segmenting the turbulent space according to the preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block; when the number of wall grids in the spatial block does not exceed the preset threshold, determining the minimum wall distance based on the distance from the fluid node in the turbulent space to each of the spatial blocks.

[0047] By applying the technical solution provided by the present application, when solving the minimum wall distance in the turbulent space, the turbulent space is first divided into spatial blocks, and during the division process, the division order of each spatial dimension is determined according to the scale range of each spatial dimension in the turbulent space, and whether to continue the division of the next spatial dimension is determined according to the number of wall grids in the spatial block obtained after the division of each spatial dimension; after the division is completed, the minimum wall distance can be determined based on the distance between the fluid node and each spatial block in the turbulent space. It can be seen that this solution determines the minimum wall distance by dividing the turbulent space into spatial blocks and calculating the distance between the fluid node and the spatial block, without calculating the distance of all wall grids in the fluid space, which greatly reduces the amount of calculation. Therefore, this solution can search for the minimum wall distance in the turbulent model more quickly and efficiently.

[0048] The search device, electronic device and computer-readable storage medium for the minimum wall distance in the turbulence model provided in this application also have the above-mentioned technical effects, which will not be described in detail in this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings required for use in the description of the prior art and the embodiments of the present application are briefly introduced below. Of course, the drawings described below in relation to the embodiments of the present application are only part of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work, and the obtained other drawings also belong to the protection scope of the present application.

[0050] Figure 1 A schematic diagram of a flow chart of a method for searching for a minimum wall distance in a turbulence model provided in the present application;

[0051] Figure 2 A distribution diagram of a turbulent space in a three-dimensional coordinate system provided in this application;

[0052] Figure 3 A schematic diagram of a segmentation result of a turbulent space in the X-axis direction provided by the present application;

[0053] Figure 4 A schematic diagram of a segmentation result of a turbulent space in the Y-axis direction provided by the present application;

[0054] Figure 5 A schematic diagram of a segmentation result of a turbulent space in the Z-axis direction provided by the present application;

[0055] Figure 6 A schematic diagram of a flow chart of a method for searching for the minimum wall distance in another turbulence model provided in the present application;

[0056] Figure 7 A schematic diagram of the structure of a search device for the minimum wall distance in a turbulence model provided in the present application;

[0057] Figure 8 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0058] The core of the present application is to provide a method for searching the minimum wall distance in a turbulence model, which can search the minimum wall distance in the turbulence model more quickly and efficiently; another core of the present application is to provide a device, electronic device and computer-readable storage medium for searching the minimum wall distance in a turbulence model, all of which have the above-mentioned beneficial effects.

[0059] In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0060] An embodiment of the present application provides a method for searching for a minimum wall distance in a turbulence model.

[0061] Please refer to Figure 1 , Figure 1 This is a schematic flow chart of a method for searching for a minimum wall distance in a turbulence model provided in the present application. The method for searching for a minimum wall distance in a turbulence model may include the following S101 to S106.

[0062] S101: determining the scale range of each spatial dimension in the turbulent space, and sorting each spatial dimension in descending order of the scale range to obtain a dimension segmentation sequence;

[0063] This step aims to achieve the sorting of each spatial dimension in the turbulent space. It can be understood that in the actual calculation scenario, the size of the turbulent space is certain, and the scale range in different spatial dimensions is certain. The scale range of each spatial dimension in the turbulent space can be determined first, for example, the X-axis, Y-axis, Z-axis and other spatial dimensions in the world coordinate system, and then the spatial dimensions are sorted in order from large to small in scale range to obtain a dimension segmentation sequence. Among them, the arrangement order of each spatial dimension in the dimension segmentation sequence represents the segmentation order of each spatial dimension in the turbulent space, so as to facilitate the segmentation of the turbulent space into multiple spatial blocks according to the corresponding spatial dimensions. It can be imagined that only by segmenting each spatial dimension in the order of scale range from large to small can the traversal of as few spatial blocks as possible be achieved to improve the search efficiency.

[0064] S102: taking the first spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented;

[0065] S103: Segment the turbulent space according to a preset segmentation scale in the dimension of the space to be segmented to obtain various space blocks;

[0066] The above steps are intended to segment the turbulent space according to spatial dimensions to obtain multiple spatial blocks. Specifically, the dimension segmentation sequence is traversed to obtain the first spatial dimension, and the turbulent space is segmented on the spatial dimension according to the preset segmentation scale to obtain each spatial block on the spatial dimension. For example, when the arrangement order of the spatial dimensions in the dimension segmentation sequence is (X-axis, Y-axis, Z-axis), the X-axis spatial dimension is used as the spatial dimension to be segmented to segment the turbulent space, and multiple spatial blocks in the X-axis direction are obtained. It should be noted that the specific value of the preset segmentation scale does not affect the implementation of the present technical solution, and can be set by technical personnel according to actual needs, and this application does not limit this.

[0067] S104: Determine whether the number of wall grids in the space block exceeds a preset threshold; if so, execute S105; if not, execute S106;

[0068] S105: taking the next spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented, and returning to S103;

[0069] The above steps are intended to achieve cyclic segmentation of the turbulent space. Specifically, after completing the segmentation of the turbulent space based on the first spatial dimension, it is possible to first determine whether the number of wall grids in the segmented spatial block exceeds the preset threshold. This judgment process is essentially to determine whether the spatial block obtained by segmentation is too large, which in turn affects the accuracy of the minimum wall distance obtained by the search. Therefore, when the number of wall grids in the spatial block exceeds the preset threshold, it means that the current spatial block is too large and the turbulent space needs to be segmented into the next spatial dimension. Otherwise, there is no need to continue segmenting, and so on, until the number of wall grids in the spatial block obtained after segmentation of a certain spatial dimension does not exceed the preset threshold. Similarly, the specific value of the preset threshold does not affect the implementation of the present technical solution, and can be set by technical personnel according to actual needs. This application does not limit this.

[0070] S106: Determine the minimum wall distance according to the distance from the fluid node to each space block in the turbulent space.

[0071] This step is intended to achieve the determination of the minimum wall distance in the turbulent space. It is understandable that after completing the spatial block division for the turbulent space, for any fluid node in the turbulent space, the minimum wall distance can be determined based on the distance between it and each spatial block. For example, in one possible implementation, the spatial block closest to the fluid node can be found first, and then the wall grid closest to the fluid node can be found in the spatial block to obtain the corresponding minimum wall distance.

[0072] It can be seen that the search method for the minimum wall distance in the turbulence model provided in the embodiment of the present application, when solving the minimum wall distance in the turbulent space, first divides the turbulent space into spatial blocks, and, during the division process, determines the division order of each spatial dimension according to the scale range of each spatial dimension in the turbulent space, and determines whether to continue the division of the next spatial dimension according to the number of wall grids in the spatial block obtained after the division of each spatial dimension; after the division is completed, the minimum wall distance can be determined according to the distance between the fluid node and each spatial block in the turbulent space. It can be seen that this scheme determines the minimum wall distance by dividing the turbulent space into spatial blocks and calculating the distance between the fluid node and the spatial block, without calculating the distance of all wall grids in the fluid space, which greatly reduces the amount of calculation. Therefore, this scheme can search for the minimum wall distance in the turbulent model more quickly and efficiently.

[0073] Based on the above embodiments:

[0074] In one embodiment of the present application, the above-mentioned determination of the minimum wall distance according to the distance from the fluid node to each space block in the turbulent space may include:

[0075] For each spatial block in the turbulent space, determining a location point of the spatial block in the turbulent space;

[0076] The distance from the fluid node to the anchor point is taken as the distance from the fluid node to the space block;

[0077] The minimum wall distance is determined based on the distance from the fluid node to each spatial block.

[0078] The embodiment of the present application provides a method for calculating the distance from a fluid node to each space block. Specifically, for each space block in the turbulent space, its positioning point can be determined first, and then the distance between the positioning point and the fluid node is used as the distance between the space block and the fluid node, so that the minimum wall distance can be determined based on the distance from the fluid node to each space block.

[0079] Among them, for each spatial block in the turbulent space, determining the positioning point of the spatial block in the turbulent space may include: for each spatial block in the turbulent space, using the center point of the spatial block as the positioning point of the spatial block. In other words, for each spatial block in the turbulent space, its center point can be used as its positioning point. In another possible implementation, for each spatial block in the turbulent space, the surface containing the wall grid in the spatial block can be first determined, and then the center point of the surface can be used as the positioning point of the spatial block.

[0080] In one embodiment of the present application, the above-mentioned determination of the minimum wall distance according to the distance from the fluid node to each space block may include:

[0081] Sort the distances from the fluid node to each space block in ascending order to obtain a distance sequence;

[0082] Traverse to the current distance according to the order of arrangement of each distance in the distance sequence;

[0083] Determine whether the current distance is less than the current minimum wall distance; wherein the initial current minimum wall distance is the minimum distance between the space block corresponding to the first distance in the distance sequence and the fluid node;

[0084] If the current distance is not less than the current minimum wall distance, return to the step of traversing to the current distance in the order of the distances in the distance sequence;

[0085] If the current distance is less than the current minimum wall distance, the minimum distance from the fluid node to the space block corresponding to the current distance is calculated;

[0086] Determine whether the minimum distance is less than the current minimum wall distance;

[0087] If the minimum distance is less than the current minimum wall distance, the minimum distance is used as the new current minimum wall distance;

[0088] If the minimum distance is not less than the current minimum wall distance, the current minimum wall distance is retained as the new current minimum wall distance;

[0089] When the distance sequence is traversed, the new current minimum wall distance is obtained as the minimum wall distance.

[0090] The embodiment of the present application provides an implementation method for determining the minimum wall distance based on the distance from the fluid node to each space block. Specifically, after calculating the distance between the fluid node and each space block, all distances can be sorted in ascending order to obtain a corresponding distance sequence; further, the distance sequence is traversed, and for the first distance in the distance sequence, the minimum distance between the fluid node and the space block corresponding to the first distance can be calculated, and it is used as the initial current minimum wall distance; then continue to traverse to obtain the second distance in the distance sequence, and compare it with the current minimum wall distance. If the second distance is greater than the current minimum wall distance, there is no need to calculate the distance of the space block corresponding to the second distance, and continue to traverse the third distance in the distance sequence for comparison; conversely, if the second distance is not greater than the current minimum wall distance, the minimum distance between the fluid node and the space block corresponding to the second distance can be continued to be calculated, and the minimum distance is compared with the current minimum wall distance, and the distance with the smallest value between the two is used as the new current minimum wall distance to update the current minimum wall distance, and continue to traverse the third distance in the distance sequence for comparison and calculation. This process is repeated in this way until all distances in the distance sequence are traversed, and the current minimum wall distance after iterative update is obtained as the minimum wall distance corresponding to the current fluid node, thereby realizing the search for the minimum wall distance.

[0091] In one embodiment of the present application, the above-mentioned calculation of the minimum distance from the fluid node to the space block corresponding to the current distance may include:

[0092] Calculate the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance;

[0093] The wall distance with the smallest value is taken as the minimum distance.

[0094] The embodiment of the present application provides an implementation method for calculating the minimum distance from a fluid node to a space block. As described above, after the turbulent space is segmented, each space block contains multiple wall grids, based on which the wall distance from the fluid node to each wall grid in the space block can be calculated, and then the wall distance with the minimum value is used as the minimum distance between the fluid node and the space block.

[0095] In one embodiment of the present application, the above-mentioned calculation of the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance may include:

[0096] For each wall grid in the space block corresponding to the current distance, calculate the point-to-surface distance between the fluid node and the wall grid, as well as the point-to-point distance between the fluid node and each vertex in the wall grid;

[0097] The smallest distance among the point-to-surface distance and all point-to-point distances is selected as the wall distance.

[0098] The embodiment of the present application provides an implementation method for calculating the wall distance from a fluid node to a wall grid. To ensure the accuracy of the minimum wall distance obtained by the search, for each wall grid in the space block, the distances between multiple position points in the wall grid and the fluid node can be calculated, specifically, the point-to-surface distance (the distance between the fluid node and the center point of the wall grid), the point-to-point distance (the distance between the fluid node and each vertex in the wall grid), etc., so as to select the shortest distance from multiple distances as the wall distance between the fluid node and the wall grid.

[0099] In one embodiment of the present application, when the number of wall grids in the spatial block does not exceed a preset threshold, after determining the minimum wall distance based on the distance from the fluid node in the turbulent space to each spatial block, the step may also include: switching to the next fluid node in the turbulent space, and returning to the step of determining the minimum wall distance based on the distance from the fluid node in the turbulent space to each spatial block.

[0100] Specifically, the same turbulent space segmentation strategy can be used for any fluid node in the same turbulent space. Therefore, after the segmentation of the turbulent space is completed based on S101 to S104, each fluid node in the turbulent space can refer to the operation of S105 to realize the determination of its corresponding minimum wall distance without repeatedly performing the segmentation operation of the turbulent space, so as to effectively ensure the search efficiency of the minimum wall distance.

[0101] Based on the above embodiments, the embodiment of the present application provides another method for searching the minimum wall distance in a turbulence model.

[0102] The embodiment of the present application proposes a multi-dimensional space block segmentation method that can automatically judge, so as to quickly and accurately search for the minimum wall distance in the turbulent space. In the implementation process, the first segmentation is first made along a certain spatial dimension and then a judgment is made. If the standard of the secondary division is met, the division of the next spatial dimension is continued. Among them, the order of the divided spatial dimensions is also fixed, and the order from large to small spatial dimensions can be adopted. This is because the division method from large to small according to the spatial dimensions can ensure the reasonable distribution of the wall grid to be judged in the spatial block as much as possible.

[0103] For example, see Figure 2 , Figure 2 This is a distribution diagram of a turbulent space in a three-dimensional coordinate system provided by the present application, and the spatial dimensions include the X-axis, the Y-axis and the Z-axis. For the turbulent space, the first division is mainly based on the X-axis direction, and the following is obtained: Figure 3 The segmentation results shown are Figure 3 A schematic diagram of the segmentation result of a turbulent space in the X-axis direction provided in the present application. Furthermore, there can be a judgment process for whether to perform the next division, that is: a relatively reasonable limit value (that is, the above-mentioned preset threshold value, which is usually around 400 after testing and comparison) is inferred from the number of wall grids. When the number of wall grids in the space block after the first division exceeds the limit value, a second or third division is performed, otherwise the division will not continue. Obviously, there are two ideas for division, such as Figure 4 The division along the Y axis as shown Figure 5 The division along the Z direction is shown, Figure 4 This is a schematic diagram of the segmentation result of a turbulent space in the Y-axis direction provided by this application. Figure 5 This is a schematic diagram of the segmentation result of a turbulent space in the Z-axis direction provided by this application. Figure 5 Division method, taking any fluid node in the turbulent space as an example, the distance between the fluid node and each space block is not much different, and the maximum distance difference is infinitely close to the wall grid size Δz in the Z-axis direction, that is, when searching for the comparison distance, the fluid node is likely to need to enter more space blocks to compare more wall grids; and if it is divided into Figure 4 The division method is that the maximum distance difference between any fluid node in the turbulent space and each space block is infinitely close to the wall grid size Δy in the Y-axis direction, and Δy>Δz. Therefore, in this case, the division in the Y-axis direction can be prioritized to make it more likely to traverse as few space blocks as possible.

[0104] Based on this, please refer to Figure 6 , Figure 6 A schematic diagram of a process flow of another method for searching the minimum wall distance in a turbulence model provided in the present application, the implementation process of which may include:

[0105] 1. Determine the scale range of the three spatial dimensions (X, Y, Z) of the turbulent space, and record them as max, mid and min from large to small (in Figure 2 For example, the spatial dimensions are in the order of XYZ).

[0106] 2. In the order of max-mid-min, firstly divide the turbulent space based on the maximum length of the spatial dimension (i.e., the X-axis) to obtain multiple spatial blocks.

[0107] 3. Determine whether the number of wall grids in the space block is greater than the limit value. If it is greater, enter the mid dimension to continue the second division of the space block; if it is less than or equal to, take the number of space blocks in this space dimension as Box-sum (total number of space blocks) and enter the next step of calculation (corresponding to Figure 2 , that is, after the X-axis direction is divided, such as Figure 3 As shown in , if the number of wall grids in the space block is greater than the limit value, it is necessary to continue dividing in the Y-axis direction, such as Figure 4 as shown).

[0108] 4. Divide the turbulent space based on the final total number of spatial blocks Box-sum and determine the positioning point of each spatial block.

[0109] 5. The fluid node P inside the turbulent space to be calculated i Traverse and calculate the fluid point P i The distance to each spatial block positioning point is sorted in ascending order to obtain a distance sequence.

[0110] 6. Starting from the closest spatial block box_1 (the spatial block corresponding to the first distance in the distance sequence), the point-to-surface distance calculation method is used to quickly calculate the fluid node P i The minimum distance to each wall grid in the space block (including point-to-surface distance and point-to-point distance) is quickly obtained by comparison and temporarily stored.

[0111] 7. According to the order of the space blocks arranged in step 5, enter the next space block box_2 which is closer.

[0112] (1) If the fluid node P i If the distance from the space block is less than d1, the fluid node P is recalculated in the space block. i The minimum distance to each wall grid in the space block is calculated by comparing the minimum wall distance d2 that can be obtained in the space block. The smaller value of d1 and d2 is taken as the updated minimum wall distance d. i If the distance from the space block is not less than d1, proceed to (2).

[0113] (2) Enter the next space block box_3 which is closer. If the fluid node P i If the distance from the spatial block is less than d, repeat step (1) to continue updating the minimum wall distance d; if the fluid node P iIf the distance from the space block is greater than d, the latest updated d is considered to be the required minimum wall distance. This process is repeated until all space blocks are traversed.

[0114] 8. The current fluid node search is completed, and the minimum wall distance search calculation for the next fluid node begins.

[0115] It can be seen that the search method for the minimum wall distance in the turbulence model provided in the embodiment of the present application, when solving the minimum wall distance in the turbulent space, first divides the turbulent space into spatial blocks, and, during the division process, determines the division order of each spatial dimension according to the scale range of each spatial dimension in the turbulent space, and determines whether to continue the division of the next spatial dimension according to the number of wall grids in the spatial block obtained after the division of each spatial dimension; after the division is completed, the minimum wall distance can be determined according to the distance between the fluid node and each spatial block in the turbulent space. It can be seen that this scheme determines the minimum wall distance by dividing the turbulent space into spatial blocks and calculating the distance between the fluid node and the spatial block, without calculating the distance of all wall grids in the fluid space, which greatly reduces the amount of calculation. Therefore, this scheme can search for the minimum wall distance in the turbulent model more quickly and efficiently.

[0116] An embodiment of the present application provides a device for searching for a minimum wall distance in a turbulence model.

[0117] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of a search device for the minimum wall distance in a turbulence model provided in the present application. The search device for the minimum wall distance in the turbulence model may include:

[0118] Sorting module 1 is used to determine the scale range of each spatial dimension in the turbulent space, and sort each spatial dimension in the order of scale range from large to small to obtain a dimension segmentation sequence;

[0119] Setting module 2, used for taking the first spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented;

[0120] The segmentation module 3 is used to segment the turbulent space according to a preset segmentation scale in the dimension of the space to be segmented to obtain each space block;

[0121] A loop module 4 is used for, when the number of wall grids in the spatial block exceeds a preset threshold, taking the next spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented, and returning to the spatial dimension to be segmented, segmenting the turbulent space according to a preset segmentation scale to obtain the steps of each spatial block;

[0122] The determination module 5 is used to determine the minimum wall distance according to the distance from the fluid node in the turbulent space to each space block when the number of wall grids in the space block does not exceed the preset threshold.

[0123] It can be seen that the search device for the minimum wall distance in the turbulence model provided in the embodiment of the present application, when solving the minimum wall distance in the turbulent space, first divides the turbulent space into spatial blocks, and, during the division process, determines the division order of each spatial dimension according to the scale range of each spatial dimension in the turbulent space, and determines whether to continue the division of the next spatial dimension according to the number of wall grids in the spatial block obtained after the division of each spatial dimension; after the division is completed, the minimum wall distance can be determined according to the distance between the fluid node and each spatial block in the turbulent space. It can be seen that this scheme determines the minimum wall distance by dividing the turbulent space into spatial blocks and calculating the distance between the fluid node and the spatial block, without calculating the distance of all wall grids in the fluid space, which greatly reduces the amount of calculation. Therefore, this scheme can search for the minimum wall distance in the turbulent model more quickly and efficiently.

[0124] In one embodiment of the present application, the determination module 5 may include:

[0125] A first determining unit is used to determine, for each space block in the turbulent space, a positioning point of the space block in the turbulent space;

[0126] A second determining unit is used to use the distance from the fluid node to the positioning point as the distance from the fluid node to the space block;

[0127] The third determining unit is used to determine the minimum wall distance according to the distance from the fluid node to each space block.

[0128] In one embodiment of the present application, the third determining unit may include:

[0129] A sorting subunit is used to sort the distances from the fluid node to each space block in ascending order to obtain a distance sequence;

[0130] A traversal subunit is used to traverse to the current distance according to the arrangement order of each distance in the distance sequence;

[0131] The first judgment subunit is used to judge whether the current distance is less than the current minimum wall distance; wherein the initial current minimum wall distance is the minimum distance between the space block corresponding to the first distance in the distance sequence and the fluid node;

[0132] The return subunit is used to return the steps of traversing to the current distance in the order of arrangement of the distances in the distance sequence if the current distance is not less than the current minimum wall distance;

[0133] A calculation subunit, for calculating the minimum distance from the fluid node to the space block corresponding to the current distance if the current distance is less than the current minimum wall distance;

[0134] A second judgment unit is used to judge whether the minimum distance is less than the current minimum wall distance;

[0135] A first determining subunit is used to use the minimum distance as a new current minimum wall distance if the minimum distance is less than the current minimum wall distance;

[0136] A second determining subunit is used for retaining the current minimum wall distance as a new current minimum wall distance if the minimum distance is not less than the current minimum wall distance;

[0137] The third determining subunit is used to obtain a new current minimum wall distance as the minimum wall distance when the distance sequence traversal is completed.

[0138] In one embodiment of the present application, the above-mentioned calculation subunit can be specifically used to calculate the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance; and the wall distance with the smallest value is taken as the minimum distance.

[0139] In one embodiment of the present application, the above-mentioned calculation subunit can be specifically used to calculate the point-to-surface distance between the fluid node and the wall mesh, as well as the point-to-point distance between the fluid node and each vertex in the wall mesh for each wall mesh in the spatial block corresponding to the current distance; and select the distance with the smallest value among the point-to-surface distance and all point-to-point distances as the wall distance.

[0140] In one embodiment of the present application, the first determining unit may be specifically configured to use, for each space block in the turbulent space, a center point of the space block as a positioning point of the space block.

[0141] In one embodiment of the present application, the search for the minimum wall distance in the turbulence model may also include a switching module, which is used to switch to the next fluid node in the turbulent space and return to the step of determining the minimum wall distance based on the distance from the fluid node in the turbulent space to each spatial block after the minimum wall distance is determined based on the distance from the fluid node in the turbulent space to each spatial block when the number of wall grids in the spatial block does not exceed the preset threshold.

[0142] For an introduction to the device provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

[0143] An embodiment of the present application provides an electronic device.

[0144] Please refer to Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in this application, and the electronic device may include:

[0145] A memory 11, used for storing computer programs;

[0146] The processor 10 can implement the steps of any of the above-mentioned methods for searching the minimum wall distance in the turbulence model when executing the computer program.

[0147] like Figure 8 , which is a schematic diagram of the composition structure of an electronic device, the electronic device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.

[0148] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.

[0149] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in an embodiment of a method for searching for a minimum wall distance in a turbulence model.

[0150] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:

[0151] Determine the scale range of each spatial dimension in the turbulent space, and sort each spatial dimension in descending order of scale range to obtain a dimension segmentation sequence;

[0152] The first spatial dimension in the dimension segmentation sequence is used as the spatial dimension to be segmented;

[0153] In the dimension of the space to be segmented, the turbulent space is segmented according to the preset segmentation scale to obtain various space blocks;

[0154] When the number of wall grids in a spatial block exceeds a preset threshold, the next spatial dimension in the dimension segmentation sequence is used as the spatial dimension to be segmented, and the turbulent space is segmented according to the preset segmentation scale on the spatial dimension to be segmented to obtain the steps of each spatial block;

[0155] When the number of wall grids in a spatial block does not exceed a preset threshold, the minimum wall distance is determined according to the distance from the fluid node in the turbulent space to each spatial block.

[0156] In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0157] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0158] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

[0159] Of course, it should be noted that Figure 8 The structure shown does not constitute a limitation on the electronic device in the embodiment of the present application. In actual applications, the electronic device may include Figure 8 More or fewer components than shown, or combinations of certain components.

[0160] An embodiment of the present application provides a computer-readable storage medium.

[0161] The computer-readable storage medium provided in the embodiment of the present application stores a computer program, and when the computer program is executed by a processor, the steps of the method for searching the minimum wall distance in any of the above-mentioned turbulence models can be implemented.

[0162] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0163] For an introduction to the computer-readable storage medium provided in the embodiments of the present application, please refer to the above method embodiments, and the present application will not elaborate on them here.

[0164] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0165] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0166] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0167] The technical solution provided by the present application is described in detail above. The principle and implementation method of the present application are described in detail using specific examples herein, and the description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

Claims

1. A method for searching for the minimum wall distance in a turbulence model, characterized in that: include: Determine the scale range of each spatial dimension in the turbulent space, and sort each of the spatial dimensions in descending order of the scale range to obtain a dimension segmentation sequence; The first spatial dimension in the dimension segmentation sequence is used as the spatial dimension to be segmented; In the dimension of the space to be segmented, the turbulent space is segmented according to a preset segmentation scale to obtain various space blocks; When the number of wall grids in the spatial block exceeds a preset threshold, the next spatial dimension in the dimension segmentation sequence is used as the spatial dimension to be segmented, and the turbulent space is segmented according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block; When the number of wall grids in the space block does not exceed a preset threshold, determining a minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks; Determining the minimum wall distance according to the distance from the fluid node to each of the space blocks in the turbulent space, comprising: for each space block in the turbulent space, determining a positioning point of the space block in the turbulent space; using the distance from the fluid node to the positioning point as the distance from the fluid node to the space block; determining the minimum wall distance according to the distance from the fluid node to each of the space blocks; Determining the minimum wall distance according to the distance from the fluid node to each of the space blocks, including: sorting the distances from the fluid node to each of the space blocks in ascending order to obtain a distance sequence; traversing to the current distance in the order of arrangement of each distance in the distance sequence; judging whether the current distance is less than the current minimum wall distance; wherein the initial current minimum wall distance is the minimum distance between the space block corresponding to the first distance in the distance sequence and the fluid node; if the current distance is not less than the current minimum wall distance, returning to the order of arrangement of each distance in the distance sequence; The steps of sequentially traversing to the current distance; if the current distance is less than the current minimum wall distance, calculating the minimum distance from the fluid node to the space block corresponding to the current distance; judging whether the minimum distance is less than the current minimum wall distance; if the minimum distance is less than the current minimum wall distance, taking the minimum distance as the new current minimum wall distance; if the minimum distance is not less than the current minimum wall distance, retaining the current minimum wall distance as the new current minimum wall distance; when the distance sequence traversal is completed, obtaining the new current minimum wall distance as the minimum wall distance.

2. The method for searching the minimum wall distance in a turbulence model according to claim 1, characterized in that: The calculating the minimum distance from the fluid node to the space block corresponding to the current distance includes: Calculating the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance; The wall distance with the smallest value is taken as the minimum distance.

3. The method for searching the minimum wall distance in a turbulence model according to claim 2, characterized in that: The calculating the wall distance from the fluid node to each wall grid in the space block corresponding to the current distance includes: For each wall mesh in the space block corresponding to the current distance, calculating the point-to-surface distance between the fluid node and the wall mesh, and the point-to-point distance between the fluid node and each vertex in the wall mesh; The distance with the smallest value among the point-to-surface distance and all the point-to-point distances is selected as the wall distance.

4. The method for searching the minimum wall distance in a turbulence model according to claim 1, characterized in that: For each space block in the turbulent space, determining a positioning point of the space block in the turbulent space includes: For each space block in the turbulent space, the center point of the space block is used as the positioning point of the space block.

5. The method for searching the minimum wall distance in a turbulence model according to claim 1, characterized in that: When the number of wall grids in the space block does not exceed the preset threshold, after determining the minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks, the method further includes: Switch to the next fluid node of the turbulent space, and return to the step of determining the minimum wall distance according to the distance from the fluid node in the turbulent space to each of the space blocks.

6. A device for searching for the minimum wall distance in a turbulence model, characterized in that: include: A sorting module is used to determine the scale range of each spatial dimension in the turbulent space, and sort each of the spatial dimensions in order from large to small in scale range to obtain a dimension segmentation sequence; A setting module, used for taking the first spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented; A segmentation module, used to segment the turbulent space according to a preset segmentation scale in the dimension of the space to be segmented to obtain various space blocks; A loop module, configured to, when the number of wall grids in the spatial block exceeds a preset threshold, use the next spatial dimension in the dimension segmentation sequence as the spatial dimension to be segmented, and return to the step of segmenting the turbulent space according to a preset segmentation scale on the spatial dimension to be segmented to obtain each spatial block; A determination module, configured to determine a minimum wall distance according to a distance from a fluid node in the turbulent space to each of the space blocks when the number of wall grids in the space block does not exceed a preset threshold; The determination module comprises: A first determining unit, configured to determine, for each space block in the turbulent space, a positioning point of the space block in the turbulent space; A second determining unit, configured to use the distance from the fluid node to the positioning point as the distance from the fluid node to the space block; A third determining unit, configured to determine the minimum wall distance according to the distance from the fluid node to each of the space blocks; The first determination unit is specifically used to sort the distances from the fluid node to each of the spatial blocks in ascending order to obtain a distance sequence; traverse to the current distance according to the arrangement order of each distance in the distance sequence; and determine whether the current distance is less than the current minimum wall distance; wherein the initial current minimum wall distance is the minimum distance between the spatial block corresponding to the first distance in the distance sequence and the fluid node; if the current distance is not less than the current minimum wall distance, then return to the step of traversing to the current distance according to the arrangement order of each distance in the distance sequence; if the current distance is less than the current minimum wall distance, then calculate the minimum distance from the fluid node to the spatial block corresponding to the current distance; and determine whether the minimum distance is less than the current minimum wall distance; if the minimum distance is less than the current minimum wall distance, then use the minimum distance as the new current minimum wall distance; if the minimum distance is not less than the current minimum wall distance, then retain the current minimum wall distance as the new current minimum wall distance; when the distance sequence is traversed, the new current minimum wall distance is obtained as the minimum wall distance.

7. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for searching the minimum wall distance in a turbulence model as claimed in any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for searching the minimum wall distance in a turbulence model according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method for quickly searching for shortest distance between space lattice and wall face unit

    CN103793584A

  • Quick turbulence wall distance calculating method

    CN107391950A