[go: up one dir, main page]

CN115825252B - Computer readable medium and electronic device - Google Patents

Computer readable medium and electronic device Download PDF

Info

Publication number
CN115825252B
CN115825252B CN202211517198.1A CN202211517198A CN115825252B CN 115825252 B CN115825252 B CN 115825252B CN 202211517198 A CN202211517198 A CN 202211517198A CN 115825252 B CN115825252 B CN 115825252B
Authority
CN
China
Prior art keywords
sound
point
propagation
scanning surface
field model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211517198.1A
Other languages
Chinese (zh)
Other versions
CN115825252A (en
Inventor
杜君莉
朱甜甜
王朝华
周正干
赵永峰
寇晓适
曹桂州
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Original Assignee
Beihang University
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University, Electric Power Research Institute of State Grid Henan Electric Power Co Ltd filed Critical Beihang University
Priority to CN202211517198.1A priority Critical patent/CN115825252B/en
Publication of CN115825252A publication Critical patent/CN115825252A/en
Application granted granted Critical
Publication of CN115825252B publication Critical patent/CN115825252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The invention relates to a computer readable medium storing a sound propagation time length measuring and calculating program, and an electronic device, wherein the sound propagation time length measuring and calculating program comprises a sound velocity measuring and calculating module and a shortest propagation time length measuring and calculating module; the sound velocity measuring and calculating module stores a scanning surface sound velocity field model constructed by using a sound velocity field model construction method, the scanning surface sound velocity field model construction method comprises the steps of using a two-dimensional sound field to scan a container filled with uneven fluid, obtaining first sound pressure in each transmitting and receiving process, establishing an initial sound velocity field model, simulating the transmitting and receiving process to obtain second sound pressure, optimizing the second sound pressure by using a gradient optimization algorithm, obtaining a final sound velocity field model after the first sound pressure is less than a threshold value, and calculating the propagation time t i (x, z) from a third transmitting position to an (x, z) position and the propagation time t j (x, z) from the (x, z) to a third sound pressure measuring position by using a shortest propagation time measuring module. Using this, t i (x, z) and t j (x, z) can be calculated.

Description

计算机可读介质、电子设备Computer readable medium, electronic device

技术领域Technical Field

本发明涉及一种盛装有不均匀流体的容器的超声检测技术领域,具体涉及一种存储有声传播时长测算程序的计算机可读介质、一种电子设备。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

特高压变压器出线装置等关键连接部位仅依靠绝缘油热胀冷缩自然循环,属于半“死油区”状态,该区域一旦发生放电击穿,由于短路电流不经过绕组,放电能量大,成为高风险区域,严重影响特高压电网安全。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.

当前,对于特高压变压器出线装置等关键连接部位的监测方法分为油色谱检测路线、铁心接地电流检测路线、铁心接地高频局放检测路线等。这些检测方法主要检测故障状态的特性,不能有效监测变压器内部状态变换的全过程。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.

理论上,超声波可以用于特高压变压器出线装置的非接触式检测,但特高压变压器出线装置内盛装的绝缘油工作时会因热胀冷缩产生热循环,并致使不同位置、不同时刻的绝缘油的声学特性产生变化,从而影响检测精度。以单通道超声波垂直入射式扫描检测为例,其检测时间过长,绝缘油声学特性造成的误差在时间的积累下致使精度极低。以阵列超声波扫描检测为例,阵列超声波需要合成声束,难以实现有效聚焦,检测分辨率低,精度差。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

本发明的目的是提供一种存储有声传播时长测算程序的计算机可读介质、一种电子设备,以测算盛装有不均匀流体的容器的任意两点之间的声传播时长。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.

本发明的技术方案是:The technical solution of the present invention is:

一种存储有声传播时长测算程序的计算机可读介质,所述声传播时长测算程序包括输入模块、声速测算模块、最短传播时长测算模块和输出模块;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 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:

步骤S10、在扫描平面内环绕扫描盛装有不均匀流体的容器,在环绕扫描所述盛装有不均匀流体的容器的每一次发射接收过程中,在第一发射位置rs发射超声波,在发射后时长t时分别测量的n个第一声压测量位置rr处的第一声压uobs(t,rr,rs),n≥2;Step S10, scanning the container containing the non-uniform fluid in a circumferential manner in a scanning plane, transmitting an ultrasonic wave at a first transmitting position r s in each transmitting and receiving process of the circumferential scanning of the container containing the non-uniform fluid, and measuring first sound pressures u obs (t, r r , r s ) at n first sound pressure measuring positions r r at a time t after the transmission, where n≥2;

步骤S11、建立所述盛装有不均匀流体的容器的扫描面结构仿真模型,离散化处理所述扫描面结构仿真模型,添加离散处理后的波动规则,配置每一离散点的声速,得到扫描面声速场模型 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

步骤S12、使用梯度优化算法迭代修正所述扫描面声速场模型得到拟合于所述步骤S10的扫描平面内声速场的扫描面声速场模型 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

所述输入模块用于输入在盛装有不均匀流体的容器的扫描平面内的m次发射接收过程的第三发射位置、n个第三声压测量位置,以及第三声压测量位置测量的第三声压,其中,m≥1;在第三发射位置发射的第三超声波与所述步骤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;

所述最短传播时长测算模块用于测算第i个第三发射位置发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj(x,z),其中,i分别取1,2,3,…,m;j分别取1,2,3,…,n;The shortest propagation time measuring module is used to measure the propagation time ti (x, z) of the third ultrasonic wave emitted from the i-th third transmitting position to the discrete point (x, z) position and the propagation time tj (x, z) of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position, wherein i is 1, 2, 3, ..., m respectively; j is 1, 2, 3, ..., n respectively;

所述输出模块用于输出ti(x,z)和tj(x,z)。The output module is used to output ti (x, z) and tj (x, z).

优选的,所述扫描面结构仿真模型包括用于仿真空气的第一离散点、用于仿真所述第一盛装有不均匀流体的容器的壳体的第二离散点和用于仿真所述不均匀流体的第三离散点,所述输入模块还用于输入所述第一离散点的声速和所述第二离散点的声速,所述声速测算模块更新所述扫描面声速场模型 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.

优选的,设k≥0,在所述步骤S12中,使用梯度优化算法迭代修正所述扫描面声速场模型的方法包括以下步骤: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:

步骤S120、在第k+1次迭代前,在扫描面声速场模型中模拟所述步骤S10的所有发射接收过程,所述扫描面声速场模型输出其测算的发射后时长t时相应位置的第二声压 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

则终止迭代,得到扫描面声速场模型则进行第k+1次迭代;ξ为第二声压与第一声压的最大阈值;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;

步骤S121、在第k+1次迭代时,梯度算子Step S121: At the k+1th iteration, the gradient operator

gk+1=JTΔuk (2)其中,J代表Jacobian矩阵,Δuk为扫描面声速场模型输出的第二声压与第一声压的差;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

式中,αk+1为迭代步长,dk+1为搜索方向,dk+1=f(gk+1);Wherein, α k+1 is the iteration step, d k+1 is the search direction, d k+1 =f(g k+1 );

令k=k+1,继续执行步骤S120。Let k=k+1 and continue to execute step S120.

进一步优选的,在所述步骤S121中,dk+1=-gk+1,αk+1为使用线搜索方法得到的迭代步长。Further preferably, in step S121, d k+1 = -g k+1 , and α k+1 is the iteration step length obtained by using the line search method.

进一步优选的,在所述步骤S10中,在每一次发射接收过程中,在所述第一发射位置向第一射向发射第一超声波,所述第一发射位置、所述第一射向和n个第一声压测量位置均设置在扫描平面内;在所述步骤S120中,在扫描面声速场模型中模拟所述步骤S10的一次发射接收过程的方法是:以所述步骤S10中的一次发射接收过程中所述第一发射位置、n个所述第一声压测量位置与所述第一盛装有不均匀流体的容器的相对位置为参照基础,根据所述扫描面结构仿真模型的位置,分别确定第二发射位置和n个第二声压测量位置,设置在所述第二发射位置模拟发射的第二超声波的参数,所述第二超声波仿真所述第一超声波,所述扫描面声速场模型测算发射第二超声波后时长t时的所述第二声压测量位置的第二声压。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 scanning surface sound velocity field model 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 respectively according to the position of the scanning surface structure simulation model, setting the parameters of the second ultrasonic wave simulated to be transmitted 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.

优选的,所述盛装有不均匀流体的容器为变压器出线装置,在所述步骤S10中,n>31。Preferably, the container containing the non-uniform fluid is a transformer outlet device, and in the step S10, n>31.

优选的,在所述步骤S11中,设置离散化处理的最大网格尺寸Δs,对所述扫描面结构仿真模型进行离散化处理;Preferably, 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 discrete processing is:

其中,u(x,z,t)为声压场,(x,z)分别为扫描面内离散点的横坐标、纵坐标,t为时间,v(x,z)为离散点(x,z)处的声速,Δt为计算时间步长,Δs为最大网格尺寸,M表示差分精度阶数的0.5倍,C为差分系数。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.

进一步优选的,在所述步骤S11中,最大网格尺寸Δs为所述超声波的最小波长的1/8;所述计算时间步长Δt满足vmin是扫描平面内介质的最小声速。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 vmin is the minimum sound velocity of the medium in the scanning plane.

进一步优选的,所述最短传播时长测算模块测算所述扫描面声速场模型中任意两点间的最短传播时长的方法是: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:

设离散点p在前一声传播深度内,对应于位置(xp,zp);点q在后一声传播深度内,对应于位置(xq,zq),则点p、点q两离散点的虚拟传播时长Assume that discrete point p is within the previous propagation depth, corresponding to position ( xp , zp ); point q is within the next propagation depth, corresponding to position ( xq , zq ), then the virtual propagation time of the two discrete points p and q is

式中,v(xp,zp)为离散点(xp,zp)的声速;Where v(x p ,z p ) is the speed of sound at the discrete point (x p ,z p );

若点p、点q在同一声传播深度内,或者,点p、点q不在相邻的两个声传播深度内,或者,点p、点q在相邻的两个声传播深度内,但点p在后一声传播深度内,点q在前一声传播深度内,则令tofpq=∞,表示声波暂不能在在p、q之间传播;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 temporarily propagate between p and q;

对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,则使用最短路径搜索算法测算点p和点q之间的最短声传播时长,更新tofpqIf 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 pq is updated.

又进一步优选的,对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,使用Viterbi最短路径搜索算法测算点p和点q之间的最短声传播时长。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.

优选的,在所述步骤S10中,使用超声波发射器发射超声波,所述超声波发射器为由m个超声波发射单元组成的线性阵列式超声波发射器,使用超声波接收器测量n个第一声压测量位置处的声压,所述超声波接收器为由n个超声波接收单元组成的线性阵列式超声波接收器,n≥m≥2。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.

一种电子设备,包括处理器和前述的存储有声传播时长测算程序的计算机可读介质。An electronic device includes a processor and the aforementioned computer-readable medium storing a sound propagation duration measurement program.

本发明的有益效果是:The beneficial effects of the present invention are:

1.本发明的存储有声传播时长测算程序的计算机可读介质中:声传播时长测算程序的声速测算模块存储有使用声速场模型构建方法构建的扫描面声速场模型,主要用于确定盛装有不均匀流体的容器的扫描面声速场。声传播时长测算程序的最短传播时长测算模块利用获取的m次发射接收过程的第三发射位置、n个第三声压测量位置,以及第三声压测量位置测量的第三声压,其中,m≥1;在第三发射位置发射的第三超声波与所述步骤S10中的超声波相同;测算第i个第三发射位置向所述第三射向发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj9x,z),其中,i分别取1,2,3,…,m;j分别取1,2,3,…,n;所述输出模块输出的ti(x,z)和tj(x,z)可以作为成像算法的输入,以获取盛装有不均匀流体的容器的扫描平面上的超声成像。1. In the computer-readable medium storing the sound propagation time measurement program of the present invention: the sound speed measurement module of the sound propagation time measurement program stores a scanning surface sound speed field model constructed using a sound speed field model construction method, which is mainly used to determine the scanning surface sound speed 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, n third sound pressure measurement positions, and the third sound pressure measured at the third sound pressure measurement position obtained in the m transmission and reception processes, wherein m≥1; the third ultrasonic wave transmitted at the third transmission position is the same as the ultrasonic wave in the step S10; the propagation time ti (x,z) of the third ultrasonic wave transmitted from the i-th third transmission position to the third transmission direction to the discrete point (x,z) position and the propagation time tj (x,z) of the third ultrasonic wave transmitted from the discrete point (x,z) position to the j-th third sound pressure measurement position are calculated, wherein i is 1, 2, 3, ..., m respectively; j is 1, 2, 3, ..., n respectively; ti (x,z) and tj (x,z) output by the output module can be used as input of the imaging algorithm to obtain ultrasonic imaging of the container containing inhomogeneous fluid on the scanning plane.

2.本发明的存储有声传播时长测算程序的计算机可读介质中:扫描面声速场模型包括用于仿真空气的第一离散点、用于仿真所述第一盛装有不均匀流体的容器的壳体的第二离散点和用于仿真所述不均匀流体的第三离散点,实际的第三发射位置、第三声压测量位置并不必然会密贴第二盛装有不均匀流体的容器的壳体,因此,空气的实际声速、壳体的实际声速均会影响结果,所以通过获取所述第一离散点的声速和所述第二离散点的声速,声速测算模块更新所述最终声速场模型后,最终声速场模型与检测第二盛装有不均匀流体的容器的声速场模型会更相近,这样可以提高精度。声传播时长测算程序中将最短传播时长测算模块独立摘出,而非直接运用第一盛装有不均匀流体的容器测算的最短传播时长,这样就可以考虑空气的实际声速、壳体的实际声速对结果的影响,这样可以提高精度。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.

4.本发明的存储有声传播时长测算程序的计算机可读介质中,使用声速场模型构建方法构建的扫描面声速场模型时:在所述步骤S12中,使用梯度优化算法可以提高扫描面声速场模型的优化效率。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.

5.本发明的存储有声传播时长测算程序的计算机可读介质中,使用声速场模型构建方法构建的扫描面声速场模型时:在所述步骤S121中,dk+1=-gk+1,αk+1为使用线搜索方法得到的迭代步长。其对应于最速梯度下降优化算法,收敛速度快,优化效率高。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 iteration step length obtained by the line search method. It corresponds to the fastest gradient descent optimization algorithm, with fast convergence speed and high optimization efficiency.

6.本发明的存储有声传播时长测算程序的计算机可读介质中,使用声速场模型构建方法构建的扫描面声速场模型时:在所述步骤S10中,在每一次发射接收过程中,在1个所述第一发射位置向第一射向发射超声波,与从2个以上的第一发射位置发射超声波后相比,第一声压测量位置的声压不会出现叠加,可以区分每个超声波在扫描平面内的作用效果。同样的,在步骤S120中模拟的每一次发射接收过程中,在1个第二发射位置向第二射向发射所述超声波。所述第一发射位置、所述第一射向和n个第一声压测量位置均设置在扫描平面上,可以形成设置在扫描平面内的二维声场。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.

6.本发明的存储有声传播时长测算程序的计算机可读介质中,使用声速场模型构建方法构建的扫描面声速场模型时:变压器内盛装绝缘油后,其属于盛装有不均匀流体的容器。实际使用时,变压器内的绝缘油量一致性较好,因而重现度高。由于变压器出线装置尺寸较大,n>31,可以有效提高超声波接收范围,增加计算区域,提高检测效率;同时增加数据量,可以在反演计算扫描面声速场模型时有更多参考量,提高扫描面声速场模型的拟合度。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.

7.本发明的存储有声传播时长测算程序的计算机可读介质中,使用声速场模型构建方法构建的扫描面声速场模型时:现有的波动方程适用的介质为连续性的,而盛装有不均匀流体的容器的介质的超声传播特性不一致,只有离散化处理后,才能在此基础上对不同介质配置声速。在扫描面结构仿真模型中添加离散处理后的波动方程,配置扫描面结构仿真模型内各离散点的初始声速,得到扫描面声速场模型这样,构造出了模拟声传播特性的初始扫描面声速场模型,以便于进行优化拟合。7. 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: 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.

8.本发明的存储有声传播时长测算程序的计算机可读介质中,使用声速场模型构建方法构建的扫描面声速场模型时:在所述步骤S11中,对模型空间进行离散化处理时,取所述超声波的最小波长的1/8为最大网格尺寸Δs,这样可以精细区分超声波传播路径上的介质。计算时间步长Δt满足vmin是扫描平面内介质的最小声速,这样得到的离散点在进行有限差分正演模拟计算时,可以在保证差分格式的稳定性同时有效削弱声波在传播过程中的物理频散现象。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 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.

9.本发明的存储有声传播时长测算程序的计算机可读介质中,最短传播时长测算模块测算所述扫描面声速场模型中任意两点间的最短传播时长的方法中,由于网格尺寸小于波长,同一空间切片内同一声传播深度中,各离散点近似认为是各向同性介质,声速不发生变化,因此,设点p在前一声传播深度内,对应于位置(xp,zp);点q在后一声传播深度内,对应于位置(xq,zq),则点p、点q两离散点的虚拟传播时长式中,v(xp,zp)为离散点(xp,zp)的声速;若点p、点q在同一声传播深度内,或者,点p、点q不在相邻的两个声传播深度内,或者,点p、点q在相邻的两个声传播深度内,但点p在后一声传播深度内,点q在前一声传播深度内,则令tofpq=∞,表示声波暂不能在在p、q之间传播;这样可以确定相邻两深度的任意两介质点之间的最短传播时长。对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,则使用最短路径搜索算法计算点p和点q之间的最短声传播时长,更新tofpq。这样可以确定任意两介质点的最短传播时长。9. In the computer-readable medium storing the sound propagation time calculation program of the present invention, in the method in which the shortest propagation time calculation module calculates 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 in the previous sound propagation depth, corresponding to the position (x p , z p ); point q is in the next sound propagation depth, corresponding to the position (x q , z q ), then the virtual propagation time of the two discrete points p and q is Where v(x p ,z p ) is the sound velocity of the discrete point (x p ,z p ); 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 temporarily propagate between p and q; in this way, the shortest propagation time between any two medium points at two adjacent depths can be determined. For point p and point q not in 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 pq is updated. In this way, the shortest propagation time between any two medium points can be determined.

10.本发明的存储有声传播时长测算程序的计算机可读介质中,最短传播时长测算模块测算所述扫描面声速场模型中任意两点间的最短传播时长的方法中,在所述步骤S13中,使用Viterbi最短路径搜索算法确定模型空间中所述空间切片上任意两点p、q之间的最短传播路径。其算法成熟,可以节省计量工作量。10. In the computer-readable medium storing the sound propagation time measurement program of the present invention, in the method in which the shortest propagation time measurement module measures 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.

11.本发明的电子设备,处理器执行声传播时长测算程序时,可以得到ti(x,z)和tj(x,z)。11. In the electronic device of the present invention, when the processor executes the sound propagation time measurement program, ti (x, z) and tj (x, z) can be obtained.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一种盛装有不均匀流体的容器的超声成像方法的流程图。FIG. 1 is a flow chart of a method for ultrasonic imaging of a container containing an inhomogeneous fluid.

图2为一种盛装有不均匀流体的容器的超声成像方法的第一超声波的传播路径的搜索示意图。FIG. 2 is a schematic diagram of searching the propagation path of a first ultrasonic wave in a method for ultrasonic imaging of a container containing an inhomogeneous fluid.

具体实施方式DETAILED DESCRIPTION

下面结合附图,以实施例的形式说明本发明,以辅助本技术领域的技术人员理解和实现本发明。除另有说明外,不应脱离本技术领域的技术知识背景理解以下的实施例及其中的技术术语。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.

超声波检测仪包括超声波发生器、超声波发射器和超声波接收器。The ultrasonic detector includes an ultrasonic generator, an ultrasonic transmitter and an ultrasonic receiver.

超声波发生器将来自电源的交流电能转换为适合以超声波频率为换能器供电的电能,用于向超声波换能器发送高压电脉冲。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.

超声波换能器将能量从电能转换为机械能,或将机械能转换为电能,这种转换可以通过压电陶瓷或磁致伸缩材料完成,按功能可分为超声波发射器、超声波接收器、超声波收发器。超声波发射器将高压电脉冲转换为超声波振动。超声波接收器将超声波振动转换为电信号。超声波收发器能够发射和接收超声波。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.

实施例1:一种盛装有不均匀流体的容器的超声成像方法,包括以下步骤:Embodiment 1: A method for ultrasonic imaging of a container containing an inhomogeneous fluid, comprising the following steps:

步骤S10、使用二维声场扫描第一盛装有不均匀流体的容器,设所述二维声场所在的平面为扫描面;在每一次发射接收过程中,在第一发射位置向第一射向发射第一超声波,分别测量n个第一声压测量位置处的声压,n≥2,获取每一次发射接收过程对应的所述第一发射位置、所述第一射向、n个所述第一声压测量位置与所述第一盛装有不均匀流体的容器的相对位置,以及与所述第一声压测量位置对应的所述第一声压;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, where n≥2, and obtaining the first transmitting position, the first direction, the relative positions of 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;

在超声波检测领域,二维声场即第一发射位置、第一射向和n个第一声压测量位置均在扫描面内。使用二维声场扫描第一盛装有不均匀流体的容器时,一般在同一个扫描面内,需要移动第一发射位置,使第一发射位置环绕该扫描面的四周,完成该扫描面的扫描;在完成一个扫描面的扫描后,沿扫描面的法向步进移动扫描面,完成对第一盛装有不均匀流体的容器的切片式扫描。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.

本实施例中,用于获得变压器出线装置的超声仿真模型,因此,本步骤中待扫描的第一盛装有不均匀流体的容器是可以作为衡量标准的变压器出线装置,也即是正常的变压器出线装置,区别于故障的变压器出线装置。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.

具体的,超声检测中,超声波接收单元接收的第三超声波被介质反射的超声反馈信号,因此,超声波接收器与超声波发射器设置在变压器出线装置的同侧,将超声波发射器、超声波接收器与步进式位移机构固定连接,使步进式位移机构带动超声波发射器和超声波接收器对正常状态的变压器出线装置的壳体进行步进扫描。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.

超声波发射器可以由1个超声波发射单元组成。但实际中,为提高效率,超声波发射器通常由2个以上的超声波发射单元线性阵列式组成。本实施例中,使用二维声场检测变压器出线装置,因此,超声波发射器选择线性阵列式超声波发射器,其由两个以上的超声波发射单元组成,超声波接收器选择线性阵列式超声波发射器,其由n个超声波接收单元组成。使用时,超声波发射单元、超声波发射单元发射的超声波、n个超声波接收单元均应设在同一平面上。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.

市面上的超声波检测仪中,一般通过超声波收发单元实现超声波发射单元和超声波接收单元的功能,这样体积更小,更易于扫描操作控制,此时,超声波发射单元和超声波接收单元的数目相同。在扫描变压器出线装置的壳体时,最好使超声波发射器紧贴变压器出线装置的壳体表面。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.

以使用由16个超声波收发单元线性阵列式布置的超声波收发器为例,使用时,在每一扫描位置,使用其中一个超声波收发单元发射一条第一超声波(第一超声波一般为脉冲式超声波),该第一超声波在变压器出线装置中出现反射,回到超声波接收单元处的为超声反馈信号,使所有的超声波接收单元均等待接收超声反馈信号,所有的超声波接收单元均接收到超声反馈信号后,完成一次发射接收过程,然后更换超声波收发单元再发射一条第一超声波,执行下一次发射接收过程,直到16个超声波收发单元均完成一次发射接收过程后,该扫描位置扫描完成;步进移动超声波收发器至下一扫描位置,对新的扫描位置进行扫描,直至在环绕该扫描面的四周,完成该扫描面的扫描;在完成一个扫描面的扫描后,沿扫描面的法向步进移动扫描面,完成对第一盛装有不均匀流体的容器的切片式扫描。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.

每一次发射接收过程中,超声波发射器、超声波接收器和变压器出线装置的相对位置是确定的,其中,超声波发射单元的超声波激发点对应于第一发射位置,超声波发射单元发射的超声波射向对应于第一射向,超声波接收单元的位置对应于第一声压测量位置。每一次发射接收过程中,需要记录第一发射位置、第一射向、第一声压测量位置与第一盛装有不均匀流体的容器的相对位置,以及第一超声波的发射声压和每一第一声压测量位置接收的第一声压。记录每一次发射接收过程的第一发射位置、第一射向、第一声压测量位置与第一盛装有不均匀流体的容器的相对位置,以及第一超声波的发射声压和每一第一声压测量位置接收的第一声压,是为了在后续的仿真模拟中重现该次发射接收过程。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.

在声传播仿真软件的模型空间中建立变压器出线装置仿真模型并进行声传播仿真模拟时,在第二发射位置、第二射向、n个第二声压测量位置和变压器出线装置仿真模型的相对位置与第一发射位置、第一射向、n个第一声压测量位置和变压器出线装置的相对位置相同时,在第二发射位置沿第二射向模拟发射第二超声波,第二超声波应仿真第一超声波,即第二超声波的发射声压、波形等物理量应与第一超声波的发射声压、波形等物理量相同,正演模拟测算匹配的n个第二声压测量位置处的第二声压。一般的,在声传播仿真软件中,只需要输入相关参数,就可以得到第二声压测量位置处的第二声压。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 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.

在模拟发射第二超声波时,若第二超声波为球面传播,即在扫描平面内为向四周扩散式传播,则不需要使第二射向与第一射向相同。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.

在仿真模拟中,若第二声压测量位置处的第二声压与等同的第一声压测量位置处的第一声压的差在声压衰减等同阈值内,认为模型空间的第二发射位置发射的第二超声波至该第二声压测量位置的模拟传播路径与本步骤中第一发射位置发射的第一超声波至对应的第一声压测量位置的实测传播路径是一致的,重现了第一发射位置至该第一声压测量位置的发射接收过程,该条模拟传播路径上的介质的超声传播特性与该条实测传播路径上的超声传播特性是一致的。在仿真模拟中,若同一第二超声波对应的所有的声压检测点均重现了第一发射位置至该第一声压测量位置的发射接收过程,即模型空间中测算的第二超声波的模拟传播路径与本步骤中第一超声波的实际传播路径是一致的,也就是说,模型空间中变压器出线装置仿真模型的第二超声波的n条模拟传播路径上的介质的超声声速特性与实际的变压器出线装置的第一超声波的n条实测传播路径上的介质的超声声速特性相同。通过遍历模拟扫描变压器出线装置仿真模型,在所有第二发射位置均重现本步骤中第一发射位置的发射接收过程时,认为模型空间中的变压器出线装置仿真模型的超声声速特性与实测的变压器出线装置的超声声速特性相同。这样,就得到了一个变压器出线装置的声速场模型。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.

实际操作时,一般会使第一发射位置、第一射向、第一声压测量位置和变压器出线装置的相对位置保持容易重现的规律,以便于降低仿真模拟的复杂度。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.

获得第一盛装有不均匀流体的容器的声速场模型后,依据费马原理,使用最短路径搜索算法确定模型空间中任意两点p、q之间的最短传播时长tofpq,该最短传播时长tofpq对应于第二超声波的传播路径。所有的两点之间的最短传播时长可以构建出第一盛装有不均匀流体的容器的超声仿真模型。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 pq between any two points p and q in the model space according to the Fermat principle, and the shortest propagation time tof pq corresponds to the propagation path of the second ultrasonic wave. The shortest propagation time between all two points can construct an ultrasonic simulation model of the first container containing the inhomogeneous fluid.

使用时,对待测变压器出线装置进行m次发射接收过程。每次发射接收过程中,在第三发射位置向第三射向发射第三超声波,分别在n个第三声压测量位置测量第三声压,第三超声波的发射声压、波形等与第一超声波的发射声压、波形相同,且使待测变压器出线装置的壳体与本步骤中的变压器出线装置的壳体重合时,第三射向和n个第三声压测量位置确定的检测平面平行于本步骤中的扫描面。向所述超声仿真模型输入m次发射接收过程获取的第三发射位置、第三射向、n个第三声压测量位置与第一盛装有不均匀流体的容器的相对位置,以及第三声压测量位置对应的第三声压,所述超声仿真模型输出在第i个第三发射位置向所述第三射向发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj(x,z),其中,m≥1;i分别取1,2,3,…,m;j分别取1,2,3,…,n;使用成像算法测算所述检测平机内的离散点的像素值,得到所述第二盛装有不均匀流体的容器的检测平面内的超声影像。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 and waveform of the third ultrasonic wave are the same as those of the first ultrasonic wave, and when the housing of the transformer outlet device to be tested is overlapped with the housing 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 transmitting position, the third direction, the relative positions of n third sound pressure measurement positions and the first container containing inhomogeneous fluid, and the third sound pressure corresponding to the third sound pressure measurement position obtained through m transmission and receiving processes are input into the ultrasonic simulation model, and the ultrasonic simulation model outputs the propagation time ti (x, z) of the third ultrasonic wave emitted from the i-th third transmitting position toward the third direction to the discrete point (x, z) position and the propagation time tj (x, z) of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position, wherein m≥1; i is 1, 2, 3, ..., m respectively; j is 1, 2, 3, ..., n respectively; and the imaging algorithm is used to calculate the pixel values of the discrete points in the detection plane to obtain the ultrasonic image of the second container containing inhomogeneous fluid in the detection plane.

在发射第三超声波时,若第三超声波为半球面传播,即在扫描平面内为向四周扩散式传播,则不需要使第三射向与第一射向相同。When emitting the third ultrasonic wave, if the third ultrasonic wave propagates in a hemispherical manner, that is, propagates diffusely in all directions within the scanning plane, it is not necessary to make the third radiation direction the same as the first radiation direction.

市面上的超声波检测仪中,超声波收发单元宽约2cm,因此,相邻的两个超声波收发单元之间的距离约为5cm左右。结合本发明的原理,可以看出: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:

第一,理论上,相邻的第一发射位置的距离越近、相邻的第一声压测量位置的距离越近,可以提高变压器出线装置的声速场模型的超声声速特性与实际的变压器出线装置的超声声速特性的反演精度,但一次发射接收过程覆盖范围小,扫描效率低,故而需要兼顾扫描效率和拟合精度,即需要适当控制相邻的两个第一发射位置的距离,相邻的两个第一声压测量位置的距离。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.

第二,理论上,一次发射接收过程中,n越大,得到的反演计算的参考点越多,从而提高模型空间中的变压器出线装置仿真模型的超声声速特性与实际的变压器出线装置的超声声速特性的相似度。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.

第三,n个第一声压测量位置也不需要规律性布置。但n个第一声压测量位置阵列设置与步进式扫描配合,更贴合于仿真模拟的网格化措施,也能避免扫描时遗漏扫描位置。而且,这样可以降低模型复杂度和操作难度。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.

由于变压器尺寸远远大于超声波发射单元、超声波接收单元的尺寸,理论上超声波发射单元、超声波接收单元的数量越多越好,超声波接收单元的数量越多,第一超声波的覆盖范围越广,超声波发射单元的数量越多,需要步进式移动的次数越少,这样可以提高变压器检测效率。本实施例中,n最好≥32。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.

目前,COMSOL软件利用有限元方法可以实现计算机模拟声波传播过程,本实施例中使用有限差分方法自编程实现正演模拟过程。模拟声波传播过程时,需要建立变压器出线装置的初始声速场模型,后续根据反演过程不断修正变压器出线装置的声速场模型,使得正演模拟过程接收到的第二声压趋近实际采集的第一声压。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.

步骤S11、在声传播仿真软件的模型空间中建立所述第一盛装有不均匀流体的容器的仿真模型,对模型空间进行离散化处理,使用所述扫描面的平行面逐层剖切所述仿真模型,添加离散处理后的波动规则,对得到的空间切片上的每一离散点配置声速,得到模型空间的初始声速场模型;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 the initial sound speed field model of the model space;

对声传播软件的模型空间离散化处理时,要合理选择网格化尺寸和计算时间步长。选择网络化尺寸和计算时间步长的方式是: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:

取最小波长的1/8作为模型空间的最大网格尺寸,计算时间步长满足Courant-Friedrichs-Le wy(CFL)条件,即:Take 1/8 of the minimum wavelength as the maximum grid size of the model space, and the calculation time step satisfies the Courant-Friedrichs-Le wy (CFL) condition, that is:

其中,vmin是模型空间中的最小声速值,Δt为计算时间步长,Δs为模型空间的最大网格尺寸;Where v min is the minimum sound velocity in the model space, Δt is the calculation time step, and Δs is the maximum grid size in the model space;

根据模型空间中的最小声速值vmin,计算最小波长,然后确定模型空间中的最大网格尺寸。再结合式(5),就可以确定计算时间步长的范围。According to the minimum sound velocity value vmin in the model space, the minimum wavelength is calculated, and then the maximum grid size in the model space is determined. Combined with formula (5), the range of the calculation time step can be determined.

通过计算机模拟声波传播过程,接收的声压信号与波源、传播介质满足波动方程:By simulating the sound wave propagation process by computer, the received sound pressure signal, wave source and propagation medium satisfy the wave equation:

其中,u(x,z,t)为声压场,(x,z)分别为二维声场内介质的横、纵坐标,t为时间,v(x,z)为点(x,z)处介质中的声速,为拉普拉斯算子,s(x,z,t)为震源项。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.

根据有限差分方法,该波动方程转换的离散形式为:According to the finite difference method, the discrete form of the wave equation transformation is:

其中,u(x,z,t)为声压场,(x,z)分别为空间切片内介质的横、纵坐标,t为时间,v(x,z)为离散点(x,z)处介质的声速,Δt为计算时间步长,Δs为模型空间的最大网格尺寸,M表示差分精度阶数的0.5倍,C为差分系数。比如,M=1,表示2阶差分精度;M=2,表示4阶差分精度;M=3,表示6阶差分精度;依次类推……。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.

使用扫描面的平行面逐层剖切所述仿真模型,即:设第一盛装有不均匀流体的容器的仿真模型与步骤S10中的第一盛装有不均匀流体的容器重合时,本步骤的剖切面平行于步骤S10中的扫描面。目的是使步骤S10中的第一盛装有不均匀流体的容器的扫描面设置方式与仿真模型的剖切面设置方式相同。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.

在模型空间中添加离散处理后的波动方程,输入模型空间内各离散点处介质的初始声速,得到模型空间的初始声速场模型。对于变压器出线装置仿真模型内的介质的初始声速,其壳体的初始声速为常温常压下的理论声速,其内绝缘油的初始声速为常温常压且没有扰动影响下的理论声速,对于模型空间中变压器出线装置外的离散点的介质声速为常温常压下空气的理论声速。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.

步骤S12、在所述仿真模型的匹配位置正演模拟所述步骤S10的发射接收过程;以所述仿真模型的匹配位置测算的第二声压趋近于所述步骤S10中获得的第一声压为目标,使用梯度优化算法迭代修正所述初始声速场模型,以使模型空间的超声声速性质拟合于所述步骤S10中所述第一盛装有不均匀流体的容器的超声声速性质,得到模型空间的最终声速场模型;Step S12, forward modeling 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;

使用声传播仿真软件在匹配的第二发射位置沿第二射向模拟发射第二超声波,正演模拟测算匹配的n个第二声压测量位置处的第二声压。其中,第二发射位置、第二射向、n个第二声压测量位置和变压器出线装置仿真模型的相对位置与步骤S10中的第一发射位置、第一射向、n个第一声压测量位置和变压器出线装置的相对位置一致时,第二发射位置与第一发射位置相匹配,第二射向与第一射向相匹配,第二声压测量位置与第一声压测量位置相匹配。第二超声波的发射声压、波形等声学特性与步骤S10中的第一超声波的发射声压、波形等声学特性一致。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.

计算正演数值模拟过程得到的超声反馈信号与实际采集的超声反馈信号的数据差值,表示为最小二乘意义下的目标函数: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:

其中,ucal为在声速场v中通过正演模拟计算得到的第二声压,uobs为第一声压。Wherein, u cal is the second sound pressure calculated by forward modeling in the sound velocity field v, and u obs is the first sound pressure.

离散化后的目标函数为:The discretized objective function is:

其中,ucal(t,rr,rs|ν)为在声速场v中通过正演模拟计算得到的第二声压,uobs(t,rr,rs)为第一声压,rs表示第二发射位置,rt表示第二声压测量位置。Among them, u cal (t, r r , r s |ν) is the second sound pressure calculated by forward simulation in the sound velocity field v, u obs (t, r r , r s ) is the first sound pressure, r s represents the second emission position, and r t represents the second sound pressure measurement position.

模型中梯度的定义为目标函数对模型中声速场的偏导,梯度算子为: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:

其中,J代表Jacobian矩阵,Δuk为声速场模型输出的第二声压与第一声压的差。Where J represents the Jacobian matrix, Δu k is the sound velocity field model The difference between the second sound pressure output and the first sound pressure.

结合模型空间的参数信息,比如各离散点的声速、第二声压和第一声压,计算模型空间中任意时刻所有位置处目标函数关于声速场的梯度。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.

基于梯度优化算法极小化目标函数迭代更新声速场模型,流程图如图1所示。具体过程为:The sound velocity field model is iteratively updated based on the gradient optimization algorithm to minimize the objective function, and the flow chart is shown in Figure 1. The specific process is:

从给定的初始声速场模型v0出发进行计算,由于数据和模型参数之间的关系是非线性的,需要多次迭代才可以实现收敛到目标函数在声速场模型附近的局部极小值。The calculation is performed starting from the given initial sound velocity field model v 0. 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.

在每次迭代过程中通过梯度优化算法寻找搜索方向和搜索步长,更新声速场模型。以第k+1次迭代为例:In each iteration, the search direction and search step size are found through the gradient optimization algorithm, and the sound velocity field model is updated. Take the k+1th iteration as an example:

νk+1=νkk+1dk+1 (11)ν k+1 =ν kk+1 d k+1 (11)

其中,νk+1为第k+1次迭代处到的声速场模型,αk+1为k+1次迭代的迭代步长,dk+1为k+1次迭代的搜索方向,dk+1=f(gk+1)。Wherein, ν k+1 is the sound velocity field model obtained at the k+1th iteration, α k+1 is the iteration step size of the k+1th iteration, d k+1 is the search direction of the k+1th iteration, and d k+1 =f(g k+1 ).

使用的梯度下降方法不同,f(g)函数也不同。本实施例中,使用最速梯度下降优化算法,因此,dk+1=-gk+1。在其它实施例中,还可以使用共轭梯度法、谱共轭梯度法、混合共轭梯度法等。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, spectral conjugate gradient method, mixed conjugate gradient method, etc. can also be used.

当满足E(vk+1)<E(vk)即表示目标函数值下降,直至E(vk+1)≤ξ,此时声速场模型vk+1即为最终声速场模型;其中,ξ为正演数值模拟得到的第二声压与实际采集的第一声压的差值最大阈值。When E(v k+1 )<E(v k ) is satisfied, it means that the objective function value decreases until E(v k+1 )≤ξ. At this time, the sound velocity field model v k+1 is the final sound velocity field model; wherein ξ 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.

步骤S13、结合所述离散点和所述最终声速场模型,确定模型空间中每一所述空间切片上任意两点p、q之间的最短传播时长tofpq,所有的最短传播时长构成超声仿真模型;Step S13, combining the discrete points and the final sound velocity field model, determining the shortest propagation time tof pq between any two points p and q on each of the space slices in the model space, and all the shortest propagation times constitute an ultrasonic simulation model;

以费马原理为理论依据,即“超声波总是沿着用时最短的路径在空间两定点之间传播”,声线在模型空间中的传播路径近似计算机图论中的最短路径问题,根据Viterbi最短路径搜索算法,计算模型空间中任意两定点之间的声传播路径和声传播时间,并建立模型空间的声时矩阵。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.

以4层空间模型为例,其声线搜索如图2所示。其中,x轴方向为水平向右,z轴方向为深度方向。Taking the 4-layer space model as an example, its sound line search is shown in Figure 2. Among them, the x-axis direction is horizontal to the right, and the z-axis direction is the depth direction.

设离散化后同一深度位置下网格点的数量为A,所有离散点的数量D,则图1中,A=7。Assume that the number of grid points at the same depth position after discretization is A, and the number of all discrete points is D, then in FIG1 , A=7.

抽象化后,有以下离散点矩阵:After abstraction, there is the following discrete point matrix:

其中,D=(B+1)·A。Among them, D=(B+1)·A.

假设第二发射位置为S,第二声压测量位置设置e点,第二超声波由S点发射到达e点。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 to point e.

为了构建Viterbi最短路径搜索算法,需要建立声时矩阵表示任意两定点之间的声传播时间。由于网格尺寸小于波长,同一深度位置网格近似认为是各向同性介质,声速不发生变化,因此将所有网格点两两之间进行路径连接,即为S点到e点的所有搜索路径。用tofpq表示任意两点p、q之间的传播时间,只有当p、q位于相邻网格内且不处于同一深度位置时,声波才能在p、q之间传播。因此,建立模型空间的声时矩阵:In order to construct the Viterbi shortest path search algorithm, it is necessary to establish an acoustic time matrix to represent the sound propagation time between any two fixed points. Since the grid size is smaller than the wavelength, the grid at the same depth position 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. Tof pq is used to represent 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 position. Therefore, the acoustic time matrix of the model space is established:

其中,A表示离散化后同一深度位置下网格点的数量,D表示所有网格点的数量。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.

当离散点p在前一声传播深度内,对应于位置(xp,zp);点q在后一声传播深度内,对应于位置(xq,zq),则点p、点q两离散点的虚拟传播时长When discrete point p is within the previous propagation depth, corresponding to position ( xp , zp ); point q is within the next propagation depth, corresponding to position ( xq , zq ), then the virtual propagation time of the two discrete points p and q is

式中,ν(xp,zp)为离散点(xp,zp)的声速;Where ν(x p ,z p ) is the speed of sound at the discrete point (x p ,z p );

若点p、点q在同一声传播深度内,或者,点p、点q不在相邻的两个声传播深度内,或者,点p、点q在相邻的两个声传播深度内,但点p在后一声传播深度内,点q在前一声传播深度内,则令tofpq=∞,表示声波暂不能在在p、q之间传播。If point p and point q are within the same sound propagation depth, or point p and point q are not within two adjacent sound propagation depths, or point p and point q are within two adjacent sound propagation depths, but point p is within the latter sound propagation depth and point q is within the former sound propagation depth, then let tof pq = ∞, indicating that the sound wave cannot temporarily propagate between p and q.

对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,则使用最短路径搜索算法计算点p和点q之间的最短声传播时长,更新tofpqIf 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 pq is updated.

根据费马原理,声传播路径为所有可能路径中声传播时间最短的路径,因此,利用Viterbi最短路径搜索算法计算最短声传播时长。首先从声源点S出发,对于第一层中的A个离散点,显然,S到第一层各点之间的时间即为最短时间,查找声时矩阵获得S到第一层各点的时间tof=tof1a,其中a=1,2,3,…,A;然后计算第二层A个离散点的传播时间,对于其中某个特定点b,其声传播时间为tof1b=min(tof1a+tofab);以此迭代计算,可以获得声源点S到所有网格点的最短传播时长,最后根据回溯原理可以计算最短时间对应的声传播路径。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 matrix is searched to obtain the time from S to each point in the first layer tof=tof 1a , where a=1,2,3,…,A; then the propagation time of the A discrete points in the second layer is calculated, and for a specific point b, its 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.

步骤S14、向所述超声仿真模型输入m次发射接收过程获取的第三发射位置、第三射向、n个第三声压测量位置与第二盛装有不均匀流体的容器的相对位置,以及第三声压测量位置对应的第三声压,所述超声仿真模型输出在第i个第三发射位置向所述第三射向发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj(x,z),其中,m≥1;i分别取1,2,3,…,m;j分别取1,2,3,…,n;设所述第二盛装有不均匀流体的容器与所述第一盛装有不均匀流体的容器重合时,第三射向和n个第三声压测量位置确定的检测平面平行于所述步骤S10中的扫描面,所述第三超声波与所述步骤S10中的第一超声波相同;使用成像算法测算所述检测平面内的离散点的像素值,得到所述第二盛装有不均匀流体的容器的检测平面内的超声影像。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-times transmitting and receiving process into the ultrasonic simulation model, and the ultrasonic simulation model outputs the propagation time ti (x, z) of the third ultrasonic wave emitted from the i-th third transmitting position toward the third direction to the discrete point (x, z) position and the propagation time tj of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position (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.

本步骤中,发射接收过程可以是实际进行的,即,在每一次发射接收过程中,在第三发射位置向第三射向发射第三超声波,第三超声波的发射声压、波形等应与第一超声波的发射声压、波形等相同,分别在n个第三声压测量位置测量第三声压。发射接收过程也可以模拟进行的。还可以是未进行发射而直接得到的该次发射接收过程涉及的第三发射位置、第三射向、n个第三声压测量位置与第二盛装有不均匀流体的容器的相对位置,以及第三声压测量位置的第三声压。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.

本实施例中,得到在第i个第三发射位置向所述第三射向发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj(x,z),其中,i分别取1,2,3,…,m;j分别取1,2,3,…,n;通过后处理计算第一超声波聚焦到模型空间中检测平面内任意位置处的聚焦法则,结合全聚焦成像算法,在模型空间中测算m个第三发射位置和n个第三声压测量位置的所有第三超声波在所述仿真模型的检测平面内的离散点的相干求和。In this embodiment, the propagation time ti (x, z) of the third ultrasonic wave emitted from the i-th third emission position to the third emission direction to the discrete point (x, z) position and the propagation time tj (x, z ) of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position are obtained, 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 third ultrasonic waves of 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.

因此,使用成像算法为Therefore, the imaging algorithm used is

式中,I(x,z)为离散点(x,z)处的像素值,h()为希尔伯特变换,m为第三发射位置的个数,n为第三声压测量位置的个数,uij为第i个第三发射位置发射的第三超声波传播到第j个第三声压测量位置的第三声压,ti(x,z)表示第i个第三发射位置发射的第三超声波传播到离散点(x,z)位置处的传播时间,tj(x,z)表示第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间。Wherein, 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, uij is the third sound pressure of the third ultrasonic wave emitted by the i-th third emission position to the j-th third sound pressure measurement position, ti (x,z) represents the propagation time of the third ultrasonic wave emitted by the i-th third emission position to the discrete point (x,z) position, and tj (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.

在式(13)中,若超声波发射器仅有一个超声波发射单元,则m=1,若超声波发射器有m个的超声波发射单元,使用时,在一个扫描位置,可以不移动超声波发射器,而通过改变超声波发射单元的方式进行m次发射接收过程。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.

相干叠加并不改变实际目标点位置实际的声压,只是一种虚拟聚焦的处理方法,可以提高目标点成像时的幅值,提高分辨率。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.

基于实施例1,可以得到本发明的一种存储有声传播时长测算程序的计算机可读介质,所述声传播时长测算程序包括输入模块、声速测算模块、最短传播时长测算模块和输出模块;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;

所述声速测算模块存储有使用声速场模型构建方法构建的扫描面声速场模型,所述声速场模型构建方法包括以下步骤: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:

步骤S10、在扫描平面内环绕扫描盛装有不均匀流体的容器,在环绕扫描所述盛装有不均匀流体的容器的每一次发射接收过程中,在第一发射位置rs发射超声波,在发射后时长t时分别测量的n个第一声压测量位置rr处的第一声压uobs(t,rr,rs),n≥2;Step S10, scanning the container containing the non-uniform fluid in a circumferential manner in a scanning plane, transmitting an ultrasonic wave at a first transmitting position r s in each transmitting and receiving process of the circumferential scanning of the container containing the non-uniform fluid, and measuring first sound pressures u obs (t, r r , r s ) at n first sound pressure measuring positions r r at a time t after the transmission, where n≥2;

步骤S11、建立所述盛装有不均匀流体的容器的扫描面结构仿真模型,离散化处理所述扫描面结构仿真模型,添加离散处理后的波动规则,配置每一离散点的声速,得到扫描面声速场模型 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

步骤S12、使用梯度优化算法迭代修正所述扫描面声速场模型得到拟合于所述步骤S10的扫描平面内声速场的扫描面声速场模型 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

所述输入模块用于输入在盛装有不均匀流体的容器的扫描平面内的m次发射接收过程获取的第三发射位置、n个第三声压测量位置,以及第三声压测量位置测量的第三声压,其中,m≥1;所述第三超声波与所述步骤S10中的超声波相同;The input module is used to input the third transmission position, n third sound pressure measurement positions, and the third sound pressure measured at the third sound pressure measurement position obtained in the m transmission and reception processes within the scanning plane of the container containing the non-uniform fluid, wherein m≥1; the third ultrasonic wave is the same as the ultrasonic wave in step S10;

所述最短传播时长测算模块用于测算第i个第三发射位置发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj(x,z),其中,i分别取1,2,3,…,m;j分别取1,2,3,…,n;The shortest propagation time measuring module is used to measure the propagation time ti (x, z) of the third ultrasonic wave emitted from the i-th third transmitting position to the discrete point (x, z) position and the propagation time tj (x, z) of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position, wherein i is 1, 2, 3, ..., m respectively; j is 1, 2, 3, ..., n respectively;

所述输出模块用于输出ti(x,z)和tj(x,z)。The output module is used to output ti (x, z) and tj (x, z).

优选的,所述扫描面结构仿真模型包括用于仿真空气的第一离散点、用于仿真所述第一盛装有不均匀流体的容器的壳体的第二离散点和用于仿真所述不均匀流体的第三离散点,所述输入模块还用于输入所述第一离散点的声速和所述第二离散点的声速,所述声速测算模块更新所述扫描面声速场模型 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.

优选的,设k≥0,在所述步骤S12中,使用梯度优化算法迭代修正所述扫描面声速场模型的方法包括以下步骤: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:

步骤S120、在第k+1次迭代前,在扫描面声速场模型中模拟所述步骤S10的所有发射接收过程,所述扫描面声速场模型输出其测算的发射后时长t时相应位置的第二声压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

则终止迭代,得到扫描面声速场模型则进行第k+1次迭代;ξ为第二声压与第一声压的最大阈值;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;

步骤S121、在第k+1次迭代时,梯度算子Step S121: At the k+1th iteration, the gradient operator

gk+1=JTΔuk (15)g k+1 =J T Δu k (15)

其中,J代表Jacobian矩阵,Δuk为扫描面声速场模型输出的第二声压与第一声压的差;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

式中,αk+1为迭代步长,dk+1为搜索方向,dk+1=f(gk+1);Wherein, α k+1 is the iteration step, d k+1 is the search direction, d k+1 =f(g k+1 );

令k=k+1,继续执行步骤S120。Let k=k+1 and continue to execute step S120.

进一步优选的,在所述步骤S121中,dk+1=-gk+1,αk+1为使用线搜索方法得到的迭代步长。Further preferably, in step S121, d k+1 = -g k+1 , and α k+1 is the iteration step length obtained by using the line search method.

进一步优选的,在所述步骤S10中,在每一次发射接收过程中,在所述第一发射位置向第一射向发射第一超声波,所述第一发射位置、所述第一射向和n个第一声压测量位置均设置在扫描平面内;在所述步骤S120中,在扫描面声速场模型中模拟所述步骤S10的一次发射接收过程的方法是:以所述步骤S10中的一次发射接收过程中所述第一发射位置、n个所述第一声压测量位置与所述第一盛装有不均匀流体的容器的相对位置为参照基础,根据所述扫描面结构仿真模型的位置,分别确定第二发射位置和n个第二声压测量位置,设置在所述第二发射位置模拟发射的第二超声波的参数,所述第二超声波仿真所述第一超声波,所述扫描面声速场模型测算发射第二超声波后时长t时的所述第二声压测量位置的第二声压。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 scanning surface sound velocity field model 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 respectively according to the position of the scanning surface structure simulation model, setting the parameters of the second ultrasonic wave simulated to be transmitted 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.

优选的,所述盛装有不均匀流体的容器为变压器出线装置,在所述步骤S10中,n>31。Preferably, the container containing the non-uniform fluid is a transformer outlet device, and in the step S10, n>31.

优选的,在所述步骤S11中,设置离散化处理的最大网格尺寸Δs,对所述扫描面结构仿真模型进行离散化处理;Preferably, 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 discrete processing is:

其中,u(x,z,t)为声压场,(x,z)分别为扫描面内离散点的横坐标、纵坐标,t为时间,v(x,z)为离散点(x,z)处的声速,Δt为计算时间步长,Δs为最大网格尺寸,M表示差分精度阶数的0.5倍,C为差分系数。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.

进一步优选的,在所述步骤S11中,最大网格尺寸Δs为所述超声波的最小波长的1/8;所述计算时间步长Δt满足vmin是扫描平面内介质的最小声速。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 vmin is the minimum sound velocity of the medium in the scanning plane.

进一步优选的,所述最短传播时长测算模块测算所述扫描面声速场模型中任意两点间的最短传播时长的方法是: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:

设离散点p在前一声传播深度内,对应于位置(xp,zp);点q在后一声传播深度内,对应于位置(xq,zq),则点p、点q两离散点的虚拟传播时长Assume that discrete point p is within the previous propagation depth, corresponding to position ( xp , zp ); point q is within the next propagation depth, corresponding to position ( xq , zq ), then the virtual propagation time of the two discrete points p and q is

式中,ν(xp,zp)为离散点(xp,zp)的声速;Where ν(x p ,z p ) is the speed of sound at the discrete point (x p ,z p );

若点p、点q在同一声传播深度内,或者,点p、点q不在相邻的两个声传播深度内,或者,点p、点q在相邻的两个声传播深度内,但点p在后一声传播深度内,点q在前一声传播深度内,则令tofpq=∞,表示声波暂不能在在p、q之间传播;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 temporarily propagate between p and q;

对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,则使用最短路径搜索算法测算点p和点q之间的最短声传播时长,更新tofpqIf 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 pq is updated.

又进一步优选的,对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,使用Viterbi最短路径搜索算法测算点p和点q之间的最短声传播时长。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.

优选的,在所述步骤S10中,使用超声波发射器发射超声波,所述超声波发射器为由m个超声波发射单元组成的线性阵列式超声波发射器,使用超声波接收器测量n个第一声压测量位置处的声压,所述超声波接收器为由n个超声波接收单元组成的线性阵列式超声波接收器,n≥m≥2。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.

还可以得到一种电子设备,包括处理器和前述的存储有声传播时长测算程序的计算机可读介质。An electronic device can also be obtained, including a processor and the aforementioned computer-readable medium storing the sound propagation duration measurement program.

上面结合附图和实施例对本发明作了详细的说明。应当明白,实践中无法穷尽地说明所有可能的实施方式,在此通过举例说明的方式尽可能的阐述本发明得发明构思。在不脱离本发明的发明构思、且未付出创造性劳动的前提下,本技术领域的技术人员对上述实施例中的技术特征进行取舍组合、具体参数进行试验变更,或者利用本技术领域的现有技术对本发明已公开的技术手段进行常规替换形成的具体的实施例,均应属于为本发明隐含公开的内容。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 (8)

1.一种存储有声传播时长测算程序的计算机可读介质,所述声传播时长测算程序包括输入模块、声速测算模块、最短传播时长测算模块和输出模块;所述声速测算模块存储有使用声速场模型构建方法构建的扫描面声速场模型,其特征在于,所述声速场模型构建方法包括以下步骤:1. A computer-readable medium storing a sound propagation time calculation program, the sound propagation time calculation program comprising 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 sound speed field model construction method comprises the following steps: 步骤S10、在扫描平面内环绕扫描第一盛装有不均匀流体的容器,在环绕扫描所述第一盛装有不均匀流体的容器的每一次发射接收过程中,在第一发射位置rs发射超声波,在发射后时长t时分别测量的n个第一声压测量位置rr处的第一声压uobs(t,rr,rs),n≥2;Step S10, scanning the first container containing the non-uniform fluid in a circumferential manner in a scanning plane, transmitting an ultrasonic wave at a first transmitting position r s in each transmitting and receiving process of the circumferential scanning of the first container containing the non-uniform fluid, and measuring first sound pressures u obs (t, r r , r s ) at n first sound pressure measuring positions r r at a time t after the transmission, where n≥2; 步骤S11、建立所述第一盛装有不均匀流体的容器的扫描面结构仿真模型,离散化处理所述扫描面结构仿真模型,添加离散处理后的波动规则,配置每一离散点的声速,得到扫描面声速场模型Step S11, establish a scanning surface structure simulation model of the first 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 ; 步骤S12、使用梯度优化算法迭代修正所述扫描面声速场模型,得到拟合于所述步骤S10的扫描平面内声速场的扫描面声速场模型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 ; 所述输入模块用于输入在盛装有不均匀流体的容器的扫描平面内的m次发射接收过程的第三发射位置、n个第三声压测量位置,以及第三声压测量位置测量的第三声压,其中,m≥1;在第三发射位置发射的第三超声波与所述步骤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; 所述最短传播时长测算模块用于测算第i个第三发射位置发射的第三超声波传播到离散点(x,z)位置处的传播时间ti(x,z)和所述第三超声波从离散点(x,z)位置传播到第j个第三声压测量位置的传播时间tj(x,z),其中,i分别取1,2,3,…,m;j分别取1,2,3,…,n;The shortest propagation time measuring module is used to measure the propagation time ti (x, z) of the third ultrasonic wave emitted from the i-th third transmitting position to the discrete point (x, z) position and the propagation time tj (x, z) of the third ultrasonic wave from the discrete point (x, z) position to the j-th third sound pressure measurement position, wherein i is 1, 2, 3, ..., m respectively; j is 1, 2, 3, ..., n respectively; 所述输出模块用于输出ti(x,z)和tj(x,z);The output module is used to output ti (x, z) and tj (x, z); 在所述步骤S11中,设置离散化处理的最大网格尺寸Δs,对所述扫描面结构仿真模型进行离散化处理;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); (4); 其中,u(x,z,t)为声压场,(x,z)分别为扫描面内离散点的横坐标、纵坐标,t为时间,v(x,z)为离散点(x,z)处的声速,Δt为计算时间步长,Δs为最大网格尺寸,M表示差分精度阶数的0.5倍,C为差分系数;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; 在所述步骤S11中,最大网格尺寸Δs为超声波的最小波长的1/8;所述计算时间步长Δt满足,vmin是扫描平面内介质的最小声速。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.如权利要求1所述的存储有声传播时长测算程序的计算机可读介质,其特征在于,所述扫描面结构仿真模型包括用于仿真空气的第一离散点、用于仿真所述第一盛装有不均匀流体的容器的壳体的第二离散点和用于仿真所述不均匀流体的第三离散点,所述输入模块还用于输入所述第一离散点的声速和所述第二离散点的声速,所述声速测算模块更新所述扫描面声速场模型2. The computer-readable medium storing a sound propagation duration calculation program according to claim 1 is 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 an inhomogeneous fluid, and a third discrete point for simulating the inhomogeneous fluid, and 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, and the sound velocity calculation module updates the scanning surface sound velocity field model . 3.如权利要求1所述的存储有声传播时长测算程序的计算机可读介质,其特征在于,设k≥0,在所述步骤S12中,使用梯度优化算法迭代修正所述扫描面声速场模型的方法包括以下步骤:3. The computer-readable medium storing the sound propagation duration calculation program according to claim 1, characterized in that, 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: 步骤S120、在第k+1次迭代前,在扫描面声速场模型中模拟所述步骤S10的所有发射接收过程,所述扫描面声速场模型输出其测算的发射后时长t时相应位置的第二声压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. ; (1);set up (1); ,则终止迭代,得到扫描面声速场模型;若,则进行第k+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; 步骤S121、在第k+1次迭代时,梯度算子gk+1=JTΔuk (2);其中,J代表Jacobian矩阵,,Δuk为扫描面声速场模型输出的第二声压与第一声压的差;Step S121: At the k+1th iteration, the gradient operator g k+1 =J T Δu k (2); wherein J represents the Jacobian matrix, , Δuk is the scanning surface sound velocity field model a difference between the output second sound pressure and the first sound pressure; 使用梯度优化算法寻找搜索方向和搜索步长,更新扫描面声速场模型 (3);Use the gradient optimization algorithm to find the search direction and search step size, and update the scanning surface sound velocity field model (3); 式中,αk+1为迭代步长,dk+1为搜索方向,dk+1=f(gk+1);Wherein, α k+1 is the iteration step, d k+1 is the search direction, d k+1 =f(g k+1 ); 令k=k+1,继续执行步骤S120。Let k=k+1 and continue to execute step S120. 4.如权利要求3所述的存储有声传播时长测算程序的计算机可读介质,其特征在于,在所述步骤S10中,在每一次发射接收过程中,在所述第一发射位置向第一射向发射第一超声波,所述第一发射位置、所述第一射向和n个第一声压测量位置均设置在扫描平面内;在所述步骤S120中,在扫描面声速场模型中模拟所述步骤S10的一次发射接收过程的方法是:以所述步骤S10中的一次发射接收过程中所述第一发射位置、n个所述第一声压测量位置与所述第一盛装有不均匀流体的容器的相对位置为参照基础,根据所述扫描面结构仿真模型的位置,分别确定第二发射位置和n个第二声压测量位置,设置在所述第二发射位置模拟发射的第二超声波的参数,所述第二超声波仿真所述第一超声波,所述扫描面声速场模型测算发射第二超声波后时长t时的所述第二声压测量位置的第二声压。4. The computer-readable medium storing the sound propagation time measurement program according to claim 3 is characterized in that in the step S10, in each transmission and reception 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 respectively according to the position of the scanning surface structure simulation model, setting the parameters of the second ultrasonic wave simulated to be transmitted 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.如权利要求1所述的存储有声传播时长测算程序的计算机可读介质,其特征在于,所述第一盛装有不均匀流体的容器为变压器出线装置,在所述步骤S10中,n>31。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, and in the step S10, n>31. 6.如权利要求1所述的存储有声传播时长测算程序的计算机可读介质,其特征在于,所述最短传播时长测算模块测算所述扫描面声速场模型中任意两点间的最短声传播时长的方法是:6. The computer-readable medium storing a sound propagation time calculation program according to claim 1, wherein the method by which the shortest propagation time calculation module calculates the shortest sound propagation time between any two points in the scanning surface sound velocity field model is: 设离散点p在前一声传播深度内,对应于位置(xp,zp);点q在后一声传播深度内,对应于位置(xq,zq),则点p、点q两离散点的虚拟传播时长Assume that discrete point p is within the previous propagation depth, corresponding to position ( xp , zp ); point q is within the next propagation depth, corresponding to position ( xq , zq ), then the virtual propagation time of the two discrete points p and q is ; 式中,v(xp,zp)为离散点(xp,zp)的声速;Where v(x p ,z p ) is the speed of sound at the discrete point (x p ,z p ); 若点p、点q在同一声传播深度内,或者,点p、点q不在相邻的两个声传播深度内,或者,点p、点q在相邻的两个声传播深度内,但点p在后一声传播深度内,点q在前一声传播深度内,则令tofpq=∞,表示声波暂不能在p、q之间传播;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; 对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,则使用最短路径搜索算法测算点p和点q之间的最短声传播时长,更新tofpqIf 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 pq is updated. 7.如权利要求6所述的存储有声传播时长测算程序的计算机可读介质,其特征在于,对于点p、点q不在相邻的两个声传播深度内,且点p所属的声传播深度在点q所属的声传播深度之前,使用Viterbi最短路径搜索算法测算点p和点q之间的最短声传播时长。7. The computer-readable medium storing a sound propagation time measurement program as described in claim 6 is characterized in that, 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. 8.一种电子设备,包括处理器,其特征在于,还包括如权利要求1-7中任一项所述的存储有声传播时长测算程序的计算机可读介质。8. An electronic device, comprising a processor, characterized in that it also includes a computer-readable medium storing a sound propagation duration measurement program as described in any one of claims 1 to 7.
CN202211517198.1A 2022-11-29 2022-11-29 Computer readable medium and electronic device Active CN115825252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211517198.1A CN115825252B (en) 2022-11-29 2022-11-29 Computer readable medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211517198.1A CN115825252B (en) 2022-11-29 2022-11-29 Computer readable medium and electronic device

Publications (2)

Publication Number Publication Date
CN115825252A CN115825252A (en) 2023-03-21
CN115825252B true CN115825252B (en) 2024-09-20

Family

ID=85532954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211517198.1A Active CN115825252B (en) 2022-11-29 2022-11-29 Computer readable medium and electronic device

Country Status (1)

Country Link
CN (1) CN115825252B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111419185A (en) * 2020-04-08 2020-07-17 国网山西省电力公司电力科学研究院 A Method for Image Reconstruction of Magnetoacoustic Imaging with Inhomogeneous Sound Velocity
CN114972567A (en) * 2022-05-30 2022-08-30 中国科学院声学研究所 Medical ultrasonic CT multi-parameter image reconstruction method based on wave equation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7841982B2 (en) * 1995-06-22 2010-11-30 Techniscan, Inc. Apparatus and method for imaging objects with wavefields
EP2745107A1 (en) * 2011-08-17 2014-06-25 EMPA Eidgenössische Materialprüfungs- und Forschungsanstalt Air coupled ultrasonic contactless method for non-destructive determination of defects in laminated structures
US11281825B2 (en) * 2020-06-30 2022-03-22 China Petroleum & Chemical Corporation Computer-implemented method for high speed multi-source loading and retrieval of wavefields employing finite difference models

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111419185A (en) * 2020-04-08 2020-07-17 国网山西省电力公司电力科学研究院 A Method for Image Reconstruction of Magnetoacoustic Imaging with Inhomogeneous Sound Velocity
CN114972567A (en) * 2022-05-30 2022-08-30 中国科学院声学研究所 Medical ultrasonic CT multi-parameter image reconstruction method based on wave equation

Also Published As

Publication number Publication date
CN115825252A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
Sun et al. A methodological review of piezoelectric based acoustic wave generation and detection techniques for structural health monitoring
Yang et al. Broadband electrical impedance matching of sandwiched piezoelectric ultrasonic transducers for structural health monitoring of the rail in-service
CN109443515B (en) System and method for testing sensitivity of small-size hydrophone in air
CN113008992B (en) Novel imaging detection method suitable for detecting early fatigue damage of material
CN109302667B (en) Method and device for rapidly measuring broadband sending response of underwater acoustic emission transducer
JP5366796B2 (en) Ultrasonic stress measurement method and apparatus
CN102523057B (en) Method for calibrating sound pressure in low-frequency sound wave free field
CN115993402A (en) Method of constructing the sound velocity field model of a container filled with inhomogeneous fluid, and the method of using the sound velocity field model
CN104142326A (en) Attenuation coefficient detection method
CN115825252B (en) Computer readable medium and electronic device
CN116577415A (en) Ultrasonic imaging detection system and method for component defects
CN111766300A (en) On-line detection device and method for metal structure weld cracking
CN116124882A (en) Ultrasonic imaging method, computer readable medium, ultrasonic detector
CN115796032A (en) Method for constructing ultrasonic simulation model of container filled with heterogeneous fluid and method for using ultrasonic simulation model
US20160091466A1 (en) System and method for testing transducer elements of an acoustic probe
Zhang et al. Numerical analysis and experimental measurement on segmented ring transducer acoustic fields
Galbraith et al. Development of a PVDF membrane hydrophone for use in air-coupled ultrasonic transducer calibration
Mohammadgholiha et al. Enabling directional frequency-selective power transmission in ultrasonic guided wave inspections
Fu et al. Broadband impedance matching design method for dipole acoustic logging transducer based on sparrow search algorithm
Leung et al. Theoretical modeling and analysis of a wireless Ultrasonic Power Transfer system
CN115453279A (en) A multi-field coupling basin type insulator detection device and method
Boyle et al. Non-contact thermoacoustic imaging of tissue with airborne ultrasound detection
Isaev et al. Development of systems for transmitting data and energy through an elastic medium
RU121113U1 (en) ACOUSTIC CONVERTER SELF-GRADING DEVICE
RU2782354C2 (en) Apparatus for grading electroacoustic transducers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant