CN115797572B - Space grid generation method, device, equipment and medium - Google Patents

Space grid generation method, device, equipment and medium Download PDF

Info

Publication number
CN115797572B
CN115797572B CN202310057964.9A CN202310057964A CN115797572B CN 115797572 B CN115797572 B CN 115797572B CN 202310057964 A CN202310057964 A CN 202310057964A CN 115797572 B CN115797572 B CN 115797572B
Authority
CN
China
Prior art keywords
grid
space
determining
line
lines
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310057964.9A
Other languages
Chinese (zh)
Other versions
CN115797572A (en
Inventor
齐龙
庞宇飞
张庆东
卢风顺
陈波
刘杨
陈浩
张勇杰
郭永恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Original Assignee
Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Computational Aerodynamics Institute of China Aerodynamics Research and Development Center filed Critical Computational Aerodynamics Institute of China Aerodynamics Research and Development Center
Priority to CN202310057964.9A priority Critical patent/CN115797572B/en
Publication of CN115797572A publication Critical patent/CN115797572A/en
Application granted granted Critical
Publication of CN115797572B publication Critical patent/CN115797572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application discloses a space grid generation method, a device, equipment and a medium, which relate to the field of computational fluid dynamics grid generation and comprise the steps of obtaining grid data, screening a space grid bottom surface, and determining associated grid lines according to the grid data and the space grid bottom surface; judging whether the type keeping request is to start type keeping; if the shape preservation is started, the end point positions of the associated grid lines are obtained, supporting lines are determined, lifting lines are determined according to the supporting lines, then a space topological frame is constructed according to the supporting lines and the lifting lines, if the shape preservation is not started, non-started shape preservation parameters are set, and the step of obtaining the end point positions of the associated grid lines is skipped to obtain the space topological frame; and adjusting the space topological frame by using the shape-preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain the space grid. The method and the device can improve the space grid generation efficiency, reduce the space grid generation complexity and meet the diversity of engineering application scenes.

Description

Space grid generation method, device, equipment and medium
Technical Field
The present invention relates to the field of computational fluid dynamics grid generation, and in particular, to a method, apparatus, device, and medium for generating a spatial grid.
Background
In the prior art, a mode of grid block assembly or grid block frame selection assembly is generally adopted for space grid generation, although a block assembly command can meet the use requirements in most cases, at least 6 grid faces are generally needed to form a closed three-dimensional space, and a space grid generation method based on multi-block stretching is also provided in the prior art.
From the above, how to improve the efficiency of space grid generation, reduce the complexity of space grid generation, and satisfy the diversity of engineering application scenarios is a problem to be solved in the field.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device, and a medium for generating a spatial grid, which can improve the efficiency of generating the spatial grid, reduce the complexity of generating the spatial grid, and satisfy the diversity of engineering application scenarios. The specific scheme is as follows:
in a first aspect, the present application discloses a spatial grid generating method, including:
grid data are obtained, a space grid bottom surface is screened out from a preset grid surface, and associated grid lines are determined according to the grid data and the space grid bottom surface;
judging whether the shape preserving request sent by the client is an open shape preserving request;
if the conformal request sent by the client is an open conformal, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, then constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not an open conformal, setting unopened conformal parameters and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame;
and adjusting the space topological frame by utilizing the pre-acquired shape preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid.
Optionally, the acquiring the grid data, and screening the space grid bottom surface from the preset grid surface includes:
acquiring grid data of O-type topology imported by a client;
and screening one or more grid surfaces from the preset grid surfaces according to service requirements to serve as space grid bottom surfaces.
Optionally, the determining the associated grid line according to the grid data and the bottom surface of the spatial grid includes:
determining the assembly relation of the bottom surface of the space grid, and determining the associated grid lines according to the grid data, the bottom surface of the space grid and the assembly relation;
and determining the endpoint positions of the associated grid lines, and marking the endpoint positions.
Optionally, the determining a supporting line based on the end point position, and determining a lifting line according to the supporting line includes:
determining a supporting line from the normal direction of the end point position;
and acquiring a preset normal value, determining the end position of each supporting line based on the supporting line and the normal value, and taking a connecting line between two adjacent end positions of the supporting lines as a lifting line.
Optionally, the adjusting the spatial topology frame by using the pre-acquired shape preserving parameter to obtain a target spatial topology frame includes:
determining the type of the application scene according to the service requirement;
and adjusting the size of the space topological frame by utilizing the pre-acquired conformal parameters and the scene type to obtain a target space topological frame.
Optionally, the interpolating the target space topology frame to obtain a space grid includes:
interpolating a two-dimensional closed area surrounded by the supporting line and the lifting line in the target space topological frame by using a preset super-linear interpolation method to obtain a supporting surface and a lifting surface;
and interpolating a three-dimensional closed area surrounded by the bottom surface of the space grid, the supporting surface and the lifting surface by using the super-linear interpolation method to obtain the space grid.
Optionally, after interpolating the target space topology frame to obtain a space grid, the method further includes:
performing quality function detection on the space grid;
and if the quality function detection is passed, sending information for representing that the quality function detection is passed to the client, and if the quality function detection is not passed, sending information for representing that the quality function detection is not passed to the client.
In a second aspect, the present application discloses a spatial grid generating device, including:
the grid data acquisition module is used for acquiring grid data, screening a space grid bottom surface from a preset grid surface, and determining associated grid lines according to the grid data and the space grid bottom surface;
the judging module is used for judging whether the shape preserving request sent by the client is an open shape preserving request or not;
the supporting line determining module is used for acquiring the end point positions of the associated grid lines if the shape preserving request sent by the client is an open shape preserving request, determining supporting lines based on the end point positions, determining lifting lines according to the supporting lines, then constructing a space topology frame according to the supporting lines and the lifting lines, setting unopened shape preserving parameters if the shape preserving request sent by the client is not an open shape preserving request, and jumping to the step of acquiring the end point positions of the associated grid lines to obtain the space topology frame;
and the space grid generation module is used for adjusting the space topological frame by utilizing the pre-acquired conformal parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain the space grid.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and a processor for executing the computer program to implement the aforementioned spatial grid generation method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the spatial grid generation method disclosed previously.
It can be seen that the present application provides a space grid generating method, including obtaining grid data, screening a space grid bottom surface from a preset grid surface, and determining associated grid lines according to the grid data and the space grid bottom surface; judging whether the shape preserving request sent by the client is an open shape preserving request; if the conformal request sent by the client is an open conformal, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, then constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not an open conformal, setting unopened conformal parameters and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame; and adjusting the space topological frame by utilizing the pre-acquired shape preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid. According to the method, the space grids are generated rapidly through the lifting method of one or more grid surfaces, the lifting direction, the size and the outfield shape of the space grids are set by the client according to the requirements of the client, the use experience of the client is improved, the application range of the space grid generation can be effectively improved on the premise that the grid quality is ensured, and the method has good adaptability to complex curved surfaces, is convenient to operate and improves the efficiency of the space grid generation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating a spatial grid disclosed in the present application;
FIG. 2 is a flow chart of a method for generating a spatial grid disclosed in the present application;
FIG. 3 is a specific example diagram of a spatial grid generation method disclosed in the present application;
FIG. 4 is a specific example diagram of a spatial grid generation method disclosed in the present application;
FIG. 5 is a flowchart of a method for generating a spatial grid disclosed in the present application;
FIG. 6 is a schematic structural diagram of a spatial grid generating device disclosed in the present application;
fig. 7 is a block diagram of an electronic device provided in the present application.
Description of the embodiments
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the prior art, a mode of grid block assembly or grid block frame selection assembly is generally adopted for space grid generation, although a block assembly command can meet the use requirements in most cases, at least 6 grid faces are generally needed to form a closed three-dimensional space, and a space grid generation method based on multi-block stretching is also provided in the prior art. From the above, how to improve the efficiency of space grid generation, reduce the complexity of space grid generation, and satisfy the diversity of engineering application scenarios is a problem to be solved in the field.
Referring to fig. 1, the embodiment of the invention discloses a space grid generating method, which specifically includes:
step S11: grid data are obtained, a space grid bottom surface is screened out from a preset grid surface, and associated grid lines are determined according to the grid data and the space grid bottom surface.
In this embodiment, grid data of an O-type topology imported by a client is obtained, one or more grid surfaces are selected from preset grid surfaces as space grid bottom surfaces according to service requirements, then an assembly relationship of the space grid bottom surfaces is determined, and associated grid lines are determined according to the grid data, the space grid bottom surfaces and the assembly relationship; and determining the endpoint positions of the associated grid lines, and marking the endpoint positions. That is, the imported grid file with the O-type topology is acquired, one or more grid surfaces are designated as the bottom surface, grid lines (i.e., boundary lines) associated with the grid surfaces can be obtained according to the assembly relation of the designated grid surfaces, the positions of the end points of the grid lines are marked, and the steps are repeated until all the end points on the associated grid lines are marked.
Step S12: and judging whether the conformal request sent by the client is an open conformal.
Step S13: if the conformal request sent by the client is a conformal opening, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not a conformal opening, setting parameters which are not conformal opening, and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame.
In this embodiment, the user may determine whether the shapes of the associated grid line and the bottom surface of the space grid are the same, and may determine whether the curvatures of the associated grid line and the bottom surface of the space grid are approximately the same, that is, determine whether the curvatures of the associated grid line and the bottom surface of the space grid are within a preset curvature determination range, if the curvatures of the associated grid line and the bottom surface of the space grid are within the preset curvature determination range, obtain the end point positions of the associated grid line, and if the user selects to open the shape retention, send a shape retention request for opening the shape retention to the local.
After the end point positions of the associated grid lines are acquired, determining a supporting line from the normal direction of the end point positions; and acquiring a preset normal value, determining the end positions of each supporting line based on the supporting lines and the normal value, taking a connecting line between the end positions of two adjacent supporting lines as a lifting line, namely, leading out one supporting line at the end point of each mark along the normal direction, wherein the normal direction can be obtained by the cross multiplication of a u value and a v value at the end point, the length of a supporting line segment is a default value (1 mm), namely, the end positions of the supporting line segments are determined, and connecting the end points of the two adjacent supporting lines through the line segments to obtain the lifting line.
Step S14: and adjusting the space topological frame by utilizing the pre-acquired shape preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid.
In this embodiment, grid data are acquired, a space grid bottom surface is screened from preset grid surfaces, and associated grid lines are determined according to the grid data and the space grid bottom surface; judging whether the shape preserving request sent by the client is an open shape preserving request; if the conformal request sent by the client is an open conformal, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, then constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not an open conformal, setting unopened conformal parameters and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame; and adjusting the space topological frame by utilizing the pre-acquired shape preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid. According to the method, the space grids are generated rapidly through the lifting method of one or more grid surfaces, the lifting direction, the size and the outfield shape of the space grids are set by the client according to the requirements of the client, the use experience of the client is improved, the application range of the space grid generation can be effectively improved on the premise that the grid quality is ensured, and the method has good adaptability to complex curved surfaces, is convenient to operate and improves the efficiency of the space grid generation.
Referring to fig. 2, the embodiment of the invention discloses a space grid generating method, which specifically includes:
step S21: grid data are obtained, a space grid bottom surface is screened out from a preset grid surface, and associated grid lines are determined according to the grid data and the space grid bottom surface.
Step S22: and judging whether the conformal request sent by the client is an open conformal.
Step S23: if the conformal request sent by the client is a conformal opening, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not a conformal opening, setting parameters which are not conformal opening, and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame.
In this embodiment, as shown in fig. 3, after the space topology frame is constructed according to the supporting line and the lifting line, determining an application scene type according to service requirements; and adjusting the size of the space topological frame by utilizing the pre-acquired conformal parameters and the scene type to obtain a target space topological frame, wherein the target space topological frame is shown in fig. 4. That is, according to a specific application scenario, different external field types may be set, where the external field types include: and refreshing the size of the space topological frame by giving the position information of the lifting line end point to obtain a target space topological frame.
Step S24: and interpolating a two-dimensional closed region surrounded by the supporting line and the lifting line in the target space topological frame by using a preset super-linear interpolation method to obtain a supporting surface and a lifting surface, and then interpolating a three-dimensional closed region surrounded by the bottom surface of the space grid, the supporting surface and the lifting surface by using the super-linear interpolation method to obtain the space grid.
Step S25: and carrying out quality function detection on the space grid, if the quality function detection is passed, sending information used for representing that the quality function detection is passed to the client, and if the quality function detection is not passed, sending information used for representing that the quality function detection is not passed to the client.
In this embodiment, as shown in fig. 5, the specific flow is that boundary information of a designated grid surface, such as a boundary line and an endpoint, is automatically identified, and the location of the endpoint is marked, that is, grid data of an O-type topology imported by a client is obtained, one or more grid surfaces are screened out from preset grid surfaces as space grid bottom surfaces according to service requirements, then an assembly relationship of the space grid bottom surfaces is determined, and associated grid lines are determined according to the grid data, the space grid bottom surfaces and the assembly relationship, and the endpoint locations of the associated grid lines are determined, and marked; then, a space topology flow is carried out, namely whether a client needs to be opened for shape preservation is judged according to the requirement of a user, if the client needs to be opened for shape preservation, shape preservation parameters are obtained, then the end point positions of the associated grid lines are obtained, a supporting line is determined based on the end point positions, and a lifting line is determined according to the supporting line; and constructing a space topological frame according to the supporting line and the lifting line, determining an application scene type according to service requirements, adjusting the size of the space topological frame by utilizing the pre-acquired shape preserving parameters and the scene type to obtain a target space topological frame, and finally performing quality detection, and if shape preserving is not required to be started, directly jumping to the position of the endpoint of the associated grid line.
In this embodiment, grid data are acquired, a space grid bottom surface is screened from preset grid surfaces, and associated grid lines are determined according to the grid data and the space grid bottom surface; judging whether the shape preserving request sent by the client is an open shape preserving request; if the conformal request sent by the client is an open conformal, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, then constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not an open conformal, setting unopened conformal parameters and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame; and adjusting the space topological frame by utilizing the pre-acquired shape preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid. According to the method, the space grids are generated rapidly through the lifting method of one or more grid surfaces, the lifting direction, the size and the outfield shape of the space grids are set by the client according to the requirements of the client, the use experience of the client is improved, the application range of the space grid generation can be effectively improved on the premise that the grid quality is ensured, and the method has good adaptability to complex curved surfaces, is convenient to operate and improves the efficiency of the space grid generation.
Referring to fig. 6, an embodiment of the present invention discloses a spatial grid generating device, which may specifically include:
the grid data acquisition module 11 is used for acquiring grid data, screening a space grid bottom surface from a preset grid surface, and determining associated grid lines according to the grid data and the space grid bottom surface;
a judging module 12, configured to judge whether the type-keeping request sent by the client is an open type-keeping request;
the supporting line determining module 13 is configured to obtain an endpoint position of the associated grid line if the shape preserving request sent by the client is an open shape preserving, determine a supporting line based on the endpoint position, determine a lifting line according to the supporting line, and then construct a space topology frame according to the supporting line and the lifting line, and if the shape preserving request sent by the client is not an open shape preserving, set an unopened shape preserving parameter, and jump to the step of obtaining the endpoint position of the associated grid line to obtain the space topology frame;
the spatial grid generating module 14 is configured to adjust the spatial topological frame by using a pre-acquired conformal parameter to obtain a target spatial topological frame, and interpolate the target spatial topological frame to obtain a spatial grid.
In this embodiment, grid data are acquired, a space grid bottom surface is screened from preset grid surfaces, and associated grid lines are determined according to the grid data and the space grid bottom surface; judging whether the shape preserving request sent by the client is an open shape preserving request; if the conformal request sent by the client is an open conformal, acquiring the endpoint position of the associated grid line, determining a supporting line based on the endpoint position, determining a lifting line according to the supporting line, then constructing a space topological frame according to the supporting line and the lifting line, and if the conformal request sent by the client is not an open conformal, setting unopened conformal parameters and jumping to the step of acquiring the endpoint position of the associated grid line to obtain the space topological frame; and adjusting the space topological frame by utilizing the pre-acquired shape preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid. According to the method, the space grids are generated rapidly through the lifting method of one or more grid surfaces, the lifting direction, the size and the outfield shape of the space grids are set by the client according to the requirements of the client, the use experience of the client is improved, the application range of the space grid generation can be effectively improved on the premise that the grid quality is ensured, and the method has good adaptability to complex curved surfaces, is convenient to operate and improves the efficiency of the space grid generation.
In some specific embodiments, the grid data acquisition module 11 may specifically include:
the grid data acquisition module is used for acquiring grid data of the O-type topology imported by the client;
the space grid bottom surface determining module is used for screening one or more grid surfaces from the preset grid surfaces according to service requirements to serve as space grid bottom surfaces.
In some specific embodiments, the grid data acquisition module 11 may specifically include:
the association grid line determining module is used for determining the assembly relation of the bottom surface of the space grid and determining association grid lines according to the grid data, the bottom surface of the space grid and the assembly relation;
and the endpoint position marking module is used for determining the endpoint positions of the associated grid lines and marking the endpoint positions.
In some specific embodiments, the supporting line determining module 13 may specifically include:
the supporting line determining module is used for determining a supporting line from the normal direction of the endpoint position;
the lifting line module is used for acquiring a preset normal value, determining the end position of each supporting line based on the supporting line and the normal value, and taking a connecting line between two adjacent end positions of the supporting line as a lifting line.
In some specific embodiments, the spatial grid generation module 14 may specifically include:
the application scene type determining module is used for determining the application scene type according to the service requirement;
and the target space topology frame determining module is used for adjusting the size of the space topology frame by utilizing the pre-acquired shape preserving parameters and the scene type so as to obtain the target space topology frame.
In some specific embodiments, the spatial grid generation module 14 may specifically include:
the supporting surface determining module is used for interpolating a two-dimensional closed area surrounded by the supporting line and the lifting line in the target space topological frame by using a preset super-linear interpolation method so as to obtain a supporting surface and a lifting surface;
and the space grid generating module is used for interpolating a three-dimensional closed area surrounded by the space grid bottom surface, the supporting surface and the lifting surface by using the super-linear interpolation method so as to obtain a space grid.
In some specific embodiments, the spatial grid generation module 14 may specifically include:
the quality function detection module is used for detecting the quality function of the space grid;
and the information sending module is used for sending information used for representing that the quality function detection passes to the client if the quality function detection passes, and sending information used for representing that the quality function detection does not pass to the client if the quality function detection does not pass.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement the relevant steps of the spatial grid generation method performed by the electronic device as disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the spatial grid generation method performed by the electronic device 20 disclosed in any of the previous embodiments. The data 223 may include, in addition to data received by the spatial grid generating device and transmitted by an external device, data acquired by the own input/output interface 25, and the like.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the steps of the space grid generating method disclosed in any of the previous embodiments are realized.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description of the spatial grid generating method, the device, the equipment and the storage medium provided by the invention applies specific examples to illustrate the principle and the implementation of the invention, and the above description of the examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (8)

1. A method for generating a spatial grid, comprising:
grid data are obtained, a space grid bottom surface is screened out from a preset grid surface, and associated grid lines are determined according to the grid data and the space grid bottom surface;
judging whether the shape preserving request sent by the client is an open shape preserving request;
if the shape preserving request sent by the client is a shape preserving starting request, acquiring the end point positions of the associated grid lines, determining a supporting line based on the end point positions, and determining a lifting line according to the supporting line;
constructing a space topological frame according to the supporting lines and the lifting lines, then adjusting the space topological frame by utilizing pre-acquired shape-preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid;
wherein, determining the associated grid line according to the grid data and the bottom surface of the space grid includes: determining the assembly relation of the bottom surface of the space grid, and determining the associated grid lines according to the grid data, the bottom surface of the space grid and the assembly relation; determining the endpoint positions of the associated grid lines and marking the endpoint positions;
the determining the supporting line based on the end point position, and determining the lifting line according to the supporting line comprises the following steps: determining a supporting line from the normal direction of the end point position; and acquiring a preset normal value, determining the end position of each supporting line based on the supporting line and the normal value, and taking a connecting line between two adjacent end positions of the supporting lines as a lifting line.
2. The method for generating a spatial grid according to claim 1, wherein the step of acquiring grid data and screening a spatial grid bottom surface from a preset grid surface comprises:
acquiring grid data of O-type topology imported by a client;
and screening one or more grid surfaces from the preset grid surfaces according to service requirements to serve as space grid bottom surfaces.
3. The method for generating a spatial grid according to claim 1, wherein said adjusting the spatial topology with the pre-acquired shape preserving parameters to obtain the target spatial topology comprises:
determining the type of the application scene according to the service requirement;
and adjusting the size of the space topological frame by utilizing the pre-acquired conformal parameters and the scene type to obtain a target space topological frame.
4. The method of generating a spatial grid according to claim 1, wherein interpolating the target spatial topology to obtain a spatial grid comprises:
interpolating a two-dimensional closed area surrounded by the supporting line and the lifting line in the target space topological frame by using a preset super-linear interpolation method to obtain a supporting surface and a lifting surface;
and interpolating a three-dimensional closed area surrounded by the bottom surface of the space grid, the supporting surface and the lifting surface by using the super-linear interpolation method to obtain the space grid.
5. The method for generating a spatial grid according to any one of claims 1 to 4, wherein after interpolating the target spatial topology to obtain a spatial grid, further comprising:
performing quality function detection on the space grid;
and if the quality function detection is passed, sending information for representing the passing of the quality function detection to the client.
6. A spatial grid generating apparatus, comprising:
the grid data acquisition module is used for acquiring grid data, screening a space grid bottom surface from a preset grid surface, and determining associated grid lines according to the grid data and the space grid bottom surface;
the judging module is used for judging whether the shape preserving request sent by the client is an open shape preserving request or not;
the support line determining module is used for acquiring the endpoint positions of the associated grid lines if the shape preserving request sent by the client is a shape preserving starting request, determining a support line based on the endpoint positions, and determining a lifting line according to the support line;
the space grid generation module is used for constructing a space topological frame according to the supporting lines and the lifting lines, then adjusting the space topological frame by utilizing the pre-acquired shape-preserving parameters to obtain a target space topological frame, and interpolating the target space topological frame to obtain a space grid;
the grid data acquisition module is used for determining the assembly relation of the bottom surface of the space grid and determining associated grid lines according to the grid data, the bottom surface of the space grid and the assembly relation; determining the endpoint positions of the associated grid lines and marking the endpoint positions;
the supporting line determining module is used for determining a supporting line from the normal direction of the end point position; and acquiring a preset normal value, determining the end position of each supporting line based on the supporting line and the normal value, and taking a connecting line between two adjacent end positions of the supporting lines as a lifting line.
7. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the spatial grid generation method of any one of claims 1 to 5.
8. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the spatial grid generation method of any of claims 1 to 5.
CN202310057964.9A 2023-01-20 2023-01-20 Space grid generation method, device, equipment and medium Active CN115797572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310057964.9A CN115797572B (en) 2023-01-20 2023-01-20 Space grid generation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310057964.9A CN115797572B (en) 2023-01-20 2023-01-20 Space grid generation method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115797572A CN115797572A (en) 2023-03-14
CN115797572B true CN115797572B (en) 2023-04-21

Family

ID=85429713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310057964.9A Active CN115797572B (en) 2023-01-20 2023-01-20 Space grid generation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115797572B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798730A (en) * 2017-10-27 2018-03-13 中国空气动力研究与发展中心计算空气动力研究所 A kind of structured grid boundary-layer automatic Mesh Generation Method
EP3836079A1 (en) * 2019-12-12 2021-06-16 Koninklijke Philips N.V. Mesh topology adaptation
US11184245B2 (en) * 2020-03-06 2021-11-23 International Business Machines Corporation Configuring computing nodes in a three-dimensional mesh topology
CN114707254B (en) * 2022-06-01 2022-08-26 中国空气动力研究与发展中心计算空气动力研究所 Two-dimensional boundary layer grid generation method and system based on template construction method
CN115238331B (en) * 2022-09-08 2023-01-06 中国空气动力研究与发展中心计算空气动力研究所 CAD graph processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115797572A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US8670614B2 (en) Method and system for providing tile map service using image fusion
CN108696911B (en) Method and device for selecting data transmission mode of Internet of things
CN110730449B (en) Wireless sensor network communication method and system based on multiple block chains
CN110264405A (en) Image processing method, device, server and storage medium based on interpolation algorithm
CN114070675A (en) AI network model matching method and device, storage medium and user equipment
CN109743713A (en) A kind of resource allocation methods and device of electric power Internet of things system
CN108833548A (en) SD-WAN network system and for network flow accelerate optimization method
CN104867105A (en) Picture processing method and device
CN115797572B (en) Space grid generation method, device, equipment and medium
CN112584437B (en) Data distribution method and device
CN107817795B (en) The method and system of figure is built for controlling mobile robot
CN111986324B (en) Equivalent surface construction method based on meteorological elements
CN107113615A (en) A kind of authentication method, system and relevant device to access point AP
CN104936010B (en) TV remote controlling method, device and system based on input method
CN110138803A (en) A kind of method and Visualization Platform of network behavior data
CN108243237A (en) Wideband directional accelerating method and equipment
CN112667334A (en) Configuration method and device of equipment control information, electronic equipment and storage medium
CN112532346A (en) Link self-adaption method and device based on user time requirement
CN110995593A (en) Intelligent information forwarding method, device, equipment and storage medium
CN117675590A (en) 3D topology large screen generation method, device, equipment and storage medium
CN116886475B (en) Channel estimation method, device and system
CN114979276B (en) Dynamic scheduling method, device, equipment and storage medium for resources
JP7397956B1 (en) Power control method and its communication device
CN113139625B (en) Model training method, electronic equipment and storage medium thereof
CN112748679B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant