Method for calculating the scope of fire protection
By calculating the interaction between the fire hydrant origin and the building outline, the true protection range is selected, solving the problem of inaccurate protection range of fire protection facilities under the influence of building obstruction, and realizing accurate calculation of fire protection range.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- AUTOMOTIVE ENGINEERING CORPORATION
- Filing Date
- 2026-05-21
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, the obstruction caused by building structures is not taken into account, resulting in inaccurate calculations of the protection range of fire protection facilities, especially in densely populated areas, making it impossible to accurately display the true protection range.
By obtaining the origin and protection radius of the fire hydrant, and combining the building outline and edge line, the initial protection range is calculated. The actual protection range is then selected by using the shortest path and the intersection of the protection circles. Finally, the final protection range is accurately determined by using the union and sector set methods.
It achieves accurate calculations even when considering building obstructions, ensuring the accuracy of the true protection range of fire protection facilities and avoiding fire hazards caused by vague definitions.
Smart Images

Figure CN122240972A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fire protection technology, and more particularly to a method for calculating the range of fire protection. Background Technology
[0002] In the field of building construction, most buildings require the installation of fire protection facilities and accessories to prevent and reduce fire risks, such as fire hydrants, fire extinguishers, and fire sprinklers. The placement of these facilities and accessories is determined according to the protection range specified in relevant national standards and regulations. When designing fire protection plans, professional fire protection designers typically use a circle with a prescribed radius as the protection range. However, in actual construction, building structures such as walls, structural columns, windows, and railings, as insurmountable obstructions, can affect the actual protection range of fire protection facilities. Therefore, after arranging fire protection facilities according to the protection circle method, designers still need to manually verify whether the walking distance from any point inside the building to the fire protection facilities meets the requirements.
[0003] Some secondary development plugins based on 2D and 3D design software provide the function of querying fire protection range. However, the displayed protection range does not take into account the factors of building obstruction, and there may be some areas that are not protected, especially in areas with dense walls.
[0004] This invention provides a method for calculating the protection range of fire protection facilities taking into account the obstruction effect of building structures, which can accurately display the actual fire protection range.
[0005] There is currently no effective solution to the aforementioned problems in the relevant technologies. Summary of the Invention
[0006] The main objective of this application is to provide a method for calculating the fire protection range, so as to at least solve the problem in the related art of calculating the protection range of fire protection facilities by preventing building entities from obstructing it.
[0007] To achieve the above objectives, according to one aspect of this application, a method for calculating fire protection range is provided. The method includes: obtaining the origin of a fire hydrant and the protection radius of the fire hydrant; obtaining an initial protection range based on the protection radius, wherein the initial protection range is the area calculated with the origin of the fire hydrant as the center point and the protection radius as the radius, and the origin of the fire hydrant is the location of the fire hydrant; obtaining all building outlines, all endpoints, and all edges; obtaining an initial protection set based on the initial protection range, wherein the initial protection set includes the endpoints within the initial protection range and the intersection points of the edges intersecting with the initial protection range; obtaining an initial point set; calculating the remaining protection radius of all points in the initial protection set based on the initial point set, wherein the initial point set includes all points in the initial protection set and the origin of the fire hydrant; determining the actual protection range of all points in the initial protection set based on the remaining protection radius; and taking the union of the initial protection range and the actual protection range to obtain the final protection range.
[0008] Optionally, connect any two points in the initial point set to obtain connecting line segments, and integrate all line segments that do not cross the building outline into a line segment set.
[0009] Optionally, calculate the shortest path connecting all points in the initial protection set to the origin of the fire hydrant, where the path in the shortest path consists of line segments from the line segment set.
[0010] Optionally, calculate the remaining protection radius for all points in the initial protection set, using the following formula: ,in, For the remaining protection radius, To protect the radius, This is the shortest path.
[0011] Optionally, a protection circle is obtained by drawing circles around all points in the initial protection set whose remaining protection radius is greater than 0, with their corresponding remaining protection radii.
[0012] Optionally, all intersection points and contained points between the protected circle and the building outline are obtained, and all points among the intersection points and contained points that can be directly connected to the center of the protected circle are integrated into a protected set.
[0013] Optionally, all points in the protection set are sorted in a clockwise direction, any two adjacent points are taken as the two endpoints of an arc, and a sector is formed by connecting the center of the protection circle. All sectors that do not intersect with the building outline are integrated into a sector set. The union of the sector sets corresponding to all protection circles is taken to obtain the actual protection range.
[0014] This application employs the following steps: obtaining the fire hydrant origin and its protection radius; obtaining an initial protection range based on the protection radius, wherein the initial protection range is the area calculated with the fire hydrant origin as the center point and the protection radius as the radius; the fire hydrant origin being the location of the fire hydrant; obtaining all building outlines, all endpoints, and all edges; obtaining an initial protection set based on the initial protection range, wherein the initial protection set includes the endpoints within the initial protection range and the intersections of the edges intersecting with the initial protection range; obtaining an initial point set; calculating the remaining protection radius of all points in the initial protection set based on the initial point set, wherein the initial point set includes all points in the initial protection set and the fire hydrant origin; determining the true protection range of all points in the initial protection set; and taking the union of the initial protection range and the true protection range to obtain the final protection range. This solves the problem in related technologies where building entities obstruct the calculation of the protection range of fire protection facilities, thereby achieving the effect of accurately calculating the fire protection range of fire hydrants. Attached Figure Description
[0015] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in 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 the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating a method for calculating fire protection range according to an embodiment of this application;
[0017] Figure 2 This is a schematic diagram of the initial protection range of a fire hydrant;
[0018] Figure 3 This is a schematic diagram of the point set within the initial protection range of a fire hydrant;
[0019] Figure 4 This is a schematic diagram of the final protection range of a fire hydrant. Detailed Implementation
[0020] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0021] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover 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.
[0023] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0024] This embodiment provides a method for calculating the fire protection range that runs on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0025] Figure 1 This is a flowchart illustrating a method for calculating fire protection range according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:
[0026] This invention uses an indoor fire hydrant as an example to illustrate a specific implementation scheme for calculating the fire protection range of fire-fighting facilities, with the preferred conditions being:
[0027] 1. Fire hydrant blocks have been laid out in the project plan;
[0028] 2. It contains architectural components such as walls, and is represented by the outer contour of a closed polyline.
[0029] Step S101: Obtain the fire hydrant origin and the fire hydrant protection radius, and obtain the initial protection range based on the protection radius. The initial protection range is the area calculated with the fire hydrant origin as the center point and the protection radius as the radius. The fire hydrant origin is the location of the fire hydrant.
[0030] Specifically, refer to Figure 2 First, determine the center point of the protection zone of the fire hydrant block (denoted as C1). To accommodate concealed fire hydrants, this point is usually located a distance directly in front of the center point of the fire hydrant block, outside the wall area. Define the fire protection radius as R, and determine the initial protection zone S1 according to this radius. Determine the initial protection area with the origin as the center and the radius as the protection radius, clarifying the basic boundary of the protection zone, and providing an initial basis for subsequent accurate calculations based on the actual building conditions.
[0031] Step S102: Obtain all building outlines, all endpoints, and all edges. Obtain the initial protection set based on the initial protection range. The initial protection set includes the endpoints within the initial protection range and the intersections of the edges that intersect with the initial protection range.
[0032] Specifically, refer to Figure 3 The process involves collecting all building outlines, endpoints, and edges. From the collected endpoints, all building entity edges located within the initial protection zone are identified. From the collected edges, all building entity outlines intersecting the initial protection zone are identified, and the points where these outlines intersect the initial protection zone circle are collected. Internal endpoints and intersections are merged to obtain the initial protection set for fire hydrants. Endpoints within the initial protection zone and intersections with edges intersecting the zone are then selected to form the initial protection set, which is used to lock in effective locations for subsequent path and radius calculations.
[0033] Step S103: Obtain the initial point set, and calculate the remaining protection radius of all points in the initial protection set based on the initial point set. The initial point set includes all points in the initial protection set and the origin of the fire hydrant.
[0034] Specifically, the initial electrical set includes one more fire hydrant origin point than the initial protection set. By integrating the points in the initial protection set with the fire hydrant origin point to form the initial point set, the remaining protection radius of each point is calculated, the actual protection potential of each point is quantified, and this supports the determination of the subsequent true protection range.
[0035] Step S104: Determine the actual protection range of all points in the initial protection set based on the remaining protection radius, and take the union of the initial protection range and the actual protection range to obtain the final protection range.
[0036] Specifically, refer to Figure 4The actual protection ranges of any point in the initial point set are combined, and the union of the initial protection range and the actual protection range is taken to obtain the final protection range. After determining the actual protection range of each point, the union of this union with the initial range is taken, and the basic range and the effective protection area of each point are integrated to finally obtain a precise and comprehensive fire protection range.
[0037] In an alternative embodiment, connecting any two points in the initial point set to obtain connecting line segments, and integrating all line segments that do not cross the building outline into a line segment set.
[0038] Specifically, a straight line segment is generated by repeatedly connecting any two points in the initial point set. Line segments that cross any building outline are removed, and all straight line segments that do not cross building outlines are retained, denoted as the line segment set. This solves the problem of the initial point set not being filtered, potentially containing invalid line segments that cross building outlines, which affects the accuracy of subsequent path calculations. It filters out valid line segments that do not cross building outlines, providing a reliable basis for shortest path calculation and ensuring the accuracy of subsequent radius calculations.
[0039] In an alternative embodiment, the shortest path connecting all points in the initial protection set to the origin of the fire hydrant is calculated, wherein the path in the shortest path consists of line segments from the line segment set.
[0040] Specifically, the shortest walking paths from all points in the initial protection set to the origin of the fire hydrant are calculated using the classic Dijkstra's shortest path algorithm. The endpoints in the input parameters are arbitrary points in the initial protection set, and the walking paths consist entirely of straight line segments from a set of line segments to ensure that the path does not cross the outline of any building entity. This addresses the problem of unclear paths from each point in the initial protection set to the origin of the fire hydrant, making it impossible to accurately calculate the actual reachable distance. It determines the shortest path composed of effective line segments, clarifies the actual reachable length of each point, and provides accurate parameters for calculating the remaining protection radius. By using a defined formula to calculate the remaining protection radius of each point, the protection range of each point is quantified, providing an operational basis for determining the subsequent actual protection range.
[0041] In an optional embodiment, the remaining protection radius of all points in the initial protection set is calculated using the following formula: ,in, For the remaining protection radius, To protect the radius, This is the shortest path.
[0042] In an optional embodiment, a protection circle is obtained by drawing circles around all points in the initial protection set whose remaining protection radius is greater than 0, with their corresponding remaining protection radii.
[0043] Specifically, iterate through all points in the initial point set whose remaining protection radius is greater than 0, and use that point as the center of a circle. Draw a protection circle for the radius. This solves the problem that relying solely on the initial range cannot reflect the actual protection capability of each point and that the protection range is not accurately defined. By drawing protection circles for points with remaining protection radii greater than 0, the actual coverage area of each point is initially clarified, thus improving the refinement of the protection range.
[0044] In one alternative embodiment, all intersection points and contained points between the protective circle and the building outline are obtained, and all points among the intersection points and contained points that can be directly connected to the center of the protective circle are integrated into a protective set.
[0045] Specifically, the protection circle intersects with the building outline to obtain all intersection points and contained points. All points that can be directly connected to the center of the protection circle are then filtered out. This addresses the issue of building obstruction within the protection circle and the inclusion of areas that are not actually covered in the protection area. By selecting effective points within the protection circle that can be directly connected to the center, obstructed areas are eliminated, thus improving the accuracy of the protection scope.
[0046] In one optional embodiment, all points in the protection set are sorted in a clockwise direction, any two adjacent points are taken as the two endpoints of an arc, and a sector is formed by connecting the center of the protection circle. All sectors that do not intersect with the building outline are integrated into a sector set. The union of the sector sets corresponding to all protection circles is taken to obtain the actual protection range.
[0047] Specifically, the protected set is traversed to obtain adjacent points. For each pair of adjacent points, a sector is formed with the center of the protected circle as its center point. If this sector does not intersect with the building outline, it is added to the sector set. The union of all sector sets is then taken to obtain the set with the center of the protected circle as its center point and the... To determine the true protection range of the protection radius, this method addresses the problem of disordered effective points within the protection circle and the inability to accurately define the true protectable area. By sorting the points, filtering effective sectors, and taking the union of the results, the true protectable area of each protection circle is clarified. Finally, by combining the initial range, a precise final protection range is obtained.
[0048] In actual engineering design, multiple fire hydrants are installed inside a building. Therefore, the protection ranges of these fire hydrants need to be combined to obtain the overall planar fire protection range inside the building. First, the actual protection range of each fire hydrant (denoted as A) is determined. i Add to set (denoted as S) A Then, handle each case separately:
[0049] 1. For certain buildings requiring single-bolt protection, it is necessary to include all protection ranges A in this set. i The components are merged to obtain the final overall internal plan protection area S of the building;
[0050] 2. For fire hydrants in certain buildings that require double-hydrant protection, it is necessary to first connect the S-type fire hydrant system. A The actual protection ranges of any two fire hydrants in the set are intersected by their areas, and the resulting intersection is added to a new set S. A2 Finally, this set S... A2 The final true protection range S is obtained by combining all the protection ranges in the set.
[0051] This invention effectively solves the problems of vague definition, lack of integration with actual building conditions, and insufficient accuracy in traditional calculations, resulting in significant overall technical benefits. It lays the foundation by clearly defining the initial protection range, screening effective points and line segments to eliminate invalid interference, and accurately calculating the shortest path and remaining protection radius to quantify the protection capability of each point. Then, through steps such as drawing protection circles, screening effective areas, and integrating sector sets, invalid areas such as building obstructions are eliminated. Finally, by taking the union of the sets, a precise and comprehensive final protection range is obtained, greatly improving the scientific nature and accuracy of fire protection range calculations. This provides a reliable basis for fire protection design and safety inspections, effectively avoiding fire hazards caused by inaccurate protection range definition.
[0052] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0053] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0054] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0055] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0056] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0057] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0058] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0059] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0060] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for calculating fire protection range, characterized in that, include: Obtain the origin of the fire hydrant and the protection radius of the fire hydrant. Based on the protection radius, obtain the initial protection range, wherein the initial protection range is the area calculated with the origin of the fire hydrant as the center point and the protection radius as the radius, and the origin of the fire hydrant is the location of the fire hydrant. Obtain all building outlines, all endpoints, and all edges; obtain an initial protection set based on the initial protection range, wherein the initial protection set includes the endpoints within the initial protection range and the intersections of the edges that intersect with the initial protection range; Obtain an initial point set, and calculate the remaining protection radius of all points in the initial protection set based on the initial point set, wherein the initial point set includes all points in the initial protection set and the origin of the fire hydrant; The actual protection range of all points in the initial protection set is determined based on the remaining protection radius. The final protection range is obtained by taking the union of the initial protection range and the actual protection range.
2. The method according to claim 1, characterized in that, Obtain an initial point set, and calculate the remaining protection radius of all points in the initial protection set based on the initial point set, including: Connect any two points in the initial point set to obtain connecting line segments, and integrate all line segments in the connecting line segments that do not cross the building outline into a line segment set.
3. The method according to claim 2, characterized in that, Obtain an initial point set, and calculate the remaining protection radius of all points in the initial protection set based on the initial point set, including: Calculate the shortest path connecting all points in the initial protection set to the origin of the fire hydrant, wherein the path in the shortest path is composed of line segments from the line segment set.
4. The method according to claim 3, characterized in that, Obtain an initial point set, and calculate the remaining protection radius of all points in the initial protection set based on the initial point set, including: Calculate the remaining protection radius of all points in the initial protection set using the following formula: ,in, The remaining protection radius, The protection radius is... This is the shortest path.
5. The method according to claim 1, characterized in that, Determine the actual protection range of all points in the initial protection set, and take the union of the initial protection range and the actual protection range to obtain the final protection range, including: Draw a circle around all points in the initial protection set whose remaining protection radius is greater than 0, and use their corresponding remaining protection radii to obtain the protection circle.
6. The method according to claim 5, characterized in that, Determine the actual protection range of all points in the initial protection set, and take the union of the initial protection range and the actual protection range to obtain the final protection range, including: Obtain all intersection points and contained points between the protective circle and the building outline, and integrate all intersection points and contained points that can be directly connected to the center of the protective circle to form a protection set.
7. The method according to claim 6, characterized in that, Determine the actual protection range of all points in the initial protection set, and take the union of the initial protection range and the actual protection range to obtain the final protection range, including: Sort all points in the protection set in a clockwise direction, take any two adjacent points as the two endpoints of an arc, and connect them with the center of the protection circle as the center point to form a sector. Integrate all sectors that do not intersect with the building outline into a sector set. The true protection range is obtained by taking the union of the sets of sectors corresponding to all the protection circles.