A multi-layer soil electromagnetic field high-precision modeling and grounding resistance measurement method and system

By combining the Wenner quadrupole method and a multi-layer soil electromagnetic field model with a subgroup optimization architecture, the problem of model distortion in substation grounding grid design was solved, achieving high-precision soil parameter inversion and safety verification under extreme conditions, thus improving the accuracy and efficiency of the design.

CN123136186APending Publication Date: 2026-11-20ECONOMIC RES INST OF STATE GRID GANSU ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611270115.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In the design of existing substation grounding grids, traditional methods are difficult to achieve high-precision soil stratum parameter inversion under complex geological conditions, resulting in model distortion, inability to adapt to extreme climate changes, and problems such as safety hazards and inaccurate engineering design.

Method used

The apparent resistivity of soil was measured using the Wenner quadrupole method. A multi-level horizontal soil electromagnetic field model was constructed. An optimization framework of discoverers, participants, and vigilants was combined to conduct global exploration, local fine excavation, and distortion prevention. A freeze-thaw temperature and humidity compensation factor with depth attenuation was introduced to establish a three-dimensional finite element model and calculate the power frequency grounding resistance under extreme conditions.

Benefits of technology

It improves the accuracy and adaptability of geological models, ensures the safety of grounding grids under extreme working conditions, avoids blind design and safety hazards, and enhances computational efficiency and engineering practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123136186A_ABST
    Figure CN123136186A_ABST
Patent Text Reader

Abstract

The application discloses a kind of multilayer soil electromagnetic field high-precision modeling and grounding resistance measurement method and system, belong to substation grounding grid design technical field.The Wenner four-pole method is first used to obtain the measured apparent resistivity sequence of target area and extreme meteorological parameters, and a multilayer horizontal soil electromagnetic field model is constructed.The sum of squares of apparent resistivity residuals is used as the objective optimization function, and the geophysical constraint boundary is set.The improved swarm intelligence optimization architecture is used, which is divided into discoverer, joiner and alarm, to sequentially execute global exploration, local fine digging and anti-distortion escape optimization, and output high-precision soil layering parameters.The soil resistivity under extreme conditions is corrected by introducing the freeze-thaw temperature and humidity compensation factor based on depth attenuation, and finally a three-dimensional finite element model is established to solve the power frequency grounding resistance.The application effectively solves the problem that the traditional inversion method is easy to fall into local optimum and the geological model is distorted, and is suitable for the design and safety verification of substation grounding grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of substation grounding grid design and grounding resistance measurement technology, and in particular to a high-precision modeling method and system for multi-layer soil electromagnetic field and grounding resistance measurement. Background Technology

[0002] Currently, substation grounding grid design often employs the Wenner four-pole method combined with conventional numerical algorithms to invert soil strata parameters. However, existing methods are mostly limited to pure mathematical fitting, rely on initial value settings, and lack distortion-proof physical boundary verification, resulting in the following prominent problems under complex layered geological conditions:

[0003] 1. Parameter inversion deviates from physical reality: Traditional algorithms are prone to getting trapped in local minima, making it impossible to quantitatively invert core physical quantities. This results in the calculated formation thickness and resistivity being inconsistent with the actual physical drilling, and the underlying model is distorted.

[0004] 2. Poor adaptability to complex working conditions: When faced with environmental disturbances or abnormally high resistivity strata, the lack of global exploration and anti-distortion escape mechanisms makes the established three-dimensional electromagnetic field physical boundary conditions prone to deviate from the actual working conditions, failing to provide accurate support for subsequent finite element analysis; at the same time, the soil geological models obtained by existing conventional methods are mostly static models, which do not take into account the dynamic effects of extreme climates such as seasonal freezing and drought on the resistivity of shallow soil, resulting in the final grounding grid design often failing to meet safety requirements under the worst working conditions.

[0005] 3. Inaccurate engineering guidance and economic assessment: Errors in the front-end geological model lead to distortions in the calculation of subsequent indicators such as power frequency grounding resistance. This not only easily leads to cost waste caused by blindly reducing resistance and excessively deep grounding electrodes, but may also leave behind potential power grid safety hazards due to overly optimistic performance assessments.

[0006] Therefore, there is an urgent need for a high-precision modeling method and system for multilayer soil electromagnetic fields and grounding resistance measurement to solve the existing technical problems. Summary of the Invention

[0007] The present invention aims to solve at least one of the technical problems existing in the prior art, and proposes a method and system for high-precision modeling of multilayer soil electromagnetic fields and measurement of grounding resistance.

[0008] In a first aspect, embodiments of the present invention provide a method for high-precision modeling of multilayer soil electromagnetic fields and measurement of grounding resistance, including:

[0009] S100. The apparent resistivity of the soil in the target area was measured using the Wenner quadrupole method to obtain the measured apparent resistivity sequence under different pole spacings, and the historical extreme meteorological parameters of the target area were collected simultaneously. Based on the measured apparent resistivity sequence, a multi-layer horizontal soil electromagnetic field model was constructed to determine the true resistivity and layer thickness parameters of each soil layer to be solved.

[0010] S200. Construct the sum of squared residuals between the measured apparent resistivity and the theoretical apparent resistivity as the objective optimization function. Based on geological survey experience, set the upper and lower limits of the actual resistivity and layer thickness of each soil layer as physical constraint boundaries. Initialize the optimization population within the physical constraint boundaries and divide the population into a discoverer subgroup that performs global exploration, a joiner subgroup that performs local fine mining, and a vigilant subgroup that performs distortion prevention and escape prevention.

[0011] S300. By using the discoverer subgroup to perform global optimization of the true soil resistivity and layer thickness within the physical constraint boundary, the parameter interval that minimizes the value of the objective optimization function is searched within the preset range parameter space.

[0012] S400. By incorporating a subgroup, local fine-tuning is performed within the optimal parameter range obtained through global optimization to approximate the true soil resistivity and layer thickness with high precision.

[0013] S500 monitors the fitting residuals of the optimization process through a vigilant subgroup. When the residuals fall into local minima, the soil parameters are forcibly perturbed and updated to escape the distorted geological model. After iterating until the convergence condition is met, the high-precision true resistivity and layer thickness parameters of each soil layer are output.

[0014] S600. Introduces seasonal freeze-thaw and temperature and humidity compensation factors based on depth attenuation to dynamically and safely correct the true resistivity of each soil layer under extreme climatic conditions; uses the corrected multi-layer soil parameters as boundary conditions to establish a three-dimensional finite element model of the substation grounding network, solves the spatial potential distribution, and calculates the power frequency grounding resistance under extreme conditions by combining the grounding short-circuit current.

[0015] Furthermore, the specific methods of S100 include:

[0016] The apparent resistivity of the ground surface in the target area of ​​the substation was measured using the Wenner four-electrode method, with four electrodes spaced at equal intervals. The formula for calculating the apparent resistivity of a single test shot, driven into the ground in a straight line, is as follows:

[0017]

[0018] In the formula, Test current is injected into the soil at both outer electrodes. The potential difference is between the two middle potential electrodes; the electrode spacing is adjusted accordingly. Multiple measurements were performed to obtain a sequence of measured apparent resistivity that varies with electrode spacing;

[0019] The historical extreme meteorological parameters collected synchronously include the extreme minimum temperature, the longest consecutive rainless days, and the maximum frost depth of the target area; an N-layer horizontal soil electromagnetic field model is constructed, and the parameters to be solved include the set of true resistivity values ​​of the n soil layers. Set of layer thicknesses with the preceding N-1 soil layers ,in For the first The true resistivity of the soil layer, For the first The thickness of the soil layer.

[0020] Furthermore, the specific method of S200 includes: using the sum of squared residuals between the measured apparent resistivity and the analytical theoretical apparent resistivity as the objective function for optimization, expressed as:

[0021]

[0022] In the formula, The total number of measurement points is , where the polar distance is . Theoretical apparent resistivity at time The calculation is based on the Stefanescu integral formula for multi-layered soils, and its mathematical model is as follows:

[0023]

[0024] In the formula, For the formation reflection kernel function, For a type I zero-order Bessel function, the optimization objective is to find the fit residual that satisfies the condition. The minimum combination of actual formation resistivity and thickness parameters.

[0025] Furthermore, in S300, the position update of the discoverer subgroup adopts a segmented strategy, specifically as follows:

[0026] The formula for the true resistivity of soil is:

[0027]

[0028] The formula for soil layer thickness is:

[0029]

[0030] In the formula, and They represent the first The first generation of individuals The actual resistivity or thickness of the soil layer; for A random number within a given range; This represents the maximum number of iterations. This is a warning value, and its range is [value range missing]. This reflects the degree of risk of distortion in the physical model of the current optimization environment or the extent of complex geological interference encountered; The safety threshold has a range of values. As a boundary criterion for judging whether the inversion process is reliable; when When this indicates that the current soil inversion environment is relatively safe, the algorithm performs a large-scale macroscopic parameter spatial exploration to find the globally optimal range of stratum thickness and resistivity; when When the algorithm encounters a complex geological boundary or is trapped in a local optimum, it indicates that the optimization process has encountered a warning. At this time, the algorithm switches to a random jump strategy to guide the soil parameters to jump out of the existing area.

[0031] Furthermore, in S400, the position update of the joiner subgroup adopts a segmented strategy, specifically as follows:

[0032] The precise excavation formula for the true resistivity of the soil is:

[0033]

[0034] The formula for precise excavation based on soil layer thickness is as follows:

[0035]

[0036] In the formula, and The resistivity and thickness are the optimal formation parameter vectors that minimize the current residual. and These are the physical quantities in the global worst-case formation parameter vector; For a matrix whose elements are 1 or -1, satisfying .

[0037] Furthermore, in S500, the anti-distortion escape update formula for the vigilant subgroup is:

[0038] The escape formula for the true resistivity of soil is:

[0039]

[0040] The escape formula for soil layer thickness is:

[0041]

[0042] In the formula, These are the step size control parameters; This represents the fitting residual for the current apparent resistivity; This represents the current global maximum residual. To prevent extremely small constants with zero denominators, the algorithm is forced to independently jump out of the distorted minimum resistivity or thickness stratum model. When the algorithm reaches the maximum number of iterations, it stops the optimization and outputs the high-precision true soil resistivity and stratum thickness with the smallest residual at this time.

[0043] Furthermore, the specific methods of S600 include:

[0044] Construct a seasonal freeze-thaw and temperature / humidity compensation factor based on depth attenuation, the first The formula for calculating the corrected resistivity of the soil layer under extreme working conditions is as follows:

[0045]

[0046] In the formula, The first result obtained from the inversion The true resistivity of the layer under normal conditions; As a deep attenuation compensation factor; For the first The central burial depth of the soil layer; among which, The expression is:

[0047]

[0048] In the formula, This is the correction factor for the maximum freeze-thaw or drought on the surface, set based on historical extreme meteorological parameters of the target area. This is the environmental impact depth attenuation coefficient, and its value is inversely proportional to the local maximum permafrost depth.

[0049] Furthermore, the specific methods of S600 also include: using the corrected multi-layer soil resistivity parameters as boundary conditions to establish a three-dimensional finite element numerical model of the substation grounding grid, and solving the field Poisson equation based on Maxwell's electromagnetic field theory.

[0050]

[0051] In the formula, This is the corrected spatial distribution of the true resistivity of non-uniform multilayer soil. The three-dimensional potential gradient distribution across the entire field. To calculate the current injection density for a single-phase ground fault, the potential distribution across the entire field is obtained. Then, the maximum potential rise of the grounding grid is extracted, and combined with the short-circuit current into the ground, the power frequency grounding resistance under extreme conditions is calculated.

[0052] Secondly, this invention also discloses a high-precision modeling and grounding resistance measurement system for multilayer soil electromagnetic fields, comprising: a data acquisition and model building module, an objective function construction and population initialization module, a global exploration module for discoverers, a local fine-tuning module for participants, a distortion prevention and escape module for vigilants, and an extreme condition correction and grounding resistance calculation module; wherein:

[0053] The data acquisition and model building module is used to measure the apparent resistivity of the soil in the target area using the Wenner quadrupole method, obtain the measured apparent resistivity sequence under different pole distances, and simultaneously collect historical extreme meteorological parameters of the target area; based on the measured apparent resistivity sequence, a multi-layer horizontal soil electromagnetic field model is constructed to determine the true resistivity and layer thickness parameters of each soil layer to be solved.

[0054] The objective function construction and population initialization module is used to construct the sum of squared residuals between the measured apparent resistivity and the theoretical apparent resistivity as the objective optimization function. Based on geological survey experience, the upper and lower limits of the values ​​of the actual resistivity and layer thickness of each soil layer are set as physical constraint boundaries. Within the physical constraint boundaries, the optimization population is initialized and divided into a discoverer subgroup that performs global exploration, a joiner subgroup that performs local fine excavation, and a vigilant subgroup that performs distortion prevention and escape prevention.

[0055] The global exploration module of the discoverer is used to perform global optimization of the true resistivity and layer thickness of the soil within the physical constraint boundary by using the discoverer subgroup, and to search for the parameter interval that minimizes the value of the objective optimization function within the preset range parameter space.

[0056] The joiner local fine-tuning module is used to perform local fine-tuning within the optimal parameter range obtained by global optimization through the joiner subgroup, and to make high-precision fine-tuning approximation of the true soil resistivity and layer thickness.

[0057] The Vigilant Anti-Distortion Escape Module is used to monitor the fitting residuals of the optimization process through a vigilant subgroup. When the residuals get stuck in a local minimum, the soil parameters are forcibly perturbed and updated to escape the distorted geological model. After iterating until the convergence condition is met, it outputs high-precision true resistivity and layer thickness parameters of each soil layer.

[0058] The grounding resistance calculation module is used to introduce seasonal freeze-thaw and temperature and humidity compensation factors based on depth attenuation to dynamically and safely correct the output soil resistivity of each layer under extreme climatic conditions. The corrected multi-layer soil parameters are used as boundary conditions to establish a three-dimensional finite element model of the substation grounding network, solve the spatial potential distribution, and calculate the power frequency grounding resistance under extreme conditions by combining the grounding short-circuit current.

[0059] Thirdly, the present invention also discloses an electronic device, comprising:

[0060] One or more processors;

[0061] Memory, used to store one or more programs;

[0062] When the one or more programs are executed by the one or more processors, the one or more processors implement the method.

[0063] This invention discloses a high-precision modeling method and system for multi-layer soil electromagnetic fields and grounding resistance measurement, belonging to the field of substation grounding grid design technology. First, the invention uses the Wenner four-pole method to obtain the measured apparent resistivity sequence and extreme meteorological parameters of the target area, constructing a multi-layer horizontal soil electromagnetic field model. Using the sum of squared residuals of apparent resistivity as the objective optimization function, and setting geological and physical constraint boundaries, an improved swarm intelligent optimization architecture is adopted, dividing the model into discoverers, participants, and watchdogs. Global exploration, local fine excavation, and distortion-preventing escape optimization are performed sequentially to output high-precision soil stratification parameters. A freeze-thaw temperature and humidity compensation factor based on depth attenuation is introduced to correct the soil resistivity under extreme conditions. Finally, a three-dimensional finite element model is established to solve for the power frequency grounding resistance. This invention effectively solves the problems of traditional inversion methods easily getting trapped in local optima and geological model distortion, and is suitable for the design and safety verification of substation grounding grids.

[0064] Compared with the prior art, the present invention has the following beneficial effects:

[0065] 1. High inversion accuracy and strong geological model fidelity. This invention adopts a three-category subgroup collaborative optimization architecture, combining global exploration with local fine mining, and is equipped with a watchdog anti-distortion escape mechanism, which effectively overcomes the defect of traditional algorithms that are prone to getting trapped in local minima. The inversion results closely match the real geological conditions, and the model accuracy is significantly improved.

[0066] 2. Strong adaptability to extreme operating conditions and sufficient safety margin. This invention introduces a meteorological compensation factor based on depth attenuation to quantitatively correct soil resistivity under seasonal freeze-thaw and extreme drought conditions. It calculates grounding resistance based on the worst operating conditions, avoiding safety hazards caused by static models and ensuring the safe operation of the grounding grid under extreme weather conditions.

[0067] 3. Clear physical constraints and strong engineering applicability. This invention sets physical boundaries for parameters based on geological survey experience. The inversion results conform to actual geological laws and can be directly used for the design, verification, and renovation of substation grounding grids. This avoids cost waste caused by blindly reducing resistance and also prevents safety risks caused by overly optimistic assessments.

[0068] 4. Fast convergence speed and high computational efficiency. The collaborative optimization architecture of this invention combines global search capability with local convergence speed. It can usually reach the target accuracy in about 20 iterations. Its computational efficiency is better than traditional genetic algorithms and particle swarm optimization algorithms, and it is highly convenient for engineering applications. Attached Figure Description

[0069] Figure 1 A flowchart illustrating a high-precision modeling method for multilayer soil electromagnetic fields and a grounding resistance measurement method provided in an embodiment of the present invention;

[0070] Figure 2 A schematic diagram of soil stratification provided for an embodiment of the present invention;

[0071] Figure 3 A diagram illustrating the three-dimensional finite element mapping architecture of multilayer soil electromagnetic fields provided in this embodiment of the invention;

[0072] Figure 4 This is a convergence curve of the multi-layer soil parameter inversion residuals provided in an embodiment of the present invention;

[0073] Figure 5 A structural block diagram of a high-precision modeling system for multilayer soil electromagnetic fields and a grounding resistance measurement system provided in an embodiment of the present invention;

[0074] Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0075] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0076] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.

[0077] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0078] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0079] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.

[0080] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual.

[0081] To address at least one of the technical problems existing in the aforementioned related technologies, the present invention provides a method and system for high-precision modeling of multilayer soil electromagnetic fields and measurement of grounding resistance.

[0082] This embodiment discloses a high-precision modeling method for multilayer soil electromagnetic fields and a method for measuring grounding resistance, characterized by comprising:

[0083] S100. The apparent resistivity of the soil in the target area was measured using the Wenner quadrupole method to obtain the measured apparent resistivity sequence under different pole spacings, and the historical extreme meteorological parameters of the target area were collected simultaneously. Based on the measured apparent resistivity sequence, a multi-layer horizontal soil electromagnetic field model was constructed to determine the true resistivity and layer thickness parameters of each soil layer to be solved.

[0084] The specific method of S100 in this embodiment includes:

[0085] The apparent resistivity of the ground surface in the target area of ​​the substation was measured using the Wenner four-electrode method, with four electrodes spaced at equal intervals. The formula for calculating the apparent resistivity of a single test shot, driven into the ground in a straight line, is as follows:

[0086]

[0087] In the formula, Test current is injected into the soil at both outer electrodes. The potential difference is between the two middle potential electrodes; the electrode spacing is adjusted accordingly. Multiple measurements were performed to obtain a sequence of measured apparent resistivity that varies with electrode spacing;

[0088] The historical extreme meteorological parameters collected simultaneously include the extreme minimum temperature, the longest consecutive rainless days, and the maximum depth of permafrost in the target area; such as Figure 2 An electromagnetic field model of N-layer horizontal soil is constructed, and the parameters to be solved include the set of true resistivity of the n-layer soil. Set of layer thicknesses with the preceding N-1 soil layers ,in For the first The true resistivity of the soil layer, For the first The thickness of the soil layer.

[0089] S200. Construct the sum of squared residuals between the measured apparent resistivity and the theoretical apparent resistivity as the objective optimization function. Based on geological survey experience, set the upper and lower limits of the actual resistivity and layer thickness of each soil layer as physical constraint boundaries. Initialize the optimization population within the physical constraint boundaries and divide the population into a discoverer subgroup that performs global exploration, a joiner subgroup that performs local fine mining, and a vigilant subgroup that performs distortion prevention and escape prevention.

[0090] The specific method of S200 in this embodiment includes: using the sum of squared residuals between the measured apparent resistivity and the analytical theoretical apparent resistivity as the objective function for optimization, expressed as:

[0091]

[0092] In the formula, The total number of measurement points is , where the polar distance is . Theoretical apparent resistivity at time The calculation is based on the Stefanescu integral formula for multi-layered soils, and its mathematical model is as follows:

[0093]

[0094] In the formula, For the formation reflection kernel function, For a type I zero-order Bessel function, the optimization objective is to find the fit residual that satisfies the condition. The minimum combination of actual formation resistivity and thickness parameters.

[0095] For example, based on geological survey experience of the target area, upper and lower limits of the actual resistivity and layer thickness of each soil layer are set as physical constraint boundaries. For instance, the resistivity range of the surface soil is 50~2000. The layer thickness ranges from 0.5 to 15 meters to ensure that the optimization process remains within a reasonable geological range and avoids physically distorted solutions. Within the constraint boundaries, individuals in the population are initialized, with each individual corresponding to a set of soil resistivity and thickness parameter solutions. The population is divided into three subgroups: discoverers (60%-70%), responsible for global large-scale search; joiners (20%-30%), responsible for local high-precision approximation; and vigilant individuals (approximately 10%), responsible for monitoring local optima and triggering escape mechanisms.

[0096] S300. By using the discoverer subgroup to perform global optimization of the true soil resistivity and layer thickness within the physical constraint boundary, the parameter interval that minimizes the value of the objective optimization function is searched within the preset range parameter space.

[0097] In this embodiment S300, the position update of the discoverer subgroup adopts a segmented strategy, specifically as follows:

[0098] The formula for the true resistivity of soil is:

[0099]

[0100] The formula for soil layer thickness is:

[0101]

[0102] In the formula, and They represent the first The first generation of individuals The actual resistivity or thickness of the soil layer; for A random number within a given range; This represents the maximum number of iterations. This is a warning value, and its range is [value range missing]. This reflects the degree of risk of distortion in the physical model of the current optimization environment or the extent of complex geological interference encountered; The safety threshold has a range of values. As a boundary criterion for judging whether the inversion process is reliable; when When this indicates that the current soil inversion environment is relatively safe, the algorithm performs a large-scale macroscopic parameter spatial exploration to find the globally optimal range of stratum thickness and resistivity; when When the algorithm encounters a complex geological boundary or is trapped in a local optimum, it indicates that the optimization process has encountered a warning. At this time, the algorithm switches to a random jump strategy to guide the soil parameters to jump out of the existing area.

[0103] Through this implementation S300, when the warning value... Less than the safety threshold When the warning value is greater than or equal to the safety threshold, it indicates that the current optimization environment is stable and there is no risk of local convergence. The algorithm performs a large-scale macroscopic exploration and gradually shrinks the search step size as the number of iterations increases, searching for the optimal solution interval in the global parameter space. When the warning value is greater than or equal to the safety threshold, it indicates that there may be a local optimum trap in the current area. The algorithm switches to a random jump strategy to make individuals jump out of the current area and avoid falling into local minima.

[0104] S400. By incorporating a subgroup, local fine-tuning is performed within the optimal parameter range obtained through global optimization to approximate the true soil resistivity and layer thickness with high precision.

[0105] In S400 of this embodiment, the position update of the joiner subgroup adopts a segmented strategy, specifically:

[0106] The precise excavation formula for the true resistivity of the soil is:

[0107]

[0108] The formula for precise excavation based on soil layer thickness is as follows:

[0109]

[0110] In the formula, and The resistivity and thickness are the optimal formation parameter vectors that minimize the current residual. and These are the physical quantities in the global worst-case formation parameter vector; For a matrix whose elements are 1 or -1, satisfying .

[0111] Specifically, for the poorer individuals in the lower half of the fitness ranking, they directly leap towards the global optimum and quickly converge to the high-quality solution region; for the better individuals in the upper half of the fitness ranking, a small-scale high-precision local search is performed near the global optimum to achieve fine-tuning of parameters and improve the accuracy of the solution.

[0112] S500 monitors the fitting residuals of the optimization process through a vigilant subgroup. When the residuals fall into local minima, the soil parameters are forcibly perturbed and updated to escape the distorted geological model. After iterating until the convergence condition is met, the high-precision true resistivity and layer thickness parameters of each soil layer are output.

[0113] In S500 of this embodiment, the anti-distortion escape update formula for the vigilant subgroup is:

[0114] The escape formula for the true resistivity of soil is:

[0115]

[0116] The escape formula for soil layer thickness is:

[0117]

[0118] In the formula, These are the step size control parameters; This represents the fitting residual for the current apparent resistivity; This represents the current global maximum residual. To prevent extremely small constants with zero denominators, the algorithm is forced to independently jump out of the distorted minimum resistivity or thickness stratum model. When the algorithm reaches the maximum number of iterations, it stops the optimization and outputs the high-precision true soil resistivity and stratum thickness with the smallest residual at this time.

[0119] Specifically, when the individual residual is greater than the global optimal residual, the perturbation is contracted towards the global optimum to accelerate the convergence speed; when the individual residual equals the global optimal residual, i.e., the population is trapped in a local minimum, an adaptive step-size forced perturbation is executed to make individuals escape the current local optimum region and avoid obtaining a distorted geological model. When the number of iterations reaches the maximum value or the residual converges to the set accuracy threshold, the optimization stops, and the soil parameter with the smallest residual is output as the final inversion result.

[0120] S600. Introduces seasonal freeze-thaw and temperature and humidity compensation factors based on depth attenuation to dynamically and safely correct the true resistivity of each soil layer under extreme climatic conditions; uses the corrected multi-layer soil parameters as boundary conditions to establish a three-dimensional finite element model of the substation grounding network, solves the spatial potential distribution, and calculates the power frequency grounding resistance under extreme conditions by combining the grounding short-circuit current.

[0121] The specific method of S600 in this embodiment includes:

[0122] Construct a seasonal freeze-thaw and temperature / humidity compensation factor based on depth attenuation, the first The formula for calculating the corrected resistivity of the soil layer under extreme working conditions is as follows:

[0123]

[0124] In the formula, The first result obtained from the inversion The true resistivity of the layer under normal conditions; As a deep attenuation compensation factor; For the first The central burial depth of the soil layer; among which, The expression is:

[0125]

[0126] In the formula, This is the correction factor for the maximum freeze-thaw or drought on the surface, set based on historical extreme meteorological parameters of the target area. This is the environmental impact depth attenuation coefficient, and its value is inversely proportional to the local maximum permafrost depth.

[0127] like Figure 3 Using the corrected multi-layer soil resistivity parameters as boundary conditions, a three-dimensional finite element numerical model of the substation grounding grid was established, and the Poisson equation for the field domain was solved based on Maxwell's electromagnetic field theory.

[0128]

[0129] In the formula, This is the corrected spatial distribution of the true resistivity of non-uniform multilayer soil. The three-dimensional potential gradient distribution across the entire field. To determine the single-phase ground fault current injection density, after obtaining the overall potential distribution, the maximum potential rise of the grounding grid is extracted. Combined with ground short-circuit current The power frequency grounding resistance under extreme operating conditions was calculated. This result can be directly used for the safety verification and design optimization of the grounding grid.

[0130] To better understand this embodiment, the following description uses a high-precision modeling of multi-layer soil electromagnetic fields and calculation of grounding resistance in a target area of ​​a substation as an example. It simulates the physical field to obtain measured data and uses the Wenner four-electrode method to measure the apparent resistivity of the target area. The selected field electrode spacing sequence is [1,2,3,4,5,6,8,10,15,20]. The corresponding apparent resistivity sequence measured on-site is [850.5, 780.2, 690.4, 610.8, 540.3, 480.6, 390.1, 320.5, 240.8, 195.4]. Simultaneously, meteorological data for the target area is acquired, and a maximum freeze-thaw correction factor for the surface area is set. The environmental impact depth attenuation coefficient is 2.0. It is 0.5.

[0131] Then, constraints are applied to the initial sparrow population and physical boundaries. The dimension of the soil stratum parameter vector to be determined is set to 3 (i.e., including the resistivity of the first surface layer ρ1, the resistivity of the second bottom layer ρ2, and the thickness of the first soil cover h1). The physical lower bound of the search is set to [50, 50, 0.5], and the physical upper bound is set to [2000, 2000, 15]. The maximum number of iterations is set to 100, the population size to 30, and the target convergence accuracy (residual) to 0.01.

[0132] The Sparrow Algorithm is activated to find the underlying geological model with minimal residuals. The algorithm sequentially executes global exploration, local fine-tuning, and a distortion-prevention escape mechanism. The SSA residual convergence curve (distortion-prevention verification) is shown. Figure 4 As shown, after approximately 20 iterations, the fitting residuals exhibit a rapid, step-like decrease, successfully escaping local minima and converging to within the target accuracy of 0.01. Substituting the output high-precision inversion parameters into the forward model, the extracted high-precision inversion curves show a high degree of agreement with the measured scatter plots, verifying the high accuracy of the inverted geological model. At this point, the output high-precision stratigraphic parameters are: the first layer's normal resistivity is... 794.74 The second layer of normal resistivity It is 187.56 The thickness of the first layer of soil cover It is 4.07m.

[0133] Subsequently, dynamic safety corrections were performed under extreme weather conditions. The center burial depth was determined from the thickness of the first layer. The depth is 2.035m. Substituting this into the depth attenuation compensation formula, the compensation factor is calculated. The value is 1.3615. Multiplying the first-level normal resistivity by this compensation factor yields the corrected first-level severe operating condition. It is 1082.04. (Increased by approximately 36.1% due to meteorological conditions); deep soil layers are minimally affected by surface climate, and the resistivity of the second layer under harsh conditions... It remains at 187.56. .

[0134] Finally, using the dynamically corrected geological parameters under severe operating conditions as physical boundary conditions, a three-dimensional numerical model was established to solve the field Poisson equation. The three-dimensional computational domain was set to a grid size of 15×15×15, with a horizontal length of 60m and a depth of 30m. A single-phase ground fault current of 1000A was injected at the center node of the ground surface. By assembling the three-dimensional Poisson equation and solving a large-scale sparse linear system of equations, the three-dimensional potential distribution across the entire field was obtained. This allowed the maximum potential rise of the substation grounding grid under severe operating conditions to be extracted as 1450.23V, and subsequently, the actual power frequency grounding resistance under the most severe operating conditions of the substation was accurately calculated to be 1.4502V. The results show that without introducing dynamic climate correction, the original static grounding resistance is only 1.21 kJ / m². There are obvious hidden dangers.

[0135] Based on the same inventive concept, embodiments of the present invention also provide a high-precision modeling system for multilayer soil electromagnetic fields and a system for measuring grounding resistance, such as... Figure 5It includes: a data acquisition and model building module, an objective function construction and population initialization module, a global exploration module for discoverers, a local detailed exploration module for participants, a distortion prevention and escape module for vigilants, and an extreme working condition correction and grounding resistance calculation module; among which:

[0136] The data acquisition and model building module is used to measure the apparent resistivity of the soil in the target area using the Wenner quadrupole method, obtain the measured apparent resistivity sequence under different pole distances, and simultaneously collect historical extreme meteorological parameters of the target area; based on the measured apparent resistivity sequence, a multi-layer horizontal soil electromagnetic field model is constructed to determine the true resistivity and layer thickness parameters of each soil layer to be solved.

[0137] The objective function construction and population initialization module is used to construct the sum of squared residuals between the measured apparent resistivity and the theoretical apparent resistivity as the objective optimization function. Based on geological survey experience, the upper and lower limits of the values ​​of the actual resistivity and layer thickness of each soil layer are set as physical constraint boundaries. Within the physical constraint boundaries, the optimization population is initialized and divided into a discoverer subgroup that performs global exploration, a joiner subgroup that performs local fine excavation, and a vigilant subgroup that performs distortion prevention and escape prevention.

[0138] The global exploration module of the discoverer is used to perform global optimization of the true resistivity and layer thickness of the soil within the physical constraint boundary by using the discoverer subgroup, and to search for the parameter interval that minimizes the value of the objective optimization function within the preset range parameter space.

[0139] The joiner local fine-tuning module is used to perform local fine-tuning within the optimal parameter range obtained by global optimization through the joiner subgroup, and to make high-precision fine-tuning approximation of the true soil resistivity and layer thickness.

[0140] The Vigilant Anti-Distortion Escape Module is used to monitor the fitting residuals of the optimization process through a vigilant subgroup. When the residuals get stuck in a local minimum, the soil parameters are forcibly perturbed and updated to escape the distorted geological model. After iterating until the convergence condition is met, it outputs high-precision true resistivity and layer thickness parameters of each soil layer.

[0141] The grounding resistance calculation module is used to introduce seasonal freeze-thaw and temperature and humidity compensation factors based on depth attenuation to dynamically and safely correct the output soil resistivity of each layer under extreme climatic conditions. The corrected multi-layer soil parameters are used as boundary conditions to establish a three-dimensional finite element model of the substation grounding network, solve the spatial potential distribution, and calculate the power frequency grounding resistance under extreme conditions by combining the grounding short-circuit current.

[0142] The specific working methods of the data acquisition and model building module, the objective function construction and population initialization module, the discoverer global exploration module, the joiner local fine excavation module, the vigilant distortion prevention and escape module, and the extreme working condition correction and grounding resistance calculation module have been described in detail in the above-mentioned method for high-precision modeling of multilayer soil electromagnetic fields and grounding resistance measurement, and will not be repeated here.

[0143] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 6 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement any of the methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.

[0144] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).

[0145] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.

[0146] In some embodiments, the one or more processors 101 include a field-programmable gate array.

[0147] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described in the above embodiments. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0148] This invention also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the above-described method.

[0149] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).

[0150] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0151] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0152] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.

[0153] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0154] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should 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-readable program instructions.

[0155] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0156] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0158] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.

Claims

1. A method for high-precision modeling of multilayer soil electromagnetic fields and measurement of grounding resistance, characterized in that, include: S100. The apparent resistivity of the soil in the target area was measured using the Wenner quadrupole method to obtain the measured apparent resistivity sequence under different pole spacings, and the historical extreme meteorological parameters of the target area were collected simultaneously. Based on the measured apparent resistivity sequence, a multi-layer horizontal soil electromagnetic field model was constructed to determine the true resistivity and layer thickness parameters of each soil layer to be solved. S200. Construct the sum of squared residuals between the measured apparent resistivity and the theoretical apparent resistivity as the objective optimization function. Based on geological survey experience, set the upper and lower limits of the actual resistivity and layer thickness of each soil layer as physical constraint boundaries. Initialize the optimization population within the physical constraint boundaries and divide the population into a discoverer subgroup that performs global exploration, a joiner subgroup that performs local fine mining, and a vigilant subgroup that performs distortion prevention and escape prevention. S300. By using the discoverer subgroup to perform global optimization of the true soil resistivity and layer thickness within the physical constraint boundary, the parameter interval that minimizes the value of the objective optimization function is searched within the preset range parameter space. S400. By incorporating a subgroup, local fine-tuning is performed within the optimal parameter range obtained through global optimization to approximate the true soil resistivity and layer thickness with high precision. S500 monitors the fitting residuals of the optimization process through a vigilant subgroup. When the residuals fall into local minima, the soil parameters are forcibly perturbed and updated to escape the distorted geological model. After iterating until the convergence condition is met, the high-precision true resistivity and layer thickness parameters of each soil layer are output. S600 introduces a seasonal freeze-thaw and temperature and humidity compensation factor based on depth attenuation to dynamically and safely correct the output soil resistivity of each layer under extreme climatic conditions. A three-dimensional finite element model of the substation grounding grid was established using the corrected multi-layer soil parameters as boundary conditions. The spatial potential distribution was solved, and the power frequency grounding resistance under extreme conditions was calculated by combining the grounding short-circuit current.

2. The method according to claim 1, characterized in that, The specific methods of S100 include: The apparent resistivity of the ground surface in the target area of ​​the substation was measured using the Wenner four-electrode method, with four electrodes spaced at equal intervals. The formula for calculating the apparent resistivity of a single test shot, driven into the ground in a straight line, is as follows: In the formula, Test current is injected into the soil at both outer electrodes. The potential difference is between the two middle potential electrodes; the electrode spacing is adjusted accordingly. Multiple measurements were performed to obtain a sequence of measured apparent resistivity that varies with electrode spacing; The historical extreme meteorological parameters collected synchronously include the extreme minimum temperature, the longest consecutive rainless days, and the maximum frost depth of the target area; an N-layer horizontal soil electromagnetic field model is constructed, and the parameters to be solved include the set of true resistivity values ​​of the n soil layers. Set of layer thicknesses with the preceding N-1 soil layers ,in For the first The true resistivity of the soil layer, For the first The thickness of the soil layer.

3. The method according to claim 1, characterized in that, The specific method of S200 includes: using the sum of squared residuals between the measured apparent resistivity and the analytical theoretical apparent resistivity as the objective function for optimization, expressed as: In the formula, The total number of measurement points is , where the polar distance is . Theoretical apparent resistivity at time The calculation is based on the Stefanescu integral formula for multi-layered soils, and its mathematical model is as follows: In the formula, For the formation reflection kernel function, For a type I zero-order Bessel function, the optimization objective is to find the fit residual that satisfies the condition. The minimum combination of actual formation resistivity and thickness parameters.

4. The method according to claim 1, characterized in that, In S300, the position update of the discoverer subgroup adopts a segmented strategy, specifically: The formula for the true resistivity of soil is: The formula for soil layer thickness is: In the formula, and They represent the first The first generation of individuals The actual resistivity or thickness of the soil layer; for A random number within a given range; This represents the maximum number of iterations. This is a warning value, and its range is [value range missing]. This reflects the degree of risk of distortion in the physical model of the current optimization environment or the extent of complex geological interference encountered; The safety threshold has a range of values. As a boundary criterion for judging whether the inversion process is reliable; when When this indicates that the current soil inversion environment is relatively safe, the algorithm performs a large-scale macroscopic parameter spatial exploration to find the globally optimal range of stratum thickness and resistivity; when When the algorithm encounters a complex geological boundary or is trapped in a local optimum, it indicates that the optimization process has encountered a warning. At this time, the algorithm switches to a random jump strategy to guide the soil parameters to jump out of the existing area.

5. The method according to claim 1, characterized in that, In S400, the position update of the joiner subgroup adopts a segmented strategy, specifically: The precise excavation formula for the true resistivity of the soil is: The formula for precise excavation based on soil layer thickness is as follows: In the formula, and The resistivity and thickness are the optimal formation parameter vectors that minimize the current residual. and These are the physical quantities in the global worst-case formation parameter vector; For a matrix whose elements are 1 or -1, satisfying .

6. The method according to claim 1, characterized in that, In S500, the anti-distortion escape update formula for the vigilant subgroup is: The escape formula for the true resistivity of soil is: The escape formula for soil layer thickness is: In the formula, These are the step size control parameters; This represents the fitting residual for the current apparent resistivity; This represents the current global maximum residual. To prevent extremely small constants with zero denominators, the algorithm is forced to independently jump out of the distorted minimum resistivity or thickness stratum model. When the algorithm reaches the maximum number of iterations, it stops the optimization and outputs the high-precision true soil resistivity and stratum thickness with the smallest residual at this time.

7. The method according to claim 1, characterized in that, The specific methods of S600 include: Construct a seasonal freeze-thaw and temperature / humidity compensation factor based on depth attenuation, the first The formula for calculating the corrected resistivity of the soil layer under extreme working conditions is as follows: In the formula, The first result obtained from the inversion The true resistivity of the layer under normal conditions; As a deep attenuation compensation factor; For the first The central burial depth of the soil layer; among which, The expression is: In the formula, This is the correction factor for the maximum freeze-thaw or drought on the surface, set based on historical extreme meteorological parameters of the target area. This is the environmental impact depth attenuation coefficient, and its value is inversely proportional to the local maximum permafrost depth.

8. The method according to claim 7, characterized in that, The specific methods of S600 also include: using the corrected multi-layer soil resistivity parameters as boundary conditions to establish a three-dimensional finite element numerical model of the substation grounding grid, and solving the field Poisson equation based on Maxwell's electromagnetic field theory. In the formula, This is the corrected spatial distribution of the true resistivity of non-uniform multilayer soil. The three-dimensional potential gradient distribution across the entire field. To calculate the current injection density for a single-phase ground fault, the potential distribution across the entire field is obtained. Then, the maximum potential rise of the grounding grid is extracted, and combined with the short-circuit current into the ground, the power frequency grounding resistance under extreme conditions is calculated.

9. A high-precision modeling system for multilayer soil electromagnetic fields and a system for measuring grounding resistance, employing any one of the methods described in claims 1-8, characterized in that, include: The module comprises: a data acquisition and model building module, an objective function construction and population initialization module, a global exploration module for discoverers, a local detailed exploration module for participants, a distortion prevention and escape module for vigilants, and an extreme condition correction and grounding resistance calculation module; among which: The data acquisition and model building module is used to measure the apparent resistivity of the soil in the target area using the Wenner quadrupole method, obtain the measured apparent resistivity sequence under different pole distances, and simultaneously collect historical extreme meteorological parameters of the target area; based on the measured apparent resistivity sequence, a multi-layer horizontal soil electromagnetic field model is constructed to determine the true resistivity and layer thickness parameters of each soil layer to be solved. The objective function construction and population initialization module is used to construct the sum of squared residuals between the measured apparent resistivity and the theoretical apparent resistivity as the objective optimization function. Based on geological survey experience, the upper and lower limits of the values ​​of the actual resistivity and layer thickness of each soil layer are set as physical constraint boundaries. Within the physical constraint boundaries, the optimization population is initialized and divided into a discoverer subgroup that performs global exploration, a joiner subgroup that performs local fine excavation, and a vigilant subgroup that performs distortion prevention and escape prevention. The global exploration module of the discoverer is used to perform global optimization of the true resistivity and layer thickness of the soil within the physical constraint boundary by using the discoverer subgroup, and to search for the parameter interval that minimizes the value of the objective optimization function within the preset range parameter space. The joiner local fine-tuning module is used to perform local fine-tuning within the optimal parameter range obtained by global optimization through the joiner subgroup, and to make high-precision fine-tuning approximation of the true soil resistivity and layer thickness. The Vigilant Anti-Distortion Escape Module is used to monitor the fitting residuals of the optimization process through a vigilant subgroup. When the residuals get stuck in a local minimum, the soil parameters are forcibly perturbed and updated to escape the distorted geological model. After iterating until the convergence condition is met, it outputs high-precision true resistivity and layer thickness parameters of each soil layer. The grounding resistance calculation module is used to introduce seasonal freeze-thaw and temperature and humidity compensation factors based on depth attenuation to dynamically and safely correct the output soil resistivity of each layer under extreme climatic conditions. The corrected multi-layer soil parameters are used as boundary conditions to establish a three-dimensional finite element model of the substation grounding network, solve the spatial potential distribution, and calculate the power frequency grounding resistance under extreme conditions by combining the grounding short-circuit current.

10. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 8.