Three-dimensional computational fluid mechanics model construction method and device based on oblique photography
Through the three-dimensional model construction method based on tilt photography data, a suitable computational fluid mechanics model is constructed based on the geometric complexity of the building, which solves the problem of insufficient fineness of the three-dimensional computational fluid mechanics model in the existing technology, and achieves a more refined Improved efficiency of flow field information acquisition and model application.
Patent Information
- Application Number
- CN202411024116.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The lack of a three-dimensional computational fluid mechanics model in the prior art can build a high-precision, which leads to the inability to obtain sufficient flow field information in urban climate research, limiting the potential of the tilt photography model in subsequent applications.
By obtaining tilt photography data, a three-dimensional model is established, and processing it according to the geometric complexity of the building, it is divided into low, medium and high-precision models to build a computational fluid mechanics simulation model suitable for urban buildings.
The model complexity measurement quantization processing of the three-dimensional inclined photography model is realized, and the construction problem of three-dimensional computational fluid mechanics models of different fineness is solved, more refined flow field information is obtained, and the application efficiency of the inclined photography model in urban management is improved.
Smart Images

Figure CN118965519A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computational fluid dynamics in civil engineering, and in particular to a method and device for constructing a three-dimensional computational fluid dynamics model based on oblique photography. Background Art
[0002] As global climate change intensifies, cities are facing a variety of climate problems. It is crucial to apply computational fluid dynamics to study a series of issues in cities, such as ventilation design, pedestrian comfort, and urban heat island effect. When conducting computational fluid dynamics research, the geometric model morphology of the research object will significantly affect the flow field distribution information in computational fluid dynamics. Therefore, in order to obtain more accurate flow field information, building a higher-precision model is a necessary task for computational fluid dynamics research.
[0003] Most of the models established in existing computational fluid dynamics research are limited to simplified block models, but simplified block models cannot capture the details of the flow field. In recent years, with the continuous development of technologies such as drones and sensors, the oblique photography modeling technology has made up for the shortcomings of simplified block models and can restore the appearance of urban buildings with high fidelity. However, the oblique photography model has the disadvantages of high storage space, defects, and distortion, and cannot be directly used in computational fluid dynamics research. In this context, if a computational fluid dynamics model that solves the problem of model precision is constructed, a more refined flow field can be obtained to study climate problems in cities, significantly releasing the potential of the oblique photography model in many subsequent applications.
[0004] Currently, there is a lack of a model construction method in the prior art that solves the problem of precision of three-dimensional computational fluid dynamics models. Summary of the invention
[0005] The present invention provides a method and device for constructing a three-dimensional computational fluid dynamics model based on oblique photography, so as to solve the technical problem that there is currently a lack of a model construction method for solving the problem of precision of the three-dimensional computational fluid dynamics model in the prior art.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In one aspect, the present invention provides a method for constructing a three-dimensional computational fluid dynamics model based on oblique photography, the method comprising:
[0008] Obtain oblique photography data of the target area;
[0009] Based on the oblique photography data of the target area, a three-dimensional model of the target area is established; wherein the three-dimensional model of the target area includes a three-dimensional building model corresponding to each building in the target area;
[0010] Obtaining a selected three-dimensional building model, and calculating the geometric complexity of the selected three-dimensional building model;
[0011] Based on the preset model correction criteria and according to the geometric complexity of the selected building three-dimensional model, the selected building three-dimensional model is processed to construct a model suitable for computational fluid dynamics simulation of urban buildings.
[0012] Furthermore, after establishing the three-dimensional model of the target area, the method further includes:
[0013] Numbering each three-dimensional building model in the three-dimensional model of the target area;
[0014] The method of obtaining the selected building three-dimensional model is: obtaining the number and building floor height input by the user, and taking the building three-dimensional model corresponding to the number input by the user as the selected building three-dimensional model.
[0015] Furthermore, the calculating of the geometric complexity of the selected three-dimensional building model includes:
[0016] Calculate the horizontal complexity of the selected three-dimensional building model;
[0017] Calculate the vertical complexity of the selected building 3D model.
[0018] Furthermore, the calculating the complexity of the selected three-dimensional building model in the horizontal direction includes:
[0019] According to the building floor height input by the user, starting from the bottom surface of the selected building 3D model, the selected building 3D model is sliced along the height direction of the selected building 3D model to obtain cross-sectional discrete polygon images of different heights of the selected building 3D model;
[0020] Performing scaling processing on each obtained cross-sectional discrete polygonal image respectively;
[0021] Obtain the minimum enclosing rectangle of each cross-sectional discrete polygonal image after scaling;
[0022] Interpolation processing is performed on each cross-sectional discrete polygon image and its minimum circumscribed rectangle so that the number of discrete points of each cross-sectional discrete polygon image and its minimum circumscribed rectangle is the same;
[0023] The Fréchet distance between each cross-sectional discrete polygon image and its minimum circumscribed rectangle after interpolation processing is calculated to obtain a set of Fréchet distance data and calculate its root mean square. The root mean square of the calculated set of Fréchet distance data is used as the complexity of the selected three-dimensional building model in the horizontal direction.
[0024] Furthermore, the scaling process is performed on each of the obtained cross-sectional discrete polygonal images, including:
[0025] Each cross-sectional discrete polygonal image is scaled according to its corresponding equivalent diameter.
[0026] Furthermore, the calculating the complexity of the selected three-dimensional building model in the vertical direction includes:
[0027] According to the building floor height input by the user, starting from the bottom surface of the selected building 3D model, the selected building 3D model is sliced along the height direction of the selected building 3D model to obtain cross-sectional discrete polygon images of different heights of the selected building 3D model;
[0028] Performing scaling processing on each obtained cross-sectional discrete polygonal image respectively;
[0029] All possible combinations of cross-sectional discrete polygonal images are obtained by randomly selecting two of all the obtained cross-sectional discrete polygonal images for combination, and the Fréchet distance data of the two cross-sectional discrete polygonal images in each combination are calculated to obtain a set of Fréchet distance data and calculate the root mean square error thereof, and the calculated root mean square error is used as the complexity in the vertical direction of the selected three-dimensional building model; wherein, before calculating the Fréchet distance each time, the cross-sectional discrete polygonal images with a smaller number of discrete points need to be interpolated so that the number of discrete points of the two cross-sectional discrete polygonal images is the same.
[0030] Furthermore, the scaling process is performed on each of the obtained cross-sectional discrete polygonal images, including:
[0031] Each cross-sectional discrete polygon image is scaled according to the maximum equivalent diameter of the cross-sectional discrete polygon file of the bottom surface of the selected building three-dimensional model.
[0032] Furthermore, the interpolation process is performed on each cross-sectional discrete polygonal image and its minimum circumscribed rectangle so that each cross-sectional discrete polygonal image and its minimum circumscribed rectangle have the same number of discrete points, including:
[0033] Based on the centroid of the cross-sectional discrete polygonal image, projection is performed on the minimum circumscribed rectangle corresponding to the cross-sectional discrete polygonal image in a preset order, and the projection point is the interpolation point.
[0034] Furthermore, the processing of the selected three-dimensional building model based on the preset model correction criteria according to the geometric complexity of the selected three-dimensional building model includes:
[0035] Determining the category of the selected three-dimensional building model according to the complexity of the selected three-dimensional building model in the horizontal direction and the complexity in the vertical direction; wherein the category of the model is divided into a low-precision model, a medium-precision model, and a high-precision model;
[0036] According to the category of the selected three-dimensional building model, the selected three-dimensional building model is processed; wherein,
[0037] If the selected three-dimensional building model is a low-precision model, a simplified model is obtained by stretching the two-dimensional bottom surface contour of the selected three-dimensional building model along the height direction to complete the model processing;
[0038] If the selected three-dimensional building model is a model of medium fineness, a voxelized model corresponding to the selected three-dimensional building model is obtained by a preset voxelization algorithm to complete the model processing;
[0039] If the selected three-dimensional building model is a high-precision model, the selected three-dimensional building model is corrected to obtain a refined model corresponding to the selected three-dimensional building model, thereby completing the model processing;
[0040] By combining the processed models together, a three-dimensional computational fluid dynamics model that meets the requirements is obtained.
[0041] On the other hand, the present invention also provides a three-dimensional computational fluid dynamics model construction device based on oblique photography, the three-dimensional computational fluid dynamics model construction device based on oblique photography comprising:
[0042] A data acquisition module, used to acquire oblique photography data of a target area;
[0043] A target area three-dimensional model building module, used to build a three-dimensional model of the target area based on the oblique photography data of the target area acquired by the data acquisition module; wherein the three-dimensional model of the target area includes a three-dimensional building model corresponding to each building in the target area;
[0044] A model geometric complexity calculation module is used to obtain the selected three-dimensional building model and calculate the geometric complexity of the selected three-dimensional building model;
[0045] The model processing module is used to process the selected building three-dimensional model based on the preset model correction criteria and according to the geometric complexity of the selected building three-dimensional model calculated by the model geometric complexity calculation module to construct a model suitable for computational fluid dynamics simulation of urban buildings.
[0046] On the other hand, the present invention further provides an electronic device, comprising a processor and a memory; wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the above method.
[0047] In yet another aspect, the present invention further provides a computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the above method.
[0048] The beneficial effects brought about by the technical solution provided by the present invention include at least:
[0049] The present invention quantifies the model complexity of the three-dimensional oblique photography model, solves the problem of users constructing three-dimensional computational fluid dynamics models of different fineness, helps to obtain more precise flow field information, and also provides technical support for releasing the application efficiency of the oblique photography model in urban management and other aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 It is a schematic diagram of the execution flow of a method for constructing a three-dimensional computational fluid dynamics model based on oblique photography provided by an embodiment of the present invention;
[0052] Figure 2 is a schematic diagram of the numbering of an oblique photography model of a real area provided by an embodiment of the present invention;
[0053] Figure 3 It is a schematic diagram of an interpolation method between a model cross-section polygon and a minimum circumscribed rectangle provided by an embodiment of the present invention;
[0054] Figure 4 The three-dimensional computational fluid dynamics model construction results of different precisions provided by the embodiments of the present invention;
[0055] Figure 5 It is a system block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0057] First of all, it should be noted that in the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplarily" is intended to present the concept in a concrete way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0058] First embodiment
[0059] This embodiment provides a method for constructing a three-dimensional computational fluid dynamics model based on oblique photography. The method can be implemented by an electronic device. The execution process of the method is as follows: Figure 1 As shown, the following steps are included:
[0060] S1, obtaining oblique photography data of the target area;
[0061] It should be noted that, in this embodiment, the oblique photography data is acquired by using a drone.
[0062] S2, establishing a three-dimensional model of the target area based on the oblique photography data of the target area;
[0063] It should be noted that the three-dimensional model of the target area constructed in this embodiment includes the building model in the city, and does not include terrain, trees, roads, bridges, street lights and sculptures. After the three-dimensional model of the target area is established, the method further includes: numbering the models from small to large according to Arabic numerals starting from 0, and the format of the numbered model files is consistent, that is, the format of model file name + number;
[0064] Specifically, the oblique photography 3D model of a real area provided in this embodiment is composed of 5 buildings. Figure 2 A schematic diagram of the numbering of an oblique photography model of a real area provided by an embodiment of the present invention is shown.
[0065] S3, obtaining the selected three-dimensional building model, and calculating the geometric complexity of the selected three-dimensional building model;
[0066] It should be noted that the method for obtaining the selected three-dimensional building model in this embodiment is: obtaining the model number and building floor height input by the user, and taking the three-dimensional building model corresponding to the model number input by the user as the selected three-dimensional building model. Specifically, in this embodiment, the model numbers input by the user that need to calculate the model complexity are Model 0 to Model 4, and the building floor height is 4 meters. Therefore, this embodiment is explained by taking the construction of a three-dimensional computational fluid dynamics model of the user input model as an example, but it can be understood that the solution of this embodiment is not limited to the user input model.
[0067] In this embodiment, calculating the geometric complexity of the selected three-dimensional building model includes:
[0068] Calculate the horizontal complexity of the selected three-dimensional building model;
[0069] Calculate the vertical complexity of the selected building 3D model.
[0070] Specifically, the calculation process of the geometric complexity of the building 3D model is as follows:
[0071] S31, based on the building floor height input by the user, starting from the bottom surface of the selected building 3D model, along the height direction of the selected building 3D model, slicing the selected building 3D model to obtain cross-sectional discrete polygon files of different heights of the selected building 3D model.
[0072] Among them, in this embodiment, slicing is performed according to the building floor height, that is, a slice is obtained for every building floor height. Slicing by floor height can measure the complexity of each floor, so as to comprehensively calculate the complexity of the entire building. Other slices that are too small or too large are not conducive to measuring the complexity of the building.
[0073] S32, scaling the obtained discrete polygon files of each cross section respectively;
[0074] It should be noted that scaling the model can ensure that the cross-sectional polygon of the model has enough discrete points to reduce the complexity calculation error. At the same time, the complexity value is normalized to 0 to 1, which is convenient for the unification of the measurement and also ensures that the complexity value calculated after the scale of the model is changed is not affected.
[0075] Among them, the scaling processing method is: scale the obtained cross-sectional discrete polygon file according to the maximum equivalent diameter of the cross-sectional discrete polygon; among them, when calculating the vertical complexity, the vertical complexity is to measure the complexity of the model in the vertical direction. The original proportion of the model should be maintained after scaling. Therefore, the cross-sectional discrete polygon files of each height of the model are uniformly scaled according to the maximum equivalent diameter of the bottom cross-sectional discrete polygon file. The specific process is: calculate the equivalent diameter of each cross-sectional discrete polygon of the model through the convex hull algorithm, select the maximum value of the equivalent diameter of each cross-sectional discrete polygon as the scaling factor, and multiply the x, y coordinates of each discrete point in each cross-sectional discrete polygon of the model by the scaling factor for scaling. The maximum equivalent diameter of each cross-sectional discrete polygon after scaling is between 0 and 1, thereby also maintaining The original proportions of the discrete polygon files of each height cross section of the model; when calculating the horizontal complexity, the horizontal complexity is measured by comparing the discrete polygons of each horizontal cross section of the model with their corresponding minimum circumscribed rectangles. There is no need to maintain the original proportions of the model in the vertical direction, so the discrete polygon files of each height cross section of the model are scaled according to their corresponding equivalent diameters. The specific process is: the equivalent diameters of the discrete polygons of each cross section of the model are calculated by the convex hull algorithm, and the scaling factor of each cross section discrete polygon is the equivalent diameter of each cross section discrete polygon. The x, y coordinates of each discrete point in the discrete polygons of each cross section of the model are multiplied by the corresponding scaling factor for scaling. The scale of each cross section discrete polygon after scaling is between 0 and 1, and finally a normalized cross section discrete polygon file is obtained.
[0076] S33, obtaining the minimum circumscribed rectangle of each cross-sectional discrete polygonal image after scaling;
[0077] The minimum circumscribed rectangle corresponding to the cross-sectional discrete polygon is calculated by the convex hull algorithm.
[0078] S34, using an interpolation program to perform interpolation processing on each cross-sectional discrete polygon image and its minimum circumscribed rectangle, so that each cross-sectional discrete polygon image has the same number of discrete points as its minimum circumscribed rectangle;
[0079] Among them, the interpolation program includes two parts. The first part is to slice the model in the height direction according to the building floor height, and obtain the cross-sectional discrete polygon files at each height; the second part is to interpolate the obtained cross-sectional discrete polygon files. Taking any cross-sectional polygon file as an example, the minimum circumscribed rectangle of the above cross-sectional polygon file is first calculated by the convex hull algorithm. The convex hull algorithm will calculate the circumscribed rectangle of the cross-sectional discrete polygon in each direction, and use the circumscribed rectangle with the smallest area as the minimum circumscribed rectangle of the above cross-sectional discrete polygon file. Then, a certain point of the above cross-sectional discrete polygon is used as the starting point, and the discrete points in the cross-sectional discrete polygon file are connected to the centroid of the cross-sectional discrete polygon file one by one in a certain order. Finally, the connection line is extended outward until it intersects with the minimum circumscribed rectangle. The intersection point is the interpolation point. Figure 3 The interpolation method between the model cross-section polygon and the minimum bounding rectangle is shown. Figure 3 It can be seen that the cross-sectional polygons and the minimum bounding rectangle of the model are uniformly interpolated.
[0080] S35, calculating the Fréchet distance between each cross-sectional discrete polygon image after interpolation processing and its minimum circumscribed rectangle, and obtaining a set of Fréchet distance data; wherein the Fréchet distance calculation formula is:
[0081]
[0082] Among them, f: [a,b] and g: [a′,b′] are two continuous curves defined on the metric space V, α(β) is an arbitrary continuous non-decreasing function from the interval [0,1] to the interval [a,b] ([a′,b′]); suppose t is a time point, and the sampling point on the curve f at this moment is , the sampling points on curve g are , if we use Euclidean distance, it is easy to define ; In each sampling, t traverses the interval [0,1] to obtain the maximum distance under this sampling , the Fréchet distance is the value under the sampling method that minimizes the maximum distance.
[0083] S36, calculating the root mean square of the group of Fréchet distance data, and using the calculated root mean square of the group of Fréchet distance data as the complexity of the selected three-dimensional building model in the horizontal direction;
[0084] S37, according to the permutation and combination model C(N,2), the Fréchet distance between each cross-sectional polygon and the corresponding minimum circumscribed rectangle is calculated, and the root mean square error of all permutations and combinations is calculated as the complexity of the model in the vertical direction.
[0085] S4, based on a preset model correction criterion and according to the geometric complexity of the selected three-dimensional building model, processing the selected three-dimensional building model to construct a model suitable for computational fluid dynamics simulation of urban buildings;
[0086] Among them, in this embodiment, the role of the above steps is: based on the complexity calculation results of each model, according to the user's precision requirements, each model is modeled with different degrees of precision to obtain the computational fluid dynamics model required by the user, and overly simplified or overly complex models are not conducive to computational fluid dynamics simulation, so it is necessary to adopt a model that balances computing resource consumption and result accuracy. Among them, constructing a model that balances computing resource consumption and result accuracy requires classifying the original model to determine whether the original model needs to adopt a high-precision model or a low-precision model in the computational fluid dynamics simulation;
[0087] The specific implementation process is as follows:
[0088] S41, determine the category of the selected three-dimensional building model according to the complexity of the horizontal direction and the complexity of the vertical direction of the selected three-dimensional building model; wherein, the specific classification method needs to be combined with the distribution of the horizontal complexity and vertical complexity of the model, after calculating the vertical complexity and horizontal complexity of all models, perform cluster analysis on the vertical complexity and horizontal complexity of all models based on the K-means clustering algorithm, and specify the number of data point clusters in the vertical complexity cluster analysis and the number of data point clusters in the horizontal complexity cluster analysis as two categories, and then optimize the cluster division by minimizing the square distance from the data point to the nearest cluster center, and divide the vertical complexity and horizontal complexity into two categories respectively, and finally take the midpoint of the two center points of the vertical complexity cluster analysis as the vertical complexity dividing point and take the midpoint of the two center points of the horizontal complexity cluster analysis as the horizontal complexity dividing point; Figure 2 Taking the five building models in the example, the model construction process of balancing computing resource consumption and result accuracy is as follows. The vertical complexity and horizontal complexity are clustered and analyzed to obtain the vertical complexity cutoff point and the horizontal complexity cutoff point. The obtained vertical complexity cutoff point is 0.1 and the horizontal complexity cutoff point is 0.2. Specifically for each building, if its vertical complexity is not higher than 0.1, a low-precision model is used. If the vertical complexity of the building is higher than 0.1, it means that the geometric shape of the building in the vertical direction changes greatly. It is necessary to further judge whether to use a medium-precision or high-precision model based on the horizontal complexity. If its horizontal complexity is not higher than 0.2, a medium-precision model is used, otherwise a high-precision model is used.
[0089] S42, processing the selected three-dimensional building model according to the category of the selected three-dimensional building model; wherein the specific manner of processing the selected three-dimensional building model is as follows:
[0090] 1) A simplified model is used for low precision. The simplified model can be obtained by stretching the two-dimensional bottom surface contour of the model along the height direction;
[0091] 2) A voxel model is used at a medium level of fineness, and the voxelized model of the model can be obtained through an octree-based voxelization algorithm;
[0092] 3) High precision uses a fine model. The refined model of the model can be obtained by correcting the 3D oblique photography model. It should be noted that since the original oblique photography model may have surface defects and holes, the 3D modeling tool can be used to manually modify the model and add some complex details lost in the automatic processing process to obtain a model without surface defects. The mesh of the defect-free model is further optimized and corrected, redundant surfaces are removed, and the mesh is refined and smoothed again to finally obtain a fine model of the model.
[0093] By combining each processed model together, a 3D computational fluid dynamics model that meets user needs is finally obtained. Figure 4 The results of constructing three-dimensional computational fluid dynamics models with different degrees of precision in this embodiment are shown.
[0094] In summary, this embodiment provides a method for constructing a three-dimensional computational fluid dynamics model based on oblique photography. The method quantifies the model complexity of the three-dimensional oblique photography model, solves the problem of users constructing three-dimensional computational fluid dynamics models of different fineness, helps to obtain more precise flow field information, and also provides technical support for releasing the application efficiency of oblique photography models in urban management and other aspects.
[0095] Second embodiment
[0096] This embodiment provides a three-dimensional computational fluid dynamics model construction device based on oblique photography, and the three-dimensional computational fluid dynamics model construction device based on oblique photography includes the following modules:
[0097] A data acquisition module, used to acquire oblique photography data of a target area;
[0098] A target area three-dimensional model building module, used to build a three-dimensional model of the target area based on the oblique photography data of the target area acquired by the data acquisition module; wherein the three-dimensional model of the target area includes a three-dimensional building model corresponding to each building in the target area;
[0099] A model geometric complexity calculation module is used to obtain the selected three-dimensional building model and calculate the geometric complexity of the selected three-dimensional building model;
[0100] The model processing module is used to process the selected building three-dimensional model based on the preset model correction criteria and according to the geometric complexity of the selected building three-dimensional model calculated by the model geometric complexity calculation module to construct a model suitable for computational fluid dynamics simulation of urban buildings.
[0101] It should be noted that the three-dimensional computational fluid dynamics model construction device based on oblique photography of this embodiment corresponds to the three-dimensional computational fluid dynamics model construction method based on oblique photography of the above-mentioned first embodiment; wherein, the functions implemented by each functional module in the three-dimensional computational fluid dynamics model construction device based on oblique photography of this embodiment correspond one-to-one to each process step in the three-dimensional computational fluid dynamics model construction method based on oblique photography of the above-mentioned first embodiment; therefore, they will not be repeated here.
[0102] Third embodiment
[0103] This embodiment provides an electronic device, such as Figure 5 As shown, the electronic device includes: a processor and a memory; wherein the processor and the memory can be connected via a communication bus; the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method of the first embodiment. In addition, the electronic device may also include a transceiver, the processor and the transceiver can be connected via a communication bus, and the transceiver is used to communicate with other devices.
[0104] Next, combine Figure 5 The following is a detailed introduction to the various components of the electronic device:
[0105] Among them, the processor is the control center of the electronic device, and the electronic device may include multiple processors, each of which may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may be a processor or a general term for multiple processing elements. For example, the processor is one or more central processing units (CPUs), or other general-purpose processors, application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement an embodiment of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor may execute various functions of the electronic device by running or executing software programs stored in the memory and calling data stored in the memory.
[0106] In a specific implementation, as an embodiment, the processor may include one or more CPUs, such as Figure 5 The CPU0 and CPU1 shown in the figure are, of course, only exemplary.
[0107] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment and will not be repeated here.
[0108] Optionally, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be integrated with the processor or exist independently and accessed through the interface circuit ( Figure 5 The processor is coupled to the processor (not shown), which is not specifically limited in this embodiment of the present invention.
[0109] The transceiver may include a receiver and a transmitter ( Figure 5 The receiver is used to implement the receiving function, and the transmitter is used to implement the sending function. The transceiver can be integrated with the processor or exist independently and communicate with the electronic device through the interface circuit ( Figure 5 (not shown) is coupled to the processor, which is not specifically limited in this embodiment of the present invention.
[0110] In addition, it should be noted that Figure 5 The structure of the electronic device shown in the figure does not constitute a limitation on the device, and the actual device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In addition, the technical effects achieved by the electronic device when executing the method of the first embodiment above can refer to the technical effects described in the first embodiment above, so they are not repeated here.
[0111] Fourth embodiment
[0112] This embodiment provides a computer-readable storage medium, which stores at least one instruction, and the instruction is loaded and executed by a processor to implement the method of the first embodiment. The computer-readable storage medium may be a ROM, a random access memory, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc. The instructions stored therein may be loaded by a processor in a terminal to execute the method.
[0113] In addition, it should be noted that the present invention can be provided as a method, an apparatus or a computer program product. Therefore, the embodiment of the present invention can be in the form of a full or partial hardware embodiment, a full or partial software embodiment or an embodiment combining software and hardware. Moreover, when implemented using software, the embodiment of the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center containing one or more available media sets. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium. The semiconductor medium may be a solid state drive.
[0114] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0116] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements. In addition, the term "and / or" is only an association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding. "At least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or plural.
[0117] In addition, it can be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0118] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0119] In several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of functional modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0120] If the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0121] Finally, it should be noted that the above is only a preferred embodiment of the present invention. It should be pointed out that although the preferred embodiment of the present invention has been described, for ordinary technicians in this technical field, once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. Therefore, the attached claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present invention.
Claims
1. A method for constructing a three-dimensional computational fluid dynamics model based on oblique photography, characterized in that: include: Obtain oblique photography data of the target area; Based on the oblique photography data of the target area, a three-dimensional model of the target area is established; wherein the three-dimensional model of the target area includes a three-dimensional building model corresponding to each building in the target area; Obtaining a selected three-dimensional building model, and calculating the geometric complexity of the selected three-dimensional building model; Based on the preset model correction criteria and according to the geometric complexity of the selected building three-dimensional model, the selected building three-dimensional model is processed to construct a model suitable for computational fluid dynamics simulation of urban buildings.
2. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 1, characterized in that: After establishing the three-dimensional model of the target area, the method further includes: Numbering each three-dimensional building model in the three-dimensional model of the target area; The method of obtaining the selected building three-dimensional model is: obtaining the number and building floor height input by the user, and taking the building three-dimensional model corresponding to the number input by the user as the selected building three-dimensional model.
3. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 2, characterized in that: The calculation of the geometric complexity of the selected three-dimensional building model includes: Calculate the horizontal complexity of the selected three-dimensional building model; Calculate the vertical complexity of the selected building 3D model.
4. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 3, characterized in that: The calculation of the complexity of the selected three-dimensional building model in the horizontal direction includes: According to the building floor height input by the user, starting from the bottom surface of the selected building 3D model, the selected building 3D model is sliced along the height direction of the selected building 3D model to obtain cross-sectional discrete polygon images of different heights of the selected building 3D model; Performing scaling processing on each obtained cross-sectional discrete polygonal image respectively; Get the minimum bounding rectangle of each cross-section discrete polygon image after scaling Interpolation processing is performed on each cross-sectional discrete polygon image and its minimum circumscribed rectangle so that the number of discrete points of each cross-sectional discrete polygon image and its minimum circumscribed rectangle is the same; The Fréchet distance between each cross-sectional discrete polygon image and its minimum circumscribed rectangle after interpolation processing is calculated to obtain a set of Fréchet distance data and calculate its root mean square. The root mean square of the calculated set of Fréchet distance data is used as the complexity of the selected three-dimensional building model in the horizontal direction.
5. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 4, characterized in that: The step of performing scaling processing on each of the obtained cross-sectional discrete polygonal images comprises: Each cross-sectional discrete polygonal image is scaled according to its corresponding equivalent diameter.
6. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 3, characterized in that: The calculating the complexity of the selected three-dimensional building model in the vertical direction comprises: According to the building floor height input by the user, starting from the bottom surface of the selected building 3D model, the selected building 3D model is sliced along the height direction of the selected building 3D model to obtain cross-sectional discrete polygon images of different heights of the selected building 3D model; Performing scaling processing on each obtained cross-sectional discrete polygonal image respectively; All possible combinations of cross-sectional discrete polygonal images are obtained by randomly selecting two of all the obtained cross-sectional discrete polygonal images for combination, and the Fréchet distance data of the two cross-sectional discrete polygonal images in each combination are calculated to obtain a set of Fréchet distance data and calculate the root mean square error thereof, and the calculated root mean square error is used as the complexity in the vertical direction of the selected three-dimensional building model; wherein, before calculating the Fréchet distance each time, the cross-sectional discrete polygonal images with a smaller number of discrete points need to be interpolated so that the number of discrete points of the two cross-sectional discrete polygonal images is the same.
7. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 6, characterized in that: The step of performing scaling processing on each of the obtained cross-sectional discrete polygonal images comprises: Each cross-sectional discrete polygon image is scaled according to the maximum equivalent diameter of the cross-sectional discrete polygon file of the bottom surface of the selected building three-dimensional model.
8. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 4, characterized in that: The interpolation process is performed on each cross-sectional discrete polygon image and its minimum circumscribed rectangle so that each cross-sectional discrete polygon image has the same number of discrete points as its minimum circumscribed rectangle, including: Based on the centroid of the cross-sectional discrete polygonal image, projection is performed on the minimum circumscribed rectangle corresponding to the cross-sectional discrete polygonal image in a preset order, and the projection point is the interpolation point.
9. The method for constructing a three-dimensional computational fluid dynamics model based on oblique photography according to claim 3, characterized in that: The method of processing the selected three-dimensional building model based on a preset model correction criterion and according to the geometric complexity of the selected three-dimensional building model comprises: Determining the category of the selected three-dimensional building model according to the complexity of the selected three-dimensional building model in the horizontal direction and the complexity in the vertical direction; wherein the category of the model is divided into a low-precision model, a medium-precision model, and a high-precision model; According to the category of the selected three-dimensional building model, the selected three-dimensional building model is processed; wherein, If the selected three-dimensional building model is a low-precision model, a simplified model is obtained by stretching the two-dimensional bottom surface contour of the selected three-dimensional building model along the height direction to complete the model processing; If the selected three-dimensional building model is a model of medium fineness, a voxelized model corresponding to the selected three-dimensional building model is obtained by a preset voxelization algorithm to complete the model processing; If the selected three-dimensional building model is a high-precision model, the selected three-dimensional building model is corrected to obtain a refined model corresponding to the selected three-dimensional building model, thereby completing the model processing; By combining the processed models together, a three-dimensional computational fluid dynamics model that meets the requirements is obtained.
10. A three-dimensional computational fluid dynamics model construction device based on oblique photography, characterized in that: include: A data acquisition module, used to acquire oblique photography data of a target area; A target area three-dimensional model building module, used to build a three-dimensional model of the target area based on the oblique photography data of the target area acquired by the data acquisition module; wherein the three-dimensional model of the target area includes a three-dimensional building model corresponding to each building in the target area; A model geometric complexity calculation module is used to obtain the selected three-dimensional building model and calculate the geometric complexity of the selected three-dimensional building model; The model processing module is used to process the selected building three-dimensional model based on the preset model correction criteria and according to the geometric complexity of the selected building three-dimensional model calculated by the model geometric complexity calculation module to construct a model suitable for computational fluid dynamics simulation of urban buildings.
Citation Information
Patent Citations
Mobile terminal high-precision oblique photography three-dimensional modeling method based on OpenGL
CN109934911A
Oblique photography model building contour line automatic extraction method, system and device
CN114155263A
