Metal electrochemical corrosion data processing method, system, equipment and medium
The method of determining the Tafel interval by differentiating and screening metal electrochemical corrosion data solves the problem of complex and large errors in determining the Tafel interval, and improves the accuracy of corrosion rate calculations.
Patent Information
- Application Number
- CN202410981957.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-08
AI Technical Summary
The determination method of the Tafel interval in the prior art is complex and contains errors, which affects the accuracy of the metal electrochemical corrosion rate.
By obtaining multiple polarization data of the metal to be measured, differential processing and screening are performed to determine the extreme value interval where the first extreme value data is located, and obtain a linear interval based on this interval, and perform fitting to obtain the Tafel slope, generating Corrosion current density data.
It significantly improves the accuracy of calculation results, avoids uncertainty errors caused by artificially selected linear intervals, and accurately locates the value range of the potential difference and the linear interval of the Tafel curve.
Smart Images

Figure CN118746542A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of metal electrochemical technology, and in particular to a method, system, equipment and medium for processing metal electrochemical corrosion data. Background Art
[0002] In electrochemical corrosion, Tafel extrapolation is a key technology for evaluating metal corrosion rate. Tafel extrapolation is based on the linear relationship between potential E and current density LogI in the strong polarization region. The core of this method is to identify the Tafel interval on the polarization curve and determine the corrosion current density I by calculating the slope of this interval. corr However, the accuracy of the slope of the Tafel interval is directly affected by the value of ΔE (potential difference), and the ΔE range recommended by different literature and standards varies significantly, ranging from 20mV to 500mV. In addition, the determination of the linear region, whether by fitting method or observation method, is subject to subjectivity and error. Therefore, there is room for improvement. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a method, system, equipment and medium for processing metal electrochemical corrosion data, which are used to solve the technical problems of the prior art such as the complexity of the determination method of the Tafel interval and the existence of errors.
[0004] In order to solve the above technical problems, the present invention provides a method for processing metal electrochemical corrosion data, comprising:
[0005] Acquire a plurality of polarization data of the metal to be tested, wherein the polarization data represent data of current density of the metal to be tested at a plurality of polarization potentials;
[0006] Performing differential processing on the polarization data, and performing screening processing on the polarization data after the differential processing to obtain first extreme value data;
[0007] According to a preset range, obtaining the extreme value interval where the first extreme value data is located;
[0008] According to the extreme value interval, obtaining a corresponding linear interval in the polarization data;
[0009] The polarization data in the linear interval are fitted to obtain the slope of the linear interval after fitting, and the corrosion current density data of the metal to be tested are generated according to the slope.
[0010] In one embodiment of the present invention, the step of obtaining a plurality of polarization data of the metal to be tested, wherein the polarization data represents data of current density of the metal to be tested at a plurality of polarization potentials is as follows:
[0011] Configuring measurement parameters of the metal to be measured, wherein the measurement parameters include a starting potential, a stopping potential, and a potential step rate of the polarization potential;
[0012] The current density of the metal to be tested at different polarization potentials is recorded to generate the polarization data.
[0013] In one embodiment of the present invention, the step of performing differentiation processing on the polarization data and screening the polarization data after differentiation processing to obtain the first extreme value data includes:
[0014] Performing differentiation processing on the polarization data to generate differential polarization data, wherein the differential polarization data represents a rate of change of polarization potential with respect to current density;
[0015] The differential polarization data is screened to obtain first extreme value data of the differential polarization data.
[0016] In one embodiment of the present invention, the step of screening the differential polarization data to obtain first extreme value data of the differential polarization data includes:
[0017] Traversing each data point in the differential polarization data to determine whether a change rate of a data point is greater than or less than a change rate of an adjacent data point;
[0018] When the change rate of a certain data point is greater than or less than the change rate of adjacent data points, it is represented as extreme value data, and the extreme value data that first appears is saved as the first extreme value data.
[0019] In one embodiment of the present invention, in the step of obtaining the extreme value interval where the first extreme value data is located according to a preset range, the preset range is a continuous interval on both sides of the first extreme value data, and the difference between the change rate of each data point in the continuous interval and the change rate of the first extreme value data is less than or equal to 5%.
[0020] In one embodiment of the present invention, the step of fitting the polarization data in the linear interval to obtain the slope of the fitted linear interval, and generating the corrosion current density data of the metal to be tested according to the slope includes:
[0021] Performing fitting processing on the polarization data within the linear interval to generate fitting data of the linear interval;
[0022] The corrosion current density data of the metal to be tested is calculated and generated based on the slope of the fitting data.
[0023] In one embodiment of the present invention, in the step of calculating and generating the corrosion current density data of the metal to be tested based on the slope of the fitting data, the slope of the fitting data is proportional to the corrosion current density I corr Satisfies the following formula:
[0024]
[0025] Where I represents the actual current density measured, β a The Tafel slope of the natural logarithm of the current density in the anode region, β c The Tafel slope of the natural logarithm of the current density in the cathode region, ΔE + Represents the potential difference of the anode region, ΔE - Represents the potential difference in the cathode region.
[0026] The present invention also provides a metal electrochemical corrosion data processing system, comprising:
[0027] An electrochemical test module, used to obtain a plurality of polarization data of the metal to be tested, wherein the polarization data represent the current density data of the metal to be tested at a plurality of polarization potentials;
[0028] A differential processing module, used for performing differential processing on the polarization data, and screening the polarization data after the differential processing to obtain first extreme value data;
[0029] An extreme value interval acquisition module, used for acquiring the extreme value interval where the first extreme value data is located according to a preset range;
[0030] A linear interval acquisition module, used for acquiring a corresponding linear interval in the polarization data according to the extreme value interval;
[0031] The fitting processing module is used to perform fitting processing on the polarization data in the linear interval to obtain the slope of the linear interval after fitting, and generate corrosion current density data of the metal to be tested according to the slope.
[0032] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for processing metal electrochemical corrosion data as described in any one of the above items are implemented.
[0033] The present invention also provides a computer-readable storage medium, which stores a computer program, characterized in that when the computer program is executed by a processor, the steps of the method for processing metal electrochemical corrosion data as described in any one of the above items are implemented.
[0034] As described above, the present invention provides a method, system, device and medium for processing metal electrochemical corrosion data, which has the following beneficial effects: the present invention can accurately locate the value range of the potential difference and the linear interval of the Tafel curve, significantly improving the accuracy of the calculation results. The present invention can avoid the complex fitting calculation of the linear region of the Tafel slope in the traditional method, and effectively eliminate the uncertainty error introduced by the artificial selection of the linear interval.
[0035] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0037] Figure 1 Shown is a schematic flow chart of a method for processing metal electrochemical corrosion data provided by the present invention.
[0038] Figure 2 It is shown as an embodiment of the present invention Figure 1 Specific flow chart of step S100 in FIG.
[0039] Figure 3 It is shown as an embodiment of the present invention Figure 1 Specific flow chart of step S200 in FIG.
[0040] Figure 4 Shown is a schematic diagram of a curve of potentiodynamic polarization data of a cathode segment in one embodiment of the present invention.
[0041] Figure 5 It is shown as an embodiment of the present invention Figure 3 Specific flow chart of step S220 in FIG.
[0042] Figure 6 Shown is a schematic diagram of a curve showing the potentiodynamic polarization data of the anode segment in one embodiment of the present invention.
[0043] Figure 7 It is shown as an embodiment of the present invention Figure 1 Specific flow chart of step S500 in FIG.
[0044] Figure 8 Shown is a schematic structural diagram of a metal electrochemical corrosion data processing system provided by the present invention.
[0045] Fig. 9The structure of the computer system shown is suitable for implementing the electronic device of the embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] See also Figures 1 to 9 The present invention provides a method, system, device and medium for processing metal electrochemical corrosion data, and relates to the field of metal electrochemical technology. The present invention can accurately determine the potential difference value and the Tafel linear region, thereby improving the calculation accuracy of metal corrosion rate and related data. The following is a detailed description through specific embodiments.
[0048] See also Figure 1 The present invention provides a method for processing metal electrochemical corrosion data, which may include the following steps:
[0049] Step S100, obtaining a plurality of polarization data of the metal to be tested, wherein the polarization data represent the current density data of the metal to be tested at a plurality of polarization potentials;
[0050] Step S200, performing differentiation processing on the polarization data, and screening processing on the polarization data after the differentiation processing to obtain the first extreme value data;
[0051] Step S300, obtaining the extreme value interval where the first extreme value data is located according to the preset range;
[0052] Step S400, obtaining a corresponding linear interval in the polarization data according to the extreme value interval;
[0053] Step S500: fitting the polarization data in the linear interval to obtain the slope of the fitted linear interval, and generating corrosion current density data of the metal to be tested according to the slope.
[0054] See also Figure 2 In one embodiment of the present invention, when executing step S100, a plurality of polarization data of the metal to be tested is obtained, and the polarization data represents the current density data of the metal to be tested under a plurality of polarization potentials. Specifically, the following steps may be included:
[0055] Step S110, configuring measurement parameters of the metal to be measured, the measurement parameters including the starting potential, the ending potential and the potential step rate of the polarization potential;
[0056] Step S120, recording the current density of the metal to be tested at different polarization potentials to generate polarization data.
[0057] In one embodiment of the present invention, when step S110 is executed, the measurement parameters of the metal to be measured are configured, and the measurement parameters include the starting potential, the end potential and the potential step rate of the polarization potential. Specifically, when using an electrochemical workstation or other equipment to measure the metal to be measured, it is first necessary to configure the measurement parameters of the metal to be measured. In this embodiment, the measurement parameters may include the starting potential, the end potential and the potential step rate. Among them, the starting potential refers to the initial potential value applied to the working electrode at the beginning of the test. It is usually located near the potential of the metal's stable state, and can be a negative potential or a positive potential, depending on the purpose of the test and the properties of the metal. The end potential refers to the working electrode potential at the end of the polarization test. When selecting the end potential, it is necessary to consider the stability of the metal, the completeness of the redox process, and to avoid the destruction of the electrode material or the occurrence of side reactions. The potential step rate refers to the rate at which the potential increases over time during the polarization process, and the unit is usually mV / s.
[0058] In one embodiment of the present invention, when step S120 is executed, the current density of the metal to be tested at different polarization potentials is recorded to generate polarization data. Specifically, a series of polarization potentials are applied to the metal sample to be tested by a configured electrochemical workstation, and the current response at each polarization potential is recorded to obtain a set of polarization potential-current density data, i.e., polarization data. In this embodiment, the electrochemical workstation will automatically control the potential according to the measurement parameters, so that it gradually changes from the starting potential to the end potential at a preset step rate, and simultaneously records the current response at each potential gear. The current density data is recorded and stored in real time, and displayed in the form of polarization potential-current density (i.e., E-LogI curve) to form polarization data.
[0059] See also Figure 3 In one embodiment of the present invention, when executing step S200, the polarization data is differentiated, and the polarization data after the differentiation is screened to obtain the first extreme value data. Specifically, the following steps may be included:
[0060] Step S210, performing differential processing on the polarization data to generate differential polarization data, wherein the differential polarization data represents the rate of change of the polarization potential with respect to the current density;
[0061] Step S220: screening the differential polarization data to obtain first extreme value data of the differential polarization data.
[0062] In one embodiment of the present invention, when step S210 is executed, the polarization data is differentiated to generate differential polarization data, and the differential polarization data characterizes the rate of change of the polarization potential with respect to the current density. Specifically, check the integrity and consistency of the polarization data obtained in step S100 to ensure that there are no missing or abnormal data points. And arrange these data points in ascending order of polarization potential. Differential processing requires that the data points are continuous and orderly in the gear of the polarization voltage. The sorted polarization data is numerically differentiated to generate differential polarization data. It can be seen that the polarization data is a set of discrete data, not a continuous function. Therefore, this step uses a numerical differentiation method to process the polarization data to obtain the rate of change of the polarization potential of each data point with respect to the current density, that is, the differential voltage value dE / dlogI, thereby forming a new data set, namely differential polarization data.
[0063] Furthermore, the differential polarization data can be plotted, and then the corresponding curve of the differential polarization data can be queried to see whether there is a horizontal curve segment, that is, to query the interval in which the differential polarization data is a constant. Obviously, the differential polarization data is the first-order differential of the polarization data, and the differential polarization data is an equal constant in a certain interval, then the curve segment corresponding to the interval can be regarded as having a linear relationship, and the corresponding ΔE interval can be used as a candidate interval for calculating the Tafel slope.
[0064] See also Figure 4 In one embodiment of the present invention, the potential step rate in this test is 0.5 mv / s. H, M, and N in the curve are the feet of the corresponding points on the horizontal axis. Figure 4 As shown, the curve where the polarization data is located is recorded as the first curve 101, and the polarization data is differentiated to obtain the differential polarization data, and the curve where the differential polarization data is located can be recorded as the second curve 102. The second curve 102 has two obvious horizontal segments PQ and M1N1. The original curve corresponding to the PQ segment is a weak polarization zone. It can be seen that the weak polarization zone cannot be used as the Tafel slope value interval, while the M1N1 segment can be used as the Tafel slope value interval, wherein the potential difference ΔE = E1-E2.
[0065] It should be noted that when the above method selects potential difference, the horizontal section corresponding to the second curve 102 is not all in the intuitive horizontal area, therefore, the present invention further proposes to screen the differential polarization data, to determine the Tafel interval by extreme value point. In addition, since the curve (E-logI curve) where the polarization data is located is obtained by electrochemical test, the value of the test accuracy and the potential step rate can affect the data of the curve. Since differential is the small variation of the function at a certain point, therefore when this point attachment can refer to the data points more, the differential data is then more accurate, therefore in the E-logI curve, the potential step rate is smaller, the data obtained are just more, and the first-order differential curve is then smoother, also closer to the actual situation.
[0066] See also Figure 5 In one embodiment of the present invention, when executing step S220, the differential polarization data is screened to obtain the first extreme value data of the differential polarization data. Specifically, the following steps may be included:
[0067] Step S221, traversing each data point in the differential polarization data to determine whether the change rate of a certain data point is greater than or less than the change rate of adjacent data points;
[0068] Step S222: When the change rate of a certain data point is greater than or less than the change rate of the adjacent data points, it is represented as extreme value data, and the first extreme value data that appears is saved as the first extreme value data.
[0069] In one embodiment of the present invention, when step S221 is executed, each data point in the differential polarization data is traversed to determine whether the rate of change of a data point is greater than or less than the rate of change of adjacent data points. Specifically, starting from the first data point of the differential polarization data, the differential voltage values of adjacent data points are compared one by one. For each data point, it is checked whether its differential voltage value is greater than the previous and next points (i.e., a maximum value point) or less than the previous and next points (i.e., a minimum value point).
[0070] In one embodiment of the present invention, when step S222 is executed, that is, when the rate of change of a certain data point is greater than or less than the rate of change of the adjacent data point, it is represented as extreme value data, and the first extreme value data that appears is saved as the first extreme value data. Specifically, if a certain data point satisfies that its differential voltage value is greater than the previous and next points (i.e., the maximum value point) or smaller than the previous and next points (i.e., the minimum value point), then the point is marked as an extreme value point and can be represented as extreme value data. If the differential voltage value of a certain data point does not satisfy that its differential voltage value is greater than or smaller than the previous and next points, then the next data point is judged until the first extreme value point that appears is found in the differential curve. In this embodiment, there may be multiple extreme value points in the differential polarization data, each extreme value point can be represented as extreme value data, and the first extreme value data that appears is defined as the first extreme value data.
[0071] See also Figure 6 In one embodiment of the present invention, the potential step rate in this test is 1mv / s, wherein the curve where the polarization data is located is recorded as the third curve 103, and the polarization data is differentiated to obtain differential polarization data, and the curve where the differential polarization data is located can be recorded as the fourth curve 104. The third curve 103 has no obvious horizontal segment. It can be seen that the two ends of the linear region of the polarization data are S-shaped curves. In the anode region, the differential voltage value in the linear region of the polarization data increases first and then decreases; in the cathode region, the differential voltage value in the linear region of the polarization data decreases first and then increases, so there are extreme points in the differential voltage value in the linear region of the polarization data. Figure 6 As shown, the extreme point is shown in the M1N1 interval in the fourth curve 104. Part of the area on the left and right sides of the extreme point (i.e., M1N1) can be regarded as a horizontal segment of the first-order differential. Corresponding to the AB segment in the E-logI curve, the potential interval corresponding to the AB segment is 600-900mv, and the corresponding Tafel slope is 0.82948.
[0072] In one embodiment of the present invention, when step S300 is executed, the extreme value interval where the first extreme value data is located is obtained according to the preset range. Specifically, the extreme point obtained in step S200 corresponds to the position where the current density changes most drastically on the original polarization curve, marking the beginning of the Tafel interval. In the Tafel interval, there is a linear relationship between the current density and the overpotential, which makes it possible to determine the Tafel slope by linear fitting of the experimental data. According to the experimental design and data analysis requirements, this step presets the range of the extreme value interval, which will be used to capture the change in the differential voltage value near the extreme point. The preset range can be set to a continuous interval on both sides of the first extreme value data, and the difference between the rate of change of each data point in the continuous interval and the rate of change of the first extreme value data is less than or equal to the preset threshold. In this embodiment, the preset threshold of the difference can be set to 5%-10%, for example. In the differential polarization data, all data points located in the extreme value interval are selected, that is, the extreme point itself and the data points on its left and right sides. Then, the selected data points are combined into a new data set, which contains multiple differential polarization data, that is, the corresponding relationship between the polarization potential and the current density of the first extreme point and multiple data points in the nearby area.
[0073] It should be noted that, since the test data is not a smooth curve, when the first-order differential of E-logI is actually performed, its differential curve does not have a strict horizontal area. In this embodiment, the numerical value corresponding to the area near the extreme value of the first-order differential is regarded as a constant, that is, a horizontal area. Referring to the above, the area around the extreme value point and its rate of change numerical error less than the preset threshold can be regarded as a linear area, and the specific selection needs to be made according to the measured data. For example, when the extreme value is 1, the preset threshold of the difference is 5%, then the E-logI curve corresponding to the interval [0.95, 1.05] can be regarded as a linear area.
[0074] Furthermore, when there are multiple extreme value regions or horizontal segments in the E-logI curve, based on experience, the Tafel slope usually does not deviate from the off-circuit potential by ±1000 mv, so ΔE can be determined by finding a suitable extreme value segment or horizontal segment in this region.
[0075] In one embodiment of the present invention, when step S400 is executed, the corresponding linear interval in the polarization data is obtained according to the extreme value interval. Specifically, the linear interval corresponding to the above extreme value interval is found from the original polarization curve. This interval can be considered as the linear part of the Tafel interval, that is, the area where the current density and the polarization potential are linearly related. First, the current density value corresponding to the boundary value of the extreme value interval is obtained, that is, the horizontal coordinate of the boundary of the extreme value interval. Then, the corresponding linear interval is obtained in the polarization data according to the horizontal coordinate.
[0076] See also Figure 7In one embodiment of the present invention, when executing step S500, the polarization data in the linear interval is fitted to obtain the slope of the fitted linear interval, and the corrosion current density data of the metal to be tested is generated according to the slope. Specifically, the following steps may be included:
[0077] Step S510, performing fitting processing on the polarization data in the linear interval to generate fitting data of the linear interval;
[0078] Step S520: Calculate and generate corrosion current density data of the metal to be tested based on the slope of the fitting data.
[0079] In one embodiment of the present invention, when executing step S510, the polarization data in the linear interval is fitted to generate the fitted data of the linear interval. Specifically, the polarization data can accurately describe the linear relationship between current density and polarization potential by the Tafel formula in the Tafel interval. The linear interval obtained in step S400 is fitted. The fitting method adopted in this step is linear regression, which can be realized by the least square method. It should be noted that before performing linear fitting, the current density may need to be converted into the form of natural logarithm to adapt to the linear form of the Tafel formula.
[0080] In one embodiment of the present invention, when step S520 is executed, the corrosion current density data of the metal to be tested is calculated based on the slope of the fitting data. Specifically, the corrosion current density data of the metal to be tested can be further calculated based on the slope of the straight line where the fitting data is located. In this embodiment, the slope of the linear interval is proportional to the corrosion current density I corr There is a direct relationship between them, which satisfies the following formula:
[0081]
[0082] Where I represents the actual current density measured, β a The Tafel slope of the natural logarithm of the current density in the anode region, β c The Tafel slope of the natural logarithm of the current density in the cathode region, ΔE + Represents the potential difference of the anode region, ΔE - It indicates the potential difference of the cathode region. As can be seen from the above, by fitting the polarization data in the Tafel linear interval, the slope of the linear interval can be obtained, and then the corrosion current density of the metal to be tested can be calculated through the slope.
[0083] In one embodiment of the present invention, the accuracy of the corrosion current density obtained by the present invention is verified by a coupon corrosion test. As shown in Table 1, the experimental group adopts the standard method recommended in ASTM G3-14 and ASTM G102-89, and based on the corrosion current density obtained by the method provided by the present invention, calculates the corrosion rate, and finally calculates the mass loss rate MR1 of the metal. The coupon corrosion test of the control group adopts the same working environment, and the corrosion products are cleaned using the standard method required by GB / 16545 (2015) "Removal of Corrosion Products on Corrosion Test Specimens of Metals and Alloys", and then the coupon corrosion rate MR2 is calculated. In this embodiment, three materials, 316 stainless steel, Q235 carbon steel, and TP2M brass, are selected for testing respectively. The most calculated data are shown in Table 1 below. By comparing the corrosion rates obtained by the two methods, it can be seen that the data fit is good, and the Tafel slope and corrosion current density obtained by the method provided by the present invention are more consistent with the measured true value.
[0084] Table 1- Comparative data of metal coupon corrosion test
[0085]
[0086] See also Figure 8 The present invention also provides a processing system for metal electrochemical corrosion data, which corresponds to the processing method in the above embodiment. The processing system may include an electrochemical testing module 201, a differential processing module 202, an extreme value interval acquisition module 203, a linear interval acquisition module 204, and a fitting processing module 205. The functional modules are described in detail as follows:
[0087] The electrochemical test module 201 can be used to obtain multiple polarization data of the metal to be tested, and the polarization data represents the data of the current density of the metal to be tested at multiple polarization potentials. Further, the electrochemical test module 201 can be specifically used to configure the measurement parameters of the metal to be tested, and the measurement parameters include the starting potential, the end potential and the potential step rate of the polarization potential; record the current density of the metal to be tested at different polarization potentials to generate polarization data.
[0088] The differential processing module 202 can be used to perform differential processing on the polarization data, and perform screening processing on the polarization data after the differential processing to obtain the first extreme value data. Further, the differential processing module 202 can be specifically used to perform differential processing on the polarization data to generate differential polarization data, and the differential polarization data represents the rate of change of the polarization potential with respect to the current density; and perform screening processing on the differential polarization data to obtain the first extreme value data of the differential polarization data.
[0089] The extreme value interval acquisition module 203 can be used to obtain the extreme value interval where the first extreme value data is located according to a preset range. Furthermore, the extreme value interval acquisition module 203 can be specifically used according to the experimental design and data analysis requirements. The extreme value interval acquisition module 203 presets the range of the extreme value interval, and the range will be used to capture the change of the differential voltage value near the extreme value point. The preset range can be set to a continuous interval on both sides of the first extreme value data, and the difference between the change rate of each data point in the continuous interval and the change rate of the first extreme value data is less than or equal to the preset threshold. In this embodiment, the preset threshold of the difference can be set to 5%-10%, for example. In the differential polarization data, all data points located in the extreme value interval are selected, that is, the extreme value itself and the data points on its left and right sides. Then, the above-selected data points are combined into a new data set, which contains multiple differential polarization data, that is, the corresponding relationship between the polarization potential and the current density of the first extreme value point and multiple data points in the nearby area.
[0090] The linear interval acquisition module 204 can be used to obtain the corresponding linear interval in the polarization data according to the extreme value interval. Furthermore, the linear interval acquisition module 204 can be specifically used to find the linear interval corresponding to the above extreme value interval from the original polarization curve. This interval can be considered as the linear part of the Tafel interval, that is, the area where the current density and the polarization potential are linearly related. The linear interval acquisition module 204 first obtains the current density value corresponding to the boundary value of the extreme value interval, that is, the horizontal coordinate of the boundary of the extreme value interval. Then, the corresponding linear interval is obtained in the polarization data according to the horizontal coordinate.
[0091] The fitting processing module 205 can be used to fit the polarization data in the linear interval to obtain the slope of the fitted linear interval, and generate the corrosion current density data of the metal to be tested according to the slope. Further, the fitting processing module 205 can be specifically used to fit the polarization data in the linear interval to generate the fitted data of the linear interval; based on the slope of the fitted data, the corrosion current density data of the metal to be tested is calculated and generated.
[0092] The specific definition of the processing system for metal electrochemical corrosion data can be found in the definition of the processing method above, which will not be repeated here. Each module in the above processing system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0093] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the method for processing metal electrochemical corrosion data provided in the above-mentioned embodiments.
[0094] See also Fig. 9 , Fig. 9 The structure diagram of the computer system of the electronic device suitable for implementing the embodiment of the present invention is shown. It should be noted that: Fig. 9 The computer system 300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0095] like Fig. 9 As shown, the computer system 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 303 to the random access memory (RAM) 303, such as executing the method in the above embodiment. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, the ROM 302 and the RAM 303 are connected to each other through the bus 304. The input / output (I / O) interface 305 is also connected to the bus 304.
[0096] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), an organic light emitting diode (OLED), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 303 as needed.
[0097] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, various functions defined in the system of the present invention are executed.
[0098] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0099] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.
[0101] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to execute the above-mentioned method for processing metal electrochemical corrosion data. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0102] Another aspect of the present invention further provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for processing metal electrochemical corrosion data provided in the above-mentioned embodiments.
[0103] In summary, the present invention provides a method, system, device and medium for processing metal electrochemical corrosion data, which can be applied to electrochemically measure the corrosion rate or corrosion current density of metals. The present invention can skip the complex fitting calculation of the linear region of the Tafel slope, avoid the error caused by the manual selection of the linear region, and can accurately determine the potential difference ΔE value and the Tafel linear region by simply processing the original polarization data, and the obtained Tafel slope and corrosion current density have a high degree of consistency with the measured true value.
[0104] The embodiments of the present invention disclosed above are only used to help illustrate the present invention. The embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for processing metal electrochemical corrosion data, characterized in that: include: Acquire a plurality of polarization data of the metal to be tested, wherein the polarization data represent data of current density of the metal to be tested at a plurality of polarization potentials; Performing differential processing on the polarization data, and performing screening processing on the polarization data after the differential processing to obtain first extreme value data; According to a preset range, obtaining the extreme value interval where the first extreme value data is located; According to the extreme value interval, obtaining a corresponding linear interval in the polarization data; The polarization data in the linear interval are fitted to obtain the slope of the linear interval after fitting, and the corrosion current density data of the metal to be tested are generated according to the slope.
2. The method for processing metal electrochemical corrosion data according to claim 1, characterized in that: The step of obtaining a plurality of polarization data of the metal to be tested, wherein the polarization data represent the current density data of the metal to be tested at a plurality of polarization potentials: Configuring measurement parameters of the metal to be measured, wherein the measurement parameters include a starting potential, a stopping potential, and a potential step rate of the polarization potential; The current density of the metal to be tested at different polarization potentials is recorded to generate the polarization data.
3. The method for processing metal electrochemical corrosion data according to claim 1, characterized in that: The step of performing differentiation processing on the polarization data and screening the polarization data after differentiation processing to obtain the first extreme value data includes: Performing differentiation processing on the polarization data to generate differential polarization data, wherein the differential polarization data represents a rate of change of polarization potential with respect to current density; The differential polarization data is screened to obtain first extreme value data of the differential polarization data.
4. The method for processing metal electrochemical corrosion data according to claim 3, characterized in that: The step of screening the differential polarization data to obtain first extreme value data of the differential polarization data comprises: Traversing each data point in the differential polarization data to determine whether a change rate of a data point is greater than or less than a change rate of an adjacent data point; When the change rate of a certain data point is greater than or less than the change rate of adjacent data points, it is represented as extreme value data, and the extreme value data that first appears is saved as the first extreme value data.
5. The method for processing metal electrochemical corrosion data according to claim 1, characterized in that: In the step of obtaining the extreme value interval where the first extreme value data is located according to a preset range, the preset range is a continuous interval on both sides of the first extreme value data, and the difference between the change rate of each data point in the continuous interval and the change rate of the first extreme value data is less than or equal to 5%.
6. The method for processing metal electrochemical corrosion data according to claim 1, characterized in that: The step of fitting the polarization data in the linear interval to obtain the slope of the linear interval after fitting, and generating the corrosion current density data of the metal to be tested according to the slope comprises: Performing fitting processing on the polarization data within the linear interval to generate fitting data of the linear interval; The corrosion current density data of the metal to be tested is calculated and generated based on the slope of the fitting data.
7. The method for processing metal electrochemical corrosion data according to claim 6, characterized in that: In the step of calculating and generating the corrosion current density data of the metal to be tested based on the slope of the fitting data, the slope of the fitting data is proportional to the corrosion current density I corr Satisfies the following formula: Where I represents the actual current density measured, β a The Tafel slope of the natural logarithm of the current density in the anode region, β c The Tafel slope of the natural logarithm of the current density in the cathode region, ΔE + Represents the potential difference of the anode region, ΔE - Represents the potential difference in the cathode region.
8. A metal electrochemical corrosion data processing system, characterized in that: include: An electrochemical test module, used to obtain a plurality of polarization data of the metal to be tested, wherein the polarization data represent the current density data of the metal to be tested at a plurality of polarization potentials; A differential processing module, used for performing differential processing on the polarization data, and screening the polarization data after the differential processing to obtain first extreme value data; An extreme value interval acquisition module, used for acquiring the extreme value interval where the first extreme value data is located according to a preset range; A linear interval acquisition module, used for acquiring a corresponding linear interval in the polarization data according to the extreme value interval; The fitting processing module is used to perform fitting processing on the polarization data in the linear interval to obtain the slope of the linear interval after fitting, and generate corrosion current density data of the metal to be tested according to the slope.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for processing metal electrochemical corrosion data as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for processing metal electrochemical corrosion data as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Metal polarization curve prediction method based on convolutional neural network and local weighted linear regression
CN119479938A
Method and system for rapidly determining corrosion resistance of copper alloy
CN121917440A
