Computer readable medium, electronic device
The sound propagation duration is measured through the sound velocity field model and gradient optimization algorithm, which solves the problem of low detection accuracy of insulating oil in the outlet device of UHV transformer and achieves efficient ultrasonic detection.
Patent Information
- Application Number
- CN202211517198.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-11-29
AI Technical Summary
When existing ultrasonic testing technology monitors the insulating oil of the outlet device of UHV transformers, it is affected by thermal expansion and contraction, causing changes in acoustic characteristics and reducing detection accuracy. Moreover, the single-channel scanning time is long and the array detection resolution is low, making it difficult to effectively monitor the transformer. internal state.
Using computer-readable media that stores sound propagation duration measurement programs, through sound velocity field model construction and gradient optimization algorithms, the sound propagation duration between any two points in the uneven fluid container is measured, a scanning surface sound velocity field model is constructed, and the sound velocity field model is optimized. to improve detection accuracy.
The accuracy and resolution of ultrasonic detection of insulating oil in the outlet device of UHV transformer are improved, the ability to monitor the internal status of the transformer is enhanced, the detection error is reduced, and the detection efficiency is improved.
Smart Images

Figure CN115825252B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ultrasonic detection of a container containing an uneven fluid, and in particular to a computer-readable medium storing a sound propagation time measurement program and an electronic device. Background Art
[0002] Key connection parts such as the UHV transformer outlet device rely solely on the natural cycle of thermal expansion and contraction of insulating oil, which belongs to a semi-dead oil zone state. Once discharge breakdown occurs in this area, the short-circuit current does not pass through the winding, and the discharge energy is large, making it a high-risk area, seriously affecting the safety of the UHV power grid.
[0003] At present, the monitoring methods for key connection parts such as the outlet device of UHV transformers are divided into oil chromatography detection route, core grounding current detection route, core grounding high-frequency partial discharge detection route, etc. These detection methods mainly detect the characteristics of the fault state and cannot effectively monitor the entire process of the internal state change of the transformer.
[0004] Theoretically, ultrasound can be used for non-contact detection of UHV transformer outlet devices. However, the insulating oil contained in the UHV transformer outlet device will produce thermal cycles due to thermal expansion and contraction during operation, causing changes in the acoustic properties of the insulating oil at different positions and times, thus affecting the detection accuracy. Taking single-channel ultrasonic vertical incidence scanning detection as an example, its detection time is too long, and the errors caused by the acoustic properties of the insulating oil accumulate over time, resulting in extremely low accuracy. Taking array ultrasonic scanning detection as an example, array ultrasonic waves require a synthetic sound beam, which is difficult to achieve effective focusing, and the detection resolution is low and the accuracy is poor. Summary of the invention
[0005] The purpose of the present invention is to provide a computer-readable medium storing a sound propagation time measurement program and an electronic device for measuring the sound propagation time between any two points of a container containing an uneven fluid.
[0006] The technical solution of the present invention is:
[0007] A computer-readable medium storing a sound propagation time calculation program, wherein the sound propagation time calculation program comprises an input module, a sound speed calculation module, a shortest propagation time calculation module and an output module;
[0008] The sound velocity calculation module stores a scanning surface sound velocity field model constructed using a sound velocity field model construction method, and the sound velocity field model construction method includes the following steps:
[0009] Step S10: Scanning the container containing the inhomogeneous fluid in a scanning plane in a circular manner. During each transmitting and receiving process of scanning the container containing the inhomogeneous fluid in a circular manner, at the first transmitting position r sThe ultrasonic wave is emitted, and the n first sound pressure measurement positions r are measured at a time t after the emission. r The first sound pressure u obs (t,r r ,r s ), n≥2;
[0010] Step S11, establish a scanning surface structure simulation model of the container containing the non-uniform fluid, discretize the scanning surface structure simulation model, add the wave rule after the discrete processing, configure the sound speed of each discrete point, and obtain the scanning surface sound speed field model
[0011] Step S12: using a gradient optimization algorithm to iteratively correct the scanning surface sound velocity field model Obtain a scanning surface sound velocity field model that fits the sound velocity field in the scanning plane of step S10
[0012] The input module is used to input the third transmitting position of the m-times transmitting and receiving process in the scanning plane of the container containing the non-uniform fluid, the n third sound pressure measurement positions, and the third sound pressure measured at the third sound pressure measurement position, wherein m≥1; the third ultrasonic wave emitted at the third transmitting position is the same as the ultrasonic wave in the step S10;
[0013] The shortest propagation time length calculation module is used to calculate the propagation time t of the third ultrasonic wave emitted by the ith third emission position to the discrete point (x, z) position. i (x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j (x,z), where i is 1, 2, 3, ..., m; j is 1, 2, 3, ..., n;
[0014] The output module is used to output t i (x,z) and t j (x,z).
[0015] Preferably, the scanning surface structure simulation model includes a first discrete point for simulating air, a second discrete point for simulating the shell of the first container containing the non-uniform fluid, and a third discrete point for simulating the non-uniform fluid. The input module is also used to input the sound velocity of the first discrete point and the sound velocity of the second discrete point. The sound velocity measurement module updates the scanning surface sound velocity field model.
[0016] Preferably, assuming k≥0, in step S12, the scanning surface sound velocity field model is iteratively corrected using a gradient optimization algorithm The method comprises the following steps:
[0017] Step S120: Before the k+1th iteration, the scanning surface sound velocity field model In the simulation of all the transmitting and receiving processes of step S10, the scanning surface sound velocity field model Output the second sound pressure at the corresponding position at the time t after the emission.
[0018] set up
[0019]
[0020] like Then the iteration is terminated and the scanning surface sound velocity field model is obtained like Then the k+1th iteration is performed; ξ is the maximum threshold of the second sound pressure and the first sound pressure;
[0021] Step S121: At the k+1th iteration, the gradient operator
[0022] g k+1 =J T Δu k (2)Where J represents the Jacobian matrix, Δu k is the scanning surface sound velocity field model a difference between the output second sound pressure and the first sound pressure;
[0023] Use the gradient optimization algorithm to find the search direction and search step size, and update the scanning surface sound velocity field model
[0024]
[0025] In the formula, α k+1 is the iteration step length, d k+1 is the search direction, d k+1 =f(g k+1 );
[0026] Let k=k+1 and continue to execute step S120.
[0027] Further preferably, in step S121, d k+1 =-g k+1 , α k+1 is the iteration step size obtained using the line search method.
[0028] Further preferably, in the step S10, in each transmission and receiving process, the first ultrasonic wave is transmitted in the first direction at the first transmission position, and the first transmission position, the first direction and the n first sound pressure measurement positions are all set in the scanning plane; in the step S120, the sound velocity field model of the scanning plane is The method for simulating the one-time transmission and receiving process of step S10 is: taking the relative positions of the first transmission position, n first sound pressure measurement positions and the first container containing the non-uniform fluid in the one-time transmission and receiving process of step S10 as a reference basis, determining the second transmission position and n second sound pressure measurement positions according to the position of the scanning surface structure simulation model, setting the parameters of the second ultrasonic wave simulated at the second transmission position, the second ultrasonic wave simulating the first ultrasonic wave, and the scanning surface sound velocity field model The second sound pressure at the second sound pressure measurement position at a time t after the second ultrasonic wave is emitted is measured.
[0029] Preferably, the container containing the non-uniform fluid is a transformer outlet device, and in the step S10, n>31.
[0030] Preferably, in the step S11, a maximum grid size Δs for discretization processing is set to discretize the scanning surface structure simulation model;
[0031] The fluctuation rule after the discrete processing is:
[0032]
[0033] Where u(x,z,t) is the acoustic pressure field, (x,z) are the horizontal and vertical coordinates of the discrete points in the scanning surface, t is the time, v(x,z) is the sound velocity at the discrete point (x,z), Δt is the calculation time step, Δs is the maximum grid size, M represents 0.5 times the differential accuracy order, and C is the differential coefficient.
[0034] Further preferably, in step S11, the maximum grid size Δs is 1 / 8 of the minimum wavelength of the ultrasonic wave; the calculation time step Δt satisfies v min is the minimum sound velocity of the medium in the scanning plane.
[0035] Further preferably, the method in which the shortest propagation time measuring module measures the shortest propagation time between any two points in the scanning surface sound velocity field model is:
[0036] Assume that the discrete point p is within the previous sound propagation depth, corresponding to the position (x p ,z p ); point q is within the propagation depth of the next sound, corresponding to position (x q ,z q ), then the virtual propagation time of two discrete points, point p and point q, is
[0037]
[0038] In the formula, v(x p ,z p ) is a discrete point (x p ,z p )’s speed of sound;
[0039] If point p and point q are in the same sound propagation depth, or point p and point q are not in two adjacent sound propagation depths, or point p and point q are in two adjacent sound propagation depths, but point p is in the latter sound propagation depth and point q is in the former sound propagation depth, then let tof pq =∞, indicating that the sound wave cannot propagate between p and q temporarily;
[0040] If point p and point q are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q, and tof is updated. pq .
[0041] Still further preferably, for point p and point q which are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the Viterbi shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q.
[0042] Preferably, in step S10, an ultrasonic transmitter is used to transmit ultrasonic waves, and the ultrasonic transmitter is a linear array ultrasonic transmitter composed of m ultrasonic transmitting units. An ultrasonic receiver is used to measure the sound pressure at n first sound pressure measurement positions, and the ultrasonic receiver is a linear array ultrasonic receiver composed of n ultrasonic receiving units, where n≥m≥2.
[0043] An electronic device includes a processor and the aforementioned computer-readable medium storing a sound propagation duration measurement program.
[0044] The beneficial effects of the present invention are:
[0045] 1. In the computer-readable medium storing the sound propagation time measurement program of the present invention: the sound velocity measurement module of the sound propagation time measurement program stores a scanning surface sound velocity field model constructed using a sound velocity field model construction method, which is mainly used to determine the scanning surface sound velocity field of a container containing an inhomogeneous fluid. The shortest propagation time measurement module of the sound propagation time measurement program uses the third transmission position of the m transmission and reception processes, n third sound pressure measurement positions, and the third sound pressure measured at the third sound pressure measurement position, wherein m≥1; the third ultrasonic wave emitted at the third transmission position is the same as the ultrasonic wave in the step S10; the propagation time t of the third ultrasonic wave emitted from the i-th third transmission position to the third direction to the discrete point (x, z) is measured. i(x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j 9x,z), where i is 1, 2, 3, ..., m; j is 1, 2, 3, ..., n; the output module outputs t i (x,z) and t j (x,z) can be used as input to an imaging algorithm to obtain an ultrasonic image of a container containing an inhomogeneous fluid on a scanning plane.
[0046] 2. In the computer-readable medium storing the sound propagation time measurement program of the present invention: the scanning surface sound velocity field model includes a first discrete point for simulating air, a second discrete point for simulating the shell of the first container containing the inhomogeneous fluid, and a third discrete point for simulating the inhomogeneous fluid. The actual third emission position and the third sound pressure measurement position are not necessarily close to the shell of the second container containing the inhomogeneous fluid. Therefore, the actual sound velocity of the air and the actual sound velocity of the shell will affect the result. Therefore, by obtaining the sound velocity of the first discrete point and the sound velocity of the second discrete point, after the sound velocity measurement module updates the final sound velocity field model, the final sound velocity field model will be closer to the sound velocity field model of the second container containing the inhomogeneous fluid, which can improve the accuracy. In the sound propagation time measurement program, the shortest propagation time measurement module is independently extracted, rather than directly using the shortest propagation time measured by the first container containing the inhomogeneous fluid, so that the influence of the actual sound velocity of the air and the actual sound velocity of the shell on the result can be considered, which can improve the accuracy.
[0047] 4. In the computer-readable medium storing the sound propagation time measurement program of the present invention, when the scanning surface sound velocity field model is constructed using the sound velocity field model construction method: in the step S12, the optimization efficiency of the scanning surface sound velocity field model can be improved by using the gradient optimization algorithm.
[0048] 5. In the computer-readable medium storing the sound propagation time calculation program of the present invention, when the scanning surface sound velocity field model is constructed using the sound velocity field model construction method: in the step S121, d k+1 =-g k+1 , α k+1 is the iterative step size obtained using the line search method. It corresponds to the fastest gradient descent optimization algorithm, with fast convergence speed and high optimization efficiency.
[0049] 6. In the computer-readable medium storing the sound propagation time measurement program of the present invention, when the scanning surface sound velocity field model is constructed using the sound velocity field model construction method: in the step S10, in each transmission and reception process, an ultrasonic wave is transmitted in the first direction at one of the first transmission positions. Compared with transmitting the ultrasonic wave from more than two first transmission positions, the sound pressure at the first sound pressure measurement position will not be superimposed, and the effect of each ultrasonic wave in the scanning plane can be distinguished. Similarly, in each transmission and reception process simulated in step S120, the ultrasonic wave is transmitted in the second direction at one of the second transmission positions. The first transmission position, the first direction and the n first sound pressure measurement positions are all set on the scanning plane, and a two-dimensional sound field set in the scanning plane can be formed.
[0050] 6. In the computer-readable medium storing the sound propagation time measurement program of the present invention, when the scanning surface sound velocity field model is constructed using the sound velocity field model construction method: after the insulating oil is filled in the transformer, it is a container containing an uneven fluid. In actual use, the amount of insulating oil in the transformer is consistent, so the reproducibility is high. Since the size of the transformer outlet device is large, n>31, the ultrasonic receiving range can be effectively improved, the calculation area can be increased, and the detection efficiency can be improved; at the same time, the amount of data is increased, so that there are more reference quantities when inverting and calculating the scanning surface sound velocity field model, thereby improving the fitting degree of the scanning surface sound velocity field model.
[0051] 7. In the computer-readable medium storing the sound propagation time calculation program of the present invention, when the scanning surface sound velocity field model is constructed using the sound velocity field model construction method: the medium applicable to the existing wave equation is continuous, while the ultrasonic propagation characteristics of the medium of the container containing the non-uniform fluid are inconsistent. Only after discretization processing can the sound velocity be configured for different media on this basis. Add the wave equation after discretization processing to the scanning surface structure simulation model, configure the initial sound velocity of each discrete point in the scanning surface structure simulation model, and obtain the scanning surface sound velocity field model. In this way, an initial scanning surface sound velocity field model simulating the sound propagation characteristics is constructed to facilitate optimization fitting.
[0052] 8. In the computer-readable medium storing the sound propagation time calculation program of the present invention, when the scanning surface sound velocity field model is constructed using the sound velocity field model construction method: in the step S11, when the model space is discretized, 1 / 8 of the minimum wavelength of the ultrasonic wave is taken as the maximum grid size Δs, so that the medium on the ultrasonic wave propagation path can be finely distinguished. The calculation time step Δt satisfies v min It is the minimum sound velocity of the medium in the scanning plane. When the discrete points obtained in this way are used for finite difference forward simulation calculation, the physical dispersion phenomenon of sound waves in the propagation process can be effectively weakened while ensuring the stability of the difference format.
[0053] 9. In the computer-readable medium storing the sound propagation time calculation program of the present invention, in the method for the shortest propagation time calculation module to calculate the shortest propagation time between any two points in the sound velocity field model of the scanning surface, since the grid size is smaller than the wavelength, in the same sound propagation depth in the same spatial slice, each discrete point is approximately considered to be an isotropic medium, and the sound velocity does not change. Therefore, assuming that point p is within the previous sound propagation depth, corresponding to the position (x p ,z p ); point q is within the propagation depth of the next sound, corresponding to position (x q ,z q ), then the virtual propagation time of two discrete points, point p and point q, is In the formula, v(x p ,z p ) is a discrete point (x p ,z p ) speed of sound; if point p and point q are in the same sound propagation depth, or point p and point q are not in two adjacent sound propagation depths, or point p and point q are in two adjacent sound propagation depths, but point p is in the latter sound propagation depth and point q is in the former sound propagation depth, then let tof pq =∞, indicating that the sound wave cannot propagate between p and q temporarily; this can determine the shortest propagation time between any two medium points at two adjacent depths. If point p and point q are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q, and tof is updated. pq In this way, the shortest propagation time between any two medium points can be determined.
[0054] 10. In the computer-readable medium storing the sound propagation time calculation program of the present invention, in the method for the shortest propagation time calculation module to calculate the shortest propagation time between any two points in the scanning surface sound velocity field model, in the step S13, the Viterbi shortest path search algorithm is used to determine the shortest propagation path between any two points p and q on the spatial slice in the model space. The algorithm is mature and can save measurement workload.
[0055] 11. When the processor of the electronic device of the present invention executes the sound propagation time measurement program, t i (x,z) and t j (x,z). BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 The present invention is a flow chart of a method for ultrasonic imaging of a container containing an inhomogeneous fluid.
[0057] Figure 2The present invention is a schematic diagram of searching the propagation path of a first ultrasonic wave in an ultrasonic imaging method for a container containing an inhomogeneous fluid. DETAILED DESCRIPTION
[0058] The present invention is described in the form of embodiments in conjunction with the accompanying drawings to assist those skilled in the art in understanding and implementing the present invention. Unless otherwise specified, the following embodiments and the technical terms therein should not be understood without departing from the technical knowledge background of the technical field.
[0059] The ultrasonic detector includes an ultrasonic generator, an ultrasonic transmitter and an ultrasonic receiver.
[0060] The ultrasonic generator converts the AC power from the power supply into power suitable for powering the transducer at ultrasonic frequency, and is used to send high voltage electrical pulses to the ultrasonic transducer.
[0061] Ultrasonic transducers convert energy from electrical energy to mechanical energy, or mechanical energy to electrical energy. This conversion can be accomplished through piezoelectric ceramics or magnetostrictive materials. According to their functions, they can be divided into ultrasonic transmitters, ultrasonic receivers, and ultrasonic transceivers. Ultrasonic transmitters convert high-voltage electrical pulses into ultrasonic vibrations. Ultrasonic receivers convert ultrasonic vibrations into electrical signals. Ultrasonic transceivers can transmit and receive ultrasonic waves.
[0062] Embodiment 1: A method for ultrasonic imaging of a container containing an inhomogeneous fluid, comprising the following steps:
[0063] Step S10, using a two-dimensional sound field to scan a first container containing an inhomogeneous fluid, assuming that the plane where the two-dimensional sound field is located is a scanning plane; in each transmitting and receiving process, transmitting a first ultrasonic wave in a first transmitting position in a first direction, respectively measuring the sound pressures at n first sound pressure measurement positions, n ≥ 2, and obtaining the relative positions of the first transmitting position, the first direction, the n first sound pressure measurement positions and the first container containing the inhomogeneous fluid corresponding to each transmitting and receiving process, and the first sound pressure corresponding to the first sound pressure measurement position;
[0064] In the field of ultrasonic testing, the two-dimensional sound field, i.e., the first emission position, the first emission direction, and the n first sound pressure measurement positions are all within the scanning surface. When using the two-dimensional sound field to scan the first container containing the non-uniform fluid, generally within the same scanning surface, the first emission position needs to be moved so that the first emission position surrounds the scanning surface to complete the scanning of the scanning surface; after completing the scanning of a scanning surface, the scanning surface is moved stepwise along the normal direction of the scanning surface to complete the slice scanning of the first container containing the non-uniform fluid.
[0065] In this embodiment, an ultrasonic simulation model of a transformer outlet device is obtained. Therefore, the first container containing an uneven fluid to be scanned in this step is a transformer outlet device that can be used as a standard for measurement, that is, a normal transformer outlet device, which is different from a faulty transformer outlet device.
[0066] Specifically, during ultrasonic testing, the third ultrasonic wave received by the ultrasonic receiving unit is an ultrasonic feedback signal reflected by the medium. Therefore, the ultrasonic receiver and the ultrasonic transmitter are arranged on the same side of the transformer outlet device, and the ultrasonic transmitter, the ultrasonic receiver and the step-by-step displacement mechanism are fixedly connected, so that the step-by-step displacement mechanism drives the ultrasonic transmitter and the ultrasonic receiver to perform step-by-step scanning on the shell of the transformer outlet device in a normal state.
[0067] The ultrasonic transmitter can be composed of one ultrasonic transmitting unit. However, in practice, in order to improve efficiency, the ultrasonic transmitter is usually composed of more than two ultrasonic transmitting units in a linear array. In this embodiment, a two-dimensional sound field is used to detect the transformer outlet device. Therefore, the ultrasonic transmitter selects a linear array ultrasonic transmitter, which is composed of more than two ultrasonic transmitting units, and the ultrasonic receiver selects a linear array ultrasonic transmitter, which is composed of n ultrasonic receiving units. When in use, the ultrasonic transmitting unit, the ultrasonic wave emitted by the ultrasonic transmitting unit, and the n ultrasonic receiving units should all be arranged on the same plane.
[0068] In the ultrasonic detectors on the market, the functions of the ultrasonic transmitting unit and the ultrasonic receiving unit are generally realized through the ultrasonic transceiver unit, which is smaller in size and easier to scan and operate. In this case, the number of ultrasonic transmitting units and ultrasonic receiving units is the same. When scanning the shell of the transformer outlet device, it is best to make the ultrasonic transmitter close to the shell surface of the transformer outlet device.
[0069] Taking the ultrasonic transceiver composed of 16 ultrasonic transceiver units arranged in a linear array as an example, when in use, at each scanning position, one of the ultrasonic transceiver units is used to transmit a first ultrasonic wave (the first ultrasonic wave is generally a pulsed ultrasonic wave), the first ultrasonic wave is reflected in the transformer outlet device, and the ultrasonic feedback signal returned to the ultrasonic receiving unit is an ultrasonic feedback signal, so that all ultrasonic receiving units are waiting to receive the ultrasonic feedback signal. After all ultrasonic receiving units have received the ultrasonic feedback signal, a transmission and reception process is completed, and then the ultrasonic transceiver unit is replaced to transmit another first ultrasonic wave, and the next transmission and reception process is performed, until all 16 ultrasonic transceiver units have completed a transmission and reception process, the scanning position is scanned; the ultrasonic transceiver is moved step by step to the next scanning position, and the new scanning position is scanned until the scanning of the scanning surface is completed around the scanning surface; after completing the scanning of one scanning surface, the scanning surface is moved step by step along the normal direction of the scanning surface to complete the slice scanning of the first container containing the non-uniform fluid.
[0070] In each transmission and reception process, the relative positions of the ultrasonic transmitter, the ultrasonic receiver and the transformer outlet device are determined, wherein the ultrasonic excitation point of the ultrasonic transmitting unit corresponds to the first transmission position, the ultrasonic direction emitted by the ultrasonic transmitting unit corresponds to the first direction, and the position of the ultrasonic receiving unit corresponds to the first sound pressure measurement position. In each transmission and reception process, it is necessary to record the relative positions of the first transmission position, the first direction, the first sound pressure measurement position and the first container containing the non-uniform fluid, as well as the emission sound pressure of the first ultrasonic wave and the first sound pressure received at each first sound pressure measurement position. The purpose of recording the relative positions of the first transmission position, the first direction, the first sound pressure measurement position and the first container containing the non-uniform fluid, as well as the emission sound pressure of the first ultrasonic wave and the first sound pressure received at each first sound pressure measurement position in each transmission and reception process is to reproduce the transmission and reception process in subsequent simulations.
[0071] When establishing a transformer outlet device simulation model in the model space of the sound propagation simulation software and performing sound propagation simulation, when the relative positions of the second emission position, the second emission direction, the n second sound pressure measurement positions and the transformer outlet device simulation model are the same as the relative positions of the first emission position, the first emission direction, the n first sound pressure measurement positions and the transformer outlet device, the second ultrasonic wave is simulated to be emitted along the second emission direction at the second emission position, and the second ultrasonic wave should simulate the first ultrasonic wave, that is, the emission sound pressure, waveform and other physical quantities of the second ultrasonic wave should be the same as the emission sound pressure, waveform and other physical quantities of the first ultrasonic wave, and the second sound pressure at the matching n second sound pressure measurement positions is measured and calculated by forward simulation. Generally, in the sound propagation simulation software, only relevant parameters need to be input to obtain the second sound pressure at the second sound pressure measurement position.
[0072] When simulating the emission of the second ultrasonic wave, if the second ultrasonic wave propagates spherically, that is, propagates diffusely in all directions in the scanning plane, it is not necessary to make the second emission direction the same as the first emission direction.
[0073] In the simulation, if the difference between the second sound pressure at the second sound pressure measurement position and the first sound pressure at the equivalent first sound pressure measurement position is within the sound pressure attenuation equivalent threshold, it is considered that the simulated propagation path from the second ultrasonic wave emitted from the second emission position in the model space to the second sound pressure measurement position is consistent with the measured propagation path from the first ultrasonic wave emitted from the first emission position in this step to the corresponding first sound pressure measurement position, and the emission and reception process from the first emission position to the first sound pressure measurement position is reproduced, and the ultrasonic propagation characteristics of the medium on the simulated propagation path are consistent with the ultrasonic propagation characteristics on the measured propagation path. In the simulation, if all the sound pressure detection points corresponding to the same second ultrasonic wave reproduce the emission and reception process from the first emission position to the first sound pressure measurement position, that is, the simulated propagation path of the second ultrasonic wave measured in the model space is consistent with the actual propagation path of the first ultrasonic wave in this step, that is, the ultrasonic sound velocity characteristics of the medium on the n simulated propagation paths of the second ultrasonic wave of the transformer outlet device simulation model in the model space are the same as the ultrasonic sound velocity characteristics of the medium on the n measured propagation paths of the first ultrasonic wave of the actual transformer outlet device. By traversing and simulating the scanning transformer outlet device simulation model, when all second transmitting positions reproduce the transmitting and receiving process of the first transmitting position in this step, it is considered that the ultrasonic sound velocity characteristics of the transformer outlet device simulation model in the model space are the same as the ultrasonic sound velocity characteristics of the measured transformer outlet device. In this way, a sound velocity field model of the transformer outlet device is obtained.
[0074] In actual operation, the relative positions of the first emission position, the first emission direction, the first sound pressure measurement position and the transformer outlet device are generally kept in an easily reproducible pattern to reduce the complexity of the simulation.
[0075] After obtaining the sound velocity field model of the first container containing the inhomogeneous fluid, the shortest path search algorithm is used to determine the shortest propagation time tof between any two points p and q in the model space according to the Fermat principle. pq , the shortest propagation time tof pq The shortest propagation time between all two points corresponds to the propagation path of the second ultrasonic wave. The ultrasonic simulation model of the first container containing the inhomogeneous fluid can be constructed.
[0076] When in use, the transformer outlet device to be tested is subjected to m transmission and reception processes. In each transmission and reception process, a third ultrasonic wave is transmitted in a third direction at a third transmission position, and the third sound pressure is measured at n third sound pressure measurement positions respectively. The transmission sound pressure, waveform, etc. of the third ultrasonic wave are the same as the transmission sound pressure and waveform of the first ultrasonic wave, and when the shell of the transformer outlet device to be tested coincides with the shell of the transformer outlet device in this step, the detection plane determined by the third direction and the n third sound pressure measurement positions is parallel to the scanning plane in this step. The third transmission position, the third direction, the relative position of the n third sound pressure measurement positions and the first container containing the non-uniform fluid obtained by the m transmission and reception processes, and the third sound pressure corresponding to the third sound pressure measurement position are input into the ultrasonic simulation model, and the ultrasonic simulation model outputs the propagation time t of the third ultrasonic wave transmitted from the i-th third transmission position to the third direction to the discrete point (x, z) position. i (x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j (x, z), wherein m≥1; i is 1, 2, 3, ..., m; j is 1, 2, 3, ..., n; an imaging algorithm is used to calculate the pixel values of discrete points in the detection plane to obtain an ultrasonic image of the second container containing the non-uniform fluid in the detection plane.
[0077] When emitting the third ultrasonic wave, if the third ultrasonic wave propagates in a hemispherical manner, that is, propagates diffusely in all directions in the scanning plane, it is not necessary to make the third radiation direction the same as the first radiation direction.
[0078] In the ultrasonic detectors on the market, the ultrasonic transceiver unit is about 2 cm wide, so the distance between two adjacent ultrasonic transceiver units is about 5 cm. Combining the principle of the present invention, it can be seen that:
[0079] First, in theory, the closer the distance between adjacent first transmitting positions and the closer the distance between adjacent first sound pressure measurement positions, the better the inversion accuracy of the ultrasonic sound velocity characteristics of the sound velocity field model of the transformer outlet device and the ultrasonic sound velocity characteristics of the actual transformer outlet device. However, the coverage range of a single transmitting and receiving process is small and the scanning efficiency is low. Therefore, it is necessary to take into account both the scanning efficiency and the fitting accuracy, that is, it is necessary to properly control the distance between the two adjacent first transmitting positions and the distance between the two adjacent first sound pressure measurement positions.
[0080] Second, in theory, in a transmission and reception process, the larger the n, the more reference points are obtained for the inversion calculation, thereby improving the similarity between the ultrasonic sound velocity characteristics of the simulation model of the transformer outlet device in the model space and the ultrasonic sound velocity characteristics of the actual transformer outlet device.
[0081] Third, the n first sound pressure measurement positions do not need to be arranged regularly. However, the array setting of the n first sound pressure measurement positions combined with the step-by-step scanning is more suitable for the gridding measures of the simulation, and can also avoid missing scanning positions during scanning. Moreover, this can reduce the complexity of the model and the difficulty of operation.
[0082] Since the size of the transformer is much larger than that of the ultrasonic transmitting unit and the ultrasonic receiving unit, theoretically, the more ultrasonic transmitting units and the more ultrasonic receiving units there are, the better. The more ultrasonic receiving units there are, the wider the coverage of the first ultrasonic wave is. The more ultrasonic transmitting units there are, the fewer times of step-by-step movement are required, which can improve the transformer detection efficiency. In this embodiment, n is preferably ≥32.
[0083] At present, COMSOL software can realize computer simulation of sound wave propagation process using finite element method. In this embodiment, finite difference method is used to self-program and realize forward simulation process. When simulating the sound wave propagation process, it is necessary to establish an initial sound velocity field model of the transformer outlet device, and then continuously correct the sound velocity field model of the transformer outlet device according to the inversion process, so that the second sound pressure received in the forward simulation process approaches the first sound pressure actually collected.
[0084] Step S11, establishing a simulation model of the first container containing the non-uniform fluid in the model space of the sound propagation simulation software, discretizing the model space, using the parallel plane of the scanning surface to slice the simulation model layer by layer, adding the wave rule after the discretization processing, configuring the sound speed for each discrete point on the obtained space slice, and obtaining an initial sound speed field model of the model space;
[0085] When discretizing the model space of the sound propagation software, it is necessary to reasonably select the mesh size and the calculation time step. The way to select the mesh size and the calculation time step is:
[0086] Take 1 / 8 of the minimum wavelength as the maximum grid size in the model space, and the calculation time step satisfies the Courant-Friedrichs-Le wy (CFL) condition, that is:
[0087]
[0088] Among them, v min is the minimum sound velocity value in the model space, Δt is the calculation time step, and Δs is the maximum grid size in the model space;
[0089] According to the minimum sound speed value v in the model space min , calculate the minimum wavelength, and then determine the maximum grid size in the model space. Combined with formula (5), the range of the calculation time step can be determined.
[0090] By simulating the sound wave propagation process by computer, the received sound pressure signal, wave source and propagation medium satisfy the wave equation:
[0091]
[0092] Among them, u(x,z,t) is the sound pressure field, (x,z) are the horizontal and vertical coordinates of the medium in the two-dimensional sound field, t is time, and v(x,z) is the sound speed in the medium at point (x,z). is the Laplace operator, and s(x,z,t) is the source term.
[0093] According to the finite difference method, the discrete form of the wave equation transformation is:
[0094]
[0095] Among them, u(x,z,t) is the acoustic pressure field, (x,z) are the horizontal and vertical coordinates of the medium in the space slice, t is time, v(x,z) is the sound velocity of the medium at the discrete point (x,z), Δt is the calculation time step, Δs is the maximum grid size of the model space, M represents 0.5 times the differential accuracy order, and C is the differential coefficient. For example, M=1 represents the second-order differential accuracy; M=2 represents the fourth-order differential accuracy; M=3 represents the sixth-order differential accuracy; and so on.
[0096] The simulation model is cut layer by layer using a plane parallel to the scanning plane, that is, when the simulation model of the first container containing the non-uniform fluid coincides with the first container containing the non-uniform fluid in step S10, the cutting plane of this step is parallel to the scanning plane in step S10. The purpose is to make the scanning plane of the first container containing the non-uniform fluid in step S10 set in the same way as the cutting plane of the simulation model.
[0097] The wave equation after discretization is added to the model space, and the initial sound velocity of the medium at each discrete point in the model space is input to obtain the initial sound velocity field model of the model space. For the initial sound velocity of the medium in the simulation model of the transformer outlet device, the initial sound velocity of the shell is the theoretical sound velocity at normal temperature and pressure, the initial sound velocity of the insulating oil inside is the theoretical sound velocity at normal temperature and pressure without disturbance, and the medium sound velocity at the discrete points outside the transformer outlet device in the model space is the theoretical sound velocity of air at normal temperature and pressure.
[0098] Step S12, forward simulating the transmitting and receiving process of step S10 at the matching position of the simulation model; taking the second sound pressure measured at the matching position of the simulation model approaching the first sound pressure obtained in step S10 as the goal, using the gradient optimization algorithm to iteratively correct the initial sound velocity field model, so that the ultrasonic sound velocity properties of the model space fit the ultrasonic sound velocity properties of the first container containing the inhomogeneous fluid in step S10, and obtaining the final sound velocity field model of the model space;
[0099] Use the sound propagation simulation software to simulate the emission of the second ultrasonic wave at the matched second emission position along the second emission direction, and forward simulate and measure the second sound pressure at the matched n second sound pressure measurement positions. Among them, when the relative positions of the second emission position, the second emission direction, the n second sound pressure measurement positions and the transformer outlet device simulation model are consistent with the relative positions of the first emission position, the first emission direction, the n first sound pressure measurement positions and the transformer outlet device in step S10, the second emission position matches the first emission position, the second emission direction matches the first emission direction, and the second sound pressure measurement position matches the first sound pressure measurement position. The acoustic characteristics of the emission sound pressure, waveform and other acoustic characteristics of the second ultrasonic wave are consistent with the acoustic characteristics of the emission sound pressure, waveform and other acoustic characteristics of the first ultrasonic wave in step S10.
[0100] The data difference between the ultrasonic feedback signal obtained in the forward numerical simulation process and the actually collected ultrasonic feedback signal is calculated and expressed as the objective function in the sense of least squares:
[0101]
[0102] Among them, u cal is the second sound pressure calculated by forward modeling in the sound velocity field v, u obs is the first sound pressure.
[0103] The discretized objective function is:
[0104]
[0105] Among them, u cal (t,r r ,r s |ν) is the second sound pressure calculated by forward modeling in the sound velocity field v, u obs (t,r r ,r s ) is the first sound pressure, r s represents the second launch position, r t Indicates the second sound pressure measurement position.
[0106] The definition of the gradient in the model is the partial derivative of the objective function with respect to the sound velocity field in the model, and the gradient operator is:
[0107]
[0108] Where J represents the Jacobian matrix, Δu k The sound velocity field model The difference between the second sound pressure outputted and the first sound pressure.
[0109] Combined with the parameter information of the model space, such as the sound velocity, the second sound pressure and the first sound pressure of each discrete point, the gradient of the objective function with respect to the sound velocity field at all positions at any time in the model space is calculated.
[0110] Based on the gradient optimization algorithm, the objective function is minimized and the sound velocity field model is iteratively updated. The flow chart is as follows: Figure 1 The specific process is as follows:
[0111] The calculation is performed starting from the given initial sound velocity field model v0. Since the relationship between the data and the model parameters is nonlinear, multiple iterations are required to converge to the local minimum of the objective function near the sound velocity field model.
[0112] In each iteration, the search direction and search step size are found through the gradient optimization algorithm to update the sound velocity field model. Take the k+1th iteration as an example:
[0113] ν k+1 =v k +α k+1 d k+1 (11)
[0114] Among them, ν k+1 is the sound velocity field model obtained at the k+1th iteration, α k+1 is the iteration step size for k+1 iterations, d k+1 is the search direction for k+1 iterations, d k+1 =f(g k+1 ).
[0115] Different gradient descent methods are used, and the f(g) function is also different. In this embodiment, the fastest gradient descent optimization algorithm is used, so d k+1 =-g k+1 In other embodiments, the conjugate gradient method, the spectral conjugate gradient method, the mixed conjugate gradient method, etc. may also be used.
[0116] When E(v k+1 )<E(v k ) means that the objective function value decreases until E(v k+1 )≤ξ, then the sound velocity field model v k+1 That is the final sound velocity field model; where ξ is the maximum threshold of the difference between the second sound pressure obtained by the forward numerical simulation and the first sound pressure actually collected.
[0117] Step S13: Combining the discrete points and the final sound velocity field model, determine the shortest propagation time tof between any two points p and q on each of the spatial slices in the model space. pq , all the shortest propagation times constitute the ultrasonic simulation model;
[0118] Based on the Fermat principle, that is, "ultrasound always propagates between two fixed points in space along the path of the shortest time", the propagation path of the sound line in the model space is approximated to the shortest path problem in computer graph theory. According to the Viterbi shortest path search algorithm, the sound propagation path and sound propagation time between any two fixed points in the model space are calculated, and the sound-time matrix of the model space is established.
[0119] Taking the 4-layer space model as an example, the sound line search is as follows Figure 2 As shown, the x-axis is horizontal to the right, and the z-axis is the depth direction.
[0120]
[0121] Assume that the number of grid points at the same depth after discretization is A, and the number of all discrete points is D, then Figure 1 , A=7.
[0122] After abstraction, there is the following discrete point matrix:
[0123]
[0124] Among them, D=(B+1)·A.
[0125] Assume that the second transmitting position is S, the second sound pressure measurement position is set to point e, and the second ultrasonic wave is emitted from point S and reaches point e.
[0126] In order to construct the Viterbi shortest path search algorithm, it is necessary to establish an acoustic time matrix to represent the acoustic propagation time between any two fixed points. Since the grid size is smaller than the wavelength, the grid at the same depth is approximately considered to be an isotropic medium, and the sound speed does not change. Therefore, all grid points are connected by paths, which are all search paths from point S to point e. pq Represents the propagation time between any two points p and q. The sound wave can only propagate between p and q when p and q are located in adjacent grids and are not at the same depth. Therefore, the acoustic time matrix of the model space is established:
[0127]
[0128] Among them, A represents the number of grid points at the same depth position after discretization, and D represents the number of all grid points.
[0129] When the discrete point p is within the previous sound propagation depth, corresponding to the position (x p ,z p ); point q is within the propagation depth of the next sound, corresponding to position (x q ,z q ), then the virtual propagation time of two discrete points, point p and point q, is
[0130]
[0131] In the formula, ν(x p ,z p ) is a discrete point (x p ,z p )’s speed of sound;
[0132] If point p and point q are in the same sound propagation depth, or point p and point q are not in two adjacent sound propagation depths, or point p and point q are in two adjacent sound propagation depths, but point p is in the latter sound propagation depth and point q is in the former sound propagation depth, then let tof pq =∞, indicating that the sound wave cannot propagate between p and q for the time being.
[0133] If point p and point q are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q, and tof is updated. pq .
[0134] According to Fermat's principle, the sound propagation path is the path with the shortest sound propagation time among all possible paths. Therefore, the Viterbi shortest path search algorithm is used to calculate the shortest sound propagation time. First, starting from the sound source point S, for the A discrete points in the first layer, it is obvious that the time between S and each point in the first layer is the shortest time. The time between S and each point in the first layer is obtained by searching the sound time matrix: tof = tof 1a , where a=1,2,3,…,A; then calculate the propagation time of A discrete points in the second layer. For a specific point b, the sound propagation time is tof 1b =min(tof 1a +tof ab ); By iterative calculation, the shortest propagation time from the sound source point S to all grid points can be obtained, and finally the sound propagation path corresponding to the shortest time can be calculated according to the backtracking principle.
[0135] Step S14, inputting the third transmitting position, the third direction, the relative positions of the n third sound pressure measurement positions and the second container containing the non-uniform fluid obtained in the m-th transmitting and receiving process into the ultrasonic simulation model, and the third sound pressure corresponding to the third sound pressure measurement position, the ultrasonic simulation model outputs the propagation time t of the third ultrasonic wave emitted from the i-th third transmitting position to the third direction to the discrete point (x, z) i (x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j (x,z), wherein m≥1; i is 1, 2, 3, ..., m; j is 1, 2, 3, ..., n; assuming that the second container containing the inhomogeneous fluid coincides with the first container containing the inhomogeneous fluid, the detection plane determined by the third radiation direction and the n third sound pressure measurement positions is parallel to the scanning plane in the step S10, and the third ultrasonic wave is the same as the first ultrasonic wave in the step S10; an imaging algorithm is used to calculate the pixel values of discrete points in the detection plane to obtain an ultrasonic image of the second container containing the inhomogeneous fluid in the detection plane.
[0136] In this step, the transmitting and receiving process can be actually carried out, that is, in each transmitting and receiving process, a third ultrasonic wave is transmitted in a third transmitting position toward a third direction, and the transmitting sound pressure, waveform, etc. of the third ultrasonic wave should be the same as the transmitting sound pressure, waveform, etc. of the first ultrasonic wave, and the third sound pressure is measured at n third sound pressure measurement positions. The transmitting and receiving process can also be simulated. It can also be the third transmitting position, the third direction, the relative positions of the n third sound pressure measurement positions and the second container containing the non-uniform fluid involved in the transmitting and receiving process directly obtained without transmitting, and the third sound pressure at the third sound pressure measurement position.
[0137] In this embodiment, the propagation time t of the third ultrasonic wave emitted from the i-th third emission position toward the third emission direction to the discrete point (x, z) is obtained. i (x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j (x, z), wherein i is 1, 2, 3, ..., m respectively; j is 1, 2, 3, ..., n respectively; the focusing law of the first ultrasonic wave focused to any position in the detection plane in the model space is calculated by post-processing, and combined with the full focusing imaging algorithm, the coherent summation of all the third ultrasonic waves at the m third emission positions and the n third sound pressure measurement positions at discrete points in the detection plane of the simulation model is measured in the model space.
[0138] Therefore, the imaging algorithm used is
[0139]
[0140] Where I(x,z) is the pixel value at the discrete point (x,z), h() is the Hilbert transform, m is the number of the third emission positions, n is the number of the third sound pressure measurement positions, and u is ij is the third sound pressure of the third ultrasonic wave emitted from the i-th third emission position propagating to the j-th third sound pressure measurement position, t i (x,z) represents the propagation time of the third ultrasonic wave emitted by the ith third transmitting position to the discrete point (x,z), t j (x, z) represents the propagation time of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position.
[0141] In formula (13), if the ultrasonic transmitter has only one ultrasonic transmitter unit, then m=1. If the ultrasonic transmitter has m ultrasonic transmitter units, when in use, at a scanning position, the ultrasonic transmitter can be kept unchanged and m transmission and reception processes can be performed by changing the ultrasonic transmitter units.
[0142] Coherent superposition does not change the actual sound pressure at the actual target point position. It is only a virtual focusing processing method that can increase the amplitude of the target point during imaging and improve the resolution.
[0143] Based on Example 1, a computer-readable medium storing a sound propagation time calculation program of the present invention can be obtained, wherein the sound propagation time calculation program includes an input module, a sound speed calculation module, a shortest propagation time calculation module and an output module;
[0144] The sound velocity calculation module stores a scanning surface sound velocity field model constructed using a sound velocity field model construction method, and the sound velocity field model construction method includes the following steps:
[0145] Step S10: Scanning the container containing the inhomogeneous fluid in a scanning plane in a circular manner. During each transmitting and receiving process of scanning the container containing the inhomogeneous fluid in a circular manner, at the first transmitting position r s The ultrasonic wave is emitted, and the n first sound pressure measurement positions r are measured at a time t after the emission. r The first sound pressure u obs (t,r r ,r s ), n≥2;
[0146] Step S11, establish a scanning surface structure simulation model of the container containing the non-uniform fluid, discretize the scanning surface structure simulation model, add the wave rule after the discrete processing, configure the sound speed of each discrete point, and obtain the scanning surface sound speed field model
[0147] Step S12: using a gradient optimization algorithm to iteratively correct the scanning surface sound velocity field model Obtain a scanning surface sound velocity field model that fits the sound velocity field in the scanning plane of step S10
[0148] The input module is used to input a third transmitting position, n third sound pressure measurement positions, and a third sound pressure measured at the third sound pressure measurement position obtained in m transmitting and receiving processes within a scanning plane of a container containing an inhomogeneous fluid, wherein m≥1; the third ultrasonic wave is the same as the ultrasonic wave in step S10;
[0149] The shortest propagation time length calculation module is used to calculate the propagation time t of the third ultrasonic wave emitted by the ith third emission position to the discrete point (x, z) position. i (x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j (x,z), where i is 1, 2, 3, ..., m; j is 1, 2, 3, ..., n;
[0150] The output module is used to output t i (x,z) and t j (x,z).
[0151] Preferably, the scanning surface structure simulation model includes a first discrete point for simulating air, a second discrete point for simulating the shell of the first container containing the non-uniform fluid, and a third discrete point for simulating the non-uniform fluid. The input module is also used to input the sound velocity of the first discrete point and the sound velocity of the second discrete point. The sound velocity measurement module updates the scanning surface sound velocity field model.
[0152] Preferably, assuming k≥0, in step S12, the scanning surface sound velocity field model is iteratively corrected using a gradient optimization algorithm The method comprises the following steps:
[0153] Step S120: Before the k+1th iteration, the scanning surface sound velocity field model In the simulation of all the transmitting and receiving processes of step S10, the scanning surface sound velocity field model Output the second sound pressure at the corresponding position at the time t after the emission.
[0154]
[0155] set up
[0156]
[0157] like Then the iteration is terminated and the scanning surface sound velocity field model is obtained like Then the k+1th iteration is performed; ξ is the maximum threshold of the second sound pressure and the first sound pressure;
[0158] Step S121: At the k+1th iteration, the gradient operator
[0159] g k+1 =J T Δu k (15)
[0160] Where J represents the Jacobian matrix, Δu k is the scanning surface sound velocity field model a difference between the output second sound pressure and the first sound pressure;
[0161] Use the gradient optimization algorithm to find the search direction and search step size, and update the scanning surface sound velocity field model
[0162]
[0163] In the formula, α k+1 is the iteration step length, d k+1 is the search direction, d k+1 =f(g k+1 );
[0164] Let k=k+1 and continue to execute step S120.
[0165] Further preferably, in step S121, d k+1 =-g k+1 , α k+1 is the iteration step size obtained using the line search method.
[0166] Further preferably, in the step S10, in each transmission and receiving process, the first ultrasonic wave is transmitted in the first direction at the first transmission position, and the first transmission position, the first direction and the n first sound pressure measurement positions are all set in the scanning plane; in the step S120, the sound velocity field model of the scanning plane is The method for simulating the one-time transmission and receiving process of step S10 is: taking the relative positions of the first transmission position, n first sound pressure measurement positions and the first container containing the non-uniform fluid in the one-time transmission and receiving process of step S10 as a reference basis, determining the second transmission position and n second sound pressure measurement positions according to the position of the scanning surface structure simulation model, setting the parameters of the second ultrasonic wave simulated at the second transmission position, the second ultrasonic wave simulating the first ultrasonic wave, and the scanning surface sound velocity field model The second sound pressure at the second sound pressure measurement position at a time t after the second ultrasonic wave is emitted is measured.
[0167] Preferably, the container containing the non-uniform fluid is a transformer outlet device, and in the step S10, n>31.
[0168] Preferably, in the step S11, a maximum grid size Δs for discretization processing is set to discretize the scanning surface structure simulation model;
[0169] The fluctuation rule after the discrete processing is:
[0170]
[0171] Where u(x,z,t) is the acoustic pressure field, (x,z) are the horizontal and vertical coordinates of the discrete points in the scanning surface, t is the time, v(x,z) is the sound velocity at the discrete point (x,z), Δt is the calculation time step, Δs is the maximum grid size, M represents 0.5 times the differential accuracy order, and C is the differential coefficient.
[0172] Further preferably, in step S11, the maximum grid size Δs is 1 / 8 of the minimum wavelength of the ultrasonic wave; the calculation time step Δt satisfies v min is the minimum sound velocity of the medium in the scanning plane.
[0173] Further preferably, the method in which the shortest propagation time measuring module measures the shortest propagation time between any two points in the scanning surface sound velocity field model is:
[0174] Assume that the discrete point p is within the previous sound propagation depth, corresponding to the position (x p ,z p ); point q is within the propagation depth of the next sound, corresponding to position (x q ,z q ), then the virtual propagation time of two discrete points, point p and point q, is
[0175]
[0176] In the formula, ν(x p ,z p ) is a discrete point (x p ,z p )’s speed of sound;
[0177] If point p and point q are in the same sound propagation depth, or point p and point q are not in two adjacent sound propagation depths, or point p and point q are in two adjacent sound propagation depths, but point p is in the latter sound propagation depth and point q is in the former sound propagation depth, then let tof pq=∞, indicating that the sound wave cannot propagate between p and q temporarily;
[0178] If point p and point q are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q, and tof is updated. pq .
[0179] Still further preferably, for point p and point q which are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the Viterbi shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q.
[0180] Preferably, in step S10, an ultrasonic transmitter is used to transmit ultrasonic waves, and the ultrasonic transmitter is a linear array ultrasonic transmitter composed of m ultrasonic transmitting units. An ultrasonic receiver is used to measure the sound pressure at n first sound pressure measurement positions, and the ultrasonic receiver is a linear array ultrasonic receiver composed of n ultrasonic receiving units, where n≥m≥2.
[0181] An electronic device can also be obtained, including a processor and the aforementioned computer-readable medium storing the sound propagation duration measurement program.
[0182] The present invention is described in detail above with reference to the accompanying drawings and embodiments. It should be understood that it is impossible to describe all possible implementation methods in practice, and the inventive concept of the present invention is described as much as possible by way of example. Without departing from the inventive concept of the present invention and without creative work, the technical personnel in this technical field make selections and combinations of the technical features in the above embodiments, make experimental changes to the specific parameters, or use the prior art in this technical field to conventionally replace the disclosed technical means of the present invention to form specific embodiments, which should all belong to the implicit disclosure of the present invention.
Claims
1. A computer-readable medium storing a sound propagation time calculation program, wherein the sound propagation time calculation program comprises an input module, a sound speed calculation module, a shortest propagation time calculation module and an output module; the sound speed calculation module stores a scanning surface sound speed field model constructed using a sound speed field model construction method, characterized in that: The method for constructing a sound velocity field model comprises the following steps: Step S10: scanning the first container containing the non-uniform fluid in a circumferential manner in a scanning plane. During each transmitting and receiving process of scanning the first container containing the non-uniform fluid in a circumferential manner, at the first transmitting position r s The ultrasonic wave is emitted, and the n first sound pressure measurement positions r are measured at a time t after the emission. r The first sound pressure u obs (t,r r ,r s ), n≥2; Step S11, establishing a scanning surface structure simulation model of the first container containing the non-uniform fluid, discretizing the scanning surface structure simulation model, adding the wave rule after the discrete processing, configuring the sound velocity of each discrete point, and obtaining the scanning surface sound velocity field model ; Step S12: using a gradient optimization algorithm to iteratively correct the scanning surface sound velocity field model , obtain the scanning surface sound velocity field model that fits the sound velocity field in the scanning plane of step S10 ; The input module is used to input the third transmitting position of the m-times transmitting and receiving process in the scanning plane of the container containing the non-uniform fluid, the n third sound pressure measurement positions, and the third sound pressure measured at the third sound pressure measurement position, wherein m≥1; the third ultrasonic wave emitted at the third transmitting position is the same as the ultrasonic wave in the step S10; The shortest propagation time length calculation module is used to calculate the propagation time t of the third ultrasonic wave emitted by the ith third emission position to the discrete point (x, z) position. i (x, z) and the propagation time t of the third ultrasonic wave from the discrete point (x, z) to the jth third sound pressure measurement position j (x,z), where i is 1, 2, 3, ..., m; j is 1, 2, 3, ..., n; The output module is used to output t i (x,z) and t j (x,z); In the step S11, a maximum grid size Δs for discretization processing is set to discretize the scanning surface structure simulation model; The fluctuation rule after the discretization process is: (4); Wherein, u(x,z,t) is the acoustic pressure field, (x,z) are the horizontal and vertical coordinates of the discrete points in the scanning surface, t is the time, v(x,z) is the sound velocity at the discrete point (x,z), Δt is the calculation time step, Δs is the maximum grid size, M represents 0.5 times the differential accuracy order, and C is the differential coefficient; In step S11, the maximum grid size Δs is 1 / 8 of the minimum wavelength of the ultrasonic wave; the calculation time step Δt satisfies , v min is the minimum sound velocity of the medium in the scanning plane.
2. The computer-readable medium storing the sound propagation duration calculation program according to claim 1, characterized in that: The scanning surface structure simulation model includes a first discrete point for simulating air, a second discrete point for simulating the shell of the first container containing the inhomogeneous fluid, and a third discrete point for simulating the inhomogeneous fluid. The input module is also used to input the sound velocity of the first discrete point and the sound velocity of the second discrete point. The sound velocity measurement module updates the scanning surface sound velocity field model. .
3. The computer-readable medium storing the sound propagation duration calculation program according to claim 1, characterized in that: Assume k≥0, in step S12, use the gradient optimization algorithm to iteratively correct the scanning surface sound velocity field model The method comprises the following steps: Step S120: Before the k+1th iteration, the scanning surface sound velocity field model In the simulation of all the transmitting and receiving processes of step S10, the scanning surface sound velocity field model Output the second sound pressure at the corresponding position at the time t after the emission. ; set up (1); like , the iteration is terminated and the scanning surface sound velocity field model is obtained ;like , then the k+1th iteration is performed; ξ is the maximum threshold of the second sound pressure and the first sound pressure; Step S121: At the k+1th iteration, the gradient operator g k+1 =J T Δu k (2); where J represents the Jacobian matrix, , Δu k is the scanning surface sound velocity field model a difference between the output second sound pressure and the first sound pressure; Use the gradient optimization algorithm to find the search direction and search step size, and update the scanning surface sound velocity field model (3); In the formula, α k+1 is the iteration step length, d k+1 is the search direction, d k+1 =f(g k+1 ); Let k=k+1 and continue to execute step S120.
4. The computer-readable medium storing the sound propagation duration calculation program according to claim 3, characterized in that: In the step S10, in each transmission and receiving process, the first ultrasonic wave is transmitted in the first direction at the first transmission position, and the first transmission position, the first direction and the n first sound pressure measurement positions are all set in the scanning plane; in the step S120, the sound velocity field model of the scanning plane is The method for simulating the one-time transmission and receiving process of step S10 is: taking the relative positions of the first transmission position, n first sound pressure measurement positions and the first container containing the non-uniform fluid in the one-time transmission and receiving process of step S10 as a reference basis, determining the second transmission position and n second sound pressure measurement positions according to the position of the scanning surface structure simulation model, setting the parameters of the second ultrasonic wave simulated at the second transmission position, the second ultrasonic wave simulating the first ultrasonic wave, and the scanning surface sound velocity field model The second sound pressure at the second sound pressure measurement position at a time t after the second ultrasonic wave is emitted is measured.
5. The computer-readable medium storing the sound propagation duration calculation program according to claim 1, characterized in that: The first container containing the non-uniform fluid is a transformer outlet device. In the step S10, n>31.
6. The computer-readable medium storing the sound propagation duration calculation program according to claim 1, characterized in that: The method for the shortest propagation time calculation module to calculate the shortest sound propagation time between any two points in the scanning surface sound velocity field model is: Assume that the discrete point p is within the previous sound propagation depth, corresponding to the position (x p ,z p ); point q is within the propagation depth of the next sound, corresponding to position (x q ,z q ), then the virtual propagation time of two discrete points, point p and point q, is ; In the formula, v(x p ,z p ) is a discrete point (x p ,z p )’s speed of sound; If point p and point q are in the same sound propagation depth, or point p and point q are not in two adjacent sound propagation depths, or point p and point q are in two adjacent sound propagation depths, but point p is in the latter sound propagation depth and point q is in the former sound propagation depth, then let tof pq =∞, indicating that the sound wave cannot propagate between p and q temporarily; If point p and point q are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q, and tof is updated. pq .
7. The computer-readable medium storing the sound propagation duration calculation program according to claim 6, characterized in that: If point p and point q are not within two adjacent sound propagation depths, and the sound propagation depth to which point p belongs is before the sound propagation depth to which point q belongs, the Viterbi shortest path search algorithm is used to calculate the shortest sound propagation time between point p and point q.
8. An electronic device, comprising a processor, characterized in that: It also includes a computer-readable medium storing a sound propagation duration estimation program as described in any one of claims 1-7.
Citation Information
Patent Citations
Method for reconstructing magneto-acoustic imaging image with uneven sound speed
CN111419185A
Medical ultrasonic CT multi-parameter image reconstruction method based on wave equation
CN114972567A
Apparatus and method for imaging objects with wavefields
US20060084859A1
Air coupled ultrasonic contactless method for non-destructive determination of defects in laminated structures
US20140216158A1
Computer-implemented method for high speed multi-source loading and retrieval of wavefields employing finite difference models
US20210406427A1
