Method and device for generating water flow distribution diagram, electronic equipment and storage medium
By simulating the collision detection between the water jet trajectory and potential obstructions, a water jet flow distribution map is generated, which solves the problem of inaccurate water jet coverage in the existing technology and provides accurate water jet coverage data support.
Patent Information
- Application Number
- CN202610498803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-15
- Publication Date
- 2026-07-24
Smart Images

Figure CN122452220A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of fire protection design technology, and in particular to a method, apparatus, electronic device and storage medium for generating a sprinkler flow distribution map. Background Technology
[0002] In the field of building fire protection design, automatic sprinkler systems are a crucial component. Current automatic sprinkler system designs typically involve designing sprinkler installation locations or assessing sprinkler protection ranges based on their coverage area. This approach represents an ideal scenario, but it often fails to accurately and intuitively determine the actual coverage of the sprinkler system in a designated area, making it difficult to guarantee the precision of related actions. Summary of the Invention
[0003] In view of this, the purpose of this disclosure is to provide a method, apparatus, electronic device and storage medium for generating a water spray flow distribution map, so as to accurately and intuitively know the actual coverage of the water spray in a specified area.
[0004] In a first aspect, embodiments of this disclosure provide a method for generating a water flow distribution map. The method includes: acquiring first model data of a target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle; wherein the nozzle attribute parameters include an original trajectory equation, which indicates the relationship between the water flow trajectory of the corresponding target nozzle and any position in space; based on the first model data, the second model data, the first position information, and the nozzle attribute parameters, performing collision detection on the water flow trajectory of each target nozzle and the potential obstruction to determine the reachable water flow position of the target area and the reachable water flow rate of the reachable water flow position; and generating a water flow distribution map of the target area based on the reachable water flow position of the target area and the reachable water flow rate of the reachable water flow position.
[0005] Secondly, embodiments of this disclosure provide an apparatus for generating a water flow distribution map. The apparatus includes: an acquisition module, configured to acquire first model data of a target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle; wherein the nozzle attribute parameters include an original trajectory equation, which indicates the relationship between the water flow trajectory of the corresponding target nozzle and any position in space; a detection module, configured to perform collision detection on the water flow trajectory of each target nozzle and the potential obstruction based on the first model data, the second model data, the first position information, and the nozzle attribute parameters, to determine the reachable water flow position of the target area and the reachable water flow rate of the reachable water flow position; and a generation module, configured to generate a water flow distribution map of the target area based on the reachable water flow position of the target area and the reachable water flow rate of the reachable water flow position.
[0006] Thirdly, embodiments of this disclosure provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described method for generating a water spray flow distribution map.
[0007] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the above-described method for generating the water spray flow distribution map.
[0008] The embodiments disclosed herein bring the following beneficial effects: The aforementioned method, device, electronic equipment, and storage medium for generating the water flow distribution map can accurately simulate the reachable position and reachable water volume of fire sprinkler heads in a specific area by detecting the collision between the water spray trajectory of the fire sprinkler head and potential obstructions, thereby generating an intuitive water flow distribution map. This provides a more accurate data basis for processing based on the actual coverage of the water spray in a specific area.
[0009] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objects and other advantages of this disclosure are realized and obtained through the structures particularly pointed out in the description, claims and drawings.
[0010] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0012] Figure 1 This is a flowchart of one embodiment of the method for generating a water spray flow distribution map in this disclosure; Figure 2 This is a schematic diagram of a method for generating a water spray flow distribution map in an embodiment of this disclosure; Figure 3 This is another schematic diagram of the method for generating the water spray flow distribution map in the embodiments of this disclosure; Figure 4 This is another schematic diagram of the method for generating the water spray flow distribution map in the embodiments of this disclosure; Figure 5 A schematic diagram of a device for generating a water spray flow distribution map according to an embodiment of this disclosure; Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0014] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this disclosure, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0015] For ease of understanding, the specific process of the embodiments of this disclosure is described below. Please refer to [link / reference]. Figure 1One embodiment of the method for generating a water spray flow distribution map in this disclosure includes: Step S10: Obtain first model data of the target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle; wherein, the nozzle attribute parameters include the original trajectory equation, which is used to indicate the relationship between the water jet trajectory of the corresponding target nozzle and any position in space. In the field of fire protection design of buildings, relevant regulations stipulate that automatic sprinkler systems should be installed for specific buildings or places within buildings. Automatic sprinkler systems are usually composed of components such as sprinkler heads, alarm valve assemblies, water flow alarm devices (water flow indicators or pressure switches), as well as pipes, water supply facilities, etc., and are automatic fire extinguishing systems that can spray water in the event of a fire.
[0016] The embodiments disclosed herein can be applied to the above-mentioned automatic sprinkler system. The target area can be an area in a building equipped with the above-mentioned automatic sprinkler system, or an area within a building equipped with the above-mentioned automatic sprinkler system. The target sprinkler head can be any sprinkler head in the above-mentioned automatic sprinkler system, and no specific limitation is made here.
[0017] As an example and not a limitation, the building equipped with an automatic sprinkler system (hereinafter referred to as the "target building") can be simulated in the form of a 3D model. The target area can be any area in the target building, and the target sprinkler head can be a sprinkler head within the elevation range of the target area. For example, the target area can be the floor slab of any floor in the target building, and the target sprinkler head can be a sprinkler head within the elevation range of that floor slab. No specific limitation is made here.
[0018] Specifically, in one implementation, if the target area is the floor slab of any floor in the target building, then sprinkler heads within the range from the floor slab elevation of the target area to the floor elevation of the target area are matched according to the floor elevation of the target area, to determine at least one target sprinkler head. Similarly, potential obstructions can also be matched according to the target sprinkler head matching method, the details of which will not be elaborated here.
[0019] Potential obstructions can be any object that might obstruct the water spray from the target sprinkler head; that is, any object that might alter the trajectory of the water spray from the target sprinkler head. Potential obstructions can be specified or selected via the terminal, or they can be matched based on the location of the target area and the target sprinkler head. Specific limitations are not specified here. For example, potential obstructions can be components such as walls, beams, columns, and pipelines within the target building. If the target area is the floor slab of any floor in the target building, then objects partially or entirely within the floor slab elevation range of the target area up to the floor level of the target area can be identified as potential obstructions. Specific limitations are not specified here.
[0020] The first model data can be used to indicate the shape and structure of the target area, the location of the target area within the target building, and the position of the target area relative to any reference object. Similarly, the second model data can be used to indicate the shape of potential occlusions, the location of potential occlusions within the target building, and the position of potential occlusions relative to any reference object. Both the first and second model data are three-dimensional model data and serve as virtual representations of entities.
[0021] The first location information can be used to indicate the position of each of the at least one target nozzles in the target building, or to indicate the position of each of the at least one target nozzles relative to any reference object, or to indicate the position of each of the at least one target nozzles relative to the target area, and is not specifically limited here.
[0022] Sprinkler attribute parameters are used to indicate the inherent properties of each target sprinkler, such as the type of target sprinkler, the coverage area / radius of the water spray, the original trajectory equation, the sprinkler flow rate formula, etc. The water spray attribute parameters can be specified by the user or customized, or they can be obtained from the parameters of the sprinkler manufacturer. The specifics are not limited here.
[0023] The original trajectory equation is one of the nozzle attribute parameters corresponding to each target nozzle. It is used to indicate the relationship between the water spray trajectory of the corresponding target nozzle and any position in space. The aforementioned any position in space can be the water landing point. The original trajectory equation can be a water spray trajectory equation under ideal conditions. It can be customized, obtained from presets according to the type of target nozzle, or obtained from the parameters of the sprinkler manufacturer, etc. The specifics are not limited here.
[0024] As an example, and not a limitation, the original trajectory equation for a target nozzle could be as follows:
[0025] Where h is the vertical distance between the center of the target nozzle and the water landing point, x is the horizontal distance between any point in space and the center of the target nozzle, y is the vertical distance between any point in space and the center of the target nozzle, and d is the horizontal distance between the water landing point and the center of the target nozzle. The water landing point can be any point on the horizontal plane of the target area, and there is no specific limitation here.
[0026] It should be noted that the above-mentioned original trajectory equation applies to sprinkler heads that spray water in all directions, such as upright, pendant, and ceiling-mounted sprinkler heads. The water spray trajectory of a sprinkler head that sprays water in all directions approximates a parabola, and its spray trajectory can be simulated using the original trajectory equation. Water spray trajectories with shapes other than parabolic can be simulated using other original trajectory equations, which will not be elaborated here.
[0027] like Figure 2 The image shown is a visual representation of the original trajectory equation described above. Figure 2 In this context, the center of the nozzle is the origin of the coordinate system. Figure 2 The diagram shown is a schematic representation of the curve of the original trace equation after rotating 90° clockwise; the specific details are not limited here.
[0028] The original trajectory equations described above can also be used to indicate the water spray trajectory of the corresponding target nozzle at a specified water landing point, where h and d represent the positions of the aforementioned specified landing points, which are not specifically limited here.
[0029] Step S20: Based on the first model data, the second model data, the first location information and the nozzle attribute parameters, perform collision detection on the water spray trajectory of each target nozzle and potential obstructions to determine the reachable water spray location and the reachable water spray volume of the target area. In this embodiment, the water spray trajectory of each target nozzle can be simulated by the original trajectory equation, and then the water spray trajectory of each target nozzle is compared with potential obstructions for collision detection to determine the reachable water spray position and the reachable water spray volume of the target area. At the same time, the unreachable water spray position of the target area can also be determined.
[0030] The reachable location of the water spray is the location within the target area that the water spray trajectory can cover without colliding with potential obstructions. Collision detection can determine the location within the target area that does not collide with potential obstructions. Then, based on the water spray coverage range of the target nozzle, the reachable location of the water spray can be determined.
[0031] After determining the reachable locations of the spray nozzles in the target area, the reachable water volume at each location can be determined based on the corresponding reachable nozzles. Specifically, the reachable water volume can be determined based on the number or flow rate of the reachable nozzles. For example, if the number of reachable nozzles at location A is 3 and the total number of target nozzles is 10, then the reachable water volume at location A can be 3 or 3 / 10; the specific determination is not limited here.
[0032] A water-reachable nozzle is a nozzle that can spray water to at least one target location. The same water-reachable location may be sprayed by one or more target nozzles. Therefore, the at least one target nozzle corresponding to each water-reachable location is called a water-reachable nozzle.
[0033] Step S30: Generate a water flow distribution map of the target area based on the reachable locations of water spraying in the target area and the reachable water volume at those locations.
[0034] A water flow distribution map is used to visually display the flow rate of water reaching different locations in a target area. Through the water flow distribution map, you can see the distribution of water in the target area, concentrated areas, and blank areas (i.e., areas where no water is reached). The water flow distribution map can be used for the design of the distribution location of fire sprinkler heads in the target area, and it can also be used to assess the fire protection range of the target area, etc., without being limited here.
[0035] In one implementation, the water flow distribution map may take the form of a spatial distribution map such as a heat map, contour map / isoline map, three-dimensional surface map, or bubble chart, as an example and not a limitation. Figure 3 The image shown is a schematic diagram of the water flow distribution in the form of a heat map, which reflects the water flow distribution on a first-floor slab.
[0036] In one implementation, the reachable locations and corresponding reachable water flow rates of the target area can be converted into data for a corresponding spatial distribution map. Then, based on the data from the spatial distribution map, a corresponding spatial distribution map can be generated to obtain the water flow rate distribution map of the target area. For example, the data for a heatmap-style spatial distribution map can be RGB color values, and the data for a bubble chart-style spatial distribution map can be bubble positions and bubble sizes; specific details are not limited here.
[0037] The method for generating a water flow distribution map provided in the above embodiments can accurately simulate the reachable position and reachable water volume of fire sprinkler heads in a specific area by detecting the collision between the water spray trajectory of the fire sprinkler head and potential obstructions, thereby generating an intuitive water flow distribution map, so that the processing based on the actual coverage of the water spray in a specific area also has a more accurate data basis.
[0038] Next, the specific implementation method for generating the water spray flow distribution map will be explained.
[0039] In one embodiment, the step of performing collision detection on the water spray trajectory of each target nozzle and potential obstructions based on first model data, second model data, first location information, and nozzle attribute parameters to determine the reachable water spray location and the reachable water spray volume of the target area includes: performing meshing processing on the surface of the target area based on the first model data to obtain mesh data of the target area; and performing collision detection on the water spray trajectory of each target nozzle and potential obstructions based on the mesh data, second model data, first location information, and nozzle attribute parameters to determine the water spray accessibility information of each mesh in the mesh data and the reachable water spray volume of the reachable mesh; wherein the reachable mesh indicated by the water spray accessibility information is the reachable water spray location of the target area.
[0040] The target area is the area where the water flow distribution needs to be identified. Through the gridding process of this implementation method, the irregular first model data can be converted into regular grid data. This does not affect the identification of the water flow distribution, but also reduces the difficulty of data processing and improves processing efficiency. It is a clever processing method.
[0041] As an example, and not a limitation, if the target area is a floor slab of any floor in the target building, then the grid data of the target area represents the surface of that floor slab facing the target nozzle, corresponding to the ground of that floor slab. When meshing the surface of the target area, the target surface of the first model data can be divided into grids of corresponding specifications according to a preset specified precision. The higher the precision, the more grids in the grid data; however, no specific limitation is made here.
[0042] For example, assuming the actual physical size of the target area surface is 10m×10m and the preset specified accuracy is 100mm, then the grid data of the target area will contain 100×100 grids, and the side length of each grid is 100mm. The specific dimensions are not limited here.
[0043] The grid data can be used to record the position of each grid on the surface of the target area relative to any / specified target nozzle. Specifically, the horizontal and vertical distances of each grid on the surface of the target area from the center of any / specified target nozzle can be recorded. The specified target nozzle can be the nearest target nozzle or a nozzle that can be reached by water spray, etc., and there are no specific limitations here.
[0044] For example, Figure 3As shown, the intersection of the red curve and the green horizontal line represents one of the grids on the surface of the target area. The grid data can record the d-value and h-value of the grid, where the d-value represents the horizontal distance of the grid from the center of the specified target nozzle, and the h-value represents the vertical distance of the grid from the center of the specified target nozzle.
[0045] After obtaining the grid data, collision detection of potential obstructions can be performed on each grid and the water spray trajectory to determine whether each grid is a water spray reachable location and the reachable water spray volume of the reachable location. The information on whether each grid is a water spray reachable location serves as the water spray reachability information for the corresponding grid.
[0046] In one implementation, when performing collision detection on the water jet trajectory of each target nozzle against potential obstructions based on grid data, second model data, first location information, and nozzle attribute parameters, each grid can be used as a water jet landing point. By using the original trajectory equation corresponding to the grid, it can be determined whether the water jet trajectory of each reachable nozzle in the grid collides with a potential obstruction. If a collision occurs, the grid is determined to be an unreachable grid; if no collision occurs, the grid is determined to be a reachable grid. In another implementation, the reachable water volume of a reachable grid can be determined based on the number or flow rate of reachable nozzles in the reachable grid; details are not elaborated here.
[0047] In one implementation, the step of performing collision detection on the water jet trajectory of each target nozzle and potential obstructions based on grid data, second model data, first location information, and nozzle attribute parameters to determine the water jet accessibility information of each grid in the grid data and the achievable water jet volume of the accessible grid includes: matching a first grid within the coverage range of each target nozzle from the grid data according to the coverage range parameter of the corresponding target nozzle in the nozzle attribute parameters; identifying at least one target nozzle covering any first grid as the first nozzle corresponding to the first grid; and determining the first nozzle based on the original trajectory equation and grid data. The second position information of each first grid is used to determine the water spray trajectory corresponding to each first grid and each first nozzle; the water spray trajectory corresponding to each first grid and each first nozzle is used to perform collision detection with potential obstructions to determine the water spray accessibility information of each first grid in the grid data and the achievable water spray volume of the water sprayable grid; wherein, the first grid that indicates that it has not collided with a potential obstruction in the water spray accessibility information is a water sprayable grid, the first grid that indicates that it has collided with a potential obstruction in the water spray accessibility information, and the grids other than the first grid in the grid data are water spray unreachable grids.
[0048] The coverage range parameter of the target sprinkler head is one of the inherent sprinkler head attribute parameters. It represents the water spray coverage range of the target sprinkler head under ideal conditions. Like other sprinkler head attribute parameters, the coverage range parameter can also be specified or customized by the user, or obtained from the sprinkler head manufacturer's parameters. No specific restrictions are made here.
[0049] In this embodiment, firstly, based on the water spray coverage range of the target nozzle, a grid that the target nozzle can ideally cover is matched as the first grid corresponding to the target nozzle. Since the water spray coverage ranges of different target nozzles may overlap, that is, the same water spray reachable position may be sprayed by one or more target nozzles, this embodiment determines the water spray reachable nozzle of each first grid as the first nozzle corresponding to the first grid, so as to facilitate subsequent collision detection for each water spray reachable nozzle of the first grid and obtain more accurate detection results.
[0050] The first nozzle corresponding to the first grid is the target nozzle that the water spray can reach under ideal conditions. That is, the water spray coverage includes the target nozzle corresponding to the first grid. In this embodiment, after determining the first nozzle corresponding to the first grid, the first grid can be used as the water spray landing point. The water spray trajectory corresponding to each first grid and each first nozzle is determined for subsequent collision detection with potential obstructions to obtain more accurate detection results.
[0051] Taking the original trajectory equation of the target nozzle as an example, assuming the vertical distance between a first grid and the center of one of the first nozzles is 2 and the horizontal distance is 3, then the water jet trajectory corresponding to the first grid and the first nozzle is as follows:
[0052] The shape of the water jet trajectory is as follows Figure 4 As shown, Figure 4 In the diagram, the origin of the coordinate system is the location of this first center. Figure 4 It is the shape of the above equation rotated 90° clockwise around the origin, in the form of a parabola, but the specific shape is not limited here.
[0053] As can be seen from the above water spray trajectory, when x=d=3, y=h=2. That is, the above water spray trajectory can verify that any point in space can be the landing point of the water spray, that is, the landing point of the water spray is on the above water spray trajectory.
[0054] For each first nozzle corresponding to each first grid, the corresponding water jet trajectory can be obtained through the corresponding original trajectory equation. For each water jet trajectory, collision detection is performed with potential obstructions. If the water jet trajectory of any first nozzle corresponding to the first grid does not collide with a potential obstruction, then the first grid is a water jet reachable grid. If all water jet trajectories corresponding to the first grid collide with potential obstructions, then the first grid is a water jet unreachable grid.
[0055] In the grid data, grids other than the first grid are not within the water spray coverage of any target nozzle. Therefore, they can be identified as unreachable grids and do not need to participate in collision detection. This allows for more efficient and accurate collision detection results.
[0056] In one embodiment, the step of performing collision detection between the water jet trajectory corresponding to each first grid and each first nozzle and potential obstructions to determine the water jet accessibility information of each first grid in the grid data and the achievable water jet volume of the water jet accessible grid includes: performing collision detection between the water jet trajectory corresponding to each first grid and each first nozzle and potential obstructions; determining all first grids whose corresponding water jet trajectory does not collide with potential obstructions as water jet accessible grids; determining any first grid whose corresponding water jet trajectory collides with potential obstructions as water jet unreachable grids, thereby obtaining the water jet accessibility information of each first grid; calculating the first water jet volume of each first nozzle corresponding to each water jet accessible grid using the nozzle flow rate formula in the nozzle attribute parameters of the first nozzle corresponding to each water jet accessible grid; and for each water jet accessible grid, superimposing the first water jet volumes of all corresponding first nozzles to obtain the achievable water jet volume of each water jet accessible grid.
[0057] In this embodiment, collision detection is performed on the water spray trajectory of each first grid and each corresponding first nozzle against potential obstructions to determine the reachable and unreachable grids within the first grid, thereby obtaining the water spray reachability information for each first grid. In one embodiment, during collision detection, the second model data of the potential obstruction can be used to identify whether the water spray trajectory intersects with the surface of the potential obstruction. If they intersect, a collision is determined to have occurred; otherwise, no collision is determined to have occurred. Other collision detection methods can also be used, which will not be explored here.
[0058] The nozzle flow rate formula can be used as one of the inherent nozzle attribute parameters of the target nozzle. It represents the flow rate / volume of water sprayed by the target nozzle at any point in space under ideal conditions. Like other nozzle attribute parameters, the nozzle flow rate formula can also be specified or customized by the user, or obtained from the parameters of the sprinkler head manufacturer. The specifics are not limited here.
[0059] As an example, and not a limitation, one possible formula for nozzle flow rate is as follows:
[0060] Where q represents the flow rate / volume of water sprayed by the corresponding target nozzle at any point in space, d represents the horizontal distance between any point in space and the center of the corresponding target nozzle, and s represents the coverage area / radius of the corresponding target nozzle.
[0061] Based on the nozzle flow rate formula, the first spray volume of each first nozzle corresponding to each reachable water grid can be calculated. Then, by superimposing the first spray volumes corresponding to each reachable water grid, the reachable spray volume of each reachable water grid can be obtained.
[0062] In one embodiment, the step of generating a water flow distribution map of a target area based on the reachable water spray locations and the reachable water spray volume of the reachable water spray locations includes: generating an original canvas corresponding to the target area based on first model data of the target area; generating a heat map in the original canvas corresponding to the reachable water spray locations and the reachable water spray volume of the reachable water spray locations of the target area based on a preset mapping relationship between water spray volume and color value, thereby obtaining a water flow distribution map of the target area.
[0063] In this embodiment, the generated water flow distribution map is a heat map. In one embodiment, when generating the water flow distribution map of the heat map, the water flow distribution map of the target area can be generated by a preset heat map generation algorithm, which will not be elaborated here.
[0064] Different water spray volumes correspond to different color values, and the two are associated through a preset mapping relationship. When generating a water spray volume distribution map of the target area, the original canvas of the target area can be generated first. The pixels in the original canvas of the target area have a corresponding relationship with different positions in the target area. For example, position A in the target area corresponds to pixel B or pixel set B in the original canvas. The specifics are not limited here.
[0065] After generating the original canvas, the color value of the pixel corresponding to the reachable water spray position in the target area can be determined based on the reachable water spray position and the reachable water spray volume in the reachable water spray position. If there is no pixel corresponding to the reachable water spray position in the original canvas, the color can be smoothly transitioned through color interpolation and other methods to obtain the water spray flow distribution map of the target area, making the water spray flow distribution more intuitive.
[0066] In one embodiment, the step of generating a water flow distribution map of a target area based on the reachable water spray locations and the reachable water spray volume of the reachable water spray locations includes: generating an original canvas corresponding to the target area based on grid data of the target area; wherein each grid in the grid data corresponds to at least one pixel in the original canvas; determining the target color value corresponding to the reachable water spray volume of each reachable water spray grid in the grid data according to a preset mapping relationship between water spray volume and color value, filling the target color value into the pixel corresponding to the reachable water spray grid in the original canvas to obtain a first canvas; for pixels in the first canvas that are not filled with color values, performing a smooth transition color value calculation on the color values around the pixel, filling the first canvas according to the calculation result, and obtaining a water flow distribution map of the target area.
[0067] In one embodiment, the step of calculating a smooth transition color value for the color values surrounding a pixel that is not filled with a color value in the first canvas, and filling the first canvas according to the calculation result to obtain a water flow distribution map of the target area includes: calculating a smooth transition color value as the calculation result for the color values surrounding the pixel that is not filled with a color value in the first canvas; and filling the first canvas with the calculation result to obtain a water flow distribution map of the target area.
[0068] In one embodiment, the step of meshing the surface of the target area based on the first model data to obtain the mesh data of the target area includes: dividing the surface area of the target area in the first model data into meshes of corresponding sizes according to the actual physical size of the target area and a preset specified precision, thereby obtaining the mesh data of the target area; wherein, the size of each mesh in the mesh data is the same as the specified precision.
[0069] In this embodiment, the preset specified precision is used to indicate the size / specification of each grid when performing gridding processing. Based on the preset specified precision and the actual physical size of the target area, the number of grids required to divide the surface of the target area can be calculated. Based on the determined grid size / specification and number, the surface of the target area can be gridded to obtain the grid data of the target area. This allows the identification of the water flow distribution to be achieved based on different precisions, making it more flexible and versatile.
[0070] In one embodiment, the method further includes: acquiring a target building model; identifying a model in the target building model whose location is between the target area and the location of the target nozzle as a potential obstruction model; and acquiring second model data of the potential obstruction from the target building model.
[0071] In this embodiment, the target area, potential obstructions, and target nozzles are all objects within the target building. In this embodiment, it is only necessary to obtain the target building model, determine / select the target area and target nozzles in the target building model, and then match the potential obstruction model in the target building model to obtain the second model data of the potential obstruction.
[0072] Specifically, the model of a potential obstruction is a model that is located between the target area and the target nozzle. For example, when the target area is a floor slab, the potential obstruction can be a component such as a wall, beam, column, or pipeline in the target building. No specific limitation is made here.
[0073] For the corresponding method embodiments described above, see [link to relevant documentation]. Figure 5 The diagram shows a device for generating a water flow distribution map. The device includes: an acquisition module 52, used to acquire first model data of a target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle; wherein the nozzle attribute parameters include an original trajectory equation, which indicates the relationship between the water flow trajectory of the corresponding target nozzle and any position in space; a detection module 54, used to perform collision detection on the water flow trajectory of each target nozzle and the potential obstruction based on the first model data, the second model data, the first position information, and the nozzle attribute parameters, to determine the reachable water flow position and the reachable water flow rate of the reachable water flow position in the target area; and a generation module 56, used to generate a water flow distribution map of the target area based on the reachable water flow position and the reachable water flow rate of the reachable water flow position.
[0074] The aforementioned water flow distribution map generation device can accurately simulate the reachable position and reachable water volume of fire sprinkler heads in a specific area by detecting the collision between the water spray trajectory of the fire sprinkler head and potential obstructions, thereby generating an intuitive water flow distribution map. This provides a more accurate data basis for processing based on the actual coverage of the water spray in a specific area.
[0075] Optionally, the detection module 54 includes: a meshing submodule, used to perform meshing processing on the surface of the target area based on the first model data to obtain mesh data of the target area; and a collision detection submodule, used to perform collision detection on the water spray trajectory of each target nozzle and the potential obstruction based on the mesh data, the second model data, the first position information, and the nozzle attribute parameters, to determine the water spray accessibility information of each mesh in the mesh data and the achievable water spray volume of the water sprayable mesh; wherein the water spray accessibility information indicates the water sprayable mesh as the water sprayable location of the target area.
[0076] Optionally, the collision detection submodule includes: a grid matching unit, configured to match a first grid within the coverage range of each target nozzle from the grid data according to the coverage range parameter of the target nozzle in the nozzle attribute parameters; a first determination unit, configured to determine at least one target nozzle covering any first grid as the first nozzle corresponding to the first grid; a second determination unit, configured to determine the water jet trajectory corresponding to each first grid and each first nozzle according to the original trajectory equation and the second position information of each first grid in the grid data; and a collision detection unit, configured to perform collision detection between the water jet trajectory corresponding to each first grid and each first nozzle and the potential obstruction, so as to determine the water jet accessibility information of each first grid in the grid data and the achievable water jet volume of the water jet accessible grid; wherein, the first grid indicating that it did not collide with the potential obstruction in the water jet accessibility information is a water jet accessible grid, the first grid indicating that it collided with the potential obstruction in the water jet accessibility information, and the grids in the grid data other than the first grid are water jet unreachable grids.
[0077] Optionally, the collision detection unit is specifically used for: performing collision detection on the water jet trajectory corresponding to each first grid and each first nozzle and the potential obstruction; determining all first grids whose corresponding water jet trajectories do not collide with the potential obstruction as water jet reachable grids; determining any first grid whose corresponding water jet trajectory collides with the potential obstruction as a water jet unreachable grid; obtaining water jet reachability information for each first grid; calculating the first water jet volume corresponding to each first nozzle for each water jet reachable grid using the nozzle flow rate formula in the nozzle attribute parameters of the first nozzle corresponding to each water jet reachable grid; and for each water jet reachable grid, superimposing the first water jet volumes of all corresponding first nozzles to obtain the reachable water jet volume for each water jet reachable grid.
[0078] Optionally, the above-mentioned generation module 56 is specifically used to: generate an original canvas corresponding to the target area based on the first model data of the target area; and generate a heat map in the original canvas corresponding to the reachable water spray position of the target area and the reachable water spray volume of the reachable water spray position according to the preset mapping relationship between water spray volume and color value, so as to obtain a water spray flow distribution map of the target area.
[0079] Optionally, the above-mentioned meshing submodule is specifically used to: divide the surface area of the target area in the first model data into meshes of corresponding sizes according to the actual physical size of the target area and a preset specified precision, thereby obtaining mesh data of the target area; wherein, the size of each mesh in the mesh data is the same as the specified precision.
[0080] Optionally, the above device further includes: an acquisition module for acquiring a target building model; and a determination module for determining models in the target building model whose location is between the target area and the location of the target nozzle as potential obstructions, and acquiring second model data of the potential obstructions from the target building model.
[0081] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-described method for generating a water spray flow distribution map. This electronic device can be a server or a terminal device.
[0082] See Figure 6 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described method for generating the water spray flow distribution map.
[0083] Furthermore, Figure 6 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0084] The memory 101 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0085] The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 100 or by instructions in software form. The processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101. The processor 100 reads information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments, for example: The system acquires first model data of the target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle. The nozzle attribute parameters include the original trajectory equation, which indicates the relationship between the water jet trajectory of the corresponding target nozzle and any position in space. Based on the first model data, second model data, first position information, and nozzle attribute parameters, collision detection is performed on the water jet trajectory of each target nozzle and potential obstructions to determine the reachable water jet positions and the reachable water jet volume at each reachable position in the target area. A water jet flow distribution map of the target area is generated based on the reachable water jet positions and the reachable water jet volume at each reachable position.
[0086] In this method, the collision detection between the water spray trajectory of the fire sprinkler head and potential obstructions can accurately simulate the reachable position and reachable water volume of the fire sprinkler head in a specific area, thereby generating an intuitive water flow distribution map, so that the processing based on the actual coverage of the water spray in a specific area also has a relatively accurate data basis.
[0087] Optionally, the step of performing collision detection on the water spray trajectory of each target nozzle and potential obstructions based on the first model data, the second model data, the first location information, and the nozzle attribute parameters to determine the reachable water spray location and the reachable water spray volume of the target area includes: performing mesh processing on the surface of the target area based on the first model data to obtain mesh data of the target area; and performing collision detection on the water spray trajectory of each target nozzle and potential obstructions based on the mesh data, the second model data, the first location information, and the nozzle attribute parameters to determine the water spray accessibility information of each mesh in the mesh data and the reachable water spray volume of the reachable mesh; wherein the reachable mesh indicated by the water spray accessibility information is the reachable water spray location of the target area.
[0088] Optionally, based on grid data, second model data, first location information, and nozzle attribute parameters, collision detection is performed on the water spray trajectory of each target nozzle and potential obstructions to determine the water spray accessibility information of each grid in the grid data and the achievable water spray volume of the reachable grid. This step includes: matching the first grid within the coverage range of each target nozzle from the grid data according to the coverage range parameter of the corresponding target nozzle in the nozzle attribute parameters; identifying at least one target nozzle covering any first grid as the first nozzle corresponding to the first grid; and determining the first nozzle based on the original trajectory equation and each... The second position information of the first grid determines the water spray trajectory corresponding to each first grid and each first nozzle; the water spray trajectory corresponding to each first grid and each first nozzle is used to perform collision detection with potential obstructions to determine the water spray accessibility information of each first grid in the grid data and the achievable water spray volume of the water sprayable grid; wherein, the first grid that indicates that it has not collided with a potential obstruction in the water spray accessibility information is a water sprayable grid, the first grid that indicates that it has collided with a potential obstruction in the water spray accessibility information, and the grids other than the first grid in the grid data are water spray unreachable grids.
[0089] Optionally, the step of performing collision detection on the water jet trajectory corresponding to each first grid and each first nozzle with potential obstructions to determine the water jet accessibility information of each first grid in the grid data and the achievable water jet volume of the water jet accessible grid includes: performing collision detection on the water jet trajectory corresponding to each first grid and each first nozzle with potential obstructions; determining all first grids whose corresponding water jet trajectory does not collide with potential obstructions as water jet accessible grids; determining any first grid whose corresponding water jet trajectory collides with potential obstructions as water jet unreachable grids, thereby obtaining the water jet accessibility information of each first grid; calculating the first water jet volume of each first nozzle corresponding to each water jet accessible grid using the nozzle flow rate formula in the nozzle attribute parameters of the first nozzle corresponding to each water jet accessible grid; and for each water jet accessible grid, superimposing the first water jet volumes of all corresponding first nozzles to obtain the achievable water jet volume of each water jet accessible grid.
[0090] Optionally, the step of generating a water flow distribution map of the target area based on the reachable water spray locations and the reachable water spray volume of the target area includes: generating an original canvas corresponding to the target area based on the first model data of the target area; generating a heat map in the original canvas corresponding to the reachable water spray locations and the reachable water spray volume of the target area based on the preset mapping relationship between water spray volume and color value, thereby obtaining a water flow distribution map of the target area.
[0091] Optionally, the step of meshing the surface of the target area based on the first model data to obtain the mesh data of the target area includes: dividing the surface area of the target area in the first model data into meshes of corresponding sizes according to the actual physical size of the target area and the preset specified precision, thereby obtaining the mesh data of the target area; wherein, the size of each mesh in the mesh data is the same as the specified precision.
[0092] Optionally, the method further includes: obtaining a target building model; identifying the model in the target building model whose location is between the target area and the location of the target nozzle as a potential obstruction model; and obtaining second model data of the potential obstruction from the target building model.
[0093] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are invoked and executed by a processor, they cause the processor to implement the aforementioned method for generating the water spray flow distribution map. For example: The system acquires first model data of the target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle. The nozzle attribute parameters include the original trajectory equation, which indicates the relationship between the water jet trajectory of the corresponding target nozzle and any position in space. Based on the first model data, second model data, first position information, and nozzle attribute parameters, collision detection is performed on the water jet trajectory of each target nozzle and potential obstructions to determine the reachable water jet positions and the reachable water jet volume at each reachable position in the target area. A water jet flow distribution map of the target area is generated based on the reachable water jet positions and the reachable water jet volume at each reachable position.
[0094] In this method, the collision detection between the water spray trajectory of the fire sprinkler head and potential obstructions can accurately simulate the reachable position and reachable water volume of the fire sprinkler head in a specific area, thereby generating an intuitive water flow distribution map, so that the processing based on the actual coverage of the water spray in a specific area also has a relatively accurate data basis.
[0095] Optionally, the step of performing collision detection on the water spray trajectory of each target nozzle and potential obstructions based on the first model data, the second model data, the first location information, and the nozzle attribute parameters to determine the reachable water spray location and the reachable water spray volume of the target area includes: performing mesh processing on the surface of the target area based on the first model data to obtain mesh data of the target area; and performing collision detection on the water spray trajectory of each target nozzle and potential obstructions based on the mesh data, the second model data, the first location information, and the nozzle attribute parameters to determine the water spray accessibility information of each mesh in the mesh data and the reachable water spray volume of the reachable mesh; wherein the reachable mesh indicated by the water spray accessibility information is the reachable water spray location of the target area.
[0096] Optionally, based on grid data, second model data, first location information, and nozzle attribute parameters, collision detection is performed on the water spray trajectory of each target nozzle and potential obstructions to determine the water spray accessibility information of each grid in the grid data and the achievable water spray volume of the reachable grid. This step includes: matching the first grid within the coverage range of each target nozzle from the grid data according to the coverage range parameter of the corresponding target nozzle in the nozzle attribute parameters; identifying at least one target nozzle covering any first grid as the first nozzle corresponding to the first grid; and determining the first nozzle based on the original trajectory equation and each... The second position information of the first grid determines the water spray trajectory corresponding to each first grid and each first nozzle; the water spray trajectory corresponding to each first grid and each first nozzle is used to perform collision detection with potential obstructions to determine the water spray accessibility information of each first grid in the grid data and the achievable water spray volume of the water sprayable grid; wherein, the first grid that indicates that it has not collided with a potential obstruction in the water spray accessibility information is a water sprayable grid, the first grid that indicates that it has collided with a potential obstruction in the water spray accessibility information, and the grids other than the first grid in the grid data are water spray unreachable grids.
[0097] Optionally, the step of performing collision detection on the water jet trajectory corresponding to each first grid and each first nozzle with potential obstructions to determine the water jet accessibility information of each first grid in the grid data and the achievable water jet volume of the water jet accessible grid includes: performing collision detection on the water jet trajectory corresponding to each first grid and each first nozzle with potential obstructions; determining all first grids whose corresponding water jet trajectory does not collide with potential obstructions as water jet accessible grids; determining any first grid whose corresponding water jet trajectory collides with potential obstructions as water jet unreachable grids, thereby obtaining the water jet accessibility information of each first grid; calculating the first water jet volume of each first nozzle corresponding to each water jet accessible grid using the nozzle flow rate formula in the nozzle attribute parameters of the first nozzle corresponding to each water jet accessible grid; and for each water jet accessible grid, superimposing the first water jet volumes of all corresponding first nozzles to obtain the achievable water jet volume of each water jet accessible grid.
[0098] Optionally, the step of generating a water flow distribution map of the target area based on the reachable water spray locations and the reachable water spray volume of the target area includes: generating an original canvas corresponding to the target area based on the first model data of the target area; generating a heat map in the original canvas corresponding to the reachable water spray locations and the reachable water spray volume of the target area based on the preset mapping relationship between water spray volume and color value, thereby obtaining a water flow distribution map of the target area.
[0099] Optionally, the step of meshing the surface of the target area based on the first model data to obtain the mesh data of the target area includes: dividing the surface area of the target area in the first model data into meshes of corresponding sizes according to the actual physical size of the target area and the preset specified precision, thereby obtaining the mesh data of the target area; wherein, the size of each mesh in the mesh data is the same as the specified precision.
[0100] Optionally, the method further includes: obtaining a target building model; identifying the model in the target building model whose location is between the target area and the location of the target nozzle as a potential obstruction model; and obtaining second model data of the potential obstruction from the target building model.
[0101] The computer program product of the method, apparatus, electronic device and storage medium for generating water flow distribution map provided in this disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0102] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0103] Furthermore, in the description of the embodiments of this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure based on the specific circumstances.
[0104] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0105] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0106] Finally, it should be noted that the above embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method for generating a water spray flow distribution map, characterized in that, The method includes: Acquire first model data of the target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle; wherein, the nozzle attribute parameters include the original trajectory equation, which is used to indicate the relationship between the water jet trajectory of the corresponding target nozzle and any position in space; Based on the first model data, the second model data, the first location information, and the nozzle attribute parameters, collision detection is performed on the water spray trajectory of each target nozzle and the potential obstruction to determine the reachable water spray location of the target area and the reachable water spray volume of the reachable water spray location. A water flow distribution map of the target area is generated based on the reachable locations of the water spray in the target area and the reachable water volume at those locations.
2. The method according to claim 1, characterized in that, Based on the first model data, the second model data, the first location information, and the nozzle attribute parameters, the step of performing collision detection on the water spray trajectory of each target nozzle and the potential obstruction to determine the reachable water spray location and the reachable water spray volume of the target area includes: Based on the first model data, the surface of the target region is meshed to obtain the mesh data of the target region; Based on the grid data, the second model data, the first location information, and the nozzle attribute parameters, collision detection is performed on the water spray trajectory of each target nozzle and the potential obstruction to determine the water spray accessibility information of each grid in the grid data and the achievable water spray volume of the water sprayable grid. The water spray accessibility information indicates the water spray accessibility grid, which represents the water spray accessibility location of the target area.
3. The method according to claim 2, characterized in that, Based on the grid data, the second model data, the first location information, and the nozzle attribute parameters, the step of performing collision detection on the water spray trajectory of each target nozzle and the potential obstruction to determine the water spray accessibility information of each grid in the grid data and the achievable water spray volume of the reachable grid includes: Based on the coverage range parameter of the target nozzle in the nozzle attribute parameters, match the first grid within the coverage range of each target nozzle from the grid data; At least one target nozzle covering any first grid is identified as the first nozzle corresponding to the first grid; Based on the original trajectory equation and the second position information of each first grid in the grid data, the water jet trajectory corresponding to each first grid and each first nozzle is determined. Collision detection is performed between the water jet trajectory corresponding to each first grid and each first nozzle and the potential obstruction to determine the water jet accessibility information of each first grid in the grid data and the achievable water jet volume of the water jet accessible grid; In this context, the first grid in the water spray accessibility information that indicates it did not collide with the potential obstruction is a water spray accessible grid, the first grid in the water spray accessibility information that indicates it collided with the potential obstruction, and all grids in the grid data other than the first grid are water spray unreachable grids.
4. The method according to claim 3, characterized in that, The step of performing collision detection between the water jet trajectory corresponding to each first grid and each first nozzle and the potential obstruction to determine the water jet accessibility information of each first grid in the grid data and the achievable water jet volume of the achievable grid includes: Collision detection is performed on the water jet trajectory corresponding to each first grid and each first nozzle and the potential obstruction. All first grids whose corresponding water jet trajectory does not collide with the potential obstruction are determined as water jet reachable grids, and any first grid whose corresponding water jet trajectory collides with the potential obstruction is determined as water jet unreachable grid, thereby obtaining the water jet reachability information of each first grid. The first water volume of each first nozzle corresponding to each water-reachable grid is calculated using the nozzle flow rate formula in the nozzle attribute parameters of the first nozzle corresponding to each water-reachable grid. For each reachable water spray grid, the first water spray volume of all corresponding first nozzles is superimposed to obtain the reachable water spray volume of each reachable water spray grid.
5. The method according to claim 1, characterized in that, The step of generating a water flow distribution map of the target area based on the reachable locations of the water spraying in the target area and the reachable water flow at the reachable locations includes: Based on the first model data of the target region, an original canvas corresponding to the target region is generated; Based on the preset mapping relationship between water spray volume and color value, a heat map corresponding to the reachable water spray position and the reachable water spray volume of the target area is generated in the original canvas, thereby obtaining the water spray flow distribution map of the target area.
6. The method according to claim 2, characterized in that, The step of performing meshing processing on the surface of the target region based on the first model data to obtain the mesh data of the target region includes: Based on the actual physical size of the target area and the preset specified precision, the surface area of the target area in the first model data is divided into grids of corresponding sizes to obtain the grid data of the target area; Wherein, the size of each grid in the grid data is the same as the specified precision.
7. The method according to claim 1, characterized in that, The method further includes: Obtain the target building model; The model in which the target building is located between the target area and the location of the target nozzle is identified as a potential obstruction model, and the second model data of the potential obstruction is obtained from the target building model.
8. A device for generating a water spray flow distribution map, characterized in that, The device includes: The acquisition module is used to acquire first model data of the target area, second model data of potential obstructions, and first position information and nozzle attribute parameters of at least one target nozzle; wherein, the nozzle attribute parameters include the original trajectory equation, which is used to indicate the relationship between the water jet trajectory of the corresponding target nozzle and any position in space. The detection module is used to perform collision detection on the water spray trajectory of each target nozzle and the potential obstruction based on the first model data, the second model data, the first location information and the nozzle attribute parameters, so as to determine the reachable water spray position of the target area and the reachable water spray volume of the reachable water spray position. The generation module is used to generate a water flow distribution map of the target area based on the reachable locations of the water spray in the target area and the reachable water volume at the reachable locations of the water spray.
9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the method for generating a water spray flow distribution map according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for generating a water spray flow distribution map as described in any one of claims 1-7.
