Ultrasonic stress measurement method, device, equipment and medium
By searching for the optimal length interval in ultrasonic stress measurement and performing cross-correlation calculations, the problem of uncertainty in the critical refraction longitudinal waveform data is solved and the stability and accuracy of the measurement are improved.
Patent Information
- Application Number
- CN202410817515.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-03
AI Technical Summary
In ultrasonic stress measurement, when the cross-correlation method is used to calculate the acoustic time difference, the selected critical refraction longitudinal waveform data is uncertain, resulting in unstable measurement results.
By searching the optimal length interval on the critical refraction longitudinal waveform of the reference signal, and selecting the calculated length within this interval for cross-correlation calculation, the time shift corresponding to the maximum cross-correlation characteristic value is taken as the acoustic transit time difference, and the preset acoustic transit time coefficient is used as the stress Test results.
The measurement efficiency and stability of ultrasonic stress measurement are improved and the accuracy of the measurement results is ensured.
Smart Images

Figure CN118583340A
Abstract
Description
Technical Field
[0001] The present application relates to ultrasonic stress nondestructive testing, and more specifically, to an ultrasonic stress measurement method, device, equipment and medium. Background Art
[0002] Ultrasonic stress measurement technology has broad application prospects in measuring residual stress of thin-walled parts due to its advantages of non-contact, non-destructive and high precision. The measurement principle of ultrasonic stress measurement is the acoustic elastic effect of critical refracted longitudinal waves (there is a linear relationship between the propagation speed of ultrasonic waves in materials and the stress state of the materials, and the linear relationship is: F = KΔt, where: F is stress; K is the acoustic time difference coefficient, which is generally obtained through tensile tests, and Δt is the acoustic time difference, which is the time difference between the measured signal and the reference signal).
[0003] However, the acoustic elastic effect is an extremely weak effect. It is difficult to detect the slight change of ultrasonic propagation velocity in actual engineering measurement. Therefore, in actual measurement, a specific algorithm is generally used to calculate the time difference (i.e., acoustic time difference) between the ultrasonic waveform of the workpiece to be measured and the ultrasonic waveform of the zero stress sample (reference waveform). At present, the algorithms for calculating the acoustic time difference mainly include the cross-correlation method, the peak method, and the zero point method. Among them, the cross-correlation method has the characteristics of simple principle and high accuracy, and is the most widely used in the calculation of acoustic time difference. The critical refracted longitudinal wave used in ultrasonic stress measurement is a longitudinal wave that propagates along the surface of the workpiece when the ultrasonic longitudinal wave is obliquely incident on the surface of the test piece at the first critical angle. The calculation principle of the cross-correlation method is to use the critical refracted longitudinal wave received at the zero stress sample as the reference signal, and to perform time-shift processing on the critical refracted longitudinal wave received at the workpiece to be measured as the signal to be measured. The signal to be measured and the reference signal are multiplied and summed point by point. The time shift (Δt) of the signal to be measured corresponding to the maximum value of the sum is the acoustic time difference between the two signals. For some ultrasonic signals, such as the ultrasonic signal received by 45 steel, the cross-correlation algorithm is used to calculate the acoustic time difference of two ultrasonic signals. It does not mean that the entire signal is cross-correlated, but a specific section of the critical refracted longitudinal wave waveform is selected for cross-correlation calculation. The selection of different calculation starting points and different lengths of critical refracted longitudinal wave waveforms will affect the final result of ultrasonic stress measurement. In the actual measurement process, it is difficult to keep the calculation starting point and waveform length selected for each cross-correlation calculation uniform, which leads to uncertainty in the measurement results of ultrasonic stress measurement. Summary of the invention
[0004] The purpose of the present application is to provide an ultrasonic stress measurement method, device, equipment and medium, which solves the problem of uncertainty in the measurement results of ultrasonic stress measurement provided by the prior art.
[0005] In a first aspect of the present application, an ultrasonic stress measurement method is provided, the method comprising:
[0006] Acquire a signal to be measured of the workpiece to be measured and a reference signal of a zero-stress sample of the same material as the workpiece to be measured, wherein the signal to be measured and the reference signal are both a set of critical refraction longitudinal wave waveforms;
[0007] Searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal;
[0008] A calculation length is selected in the optimal length interval as the optimal calculation length of the critical refraction longitudinal wave waveform of the measured signal and the reference signal;
[0009] Based on the optimal calculation length, a cross-correlation algorithm is used to calculate the cross-correlation eigenvalues of the signal to be tested and the reference signal, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be tested and the reference signal;
[0010] The acoustic time difference coefficient is preset, and the product of the acoustic time difference and the acoustic time difference coefficient is used as the stress test result of the workpiece to be tested.
[0011] In an implementation of the first aspect of the present application, searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal includes:
[0012] The starting point of the critical refraction longitudinal wave waveform is used as the calculation starting point of the calculation length of the cross-correlation calculation, and the relative wavelength of the calculation length is selected from zero, and each calculation length with a different relative wavelength is selected to obtain a segmented critical refraction longitudinal wave waveform, until the relative wavelength of the calculation length reaches the total length of the critical refraction longitudinal wave waveform, and multiple segmented critical refraction longitudinal wave waveforms are obtained, wherein the starting point refers to the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes;
[0013] A plurality of segmented critical refracted longitudinal wave waveforms are cross-correlated, each calculation length corresponds to a maximum cross-correlation eigenvalue, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be measured and the reference signal;
[0014] Plot all calculated lengths and corresponding acoustic time differences into a first plane line graph;
[0015] When it is detected that the calculated length in the first plane line graph is in the first length interval and the corresponding acoustic time difference does not change with the change of the calculated length, the first length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be tested.
[0016] In an implementation of the first aspect of the present application, the method further includes: adjusting the position of the calculation starting point of the cross-correlation calculation to obtain a plurality of calculation starting points at different positions, and for each calculation starting point, determining a corresponding segmented critical refraction longitudinal wave waveform according to a calculation length;
[0017] Performing cross-correlation calculation on the segmented critical refraction longitudinal wave waveform of each calculation starting point, and drawing a second plane line graph corresponding to the calculation starting points at different positions based on the result of the cross-correlation calculation;
[0018] When it is detected that the calculated length in the second plane line graph is in the second length interval and the corresponding acoustic time difference does not change with the change of the calculated length, the second length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be tested;
[0019] When the acoustic time difference of the first length interval is the same as the acoustic time difference of the second length interval, the smallest length interval between the first length interval and the second length interval is taken as the optimal calculation length for performing cross-correlation calculation on the signal to be measured.
[0020] In an implementation of the first aspect of the present application, a calculation formula for calculating the cross-correlation characteristic value of the signal to be tested and the reference signal is: Where x(t) is the reference signal, y(t+Δt) is the signal to be measured, Δt is the time shift of the signal to be measured on the time axis, n is the optimal calculation length selected on the critical refraction longitudinal wave waveform, and ρ xy is the cross-correlation eigenvalue, and t is the time axis.
[0021] In a second aspect of the present application, an ultrasonic stress measurement device is provided, the device comprising:
[0022] A signal acquisition module, used to acquire a signal to be measured of the workpiece to be measured and a reference signal of a zero-stress sample consistent with the material of the workpiece to be measured, wherein the signal to be measured and the reference signal are both a set of critical refraction longitudinal wave waveforms;
[0023] A search module, used for searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal;
[0024] An optimal calculation length selection module is used to select any calculation length within the optimal length interval as the optimal calculation length of the critical refraction longitudinal wave waveform of the signal to be measured and the reference signal;
[0025] The acoustic time difference calculation module is used to calculate the cross-correlation characteristic value of the signal to be measured and the reference signal based on the optimal calculation length by using the cross-correlation algorithm, and take the time shift corresponding to the maximum cross-correlation characteristic value as the acoustic time difference between the signal to be measured and the reference signal;
[0026] The stress test module is used to preset the acoustic time difference coefficient and take the product of the acoustic time difference and the acoustic time difference coefficient as the stress test result of the workpiece to be tested.
[0027] In an implementation of the second aspect of the present application, the search module includes:
[0028] A segmentation module is used to use the starting point of the critical refraction longitudinal wave waveform as the calculation starting point of the calculation length of the cross-correlation calculation, and the relative wavelength of the calculation length is selected from zero. Each time a calculation length with a different relative wavelength is selected, a segmented critical refraction longitudinal wave waveform is obtained, until the relative wavelength of the calculation length reaches the total length of the critical refraction longitudinal wave waveform, and multiple segmented critical refraction longitudinal wave waveforms are obtained, wherein the starting point refers to the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes;
[0029] A cross-correlation calculation module is used to perform cross-correlation calculation on multiple segmented critical refracted longitudinal wave waveforms, each calculation length corresponds to a maximum cross-correlation eigenvalue, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be measured and the reference signal;
[0030] A first drawing module, used for drawing all calculated lengths and corresponding acoustic time differences into a first plane broken line graph;
[0031] The first determination module is used to use the first length interval as the optimal length interval for performing cross-correlation calculation on the signal to be tested when it is detected that the calculated length in the first plane line graph is in the first length interval and the corresponding acoustic time difference does not change with the change of the calculated length.
[0032] In an implementation of the second aspect of the present application, the device further includes:
[0033] A position adjustment module is used to adjust the position of the calculation starting point of the cross-correlation calculation to obtain calculation starting points at multiple different positions, and for each calculation starting point, a corresponding segmented critical refraction longitudinal wave waveform is determined according to the calculation length;
[0034] A second drawing module is used to perform cross-correlation calculation on the segmented critical refraction longitudinal wave waveform of each calculation starting point, and draw a second plane line graph corresponding to the calculation starting points at different positions based on the result of the cross-correlation calculation;
[0035] A second determination module is used to use the second length interval as an optimal length interval for performing cross-correlation calculation on the signal to be tested when it is detected that the calculated length in the second plane line graph is in a second length interval and the corresponding acoustic time difference does not change with the change of the calculated length;
[0036] The length selection module is used to select the smallest length interval between the first length interval and the second length interval as the optimal calculation length for performing cross-correlation calculation on the signal to be tested when the acoustic time difference in the first length interval is the same as the acoustic time difference in the second length interval.
[0037] In an implementation of the second aspect of the present application, a calculation formula for calculating the cross-correlation characteristic value of the signal to be tested and the reference signal is: Where x(t) is the reference signal, y(t+Δt) is the signal to be measured, Δt is the time shift of the signal to be measured on the time axis, n is the optimal calculation length selected on the critical refraction longitudinal wave waveform, and ρ xy is the cross-correlation eigenvalue, and t is the time axis.
[0038] The third aspect of the present application provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of an ultrasonic stress measurement method provided in the first aspect of the present application are implemented.
[0039] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of an ultrasonic stress measurement method provided in the first aspect of the present application are implemented.
[0040] Compared with the prior art, this application has the following beneficial effects:
[0041] The present application provides an ultrasonic stress measurement method, which can select a critical refracted longitudinal wave waveform with an optimal calculation length for cross-correlation acoustic time difference calculation, thereby solving the problem of uncertainty in the critical refracted longitudinal wave waveform data selected when the cross-correlation method is used to calculate the acoustic time difference in the existing ultrasonic critical refracted longitudinal wave stress measurement process, thereby improving the measurement efficiency and measurement stability of ultrasonic critical refracted longitudinal wave stress measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:
[0043] Figure 1 A schematic diagram of a flow chart of an ultrasonic stress measurement method provided in an embodiment of the present application;
[0044] Figure 2 The waveform diagram of the ultrasonic receiving signal of 45 steel provided in the embodiment of the present application;
[0045] Figure 3 A schematic diagram of selecting waveform data for cross-correlation calculation of critical refraction longitudinal waves provided in an embodiment of the present application;
[0046] Figure 4 A technical result diagram of the cross-correlation eigenvalues provided in the embodiment of the present application;
[0047] Figure 5 A result diagram of calculating the acoustic time difference by selecting different calculation lengths provided in an embodiment of the present application;
[0048] Figure 6 A result diagram of calculating the acoustic time difference by selecting different critical refraction longitudinal wave waveform data provided in an embodiment of the present application;
[0049] Figure 7 A schematic diagram of the structure of an ultrasonic stress measurement device provided in an embodiment of the present application;
[0050] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0051] 710, signal acquisition module; 720, search module; 730, optimal calculation length selection module; 740, acoustic time difference calculation module; 750, stress testing module; 800, electronic device; 810, processor; 820, memory; 830, communication interface; 821, one or more programs. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with examples and drawings. The illustrative implementation scheme of the present application and its description are only used to explain the present application and are not intended to limit the present application.
[0053] It should be noted that the terms "include" or "may include" used in various embodiments of the present application indicate the presence of the function, operation or element applied for, and do not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present application, the terms "include", "have" and their cognates are only intended to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items.
[0054] It should be understood that terms such as "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly indicate the number of technical features indicated. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0055] Please refer to Figure 1 , Figure 1 A schematic diagram of a flow chart of an ultrasonic stress measurement method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0056] 101, obtaining a signal to be measured of the workpiece to be measured and a reference signal of a zero-stress sample having the same material as the workpiece to be measured, wherein both the signal to be measured and the reference signal are a set of critical refraction longitudinal wave waveforms.
[0057] In this embodiment, the ultrasonic stress measurement method needs to be matched with corresponding equipment to be realized. Specifically, the ultrasonic stress measurement equipment includes a pulse signal generator, an ultrasonic transceiver probe, an ultrasonic wedge, an oscilloscope, a human-computer interaction software, a high-precision thermometer and a constant temperature water tank. The pulse signal generator is required to be able to stably generate square wave pulses of 2MHz to 10MHz, the ultrasonic wedge is required to be able to fit the workpiece to be measured tightly, and the ultrasonic transceiver probe is installed on the ultrasonic wedge. The angle formed by the axis of the transmitting probe and the tangent plane of the area to be measured is required to be equal to the first critical refraction angle of the material of the workpiece to be measured. The data acquisition equipment requires a bandwidth of at least 150MHz and a sampling rate of at least 1GHz. The human-computer interaction software is required to be able to receive and save the ultrasonic signals collected by the data acquisition equipment and the temperature data measured by the thermometer. It is also required to have data information of the ultrasonic stress measurement system database (including the material brand of the workpiece to be measured, the acoustic elastic constant K, the initial stress value, etc.). The workpiece to be measured in this embodiment is a 45 steel ball shell, and the specific implementation method is as follows:
[0058] (1) The surface of the 45 steel ball shell is polished to eliminate the influence of surface roughness on ultrasonic propagation and ensure the accuracy of the measurement results. At the same time, ABCD measurement points are selected in the 45 steel ball shell area and marked and numbered so that each measurement area can be accurately identified during the measurement process.
[0059] (2) Place the 45 steel ball shell into a constant temperature water bath. The workpiece to be tested should be completely immersed in water. Set the constant temperature to 26° to maintain the constant temperature. Stick thermocouple sensors around the 45 steel ball shell. The thermocouple sensors are connected to the temperature transmitter module. The temperature transmitter module sends the temperature data to the computer. If the constant temperature measurement method is not used to reduce the influence of ambient temperature on stress measurement, the stress values of the same workpiece at the same position at different temperatures can be measured in advance by constant temperature to obtain the temperature-stress relationship curve of the workpiece. The subsequent calculation of stress results will compensate for the influence of temperature on stress.
[0060] (3) The ultrasonic wedge is tightly attached to the surface of the area to be measured by magnetic adsorption, so as to control the influence of coupling force on the measurement results, and adjust the connection between the ultrasonic transceiver probe and the oscilloscope, pulse generator, and computer.
[0061] (4) Set the pulse generator parameters. Since the ultrasonic transmitter generates an ultrasonic frequency of 2.5MHz, set the pulse generator to generate a pulse frequency of 2.5MHz, set the high and low cutoff frequencies of the bandpass filter to 5MHz and 1MHz, and set the trigger mode to internal trigger. Set the oscilloscope parameters, set the oscilloscope sampling frequency to 2.5GHz, the sampling point to 100k, the sampling mode to average sampling, the trigger mode to rising edge trigger, and the channel impedance to 50Ω.
[0062] (5) When the temperature change detected by the thermocouple sensor does not exceed 0.1°C and remains for at least 5 minutes, the ultrasonic curve on the oscilloscope interface is observed to be basically stable, such as Figure 2 As shown, the four measuring points ABCD are measured every 30 minutes, and the measurement is repeated three times each time. Click the Save button to save the collected ultrasonic data signal to the computer and use the signal as the measured signal.
[0063] Similarly, replace the 45 steel ball shell with a zero-stress sample of the same material, repeat steps (1)-(5), and use the ultrasonic receiving signal saved on the zero-stress sample as the reference signal.
[0064] 102. Search for an optimal length interval for performing cross-correlation calculation on the signal to be tested on the critical refracted longitudinal wave waveform of the reference signal.
[0065] In this embodiment, in order to control the key factors affecting the stress measurement results during the stress measurement process, when the stress is measured using the acoustic elastic effect and the cross-correlation algorithm is used to calculate the acoustic time difference, the critical refracted longitudinal wave waveform calculation length and the calculation starting point position selected for the cross-correlation calculation will directly affect the final stress measurement result, and the optimal critical refracted longitudinal wave data (optimal calculation starting point and optimal length interval N) are selected for cross-correlation calculation. The acoustic time difference calculated by selecting the optimal length of the cross-correlation of the critical refracted longitudinal wave data is stable and accurate, and the stress result obtained is stable. The selected calculation starting point of the cross-correlation calculation improves the accuracy of stress measurement without changing the acoustic time difference.
[0066] Specifically, searching for the optimal length interval includes: taking the starting point of the critical refraction longitudinal wave waveform as the calculation starting point of the calculation length of the cross-correlation calculation, the relative wavelength of the calculation length is selected from zero, and each calculation length with a different relative wavelength is selected to obtain a segmented critical refraction longitudinal wave waveform, until the relative wavelength of the calculation length reaches the total length of the critical refraction longitudinal wave waveform, and multiple segmented critical refraction longitudinal wave waveforms are obtained, wherein the starting point refers to the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes; performing cross-correlation calculation on multiple segmented critical refraction longitudinal wave waveforms, each calculation length corresponds to a maximum cross-correlation eigenvalue, and taking the time shift corresponding to the maximum cross-correlation eigenvalue as the acoustic time difference between the signal to be measured and the reference signal; plotting all the calculation lengths and the corresponding acoustic time differences into a first plane line graph; when it is detected that the calculation length in the first plane line graph is in the first length interval and the corresponding acoustic time difference does not change with the change of the calculation length, the first length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be measured.
[0067] Specifically, there are two ways to select the calculation starting point in this embodiment. One is to use the point where the amplitude of the critical refraction longitudinal wave waveform changes suddenly as the calculation starting point, and the other is to adjust the calculation starting point to any point on the critical refraction longitudinal wave waveform.
[0068] This embodiment is mainly explained by taking the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes as the calculation starting point. After selecting the calculation starting point, the calculation length n starts from 1 until the entire segment of the critical refraction longitudinal wave waveform is traversed, such as Figure 3 As shown, the selected critical refraction longitudinal wave waveform data is cross-correlated, and a maximum cross-correlation eigenvalue will be obtained for each calculation length n. The time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the measured signal and the reference signal at the calculation length n, as shown in FIG. Figure 4 As shown. Use Origin software to plot all calculated lengths n and the corresponding time shift Δt into a first plane line graph, where the horizontal axis parameter of the first plane line graph is the calculated length n, and the vertical axis parameter is the acoustic time difference. For ease of viewing, the length of the first received complete cycle waveform of the critical refracted longitudinal wave is defined as a wavelength, and the calculated length n is in the form of a relative wavelength.
[0069] When it is detected that the calculated length n is in a specific interval N, and the corresponding acoustic time difference does not change with the value of the calculated length n, in other words, when the slope of the corresponding curve segment is close to 0, it can be considered that the specific interval obtained using the calculation starting point belongs to the optimal length interval N. Figure 5As shown in FIG. 1 , the optimal calculation length of the cross-correlation calculation is between 2.2 and 2.7 relative wavelengths, that is, the optimal length interval is between 2.2 and 2.7 relative wavelengths. It can be understood that the optimal length interval provided by this embodiment is between 2.2 and 2.7 relative wavelengths. Figure 5 As shown in the figure, different workpieces to be measured will correspond to different optimal length ranges.
[0070] 103. Select any calculated length within the optimal length interval as the optimal calculated length of the critical refraction longitudinal wave waveform of the signal to be measured and the reference signal.
[0071] In this embodiment, in combination with the optimal length interval obtained in step 102 described above, a calculated length is arbitrarily selected therefrom as the optimal calculated length of the critical refraction longitudinal wave waveform of the signal to be measured and the reference signal.
[0072] 104. Based on the optimal calculation length, a cross-correlation algorithm is used to calculate the cross-correlation eigenvalues of the signal to be measured and the reference signal, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be measured and the reference signal.
[0073] In this embodiment, on the basis of determining the optimal calculation length, calculating the cross-correlation eigenvalue is common knowledge for those skilled in the art, and no unnecessary details are given in this embodiment. Secondly, the time shift corresponding to the cross-correlation eigenvalue is also common knowledge as the acoustic time difference between the signal to be measured and the reference signal. This embodiment only provides a calculation formula for calculating the cross-correlation eigenvalue using the cross-correlation algorithm, which is as follows: Where x(t) is the reference signal, y(t+Δt) is the signal to be measured, Δt is the time shift of the signal to be measured on the time axis, n is the optimal calculation length selected on the critical refraction longitudinal wave waveform, and ρ xy is the cross-correlation eigenvalue, and t is the time axis.
[0074] 105, preset an acoustic time difference coefficient, and use the product of the acoustic time difference and the acoustic time difference coefficient as the stress test result of the workpiece to be tested.
[0075] In this embodiment, the measurement principle of ultrasonic stress measurement is the acoustic elastic effect of critical refracted longitudinal waves, that is, there is a linear relationship between the propagation speed of ultrasonic waves in the material and the stress state of the material, and the linear relationship is: F=KΔt, where: F is stress; K is the acoustic time difference coefficient, which is generally obtained through a tensile test, and Δt is the acoustic time difference, which is the time difference between the signal to be measured and the reference signal.
[0076] All the signals to be measured are cross-correlated with the reference signal to obtain the acoustic time difference between the signal to be measured and the reference signal at each measuring point. The acoustic time difference is substituted into the expression of the linear relationship described above, and the acoustic time difference coefficient is set to calculate the stress value of each measuring point.
[0077] In some embodiments, the method also includes: adjusting the position of the calculation starting point of the cross-correlation calculation to obtain calculation starting points at multiple different positions, and for each calculation starting point, determining the corresponding segmented critical refracted longitudinal wave waveform according to the calculation length; performing cross-correlation calculation on the segmented critical refracted longitudinal wave waveform of each calculation starting point, and drawing a second plane line graph corresponding to the calculation starting points at different positions based on the results of the cross-correlation calculation; when it is detected that the calculation length in the second plane line graph is in the second length interval and the corresponding acoustic time difference does not change with the change of the calculation length, the second length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be tested; when the acoustic time difference in the first length interval is the same as the acoustic time difference in the second length interval, the smallest length interval between the first length interval and the second length interval is taken as the optimal calculation length for performing cross-correlation calculation on the signal to be tested.
[0078] Specifically, the starting point of the cross-correlation calculation is adjusted, and the position of the calculation starting point is also in the form of relative wavelength. After repeatedly calculating the position of each calculation starting point, the cross-correlation algorithm is used to calculate the cross-correlation eigenvalues corresponding to each calculation length, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference of the calculation length. The Origin software is used to plot all the calculation lengths n and the corresponding Δt of different calculation starting points into a second plane line graph. The results are shown in the figure below. Figure 6 As shown, in combination with the second plane broken line graph, when it is detected that the calculated length in the second plane broken line graph is in the second length interval and the corresponding acoustic time difference does not change with the change of the calculated length, the second length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be tested; when the acoustic time difference in the first length interval is the same as the acoustic time difference in the second length interval, the smallest length interval between the first length interval and the second length interval is taken as the optimal calculation length for performing cross-correlation calculation on the signal to be tested, that is, the calculation length n of the cross-correlation calculation is reduced, and at the same time, the size of the acoustic time difference calculated by the cross-correlation of the two critical refracted longitudinal waves is not changed, so that a stable and accurate acoustic time difference, the optimal starting point and the optimal calculation length of the cross-correlation calculation can be obtained.
[0079] Based on this, the embodiment of the present application analyzes the influence of selecting different calculation starting points and different calculation waveform lengths for calculating the acoustic time difference using the cross-correlation method in ultrasonic stress measurement on the measurement results. By comparing the measurement results, the optimal cross-correlation calculation critical refracted longitudinal wave waveform data (optimal calculation starting point and optimal length interval N) is obtained, which greatly improves the calculation efficiency and stability of stress measurement.
[0080] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of an ultrasonic stress measurement device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the device comprises:
[0081] The signal acquisition module 710 is used to acquire a signal to be measured of the workpiece to be measured and a reference signal of a zero-stress sample consistent with the material of the workpiece to be measured, wherein the signal to be measured and the reference signal are both a set of critical refraction longitudinal wave waveforms;
[0082] A search module 720, for searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal;
[0083] The optimal calculation length selection module 730 is used to select any calculation length in the optimal length interval as the optimal calculation length of the critical refraction longitudinal wave waveform of the signal to be measured and the reference signal;
[0084] The acoustic time difference calculation module 740 is used to calculate the cross-correlation eigenvalues of the signal to be measured and the reference signal based on the optimal calculation length by using the cross-correlation algorithm, and take the time shift corresponding to the maximum cross-correlation eigenvalue as the acoustic time difference between the signal to be measured and the reference signal;
[0085] The stress testing module 750 is used to preset the acoustic time difference coefficient and use the product of the acoustic time difference and the acoustic time difference coefficient as the stress testing result of the workpiece to be tested.
[0086] It can be seen that the ultrasonic stress measurement device provided in the embodiment of the present application can select the critical refracted longitudinal wave waveform with the optimal calculation length for cross-correlation acoustic time difference calculation, which solves the problem of uncertainty in the selected critical refracted longitudinal wave waveform data when the cross-correlation method is used to calculate the acoustic time difference in the existing ultrasonic critical refracted longitudinal wave stress measurement process, thereby improving the measurement efficiency and measurement stability of the ultrasonic critical refracted longitudinal wave stress measurement.
[0087] In some embodiments, the search module 720 includes:
[0088] A segmentation module is used to use the starting point of the critical refraction longitudinal wave waveform as the calculation starting point of the calculation length of the cross-correlation calculation, and the relative wavelength of the calculation length is selected from zero. Each time a calculation length with a different relative wavelength is selected, a segmented critical refraction longitudinal wave waveform is obtained, until the relative wavelength of the calculation length reaches the total length of the critical refraction longitudinal wave waveform, and multiple segmented critical refraction longitudinal wave waveforms are obtained, wherein the starting point refers to the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes;
[0089] A cross-correlation calculation module is used to perform cross-correlation calculation on multiple segmented critical refracted longitudinal wave waveforms, each calculation length corresponds to a maximum cross-correlation eigenvalue, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be measured and the reference signal;
[0090] A first drawing module, used for drawing all calculated lengths and corresponding acoustic time differences into a first plane broken line graph;
[0091] The first determination module is used to use the first length interval as the optimal length interval for performing cross-correlation calculation on the signal to be tested when it is detected that the calculated length in the first plane line graph is in the first length interval and the corresponding acoustic time difference does not change with the change of the calculated length.
[0092] In some embodiments, the apparatus further comprises:
[0093] A position adjustment module is used to adjust the position of the calculation starting point of the cross-correlation calculation to obtain calculation starting points at multiple different positions, and for each calculation starting point, a corresponding segmented critical refraction longitudinal wave waveform is determined according to the calculation length;
[0094] A second drawing module is used to perform cross-correlation calculation on the segmented critical refraction longitudinal wave waveform of each calculation starting point, and draw a second plane line graph corresponding to the calculation starting points at different positions based on the result of the cross-correlation calculation;
[0095] A second determination module is used to use the second length interval as an optimal length interval for performing cross-correlation calculation on the signal to be tested when it is detected that the calculated length in the second plane line graph is in a second length interval and the corresponding acoustic time difference does not change with the change of the calculated length;
[0096] The length selection module is used to select the smallest length interval between the first length interval and the second length interval as the optimal calculation length for performing cross-correlation calculation on the signal to be tested when the acoustic time difference in the first length interval is the same as the acoustic time difference in the second length interval.
[0097] In some implementations, the formula for calculating the cross-correlation characteristic value of the signal to be measured and the reference signal is: Where x(t) is the reference signal, y(t+Δt) is the signal to be measured, Δt is the time shift of the signal to be measured on the time axis, n is the optimal calculation length selected on the critical refraction longitudinal wave waveform, and ρ xy is the cross-correlation eigenvalue, and t is the time axis.
[0098] Please refer to Figure 8 , Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 800 includes a processor 810, a memory 820, a communication interface 830, and at least one communication bus for connecting the processor 810, the memory 820, and the communication interface 830. The memory 820 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (PROM), or a portable CD-ROM, and the memory 820 is used for related instructions and data.
[0099] The communication interface 830 is used to receive and send data. The processor 810 can be one or more CPUs. When the processor 810 is a CPU, the CPU can be a single-core CPU or a multi-core CPU. The processor 810 in the electronic device 800 is used to read one or more programs 821 stored in the memory 820, and perform the following operations: obtain the signal to be tested of the workpiece to be tested and the reference signal of the zero stress sample consistent with the material of the workpiece to be tested, wherein the signal to be tested and the reference signal are both a set of critical refraction longitudinal wave waveforms; search for the optimal length interval for performing cross-correlation calculation on the critical refraction longitudinal wave waveform of the reference signal; select any calculation length within the optimal length interval as the optimal calculation length of the critical refraction longitudinal wave waveform of the signal to be tested and the reference signal; based on the optimal calculation length, use the cross-correlation algorithm to calculate the cross-correlation eigenvalue of the signal to be tested and the reference signal, and take the time shift corresponding to the maximum cross-correlation eigenvalue as the acoustic time difference between the signal to be tested and the reference signal; preset the acoustic time difference coefficient, and take the product of the acoustic time difference and the acoustic time difference coefficient as the stress test result of the workpiece to be tested.
[0100] It should be noted that the specific implementation of each operation can be Figure 1 According to the corresponding description of the method embodiment shown, the electronic device 800 can be used to execute an ultrasonic stress measurement method of the above method embodiment of the present application, which will not be described in detail here.
[0101] The embodiment of the present application also provides a computer-readable storage medium, which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the ultrasonic stress measurement method in the above embodiment. Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0102] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. An ultrasonic stress measurement method, characterized in that: Methods include: Acquire a signal to be measured of the workpiece to be measured and a reference signal of a zero-stress sample of the same material as the workpiece to be measured, wherein the signal to be measured and the reference signal are both a set of critical refraction longitudinal wave waveforms; Searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal; A calculation length is selected in the optimal length interval as the optimal calculation length of the critical refraction longitudinal wave waveform of the measured signal and the reference signal; Based on the optimal calculation length, a cross-correlation algorithm is used to calculate the cross-correlation eigenvalues of the signal to be tested and the reference signal, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be tested and the reference signal; The acoustic time difference coefficient is preset, and the product of the acoustic time difference and the acoustic time difference coefficient is used as the stress test result of the workpiece to be tested.
2. The ultrasonic stress measurement method according to claim 1, characterized in that: Searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal includes: The starting point of the critical refraction longitudinal wave waveform is used as the calculation starting point of the calculation length of the cross-correlation calculation, and the relative wavelength of the calculation length is selected from zero, and each calculation length with a different relative wavelength is selected to obtain a segmented critical refraction longitudinal wave waveform, until the relative wavelength of the calculation length reaches the total length of the critical refraction longitudinal wave waveform, and multiple segmented critical refraction longitudinal wave waveforms are obtained, wherein the starting point refers to the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes; A plurality of segmented critical refracted longitudinal wave waveforms are cross-correlated, each calculation length corresponds to a maximum cross-correlation eigenvalue, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be measured and the reference signal; Plot all calculated lengths and corresponding acoustic time differences into a first plane line graph; When it is detected that the calculated length in the first plane line graph is in the first length interval and the corresponding acoustic time difference does not change with the change of the calculated length, the first length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be tested.
3. The ultrasonic stress measurement method according to claim 2, characterized in that: The method further includes: adjusting the position of the calculation starting point of the cross-correlation calculation to obtain a plurality of calculation starting points at different positions, and for each calculation starting point, determining a corresponding segmented critical refraction longitudinal wave waveform according to the calculation length; Performing cross-correlation calculation on the segmented critical refraction longitudinal wave waveform of each calculation starting point, and drawing a second plane line graph corresponding to the calculation starting points at different positions based on the result of the cross-correlation calculation; When it is detected that the calculated length in the second plane line graph is in the second length interval and the corresponding acoustic time difference does not change with the change of the calculated length, the second length interval is used as the optimal length interval for performing cross-correlation calculation on the signal to be tested; When the acoustic time difference of the first length interval is the same as the acoustic time difference of the second length interval, the smallest length interval between the first length interval and the second length interval is taken as the optimal calculation length for performing cross-correlation calculation on the signal to be measured.
4. The ultrasonic stress measurement method according to claim 1, characterized in that: The calculation formula for calculating the cross-correlation characteristic value of the signal to be measured and the reference signal is: Where x(t) is the reference signal, y(t+Δt) is the signal to be measured, Δt is the time shift of the signal to be measured on the time axis, n is the optimal calculation length selected on the critical refraction longitudinal wave waveform, and ρ xy is the cross-correlation eigenvalue, and t is the time axis.
5. An ultrasonic stress measurement device, characterized in that: The device includes: A signal acquisition module, used to acquire a signal to be measured of the workpiece to be measured and a reference signal of a zero-stress sample consistent with the material of the workpiece to be measured, wherein the signal to be measured and the reference signal are both a set of critical refraction longitudinal wave waveforms; A search module, used for searching for an optimal length interval for performing cross-correlation calculation on the critical refracted longitudinal wave waveform of the reference signal; An optimal calculation length selection module is used to select any calculation length within the optimal length interval as the optimal calculation length of the critical refraction longitudinal wave waveform of the signal to be measured and the reference signal; The acoustic time difference calculation module is used to calculate the cross-correlation characteristic value of the signal to be measured and the reference signal based on the optimal calculation length by using the cross-correlation algorithm, and take the time shift corresponding to the maximum cross-correlation characteristic value as the acoustic time difference between the signal to be measured and the reference signal; The stress test module is used to preset the acoustic time difference coefficient and take the product of the acoustic time difference and the acoustic time difference coefficient as the stress test result of the workpiece to be tested.
6. The ultrasonic stress measurement device according to claim 5, characterized in that: Search modules, including: A segmentation module is used to use the starting point of the critical refraction longitudinal wave waveform as the calculation starting point of the calculation length of the cross-correlation calculation, and the relative wavelength of the calculation length is selected from zero. Each time a calculation length with a different relative wavelength is selected, a segmented critical refraction longitudinal wave waveform is obtained, until the relative wavelength of the calculation length reaches the total length of the critical refraction longitudinal wave waveform, and multiple segmented critical refraction longitudinal wave waveforms are obtained, wherein the starting point refers to the point where the amplitude of the critical refraction longitudinal wave waveform suddenly changes; A cross-correlation calculation module is used to perform cross-correlation calculation on multiple segmented critical refracted longitudinal wave waveforms, each calculation length corresponds to a maximum cross-correlation eigenvalue, and the time shift corresponding to the maximum cross-correlation eigenvalue is taken as the acoustic time difference between the signal to be measured and the reference signal; A first drawing module, used for drawing all calculated lengths and corresponding acoustic time differences into a first plane broken line graph; The first determination module is used to use the first length interval as the optimal length interval for performing cross-correlation calculation on the signal to be tested when it is detected that the calculated length in the first plane line graph is in the first length interval and the corresponding acoustic time difference does not change with the change of the calculated length.
7. The ultrasonic stress measurement device according to claim 6, characterized in that: The device also includes: A position adjustment module is used to adjust the position of the calculation starting point of the cross-correlation calculation to obtain calculation starting points at multiple different positions, and for each calculation starting point, a corresponding segmented critical refraction longitudinal wave waveform is determined according to the calculation length; A second drawing module is used to perform cross-correlation calculation on the segmented critical refraction longitudinal wave waveform of each calculation starting point, and draw a second plane line graph corresponding to the calculation starting points at different positions based on the result of the cross-correlation calculation; A second determination module is used to use the second length interval as an optimal length interval for performing cross-correlation calculation on the signal to be tested when it is detected that the calculated length in the second plane line graph is in a second length interval and the corresponding acoustic time difference does not change with the change of the calculated length; The length selection module is used to select the smallest length interval between the first length interval and the second length interval as the optimal calculation length for performing cross-correlation calculation on the signal to be tested when the acoustic time difference in the first length interval is the same as the acoustic time difference in the second length interval.
8. The ultrasonic stress measurement device according to claim 5, characterized in that: The calculation formula for calculating the cross-correlation eigenvalue of the measured signal and the reference signal is: Where x(t) is the reference signal, y(t+Δt) is the signal to be measured, Δt is the time shift of the signal to be measured on the time axis, n is the optimal calculation length selected on the critical refraction longitudinal wave waveform, and ρ xy is the cross-correlation eigenvalue, and t is the time axis.
9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of an ultrasonic stress measurement method as claimed in any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the ultrasonic stress measurement method according to any one of claims 1 to 4 are implemented.
