CN111400932B - Method and device for generating grid in water environment simulation, storage medium and terminal - Google Patents
Method and device for generating grid in water environment simulation, storage medium and terminal Download PDFInfo
- Publication number
- CN111400932B CN111400932B CN202010274456.2A CN202010274456A CN111400932B CN 111400932 B CN111400932 B CN 111400932B CN 202010274456 A CN202010274456 A CN 202010274456A CN 111400932 B CN111400932 B CN 111400932B
- Authority
- CN
- China
- Prior art keywords
- grid
- information
- water
- water environment
- unit
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a method and a device for generating grids in water environment simulation, a storage medium and a terminal. The method comprises the following steps: acquiring boundary information, topographic distribution information and wetting and drying information of a water environment; determining corner points and outer boundary lines of a research area based on the boundary information of the water environment; determining an inclination angle, grid block distribution and the dimensions of unit grids in different grid blocks based on the angular points, the outer boundary line and topographic distribution information of the water environment to generate a first grid; and identifying and marking the dry and wet conditions of the unit grids in the first grid based on the dry and wet information and the boundary information of the water environment to generate a second grid. The scheme of the invention provides a method, a device, a storage medium and a terminal for generating grids in water environment simulation, which can generate rectangular fine grids with different densities and different gradients and have important significance for carrying out water environment numerical simulation and related research in complex water areas such as large lakes, reservoirs, rivers and the like.
Description
Technical Field
The invention relates to the technical field of water environment simulation, in particular to a method, a device, a storage medium and a terminal for generating grids in water environment simulation.
Background
The grid generation technology is a link connecting a geometric model and a numerical algorithm, is the first step in water environment numerical simulation research, and is also a key step directly related to simulation effect and success or failure of the simulation effect. The geometric model can only be solved numerically if it is divided into a certain standard mesh. In the process of numerical simulation of water environment, for example, when researching the hydrodynamic force, water quality and sediment, temperature and salinity of water area, the grid is used as a basic unit, and the type and size of the grid affect the precision, stability and calculation efficiency of simulation. According to different division modes, the grids mainly comprise structural grids, non-structural grids and orthogonal fit grids. The unstructured grid and the orthogonal skin grid have strong adaptability to complex terrains and boundaries, but are difficult to generate and complex in pretreatment process. The structural grid generation process is simple, but has poor adaptability to complex terrains and boundaries.
The existing water environment simulation analysis software provides rich choices and good human-computer interaction experience for a grid generation mode. However, as the field of water environment simulation analysis is transformed from an ideal simplified environment to a complex real environment, for example, lakes and reservoirs with isolated land bodies such as islands, continents, small dams or peninsulas, etc., higher requirements are made on the adaptability and accuracy of the grid, the flexibility of information processing of grid units, and the like. In order to meet the actual requirements of simulation, improve the adaptability of grids and the flexibility of unit information processing, and realize the balance among calculation efficiency, calculation cost and calculation precision, further research needs to be carried out on the technical problem of grid generation in water environment simulation.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method, an apparatus, a storage medium and a terminal for generating a grid in water environment simulation, which are used to solve the problems of insufficient adaptability and accuracy adjustment flexibility of the grid in water environment simulation analysis and the balance among calculation efficiency, calculation cost and calculation accuracy in grid generation in the prior art.
To achieve the above and other related objects, a first aspect of the present invention provides a method for generating a grid in an aquatic environment simulation, including: acquiring boundary information, topographic distribution information and wetting and drying information of a water environment; determining corner points and outer boundary lines of a research area based on the boundary information of the water environment; determining an inclination angle, grid block distribution and the dimensions of unit grids in different grid blocks based on the angular points, the outer boundary line and topographic distribution information of the water environment to generate a first grid; and identifying and marking the dry and wet conditions of the unit grids in the first grid based on the dry and wet information and the boundary information of the water environment to generate a second grid.
In some embodiments of the first aspect of the present invention, the dimensions of the grid of cells within the different grid blocks are adjusted according to the severity of local changes within the water environment and the level of importance of the project within the water environment.
In some embodiments of the first aspect of the present invention, the method further comprises: identifying the corner points to adapt to the data input requirements of different models; the model comprises a staggered grid discrete solving model and a unit channel body solving model.
In some embodiments of the first aspect of the present invention, the tilt angle is selected such that the general orientation of the investigation region coincides with the length-width direction of the generated grid.
In some embodiments of the first aspect of the present invention, the identifying and identifying the dry-wet condition of the unit grid in the first grid includes: water areas, land-water junction areas and other areas dry and wet conditions; the land and water boundary region comprises a water region northeast direction, a water region southeast direction, a water region southwest direction and a water region northwest direction.
In some embodiments of the first aspect of the present invention, the second grid includes global grid line distribution information, global grid cell wet and dry information, global grid cell center point coordinate information, global grid cell lower left corner coordinate information, global grid cell node coordinate information, and global grid cell scale information.
In some embodiments of the first aspect of the present invention, the method for generating the first mesh includes a mesh generation method based on one corner point and a mesh generation method based on four corner points.
To achieve the above and other related objects, a second aspect of the present invention provides an apparatus for generating a grid in an aquatic environment simulation, comprising: the information acquisition module is used for acquiring boundary information, topographic distribution information and wetting and drying information of the water environment; the region determining module is used for determining the corner points and the outer border lines of the research region based on the boundary information of the water environment; the first grid generation module is used for determining an inclination angle, grid block distribution and the scale of unit grids in different grid blocks based on the angular point, the outer boundary line and topographic distribution information of the water environment so as to generate a first grid; and the second grid generation module is used for identifying and marking the dry and wet conditions of the unit grids in the first grid based on the dry and wet information and the boundary information of the water environment so as to generate a second grid.
To achieve the above and other related objects, a third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for generating a grid in an aquatic environment simulation.
To achieve the above and other related objects, a fourth aspect of the present invention provides an electronic terminal comprising: a processor and a memory; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory so as to enable the terminal to execute the method for generating the grid in the aquatic environment simulation.
As described above, the method, the apparatus, the storage medium and the terminal for generating a grid in water environment simulation provided by the present invention have the following advantages: by flexibly adjusting the density of the grid, the balance of calculation precision, calculation cost and calculation efficiency is realized, calculation resources and time are saved, and the waste of storage space is avoided; the adaptability to the boundary of the research area is improved by flexibly adjusting the inclination.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for generating a grid in an aquatic environment simulation according to an embodiment of the present invention.
FIG. 2 is a schematic diagram of a lake reservoir according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a corner point and an outer border line determined in a lake reservoir according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of a first grid of a lake reservoir according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating a second grid of a lake reservoir according to an embodiment of the present invention.
FIG. 6 is a schematic structural diagram of a device for generating a grid in an aquatic environment simulation according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an electronic terminal according to an embodiment of the invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It is noted that in the following description, reference is made to the accompanying drawings which illustrate several embodiments of the present invention. It is to be understood that other embodiments may be utilized and that mechanical, structural, electrical, and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description is not to be taken in a limiting sense, and the scope of embodiments of the present invention is defined only by the claims of the issued patent. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. Spatially relative terms, such as "upper," "lower," "left," "right," "lower," "below," "lower," "above," "upper," and the like, may be used herein to facilitate describing one element or feature's relationship to another element or feature as illustrated in the figures.
In the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," "secured," "retained," and the like are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art.
Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," and/or "comprising," when used in this specification, specify the presence of stated features, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, operations, elements, components, items, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions or operations are inherently mutually exclusive in some way.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention are further described in detail by the following embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Example one
Fig. 1 shows a schematic flow chart of a method for generating a grid in water environment simulation according to an embodiment of the present invention, which includes the following specific steps:
step S11: boundary information, topographic distribution information and wetting and drying information of the water environment are obtained. The water environment comprises large complex lakes, reservoirs, great rivers, estuaries, gulfs and the like. The boundary information, topographic distribution information, and dry and wet information may be acquired by Google Earth, geographic information system GIS, or mapping in the field.
The boundary information, that is, information of the boundary line of the study region includes information such as the start point of the boundary line, the end point of the boundary line, the length of the boundary line, and the path of the boundary line. Fig. 2 is a schematic view of a lake reservoir according to an embodiment of the present invention, which includes boundary information of a research area, such as boundaries between an island area and a lake reservoir water area, a wetland and a lake reservoir water area, and a land area and a lake reservoir water area.
The terrain distribution information includes altitude information and position coordinate information. The altitude measurement datum point is determined according to the position of a research area, and generally, the altitude of a country adopts a yellow sea average sea surface calculated by long-term observation data of a Qingdao harbor tide station as a measurement datum plane; setting a horizontal origin of Taiwan as a measurement reference point by the east bank of the Kunlong harbor in the b country; in C, the average sea surface of Tokyo gulf is used as a measuring reference surface; country d uses the average sea surface "Ordnance Datum Newlyn" of Convoler county, southwest of UK as the measuring reference surface; nation e uses the average sea surface "Normaal amsterdam penil" of Amsterdam as the measurement reference surface. The position coordinate information comprises relative coordinates and projection coordinates, and further comprises WGS84 longitude and latitude projection, WGS84 Web mercator projection, WGS84 UTM projection, Beijing 54 gauss projection, Xian 80 gauss projection, CGCS2000 gauss projection, GCJ02 longitude and latitude projection, GCJ02 Web mercator projection, BD09 longitude and latitude projection, BD09 Web mercator projection coordinates and the like.
The information of the dryness and the wetness comprises information of water quantity, water sources (such as precipitation, underground water, tide, rivers, lakes and the like), water depth, water flow modes, duration and frequency of flooding and the like, and the region to be researched can be divided into different regions including land regions, water regions, wetlands, island regions and the like based on the information of the dryness and the wetness. Wherein the water area refers to rivers, lakes, canals, channels, reservoirs, ponds, management ranges thereof and hydraulic facilities.
Step S12: and determining corner points and outer boundary lines of the research area based on the boundary information of the water environment. For example, fig. 3 is a schematic diagram of a corner point and an outer border line determined in a lake reservoir, and is an image obtained by performing corner point and outer border line confirmation processing on the research area shown in fig. 2, where 11 to 14 represent a lower outer border line, a right outer border line, an upper outer border line, and a left outer border line, and 15 to 18 represent a left lower corner point, a right upper corner point, and a left upper corner point, respectively. Preferably, the lengths of outer boundary lines of the research area in the x-axis direction and the y-axis direction under the rectangular plane coordinate system are measured; and acquiring coordinates of the corner points corresponding to the outsource sideline, wherein the coordinates comprise relative coordinates or projection coordinates, if longitude and latitude coordinates exist, the coordinates need to be converted into preset type coordinates, and the preset type coordinates comprise but are not limited to CGCS2000 coordinates, Beijing 54 coordinates, Xian 80 coordinates or city coordinates of the location of the research area and the like.
Step S13: and determining the inclination angle, the grid block distribution and the unit grid size in different grid blocks based on the angular point, the outer boundary line and the topographic distribution information of the water environment so as to generate a first grid.
Optionally, the method for generating the first grid includes a grid generating method based on one corner point and a grid generating method based on four corner points. The grid generation method based on one corner point needs to determine the number of grid blocks and the length and width of a unit grid in the x-axis direction and the y-axis direction. The method has less requirement on the coordinates of the angular points, can quickly generate the first grid after preliminarily determining the number of grid blocks, the number of grids of each block and the unit grid size in the x-axis and y-axis directions, is convenient for subsequent optimization and accurate determination of the required layout and analysis of different grid block densities, unit grid sizes and the like, is divergent in grid layout, is not limited by other angular points, and can macroscopically grasp the number of grid blocks, the number of unit grids and the unit grid size of a research area. The grid generation method based on four corner points needs to determine the number of grid blocks in the x-axis direction and the y-axis direction and the proportion of each grid block on the outer boundary line in the x-axis direction and the y-axis direction, and the sum of the proportions of all the grid blocks in the x-axis direction and the y-axis direction is 1. The method can generate the corresponding first grid at one time, and avoids debugging from divergence to convergence for a plurality of times.
In a preferred embodiment of the present invention, the dimensions of the unit grids in the different grid blocks are adjusted according to the intensity of local changes in the water environment and the importance level of engineering in the water environment. Specifically, the more severe the local change of the research area is, the higher the importance level of the project is, the smaller the scale of the unit grid is, the higher the density of the grid generated in the corresponding area is, and the higher the simulation precision is. In addition, the requirements of the memory, computing capacity and related standard specifications of the computer also need to be considered. For example, when the local change of the research area is severe, such as the occurrence of river mouths, river and lake intersections, wave-proof dams, diving projects, lake bays, island continents or beach lands, the grids are encrypted; when important projects such as a sluice or a pump station access and exit appear in a research area, the grid is encrypted.
In a preferred embodiment of this embodiment, the tilt angle is selected such that the overall direction of the study area coincides with the length and width directions of the generated grid, so that the grid has good adaptability to the boundary of the study area. The inclination angle refers to the included angle between two sides of the unit grid and the x-axis and y-axis directions of the planar rectangular coordinate system. Specifically, the angle can be pre-judged, and then the angle value can be gradually modified according to the grid generation effect until the requirement of simulation is met; it is also possible to first measure the angle between the direction of the central axis of the length or width of the investigation region and the direction of the x-axis or y-axis and then to specify the value of the tilt angle. Specifically, the value range of the inclination angle is 0-180 degrees.
Preferably, the maximum different scale quantities of the unit grids in the x-axis and y-axis directions of the embodiment are both 8, and at most 64 unit grids with different scales can be generated; the sum of the grid numbers in the x-axis direction and the y-axis direction is 300 at most, namely the grid number can reach 300 x 300 in a plane domain. The design comprehensively considers the requirements of calculation capacity, storage space and calculation precision, and avoids unnecessary resource waste on the premise of meeting the precision requirement.
Optionally, in this embodiment, a unit conversion factor is designed for grid cells or grid coordinates, and may be 1, 10, 100, or 1000 as required. When the grid coordinates take relative coordinates (if the coordinate value of the corner point is less than 1000), scale unit conversion can be omitted, namely the unit conversion factor takes 1; when the grid coordinates are projection coordinates (e.g., the coordinates of the corner points are 4-5 digits), the unit conversion factor may be 1000, especially when a grid generation method based on four corner points is used. The unit scale factor mainly serves a rectangular grid, especially an oblique rectangular grid, under the projection coordinate system.
Fig. 4 is a schematic diagram of a first grid of a lake reservoir, which is a grid image obtained by performing tilt angle, grid block distribution and scale determination processing on the unit grid in different grid blocks of fig. 3, wherein the tilt angle is selected so that the length and width directions of the grid are consistent with the overall trend of a research area, and the grid blocks and the unit grid scales are reasonably and orderly distributed based on the requirements of simulation accuracy and computational efficiency.
Step S14: and identifying and marking the dry and wet conditions of the unit grids in the first grid based on the dry and wet information and the boundary information of the water environment to generate a second grid.
In a preferred embodiment of this embodiment, the dry-wet condition includes: water areas, land-water junction areas and other areas dry and wet conditions; the land and water boundary region comprises a water region northeast direction, a water region southeast direction, a water region southwest direction and a water region northwest direction. Preferably, a digital identification code concept and mode design is introduced, and effective identification and identification of the land and water boundary and land and water unit grid information of the research area are achieved. For example, digital identification codes 0 to 9 are introduced, wherein 0 represents a land grid unit far away from a water area, 1 to 4 represent grid units of a land-water interface area, the grid units are respectively identified as 1, 2, 3 or 4 according to the northeast direction, southeast direction, southwest direction and northwest direction of the water area of the land area, 5 represents a grid unit of the water area purely wet, 6 to 8 represent reserved identification codes of dry and wet characteristics of other areas, and 9 represents a neighboring unit of the land-water interface area, namely the grid unit identified by 1 to 5. In the preferred embodiment of the present invention, letter symbols can be introduced to identify the dry and wet conditions of the research area; for example, letter identification codes A-J are introduced, wherein A represents land grid cells far away from a water area, B-E represents grid cells of a land-water interface area, the grid cells are identified as B, C, D or E according to the northeast direction, the southeast direction, the southwest direction and the northwest direction of the water area respectively in sequence, F represents grid cells of the water area of a pure wet body, G-I is a reserved identification code of the dry-wet characteristic of other areas, and J represents adjacent cells of the land-water interface area, namely the grid cells identified by B-F. In a preferred embodiment of the present invention, the dry and wet status of the research area can be identified by combining numbers and letters.
Preferably, the second mesh includes global grid line distribution information, global grid cell wetting and drying information, global grid cell center point coordinate information, global grid cell lower left corner coordinate information, global grid cell node coordinate information, and global grid cell scale information.
In the preferred embodiment of the present embodiment, the corner points are identified to meet the data input requirements of different models; the model comprises a staggered grid discrete solving model and a unit channel body solving model. The staggered grid discrete solution model is a model for calculating the information demand of the unit by the staggered grid, and is used for researching different hydrodynamic forces (water level, water depth, speed in the x direction and speed in the y direction) and other physical variables (such as different water quality indexes, silt, temperature and salinity and the like) in computational fluid dynamics. The cell channel solving model is a model for calculating the information requirement of the cells by using grid cells. The staggered grid discrete solving model comprises an HOHY river and sea Tai lake model, an MIKE water quality and quantity coupling model and a DELFT model, and the unit channel body solving model comprises a WASP water quality model and an EFDC environment fluid dynamics model. When a grid generation method based on one corner point is selected, preferably, the unique corner point is identified; when a grid generation method based on four corner points is selected, the corner point at the lower left corner is preferably identified. Preferably, the grid serial numbers in the directions of the x axis and the y axis of the corner point are used for identification.
Fig. 5 is a schematic diagram of a second grid of the lake reservoir, which is an image extracted after the dry-wet condition identification is performed on the image of fig. 4, wherein the grid part represents the lake reservoir water area, and the central blank area represents the island area. Through detailed identification marks of the dry and wet conditions, the range of the research area is further reduced, the grids of the lake and reservoir water areas are obtained, and good conditions are provided for further simulation, analysis and calculation of the area. The obtained distribution of the grid blocks of the lake and reservoir water area and the scale of the unit grid correspond to the intensity of local change of the water area and the important level of engineering in the water environment, wherein the smaller the scale of the unit grid is, namely the larger the grid density is, the more intense the local change of the area of the lake and reservoir water area is or the higher the important level of the engineering is; and the length and width directions of the generated grids are consistent with the overall trend of the lake and reservoir water area, and the generated grids are well fitted with the boundary of the lake and reservoir water area and have good adaptability.
In summary, the embodiment of the present invention provides a method for generating a grid in water environment simulation, which can generate rectangular fine grids with planar fitness and different sparsities, and achieve balance among calculation accuracy, calculation cost and calculation efficiency by flexibly adjusting the sparsity of the grid, thereby saving calculation resources and time and avoiding waste of storage space; the adaptability to the boundary of the research area is improved by flexibly adjusting the inclination. The scheme of the invention has important significance for carrying out water environment numerical simulation and related research in large lakes, reservoirs, wetlands, rivers, estuaries, gulfs and other complex water areas.
Example two
Fig. 6 is a schematic structural diagram of a device for generating a grid in an aquatic environment simulation according to an embodiment of the present invention, including: the information acquisition module 61 is used for acquiring boundary information, topographic distribution information and wetting and drying information of the water environment; the region determining module 62 is used for determining the corner points and the outer boundary lines of the research region based on the boundary information of the water environment; a first grid generating module 63, which determines the tilt angle, the grid block distribution and the dimensions of unit grids in different grid blocks based on the angular point, the outer boundary line and the topographic distribution information of the water environment to generate a first grid; and a second grid generation module 64, configured to identify and identify the dry-wet condition of the unit grid in the first grid based on the dry-wet information and the boundary information of the water environment, so as to generate a second grid.
It should be noted that the modules provided in this embodiment are similar to the methods provided in the foregoing, and therefore, the detailed description is omitted. It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the information obtaining module may be a processing element that is separately installed, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the information obtaining module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
EXAMPLE III
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the method for generating a grid in a water environment simulation.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Example four
Fig. 7 is a schematic structural diagram of an electronic terminal according to an embodiment of the invention. This example provides an electronic terminal, includes: a processor 71, a memory 72, a communicator 73; the memory 72 is connected with the processor 71 and the communicator 73 through a system bus and is used for completing mutual communication, the memory 72 is used for storing computer programs, the communicator 73 is used for communicating with other devices, and the processor 71 is used for running the computer programs, so that the electronic terminal executes the steps of the grid generation method in the aquatic environment simulation.
The above-mentioned system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In summary, the scheme of the present invention provides a method, an apparatus, a storage medium, and a terminal for generating a grid in water environment simulation, which can generate planar fitness rectangular fine grids with different sparsity and gradients, so as to achieve balance between simulation accuracy and calculation efficiency, save calculation resources and time, avoid waste of storage space, and improve adaptability to a research area boundary. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.
Claims (9)
1. A method for generating a grid in water environmental simulation is characterized by comprising the following steps:
acquiring boundary information, topographic distribution information and wetting and drying information of a water environment;
determining corner points and outer boundary lines of a research area based on the boundary information of the water environment;
determining an inclination angle, grid block distribution and the dimensions of unit grids in different grid blocks based on the angular points, the outer boundary line and topographic distribution information of the water environment to generate a first grid;
identifying and marking the dry and wet conditions of the unit grids in the first grid based on the dry and wet information and the boundary information of the water environment to generate a second grid; the second grid comprises global grid line distribution information, global grid unit humidity information, global grid unit central point coordinate information, global grid unit lower left corner coordinate information, global grid unit node coordinate information and global grid unit scale information.
2. The method of claim 1, wherein the scale of the grid of cells within the different grid blocks is adjusted according to the severity of local changes within the water environment and the level of importance of the project within the water environment.
3. The method of claim 1, further comprising:
identifying the corner points to adapt to the data input requirements of different models; the model comprises a staggered grid discrete solving model and a unit channel body solving model.
4. The method of claim 1, wherein the tilt angle is selected such that the overall direction of the study area coincides with the length and width directions of the generated grid.
5. The method of claim 1, wherein identifying and identifying the dry-wet condition of the cells in the first grid comprises: water areas, land-water junction areas and other areas dry and wet conditions; the land and water boundary region comprises a water region northeast direction, a water region southeast direction, a water region southwest direction and a water region northwest direction.
6. The method according to claim 1, wherein the first mesh generation method comprises a mesh generation method based on one corner point and a mesh generation method based on four corner points.
7. An apparatus for generating a grid in an aquatic environment simulation, comprising:
the information acquisition module is used for acquiring boundary information, topographic distribution information and wetting and drying information of the water environment;
the region determining module is used for determining the corner points and the outer border lines of the research region based on the boundary information of the water environment;
the first grid generation module is used for determining an inclination angle, grid block distribution and the scale of unit grids in different grid blocks based on the angular point, the outer boundary line and topographic distribution information of the water environment so as to generate a first grid;
the second grid generation module is used for identifying and marking the dry and wet conditions of the unit grids in the first grid based on the dry and wet information and the boundary information of the water environment so as to generate a second grid; the second grid comprises global grid line distribution information, global grid unit humidity information, global grid unit central point coordinate information, global grid unit lower left corner coordinate information, global grid unit node coordinate information and global grid unit scale information.
8. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, implements a method for generating a mesh in an aquatic environment simulation according to any one of claims 1 to 6.
9. An electronic terminal, comprising: a processor and a memory;
the memory is used for storing a computer program, and the processor is used for executing the computer program stored by the memory to enable the terminal to execute the grid generation method in the aquatic environment simulation as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010274456.2A CN111400932B (en) | 2020-04-09 | 2020-04-09 | Method and device for generating grid in water environment simulation, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010274456.2A CN111400932B (en) | 2020-04-09 | 2020-04-09 | Method and device for generating grid in water environment simulation, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111400932A CN111400932A (en) | 2020-07-10 |
CN111400932B true CN111400932B (en) | 2022-09-16 |
Family
ID=71435014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010274456.2A Active CN111400932B (en) | 2020-04-09 | 2020-04-09 | Method and device for generating grid in water environment simulation, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111400932B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115147717A (en) * | 2022-05-30 | 2022-10-04 | 江苏省水利科学研究院 | River channel section gridding management system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436550A (en) * | 2011-11-07 | 2012-05-02 | 武汉大学 | Self-adaptive simulative method of dam break flood on complex border and actual landform |
CN103399990A (en) * | 2013-07-18 | 2013-11-20 | 北京工业大学 | Method of constructing fine discrete road grid in urban drainage simulation system |
CN105913494A (en) * | 2016-03-30 | 2016-08-31 | 北京大学 | Multi-scale fracture fine geological modeling and value simulation method and device |
CN108287950A (en) * | 2017-12-27 | 2018-07-17 | 环境保护部环境规划院 | Simulation of water quality method based on control unit quality of water environment objective management |
CN108629135A (en) * | 2018-05-11 | 2018-10-09 | 中国水利水电科学研究院 | Non- unified high-precision curved grid flow simulation of water quality and method for visualizing and system |
-
2020
- 2020-04-09 CN CN202010274456.2A patent/CN111400932B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436550A (en) * | 2011-11-07 | 2012-05-02 | 武汉大学 | Self-adaptive simulative method of dam break flood on complex border and actual landform |
CN103399990A (en) * | 2013-07-18 | 2013-11-20 | 北京工业大学 | Method of constructing fine discrete road grid in urban drainage simulation system |
CN105913494A (en) * | 2016-03-30 | 2016-08-31 | 北京大学 | Multi-scale fracture fine geological modeling and value simulation method and device |
CN108287950A (en) * | 2017-12-27 | 2018-07-17 | 环境保护部环境规划院 | Simulation of water quality method based on control unit quality of water environment objective management |
CN108629135A (en) * | 2018-05-11 | 2018-10-09 | 中国水利水电科学研究院 | Non- unified high-precision curved grid flow simulation of water quality and method for visualizing and system |
Non-Patent Citations (2)
Title |
---|
河口水域水环境状况模型研究进展;陈祖军,等.;《海洋环境科学》;20050228;第24卷(第1期);第59-64页 * |
长江口 水域三维水动力数值模拟研究;陈祖军,等.;《海洋预报》;20040831;第21卷(第2期);第37-44页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111400932A (en) | 2020-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107180450B (en) | DEM-based river valley cross section morphology algorithm | |
CN102663223B (en) | The dynamic Pollution Field computational methods of Complex River burst pollution event | |
CN103278115B (en) | A kind of method and system calculating silt arrester siltation volume based on DEM | |
CN106323244A (en) | Reservoir capacity monitoring method and device based on unmanned aerial vehicle | |
CN103256914B (en) | A kind of method and system calculating silt arrester inundated area based on DEM | |
Klikunova et al. | Creation of digital elevation models for river floodplains | |
CN111400932B (en) | Method and device for generating grid in water environment simulation, storage medium and terminal | |
CN110955996A (en) | Inundation process simulation method and system | |
Casulli | Computational grid, subgrid, and pixels | |
CN115238550A (en) | Self-adaptive unstructured grid landslide rainfall geoelectric field numerical simulation calculation method | |
Wang et al. | An integrated method for calculating DEM-based RUSLE LS | |
CN118171586A (en) | Multi-beam survey line layout method, system, equipment and storage medium | |
CN117390897B (en) | Method, system, device and storage medium for multi-scale assimilation of SWOT images | |
Hilton et al. | River reconstruction using a conformal mapping method | |
CN114841402A (en) | Underground water level height prediction method and system based on multi-feature map network | |
CN117195603B (en) | Flood disaster deduction method, equipment and medium based on high-resolution remote sensing elements | |
Qi et al. | Modeling the effects of the streamflow changes of Xinjiang Basin in future climate scenarios on the hydrodynamic conditions in Lake Poyang, China | |
Li et al. | Automatic Sounding Generalization Maintaining the Characteristics of Submarine Topography | |
CN114282331B (en) | Method for generating three-dimensional grid of natural river channel | |
CN115359221A (en) | Inland lake basin extraction method and system based on digital elevation model | |
Lowe et al. | Flood-risk analysis on terrains | |
CN106908036B (en) | A kind of AUV multi-beam Bathymetric Data patterning process based on local offset | |
CN113899301A (en) | Regional land water reserve change inversion method and system combining GNSS three-dimensional deformation | |
Sorokin et al. | High performance computing of waves, currents and contaminants in rivers and coastal areas of seas on multi-processors systems and GPUs | |
Hou et al. | Effects of sampling and interpolation methods on accuracy of extracted watershed features |
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 |