[go: up one dir, main page]

CN113627027B - Method and system for simulating electromagnetic field value of non-trivial anisotropic medium - Google Patents

Method and system for simulating electromagnetic field value of non-trivial anisotropic medium Download PDF

Info

Publication number
CN113627027B
CN113627027B CN202110945379.3A CN202110945379A CN113627027B CN 113627027 B CN113627027 B CN 113627027B CN 202110945379 A CN202110945379 A CN 202110945379A CN 113627027 B CN113627027 B CN 113627027B
Authority
CN
China
Prior art keywords
electromagnetic field
current density
trivial
anisotropic medium
density divergence
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
CN202110945379.3A
Other languages
Chinese (zh)
Other versions
CN113627027A (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.)
Sichuan University
China University of Geosciences Beijing
Original Assignee
Sichuan University
China University of Geosciences Beijing
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 Sichuan University, China University of Geosciences Beijing filed Critical Sichuan University
Priority to CN202110945379.3A priority Critical patent/CN113627027B/en
Publication of CN113627027A publication Critical patent/CN113627027A/en
Application granted granted Critical
Publication of CN113627027B publication Critical patent/CN113627027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/02Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]
    • 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
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a numerical simulation method and a numerical simulation system for an electromagnetic field of a non-trivial anisotropic medium, which directly correct a Maxwell electromagnetic field control equation through a current density divergence constraint term to be more perfect, avoid the solution of extra unknown quantity or equation in the solution process and reduce the calculation burden. The method provided by the embodiment of the invention does not need to correct the current density divergence, can avoid the correction failure caused by error correction fields and algorithm restart after correction when the current density divergence correction is carried out on a non-trivial anisotropic medium in the prior art, thereby effectively suppressing the electromagnetic field pseudo solution in low-frequency application, obviously improving the convergence speed and the calculation efficiency of a solver, greatly shortening the solving time, ensuring the accuracy of numerical solution, and having important significance on the problems of electromagnetic response calculation of a complex medium, fine inversion imaging of an underground geological structure and the like.

Description

非平凡各向异性介质电磁场数值模拟方法及系统Numerical simulation method and system for electromagnetic field of non-trivial anisotropic medium

技术领域Technical Field

本发明涉及电磁场数值模拟技术领域,尤其涉及一种非平凡各向异性介质电磁场数值模拟方法及系统。The present invention relates to the technical field of electromagnetic field numerical simulation, and in particular to a method and system for numerical simulation of electromagnetic field of non-trivial anisotropic medium.

背景技术Background Art

伪解(spurious solutions)是指不具有物理意义的数值解,普遍存在于电磁场数值模拟问题中,通常与采用的数值方法、控制方程等密切相关。一般认为伪解来源于对麦克斯韦方程中旋度算子零空间或双旋度方程中特征向量的不恰当近似,但通常由多重因素引起。电磁场伪解容易导致解的非唯一性问题并产生无效解,从而导致数值算法收敛缓慢,数值解不精确。因而,面对不同问题,前人提出了多种技术手段尝试压制伪解,例如交错网格,导数连续的有限元型函数,解磁场求电场或解电场求磁场,电流密度散度校正及电流密度散度约束等。Spurious solutions refer to numerical solutions that have no physical meaning. They are common in electromagnetic numerical simulation problems and are usually closely related to the numerical methods and control equations used. It is generally believed that spurious solutions come from inappropriate approximations of the null space of the curl operator in Maxwell's equations or the eigenvectors in the double curl equations, but are usually caused by multiple factors. Electromagnetic spurious solutions can easily lead to non-uniqueness problems and produce invalid solutions, resulting in slow convergence of numerical algorithms and inaccurate numerical solutions. Therefore, in the face of different problems, predecessors have proposed a variety of technical means to try to suppress spurious solutions, such as staggered grids, finite element functions with continuous derivatives, solving magnetic fields to obtain electric fields or solving electric fields to obtain magnetic fields, current density divergence correction, and current density divergence constraints.

电流密度散度校正广泛应用于低频电磁问题,尤其是地球物理大地电磁法(Magnetotelluric Sounding,MT)及相关方法的数值模拟。当频率较低时,双旋度方程中电导率项几乎可以忽略;由于梯度空间是旋度算子的零空间,因而此时任意标量的梯度与真解的和都是方程的解,从而出现伪解。通过引入电流密度散度校正技术,在双旋度主控制方程外,以主控制方程的迭代电场解对应的电流冗余散度为源,附加求解一个电流连续性方程,并以求得的附加解对迭代电场解进行校正,从而使伪解得到压制。此方法在常规的各向同性介质以及平凡(轴向)各向异性介质的低频电磁场模拟中取得了很好的效果,显著提高了收敛效率。Current density divergence correction is widely used in low-frequency electromagnetic problems, especially in numerical simulation of geophysical magnetotelluric sounding (MT) and related methods. When the frequency is low, the conductivity term in the dual curl equation can be almost ignored; since the gradient space is the null space of the curl operator, the sum of the gradient of any scalar and the true solution is the solution of the equation, resulting in a pseudo solution. By introducing the current density divergence correction technology, in addition to the dual curl main control equation, an additional current continuity equation is solved with the current redundant divergence corresponding to the iterative electric field solution of the main control equation as the source, and the iterative electric field solution is corrected with the additional solution obtained, so that the pseudo solution is suppressed. This method has achieved good results in the low-frequency electromagnetic field simulation of conventional isotropic media and trivial (axial) anisotropic media, and significantly improved the convergence efficiency.

然而,电流密度散度校正技术在处理非平凡各向异性(即除轴向各向异性以外)介质时失效,原因在于:电流密度散度校正技术通过电位求解附加校正场,电位梯度分量始终沿直角坐标系三个坐标轴分布,无法用于描述与电导率张量中各元素对应的电场关系,即此时的电位梯度是为满足电流密度散度条件的等效值;然而,当其用于校正迭代电场解并在主控制方程中重新被电导率张量相乘时,错误由此发生,因为此时的电导率张量是原始的,而非与附加校正场对应的等效对角电导率张量。为此,现急需提供一种非平凡各向异性介质电磁场数值模拟方法。However, the current density divergence correction technique fails when dealing with non-trivial anisotropic media (i.e., media other than axial anisotropy) because: the current density divergence correction technique solves the additional correction field through the potential, and the potential gradient component is always distributed along the three coordinate axes of the rectangular coordinate system, which cannot be used to describe the electric field relationship corresponding to each element in the conductivity tensor, that is, the potential gradient at this time is an equivalent value to satisfy the current density divergence condition; however, when it is used to correct the iterative electric field solution and is multiplied by the conductivity tensor again in the main control equation, errors occur because the conductivity tensor at this time is the original one, not the equivalent diagonal conductivity tensor corresponding to the additional correction field. For this reason, it is urgent to provide a numerical simulation method for the electromagnetic field of non-trivial anisotropic media.

发明内容Summary of the invention

本发明提供一种非平凡各向异性介质电磁场数值模拟方法及系统,用以解决现有技术中存在的缺陷。The present invention provides a numerical simulation method and system for electromagnetic fields of non-trivial anisotropic media, which are used to solve the defects in the prior art.

本发明提供一种非平凡各向异性介质电磁场数值模拟方法,包括:The present invention provides a method for numerical simulation of electromagnetic fields of non-trivial anisotropic media, comprising:

确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;Determine the spatial topological locations of current density divergence constraints and conductivity weighting factors in nontrivial anisotropic media;

基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;Determining the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor;

基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;Based on the current density divergence constraint term, the Maxwell electromagnetic field control equation is corrected to obtain a corrected equation;

对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。The modified equation is solved to obtain a numerical solution of the electromagnetic field in the non-trivial anisotropic medium.

根据本发明提供的一种非平凡各向异性介质电磁场数值模拟方法,所述空间拓扑位置基于如下方式确定:According to a numerical simulation method for electromagnetic fields of non-trivial anisotropic media provided by the present invention, the spatial topological position is determined based on the following method:

构建结构化六面体交错网格;Construct a structured hexahedral staggered grid;

对于所述非平凡各向异性介质中的电磁场,将所述电磁场的电场矢量定义在所述结构化六面体交错网格的棱边上,将所述电磁场的磁场矢量定义在所述结构化六面体交错网格的面上,将所述电磁场的电流密度散度定义在所述结构化六面体交错网格的节点上;For the electromagnetic field in the non-trivial anisotropic medium, the electric field vector of the electromagnetic field is defined on the edges of the structured hexahedral staggered grid, the magnetic field vector of the electromagnetic field is defined on the surface of the structured hexahedral staggered grid, and the current density divergence of the electromagnetic field is defined on the nodes of the structured hexahedral staggered grid;

基于所述电流密度散度的位置,确定所述电流密度散度约束的空间拓扑位置。Based on the location of the current density divergence, a spatial topological location of the current density divergence constraint is determined.

根据本发明提供的一种非平凡各向异性介质电磁场数值模拟方法,所述电导率加权因子基于如下方式确定:According to a numerical simulation method for electromagnetic field of a non-trivial anisotropic medium provided by the present invention, the conductivity weighting factor is determined based on the following method:

对于所述结构化六面体交错网格的任一节点,将所述任一节点周围的网格电导率张量中的对角元素平均至所述任一节点上,得到所述任一节点对应的电导率张量对角元素;For any node of the structured hexahedral staggered grid, averaging the diagonal elements in the grid conductivity tensor around the any node to the any node to obtain the diagonal elements of the conductivity tensor corresponding to the any node;

计算所述电导率张量对角元素的均方根,并将所述均方根的逆作为所述电导率加权因子。The root mean square of the diagonal elements of the conductivity tensor is calculated, and the inverse of the root mean square is used as the conductivity weighting factor.

根据本发明提供的一种非平凡各向异性介质电磁场数值模拟方法,所述基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项,具体包括:According to a numerical simulation method for electromagnetic fields of non-trivial anisotropic media provided by the present invention, the current density divergence constraint term is determined based on the spatial topological position and the conductivity weighting factor, specifically including:

基于所述电导率加权因子以及所述空间拓扑位置,确定备选电流密度散度约束项;Determining an alternative current density divergence constraint term based on the conductivity weighting factor and the spatial topological position;

基于所述备选电流密度散度约束项,确定所述电流密度散度约束项。The current density divergence constraint term is determined based on the candidate current density divergence constraint term.

根据本发明提供的一种非平凡各向异性介质电磁场数值模拟方法,所述基于所述备选电流密度散度约束项,确定所述电流密度散度约束项,具体包括:According to a numerical simulation method for electromagnetic fields of non-trivial anisotropic media provided by the present invention, the current density divergence constraint term is determined based on the alternative current density divergence constraint term, specifically including:

将所述备选电流密度散度约束项进行正则化处理,得到所述电流密度散度约束项。The candidate current density divergence constraint term is regularized to obtain the current density divergence constraint term.

根据本发明提供的一种非平凡各向异性介质电磁场数值模拟方法,所述对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解,具体包括:According to a numerical simulation method for electromagnetic fields in non-trivial anisotropic media provided by the present invention, solving the correction equation to obtain a numerical solution of the electromagnetic field in the non-trivial anisotropic media specifically includes:

基于所述结构化六面体交错网格,采用有限体积法,对所述修正方程以及所述修正方程对应的计算域进行离散处理,得到所述修正方程对应的第一离散结果以及所述计算域对应的第二离散结果;Based on the structured hexahedral staggered grid, the correction equation and the calculation domain corresponding to the correction equation are discretized by using the finite volume method to obtain a first discrete result corresponding to the correction equation and a second discrete result corresponding to the calculation domain;

确定所述第二离散结果的边界条件,并基于所述第一离散结果以及所述边界条件,确定所述电磁场的稀疏线性方程组;Determining boundary conditions of the second discrete result, and determining a sparse linear equation group of the electromagnetic field based on the first discrete result and the boundary conditions;

基于Krylov子空间求解器,求解所述稀疏线性方程组,得到所述电磁场数值解。The sparse linear equations are solved based on a Krylov subspace solver to obtain a numerical solution to the electromagnetic field.

根据本发明提供的一种非平凡各向异性介质电磁场数值模拟方法,所述基于Krylov子空间求解器,求解所述稀疏线性方程组,得到所述电磁场数值解,具体包括:According to a numerical simulation method for electromagnetic fields of non-trivial anisotropic media provided by the present invention, the sparse linear equations are solved based on a Krylov subspace solver to obtain the numerical solution of the electromagnetic field, which specifically includes:

基于Krylov子空间求解器,采用拟最小残差法迭代求解所述稀疏线性方程组,得到所述电磁场数值解。Based on the Krylov subspace solver, the quasi-minimum residual method is adopted to iteratively solve the sparse linear equations to obtain the numerical solution of the electromagnetic field.

本发明还提供一种非平凡各向异性介质电磁场数值模拟系统,包括:The present invention also provides a non-trivial anisotropic medium electromagnetic field numerical simulation system, comprising:

第一确定模块,用于确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;A first determination module is used to determine the spatial topological position of the current density divergence constraint and the conductivity weighting factor in the non-trivial anisotropic medium;

第二确定模块,用于基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;A second determination module, configured to determine the current density divergence constraint item based on the spatial topological position and the conductivity weighting factor;

修正模块,用于基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;A correction module, used for correcting the Maxwell electromagnetic field control equation based on the current density divergence constraint term to obtain a corrected equation;

求解模块,用于对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。A solution module is used to solve the modified equation to obtain a numerical solution of the electromagnetic field in the non-trivial anisotropic medium.

本发明还提供一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述任一种所述非平凡各向异性介质电磁场数值模拟方法的步骤。The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium as described above are implemented.

本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述非平凡各向异性介质电磁场数值模拟方法的步骤。The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned methods for numerically simulating electromagnetic fields of non-trivial anisotropic media are implemented.

本发明提供的非平凡各向异性介质电磁场数值模拟方法及系统,通过电流密度散度约束项直接对麦克斯韦电磁场控制方程进行修正,使其更加完善,避免了求解过程中额外未知量或方程的求解,减少计算负担。本发明实施例中提供的方法,并不需要对电流密度散度进行校正,可以避免现有技术中在对非平凡各向异性介质进行电流密度散度校正时,错误校正场及校正后算法重启带来的校正失效,从而有效压制了低频应用中的电磁场伪解,显著提高了求解器的收敛速度与计算效率,极大缩短了求解时间,并保证了数值解的精确度,对复杂介质的电磁响应计算以及地下地质构造的精细反演成像等问题有重要意义。另外,本发明实施例中提供的方法,其实现相对更加简单直接,提高了实用性。The numerical simulation method and system of electromagnetic field of non-trivial anisotropic medium provided by the present invention directly corrects the Maxwell electromagnetic field control equation through the current density divergence constraint term, making it more perfect, avoiding the solution of additional unknown quantities or equations in the solution process, and reducing the calculation burden. The method provided in the embodiment of the present invention does not need to correct the current density divergence, which can avoid the correction failure caused by the wrong correction field and the restart of the algorithm after correction when correcting the current density divergence of non-trivial anisotropic media in the prior art, thereby effectively suppressing the electromagnetic field pseudo-solution in low-frequency applications, significantly improving the convergence speed and calculation efficiency of the solver, greatly shortening the solution time, and ensuring the accuracy of the numerical solution, which is of great significance to the electromagnetic response calculation of complex media and the fine inversion imaging of underground geological structures. In addition, the method provided in the embodiment of the present invention is relatively simpler and more direct to implement, which improves practicality.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

图1是本发明提供的非平凡各向异性介质电磁场数值模拟方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a numerical simulation method for electromagnetic fields of non-trivial anisotropic media provided by the present invention;

图2是本发明提供的非平凡各向异性介质电磁场数值模拟模型的有限体积三维网格剖分图;FIG2 is a finite volume three-dimensional grid partition diagram of the numerical simulation model of the electromagnetic field of a non-trivial anisotropic medium provided by the present invention;

图3是本发明提供的电流密度散度约束的空间拓扑位置示意图;FIG3 is a schematic diagram of the spatial topological position of the current density divergence constraint provided by the present invention;

图4为本发明提供的不同种类的各向异性介质的一维层状模型的电性参数示意图;FIG4 is a schematic diagram of electrical parameters of one-dimensional layered models of different types of anisotropic media provided by the present invention;

图5为本发明提供的不同种类的各向异性介质的三维COMMEMI 3D-2模型示意图;FIG5 is a schematic diagram of a three-dimensional COMMEMI 3D-2 model of different types of anisotropic media provided by the present invention;

图6为本发明提供的任意各向异性介质的半空间模型、一维层状模型、三维COMMEMI 3D-2模型的效率测试结果对比图;FIG6 is a comparison diagram of the efficiency test results of the half-space model, the one-dimensional layered model, and the three-dimensional COMMEMI 3D-2 model of an arbitrary anisotropic medium provided by the present invention;

图7为本发明提供的任意各向异性介质的一维层状模型响应的准确性测试对比图;FIG7 is a comparison diagram of the accuracy test of the one-dimensional layered model response of any anisotropic medium provided by the present invention;

图8为本发明提供的任意各向异性介质的非对称岩脉模型示意图;FIG8 is a schematic diagram of an asymmetric vein model of an arbitrary anisotropic medium provided by the present invention;

图9为本发明提供的任意各向异性介质的非对称岩脉模型响应的准确性测试对比图;FIG9 is a comparison diagram of the accuracy test of the asymmetric vein model response of any anisotropic medium provided by the present invention;

图10为本发明提供的任意各向异性介质的三维COMMEMI 3D-2模型响应的准确性测试对比图;FIG10 is a comparison diagram of the accuracy test of the three-dimensional COMMEMI 3D-2 model response of any anisotropic medium provided by the present invention;

图11是本发明提供的非平凡各向异性介质电磁场数值模拟系统的结构示意图;FIG11 is a schematic diagram of the structure of a numerical simulation system for electromagnetic fields of non-trivial anisotropic media provided by the present invention;

图12是本发明提供的电子设备的结构示意图。FIG. 12 is a schematic diagram of the structure of an electronic device provided by the present invention.

具体实施方式DETAILED DESCRIPTION

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

由于非平凡各向异性介质的电磁场数值模拟对于复杂介质的电磁响应计算以及地下地质构造的精细反演成像等问题至关重要,因而有必要研究新的技术手段来应对此类问题。为此,本发明实施例中提供了一种非平凡各向异性介质电磁场数值模拟方法。Since the numerical simulation of electromagnetic fields of non-trivial anisotropic media is crucial for the calculation of electromagnetic response of complex media and the fine inversion imaging of underground geological structures, it is necessary to study new technical means to deal with such problems. To this end, an embodiment of the present invention provides a method for numerical simulation of electromagnetic fields of non-trivial anisotropic media.

图1为本发明实施例中提供的一种非平凡各向异性介质电磁场数值模拟方法的流程示意图,如图1所示,该方法包括:FIG1 is a flow chart of a method for numerically simulating electromagnetic fields of a non-trivial anisotropic medium provided in an embodiment of the present invention. As shown in FIG1 , the method includes:

S1,确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;S1, determine the spatial topological location of the current density divergence constraint and the conductivity weighting factor in nontrivial anisotropic media;

S2,基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;S2, determining the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor;

S3,基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;S3, based on the current density divergence constraint term, modifying the Maxwell electromagnetic field control equation to obtain a modified equation;

S4,对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。S4, solving the modified equation to obtain a numerical solution of the electromagnetic field in the non-trivial anisotropic medium.

具体地,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,其执行主体为服务器,该服务器可以是本地服务器,也可以是云端服务器,本地服务器具体可以是计算机等,本发明实施例中对此不作具体限定。本发明实施例中,针对的对象是非平凡各向异性介质的电磁场数值模拟方法,非平凡各向异性介质可以是具有非平凡各向异性的介质,非平凡各向异性可以包括水平各向异性、倾向各向异性以及任意各向异性等,其中任意各向异性是指电性主轴和坐标轴均不重合。非平凡各向异性介质,其物理或机械性能,例如吸光度、折射率、电导率以及拉伸强度等沿着不同的方向测量时均会产生差异。Specifically, the numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention is executed by a server, which can be a local server or a cloud server. The local server can be a computer, etc., which is not specifically limited in the embodiment of the present invention. In the embodiment of the present invention, the object is the numerical simulation method of electromagnetic field of non-trivial anisotropic medium. The non-trivial anisotropic medium can be a medium with non-trivial anisotropy. The non-trivial anisotropy can include horizontal anisotropy, inclination anisotropy and arbitrary anisotropy, etc., wherein arbitrary anisotropy means that the electrical main axis and the coordinate axis do not coincide. The physical or mechanical properties of non-trivial anisotropic medium, such as absorbance, refractive index, conductivity and tensile strength, will produce differences when measured along different directions.

首先执行步骤S1,确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子。电流密度散度约束是指本发明实施例中为避免数值模拟过程中出现的伪解问题而引入的对非平凡各向异性介质中电流密度散度的约束条件。First, step S1 is performed to determine the spatial topological position of the current density divergence constraint in the non-trivial anisotropic medium and the conductivity weighting factor. The current density divergence constraint refers to the constraint condition on the current density divergence in the non-trivial anisotropic medium introduced in the embodiment of the present invention to avoid the pseudo-solution problem in the numerical simulation process.

电流密度散度约束可以通过非平凡各向异性介质中的电磁场模型确定,电磁场模型即为非平凡各向异性介质电磁场数值模拟模型,可以是如图2所示的结构化六面体交错网格。电流密度散度约束可以包括节点约束、棱边约束等。其中,节点即为结构化六面体交错网格中的节点,棱边即为结构化六面体交错网格中的棱边。The current density divergence constraint can be determined by an electromagnetic field model in a non-trivial anisotropic medium, and the electromagnetic field model is a numerical simulation model of the electromagnetic field of a non-trivial anisotropic medium, which can be a structured hexahedral staggered grid as shown in FIG2. The current density divergence constraint can include node constraints, edge constraints, etc. Among them, the node is the node in the structured hexahedral staggered grid, and the edge is the edge in the structured hexahedral staggered grid.

图2中,以向右为x轴正方向,向下为z轴正方向,向左下为y轴正方向建立三维直角坐标系,结构化六面体交错网格的中心节点坐标为(i,j,k),左下节点坐标为(i-1,j+1,k+1),右下节点坐标为(i+1,j+1,k+1),右下棱边的中心节点坐标为(i+1,j,k+1)。结构化六面体交错网格中各棱边均有对应的电场矢量及电场矢量的方向。In Figure 2, a three-dimensional rectangular coordinate system is established with the right as the positive direction of the x-axis, the downward as the positive direction of the z-axis, and the lower left as the positive direction of the y-axis. The coordinates of the central node of the structured hexahedral staggered grid are (i, j, k), the coordinates of the lower left node are (i-1, j+1, k+1), the coordinates of the lower right node are (i+1, j+1, k+1), and the coordinates of the central node of the lower right edge are (i+1, j, k+1). Each edge in the structured hexahedral staggered grid has a corresponding electric field vector and the direction of the electric field vector.

电流密度散度是指电流密度的散度,其取值为标量。电流密度是指电导率张量与电场矢量的乘积,可以表示为:Current density divergence refers to the divergence of current density, and its value is a scalar. Current density refers to the product of the conductivity tensor and the electric field vector, which can be expressed as:

J=σEJ=σE

其中,J表示电流密度,σ表示电导率张量,E表示电场矢量。Where J is the current density, σ is the conductivity tensor, and E is the electric field vector.

非平凡各向异性介质中电流密度散度约束的空间拓扑位置可以通过结构化六面体交错网格中合适的节点或棱边进行表征,本发明实施例中对此不作具体限定。The spatial topological position of the current density divergence constraint in the non-trivial anisotropic medium can be characterized by appropriate nodes or edges in the structured hexahedral staggered grid, which is not specifically limited in the embodiments of the present invention.

非平凡各向异性介质的电导率为张量σ,且电导率张量存在非对角元素,即至少需要以4个电性参数表征。由于本发明实施例中的约束对象可以是定义在节点上的电流密度散度,所以需要由节点周边网格中的多元素电导率张量估算出电导率加权因子λ。其中,电导率加权因子λ的取值为标量。The conductivity of a non-trivial anisotropic medium is a tensor σ, and the conductivity tensor has non-diagonal elements, that is, it needs to be characterized by at least four electrical parameters. Since the constraint object in the embodiment of the present invention can be the current density divergence defined on the node, it is necessary to estimate the conductivity weighting factor λ from the multi-element conductivity tensor in the grid around the node. The value of the conductivity weighting factor λ is a scalar.

然后执行步骤S2,根据空间拓扑位置以及电导率加权因子,可以确定电流密度散度约束项。电流密度散度约束项用于对麦克斯韦电磁场控制方程进行修正,因此其作为附加项引入。Then, step S2 is performed to determine the current density divergence constraint term according to the spatial topological position and the conductivity weighting factor. The current density divergence constraint term is used to correct the Maxwell electromagnetic field control equation, so it is introduced as an additional term.

然后执行步骤S3,根据电流密度散度约束项对麦克斯韦电磁场控制方程(可以简称为麦克斯韦方程)进行修正,得到修正方程。Then, step S3 is executed to correct the Maxwell electromagnetic field control equation (which may be referred to as Maxwell equation for short) according to the current density divergence constraint term to obtain a corrected equation.

按照地球物理大地电磁法(MT),麦克斯韦电磁场控制方程在无外界场源、不考虑位移电流,以e-iωt为时间因子,以频率域电场的二阶偏微分方程表达的具体形式为:According to the geophysical magnetotelluric method (MT), the Maxwell electromagnetic field control equation is expressed in the specific form of the second-order partial differential equation of the frequency domain electric field without external field source, without considering displacement current, and with e -iωt as the time factor:

Figure BDA0003216477490000091
Figure BDA0003216477490000091

其中,ω为角频率,μ为磁导率,其取值可以为真空磁导率。Wherein, ω is the angular frequency, μ is the magnetic permeability, and its value can be the vacuum magnetic permeability.

根据电流密度散度约束项对麦克斯韦电磁场控制方程进行修正时,可以将电流密度散度约束项引入上述的麦克斯韦电磁场控制方程,即得到如下所示的修正方程,该修正方程则可以压制伪解。When the Maxwell electromagnetic field control equations are corrected according to the current density divergence constraint term, the current density divergence constraint term can be introduced into the above-mentioned Maxwell electromagnetic field control equations, that is, the corrected equation shown below is obtained, and the corrected equation can suppress the pseudo solution.

Figure BDA0003216477490000092
Figure BDA0003216477490000092

其中,M为电流密度散度约束项。Where M is the current density divergence constraint.

最后执行步骤S4,对修正方程进行求解,得到非平凡各向异性介质中的电磁场数值解。在对修正方程进行求解时,可以选取适当的数值方法,离散修正方程及其计算域,然后通过处理边界条件或场源,构建线性方程组,最后通过线性方程组,即可得到非平凡各向异性介质中的电磁场数值解。Finally, step S4 is executed to solve the modified equation to obtain the numerical solution of the electromagnetic field in the non-trivial anisotropic medium. When solving the modified equation, an appropriate numerical method can be selected to discretize the modified equation and its computational domain, and then a linear equation group is constructed by processing boundary conditions or field sources. Finally, the numerical solution of the electromagnetic field in the non-trivial anisotropic medium can be obtained through the linear equation group.

本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,通过电流密度散度约束项直接对麦克斯韦电磁场控制方程进行修正,使其更加完善,避免了求解过程中额外未知量或方程的求解,减少计算负担。本发明实施例中提供的方法,并不需要对电流密度散度进行校正,可以避免现有技术中在对非平凡各向异性介质进行电流密度散度校正时,错误校正场及校正后算法重启带来的校正失效,从而有效压制了低频应用中的电磁场伪解,显著提高了求解器的收敛速度与计算效率,极大缩短了求解时间,并保证了数值解的精确度,对复杂介质的电磁响应计算以及地下地质构造的精细反演成像等问题有重要意义。另外,本发明实施例中提供的方法,其实现相对更加简单直接,提高了实用性。The numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention directly corrects the Maxwell electromagnetic field control equation through the current density divergence constraint term, making it more perfect, avoiding the solution of additional unknown quantities or equations in the solution process, and reducing the computational burden. The method provided in the embodiment of the present invention does not need to correct the current density divergence, which can avoid the correction failure caused by the wrong correction field and the restart of the algorithm after correction when correcting the current density divergence of non-trivial anisotropic media in the prior art, thereby effectively suppressing the electromagnetic field pseudo-solution in low-frequency applications, significantly improving the convergence speed and calculation efficiency of the solver, greatly shortening the solution time, and ensuring the accuracy of the numerical solution, which is of great significance to the electromagnetic response calculation of complex media and the fine inversion imaging of underground geological structures. In addition, the method provided in the embodiment of the present invention is relatively simpler and more direct to implement, which improves practicality.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,所述空间拓扑位置基于如下方式确定:On the basis of the above-mentioned embodiment, in the numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention, the spatial topological position is determined based on the following method:

构建结构化六面体交错网格;Construct a structured hexahedral staggered grid;

对于所述非平凡各向异性介质中的电磁场,将所述电磁场的电场矢量定义在所述结构化六面体交错网格的棱边上,将所述电磁场的磁场矢量定义在所述结构化六面体交错网格的面上,将所述电磁场的电流密度散度定义在所述结构化六面体交错网格的节点上;For the electromagnetic field in the non-trivial anisotropic medium, the electric field vector of the electromagnetic field is defined on the edges of the structured hexahedral staggered grid, the magnetic field vector of the electromagnetic field is defined on the surface of the structured hexahedral staggered grid, and the current density divergence of the electromagnetic field is defined on the nodes of the structured hexahedral staggered grid;

基于所述电流密度散度的位置,确定所述电流密度散度约束的空间拓扑位置。Based on the location of the current density divergence, a spatial topological location of the current density divergence constraint is determined.

具体地,本发明实施例中,在确定空间拓扑位置时,可以先构建如图2所示的结构化六面体交错网格。然后对于非平凡各向异性介质中的电磁场,将电磁场的电场矢量E定义在结构化六面体交错网格的棱边上,将电磁场的磁场矢量H定义在结构化六面体交错网格的面上,将电磁场的电流密度散度定义在结构化六面体交错网格的节点上。最后,根据电流密度散度的位置,即结构化六面体交错网格的节点,即可确定电流密度散度约束的空间拓扑位置。本发明实施例中,可以根据优势分析确定节点或棱边作为电流密度散度约束的空间拓扑位置。例如,电流密度散度约束可以直接在节点上,也可以先将电流密度散度平均到棱边上再施加约束,本发明实施例中对此不作具体限定。Specifically, in an embodiment of the present invention, when determining the spatial topological position, a structured hexahedral staggered grid as shown in Figure 2 can be first constructed. Then, for the electromagnetic field in a non-trivial anisotropic medium, the electric field vector E of the electromagnetic field is defined on the edge of the structured hexahedral staggered grid, the magnetic field vector H of the electromagnetic field is defined on the surface of the structured hexahedral staggered grid, and the current density divergence of the electromagnetic field is defined on the node of the structured hexahedral staggered grid. Finally, according to the position of the current density divergence, that is, the node of the structured hexahedral staggered grid, the spatial topological position of the current density divergence constraint can be determined. In an embodiment of the present invention, a node or edge can be determined as the spatial topological position of the current density divergence constraint based on advantage analysis. For example, the current density divergence constraint can be directly on the node, or the current density divergence can be averaged to the edge before the constraint is applied, which is not specifically limited in the embodiment of the present invention.

本发明实施例中,通过结构化六面体交错网格确定电流密度散度约束的空间拓扑位置,可以使空间拓扑位置更加直观。In the embodiment of the present invention, the spatial topological position of the current density divergence constraint is determined by using a structured hexahedral staggered grid, so that the spatial topological position can be made more intuitive.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,所述电导率加权因子基于如下方式确定:On the basis of the above-mentioned embodiment, in the numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention, the conductivity weighting factor is determined based on the following method:

对于所述结构化六面体交错网格的任一节点,将所述任一节点周围的网格电导率张量中的对角元素平均至所述任一节点上,得到所述任一节点对应的电导率张量对角元素;For any node of the structured hexahedral staggered grid, averaging the diagonal elements in the grid conductivity tensor around the any node to the any node to obtain the diagonal elements of the conductivity tensor corresponding to the any node;

计算所述电导率张量中对角元素的均方根,并将所述均方根的逆作为所述电导率加权因子。The root mean square of the diagonal elements in the conductivity tensor is calculated, and the inverse of the root mean square is used as the conductivity weighting factor.

具体地,本发明实施例中,在确定电导率加权因子时,由于非平凡各向异性介质的电导率存在非对角元素,即至少需要以4个电性参数表征,因此对于结构化六面体交错网格的任一节点,即任何一个节点,可以先将该任一节点周围的网格电导率张量中的对角元素体积平均至该任一节点上,得到该任一节点对应的电导率张量对角元素,可以表示为

Figure BDA0003216477490000111
Specifically, in the embodiment of the present invention, when determining the conductivity weighting factor, since the conductivity of the non-trivial anisotropic medium has non-diagonal elements, that is, it needs to be characterized by at least four electrical parameters, for any node of the structured hexahedral staggered grid, that is, any node, the volume of the diagonal elements in the grid conductivity tensor around the any node can be first averaged to the any node to obtain the diagonal elements of the conductivity tensor corresponding to the any node, which can be expressed as
Figure BDA0003216477490000111

然后,可以均方根(Root Mean Square,RMS)方法计算电导率张量对角元素的均方根,并将计算得到的均方根的逆作为电导率加权因子。即有:Then, the root mean square (RMS) method can be used to calculate the root mean square of the diagonal elements of the conductivity tensor, and the inverse of the calculated root mean square is used as the conductivity weighting factor. That is,

Figure BDA0003216477490000112
Figure BDA0003216477490000112

其中,λ为电导率加权因子,结构化六面体交错网格的每个节点均对应有一个电导率加权因子。Among them, λ is the conductivity weighting factor, and each node of the structured hexahedral staggered grid corresponds to a conductivity weighting factor.

本发明实施例中,通过将结构化六面体交错网格中节点周围的网格电导率张量中的对角元素平均至节点上,得到该节点对应的电导率张量对角元素,并通过计算电导率张量对角元素的均方根,得到电导率加权因子,可以使得到的电导率加权因子更加准确。In an embodiment of the present invention, the diagonal elements in the grid conductivity tensor around the node in the structured hexahedral staggered grid are averaged to the node to obtain the diagonal elements of the conductivity tensor corresponding to the node, and the conductivity weighting factor is obtained by calculating the root mean square of the diagonal elements of the conductivity tensor, so that the obtained conductivity weighting factor can be made more accurate.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,所述基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项,具体包括:On the basis of the above-mentioned embodiment, the numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention, the current density divergence constraint term is determined based on the spatial topological position and the conductivity weighting factor, specifically including:

基于所述电导率加权因子以及所述空间拓扑位置,确定备选电流密度散度约束项;Determining an alternative current density divergence constraint term based on the conductivity weighting factor and the spatial topological position;

基于所述备选电流密度散度约束项,确定所述电流密度散度约束项。The current density divergence constraint term is determined based on the candidate current density divergence constraint term.

具体地,本发明实施例中,在确定电流密度散度约束项时,可以先根据电导率加权因子,确定空间拓扑位置处的备选电流密度散度约束项。即有:Specifically, in the embodiment of the present invention, when determining the current density divergence constraint term, the candidate current density divergence constraint term at the spatial topological position can be determined according to the conductivity weighting factor. That is, there is:

Figure BDA0003216477490000113
Figure BDA0003216477490000113

然后,根据备选电流密度散度约束项,即可确定电流密度散度约束项。本发明实施例中,可以直接将备选电流密度散度约束项作为电流密度散度约束项,也可以通过对备选电流密度散度约束项进行处理得到电流密度散度约束项,本发明实施例中对此不作具体限定。Then, the current density divergence constraint term can be determined according to the alternative current density divergence constraint term. In the embodiment of the present invention, the alternative current density divergence constraint term can be directly used as the current density divergence constraint term, or the current density divergence constraint term can be obtained by processing the alternative current density divergence constraint term, which is not specifically limited in the embodiment of the present invention.

本发明实施例中,由于备选电流密度散度约束项等于0,其作为最终的电流密度散度约束项对麦克斯韦电磁场控制方程进行修正时并不会对麦克斯韦电磁场控制方程产生影响,却能够避免伪解问题的出现,可以在提高非平凡各向异性介质的电磁场数值模拟效率的同时,不会引入新的问题,增加了可靠性。In the embodiment of the present invention, since the alternative current density divergence constraint term is equal to 0, it will not affect the Maxwell electromagnetic field control equations when it is used as the final current density divergence constraint term to correct the Maxwell electromagnetic field control equations, but it can avoid the occurrence of pseudo-solution problems, and can improve the efficiency of numerical simulation of electromagnetic fields of non-trivial anisotropic media without introducing new problems, thereby increasing reliability.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,所述基于所述备选电流密度散度约束项,确定所述电流密度散度约束项,具体包括:On the basis of the above-mentioned embodiment, the numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention, the determining of the current density divergence constraint term based on the alternative current density divergence constraint term specifically includes:

将所述备选电流密度散度约束项进行正则化处理,得到所述电流密度散度约束项。The candidate current density divergence constraint term is regularized to obtain the current density divergence constraint term.

具体地,本发明实施例中,为了平衡约束项与原始麦克斯韦电磁场控制方程中的双旋度项并使二者之和近似向量Laplacian项,从而压缩平非凡零空间,在根据备选电流密度散度约束项确定电流密度散度约束项时,可以将备选电流密度散度约束项进行正则化处理,即将备选电流密度散度约束项转变为:Specifically, in the embodiment of the present invention, in order to balance the constraint term and the double curl term in the original Maxwell electromagnetic field control equation and make the sum of the two approximate the vector Laplacian term, thereby compressing the flat non-zero space, when determining the current density divergence constraint term according to the alternative current density divergence constraint term, the alternative current density divergence constraint term can be regularized, that is, the alternative current density divergence constraint term is transformed into:

Figure BDA0003216477490000121
Figure BDA0003216477490000121

即得到电流密度散度约束项。That is, the current density divergence constraint term is obtained.

相应地,有:Accordingly, there are:

Figure BDA0003216477490000122
Figure BDA0003216477490000122

修正方程可以表示为:The correction equation can be expressed as:

Figure BDA0003216477490000123
Figure BDA0003216477490000123

修正方程中,等号左边前两项使解的非平凡零空间得到压缩,从而压制伪解。In the modified equation, the first two terms on the left side of the equal sign compress the non-trivial null space of the solution, thereby suppressing pseudo-solutions.

如图3所示,为电流密度散度约束的拓扑位置示意图,图3中(a)部分表示节点约束,(b)部分表示棱边约束。图3中,节点约束项的表达式为

Figure BDA0003216477490000124
而棱边约束项的表达式为
Figure BDA0003216477490000125
二者实现的功能相似。As shown in Figure 3, it is a schematic diagram of the topological position of the current density divergence constraint. Part (a) of Figure 3 represents the node constraint, and part (b) represents the edge constraint. In Figure 3, the expression of the node constraint term is
Figure BDA0003216477490000124
The expression of the edge constraint is
Figure BDA0003216477490000125
The functions achieved by the two are similar.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,所述对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解,具体包括:On the basis of the above-mentioned embodiment, the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium provided in the embodiment of the present invention, wherein the correction equation is solved to obtain the numerical solution of the electromagnetic field in the non-trivial anisotropic medium, specifically comprises:

基于所述结构化六面体交错网格,采用有限体积法,对所述修正方程以及所述修正方程对应的计算域进行离散处理,得到所述修正方程对应的第一离散结果以及所述计算域对应的第二离散结果;Based on the structured hexahedral staggered grid, the correction equation and the calculation domain corresponding to the correction equation are discretized by using the finite volume method to obtain a first discrete result corresponding to the correction equation and a second discrete result corresponding to the calculation domain;

确定所述第二离散结果的边界条件,并基于所述第一离散结果以及所述边界条件,确定所述电磁场的稀疏线性方程组;Determining boundary conditions of the second discrete result, and determining a sparse linear equation group of the electromagnetic field based on the first discrete result and the boundary conditions;

基于Krylov子空间求解器,求解所述稀疏线性方程组,得到所述电磁场数值解。The sparse linear equations are solved based on a Krylov subspace solver to obtain a numerical solution to the electromagnetic field.

具体地,本发明实施例中,在对修正方程进行求解得到非平凡各向异性介质中的电磁场数值解时,可以先根据图2所示的结构化六面体交错网格,采用有限体积法,对修正方程以及修正方程对应的计算域进行离散处理。其中,有限体积法着重从物理观点来构造离散方程,每一个离散方程都是有限大小体积上某种物理量守恒的表示式,推导过程物理概念清晰,离散方程系数具有一定的物理意义,并可保证离散方程具有守恒特性。Specifically, in the embodiment of the present invention, when solving the modified equation to obtain the numerical solution of the electromagnetic field in the non-trivial anisotropic medium, the modified equation and the calculation domain corresponding to the modified equation can be discretized by using the finite volume method according to the structured hexahedral staggered grid shown in Figure 2. Among them, the finite volume method focuses on constructing discrete equations from a physical point of view. Each discrete equation is an expression of the conservation of a certain physical quantity on a finite volume. The physical concept of the derivation process is clear, the coefficients of the discrete equation have certain physical meanings, and can ensure that the discrete equation has conservation characteristics.

经离散处理得到的修正方程对应的第一离散结果即多个离散方程,计算域对应的第二离散结果即各离散方程对应的计算域。The first discrete result corresponding to the modified equation obtained through the discrete processing is a plurality of discrete equations, and the second discrete result corresponding to the calculation domain is a calculation domain corresponding to each discrete equation.

然后,可以确定各离散方程对应的计算域的边界条件,考虑无源的情况,边界条件可以是第一类边界条件,即Dirichlet边界条件。边界上的场值由边界一维模型的电磁响应场值确定,通过整理可构成方程右端项,从而根据各离散方程以及各离散方程对应的计算域的边界条件,可以构建出电磁场的稀疏线性方程组。该稀疏线性方程组中包含有多个离散方程,故为大型稀疏线性方程组。Then, the boundary conditions of the computational domain corresponding to each discrete equation can be determined. Considering the passive case, the boundary conditions can be the first-class boundary conditions, namely the Dirichlet boundary conditions. The field value on the boundary is determined by the electromagnetic response field value of the one-dimensional model of the boundary. The right-hand side of the equation can be formed by sorting. Therefore, according to each discrete equation and the boundary conditions of the computational domain corresponding to each discrete equation, a sparse linear equation group of the electromagnetic field can be constructed. This sparse linear equation group contains multiple discrete equations, so it is a large sparse linear equation group.

最后,可以通过Krylov子空间求解器,求解上述得到的稀疏线性方程组,得到最终的电磁场数值解,该电磁场数值解即为非平凡各向异性介质电磁场数值模拟的结果。其中,Krylov子空间求解器的主要思想是为各迭代步递归构造残差向量,即第n步的残差向量通过系数矩阵A的某个多项式与第一个残差向量相乘得到。但要注意,迭代多项式的选取应该使所构造的残差向量在某种内积意义下相互正交,从而保证极小残差性,达到快速收敛的目的。Finally, the sparse linear equations obtained above can be solved by the Krylov subspace solver to obtain the final numerical solution of the electromagnetic field, which is the result of the numerical simulation of the electromagnetic field of a non-trivial anisotropic medium. Among them, the main idea of the Krylov subspace solver is to recursively construct a residual vector for each iteration step, that is, the residual vector of the nth step is obtained by multiplying a polynomial of the coefficient matrix A with the first residual vector. However, it should be noted that the selection of the iterative polynomial should make the constructed residual vectors mutually orthogonal in a certain inner product sense, so as to ensure the minimum residual and achieve the purpose of rapid convergence.

本发明实施例中,在对修正方程进行求解时,通过有限体积法,离散修正方程以及修正方程对应的计算域,并确定各离散方程对应的计算域的边界条件,通过离散方程以及边界条件,构建电磁场的稀疏线性方程组,并采用Krylov子空间求解器对其进行求解,可以使求解速度大大提高,进而提高非平凡各向异性介质电磁场数值模拟效率。In an embodiment of the present invention, when solving the correction equation, the finite volume method is used to discretize the correction equation and the calculation domain corresponding to the correction equation, and the boundary conditions of the calculation domain corresponding to each discrete equation are determined. A sparse linear equation group of the electromagnetic field is constructed through the discrete equations and the boundary conditions, and the Krylov subspace solver is used to solve it, which can greatly improve the solution speed, thereby improving the efficiency of numerical simulation of the electromagnetic field of non-trivial anisotropic media.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,所述基于Krylov子空间求解器,求解所述稀疏线性方程组,得到所述电磁场数值解,具体包括:On the basis of the above embodiments, the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium provided in the embodiments of the present invention, the sparse linear equations are solved based on the Krylov subspace solver to obtain the numerical solution of the electromagnetic field, specifically comprising:

基于Krylov子空间求解器,采用拟最小残差法迭代求解所述稀疏线性方程组,得到所述电磁场数值解。Based on the Krylov subspace solver, the quasi-minimum residual method is adopted to iteratively solve the sparse linear equations to obtain the numerical solution of the electromagnetic field.

具体地,本发明实施例中,可以通过Krylov子空间求解器,采用拟最小残差法(quasi-minimal residual,QMR)迭代求解稀疏线性方程组,进而得到电磁场数值解,可以进一步提高求解速度以及非平凡各向异性介质电磁场数值模拟效率。Specifically, in an embodiment of the present invention, a sparse linear equation system can be iteratively solved by a Krylov subspace solver using a quasi-minimal residual (QMR) method to obtain a numerical solution to the electromagnetic field, which can further improve the solution speed and the efficiency of numerical simulation of electromagnetic fields in non-trivial anisotropic media.

以下均以地球物理学中的大地电磁法(MT)数值模拟领域的应用为例,且均以三维数值算法实现并在三维空间中模拟。其采用的第一类边界条件会在模型顶部施加一较厚空气层,其被设置为低电导率,并与下部地球模型同步剖分求解;准确性测试中,对MT而言,还需将数值模拟得到的电磁场转为阻抗,再计算视电阻率。The following examples are all based on the application of magnetotelluric (MT) numerical simulation in geophysics, and are all implemented with three-dimensional numerical algorithms and simulated in three-dimensional space. The first type of boundary condition used will impose a thicker air layer on the top of the model, which is set to low conductivity and is solved synchronously with the lower earth model; in the accuracy test, for MT, it is also necessary to convert the electromagnetic field obtained by numerical simulation into impedance and then calculate the apparent resistivity.

1)效率测试:1) Efficiency test:

本发明实施例为半空间模型、一维层状模型、三维模型这三种模型设置了三种不同种类的非平凡各向异性介质以及一种平凡各向异性介质,以全面测试本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法的效果。其中,三种不同种类的非平凡各向异性介质包括任意各向异性介质、水平各向异性介质以及倾向各向异性介质,平凡各向异性介质包括轴向各向异性介质。表1为不同各向异性半空间模型的电性参数,测试过程中,设置计算域沿X、Y、Z轴方向的空间维度分别为192km,192km,330km,并被剖分为26×26×59个六面体网格。The embodiment of the present invention sets three different types of non-trivial anisotropic media and one ordinary anisotropic medium for the three models of half-space model, one-dimensional layered model and three-dimensional model, so as to comprehensively test the effect of the numerical simulation method of electromagnetic field of non-trivial anisotropic medium provided in the embodiment of the present invention. Among them, the three different types of non-trivial anisotropic media include arbitrary anisotropic media, horizontal anisotropic media and inclined anisotropic media, and the ordinary anisotropic medium includes axial anisotropic media. Table 1 shows the electrical parameters of different anisotropic half-space models. During the test, the spatial dimensions of the calculation domain along the X, Y and Z axes are set to 192km, 192km and 330km respectively, and are divided into 26×26×59 hexahedral grids.

表1不同种类的各向异性介质的半空间模型电性参数Table 1 Electrical parameters of half-space models of different types of anisotropic media

Figure BDA0003216477490000151
Figure BDA0003216477490000151

图4展示了不同种类的各向异性介质的一维层状模型电性参数,其中LM1表示任意各向异性,LM2表示水平各向异性,LM3表示倾向各向异性,LM4表示轴向各向异性,模型计算域的空间维度与网格剖分与上述半空间模型相同。图5展示了不同种类的各向异性介质的三维COMMEMI 3D-2模型电性参数。图5中,(a)部分为俯视图,横坐标为东西方向,纵坐标为南北方向,(a)部分中仅能看到块1(block1)、块2(block2)以及块3(block3),Profile为纵坐标取值为0的位置。(b)部分为(a)部分沿Profile的剖面图,横坐标为东西方向,纵坐标为深度方向。(b)部分中可以看到块1(block1)、块2(block2)、块3(block3)以及块4(block4)。Figure 4 shows the electrical parameters of the one-dimensional layered model of different types of anisotropic media, where LM1 represents arbitrary anisotropy, LM2 represents horizontal anisotropy, LM3 represents tilt anisotropy, and LM4 represents axial anisotropy. The spatial dimension and mesh division of the model calculation domain are the same as those of the above-mentioned half-space model. Figure 5 shows the electrical parameters of the three-dimensional COMMEMI 3D-2 model of different types of anisotropic media. In Figure 5, part (a) is a top view, with the horizontal axis in the east-west direction and the vertical axis in the north-south direction. In part (a), only block 1 (block1), block 2 (block2) and block 3 (block3) can be seen, and Profile is the position where the vertical axis takes a value of 0. Part (b) is a cross-sectional view of part (a) along Profile, with the horizontal axis in the east-west direction and the vertical axis in the depth direction. In part (b), block 1 (block1), block 2 (block2), block 3 (block3) and block 4 (block4) can be seen.

关于图(5)中各块的电性参数如下:The electrical parameters of each block in Figure (5) are as follows:

block1 0.1S/m(各向同性介质)block1 0.1S/m (isotropic medium)

block2 1/0.001/0.01S/m,[15°/45°/30°]block2 1/0.001/0.01S/m,[15°/45°/30°]

block3 0.01/1/0.01S/m,[30°/0°/0°]block3 0.01/1/0.01S/m,[30°/0°/0°]

block4 10S/m(各向同性介质)block4 10S/m (isotropic medium)

对于任意各向异性介质,保留方括号中所有角度;对于水平各向异性介质:保留block 3方括号的Strike;对于倾向各向异性介质:保留block 2的Dip角;对于轴向各向异性介质:舍弃方括号中所有角度。COMMEMI 3D-2为国际电磁感应研究社区提出的检验数值算法的标准模型,原始模型为各向同性算法提供,本发明实施例中将原始模型中的各向同性参数修改为各向异性参数;其空间维度分别为125.626km,125.626km,145km,并被剖分为46×46×40个六面体网格。For any anisotropic medium, keep all angles in the square brackets; for horizontal anisotropic medium: keep the Strike in the square brackets of block 3; for inclined anisotropic medium: keep the Dip angle in block 2; for axial anisotropic medium: discard all angles in the square brackets. COMMEMI 3D-2 is a standard model proposed by the international electromagnetic induction research community to test numerical algorithms. The original model is provided by the isotropic algorithm. In the embodiment of the present invention, the isotropic parameters in the original model are modified to anisotropic parameters; its spatial dimensions are 125.626km, 125.626km, 145km, respectively, and are divided into 46×46×40 hexahedral grids.

经算法实际测试,不同种类的各向异性介质的所有模型的计算效率都得到了显著提升,用时明显缩短,表明本发明实施例中非平凡各向异性介质电磁场数值模拟方法不仅可以针对于所有种类的非平凡各向异性介质,也可以针对于平凡各向异性介质,平凡各向异性介质可以看作是非平凡各向异性介质的特例。但为避免冗余,此处仅展示本发明实施例中拟解决的非平凡各向异性的最一般情形,即任意各向异性介质的电磁场数值模拟效率情况。After actual testing of the algorithm, the computational efficiency of all models of different types of anisotropic media has been significantly improved, and the time used has been significantly shortened, indicating that the numerical simulation method of electromagnetic fields of non-trivial anisotropic media in the embodiment of the present invention can be applied not only to all types of non-trivial anisotropic media, but also to ordinary anisotropic media, and ordinary anisotropic media can be regarded as a special case of non-trivial anisotropic media. However, to avoid redundancy, only the most general case of non-trivial anisotropy to be solved in the embodiment of the present invention, that is, the efficiency of electromagnetic field numerical simulation of arbitrary anisotropic media, is shown here.

图6集中给出了任意各向异性介质的半空间模型、一维层状模型、三维COMMEMI3D-2模型的归一化相对残差随迭代次数的变化,并标识了用时,测试周期为500秒,极化模式为XY模式。其中,QMR+CCGD表示本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法,QMR+CCDC表示现有的电流密度散度校正方法,QMR表示纯粹迭代解,不做校正或约束。图6中(a)部分对应于半空间模型,(b)部分对应于一维层状模型,(c)部分对应于三维COMMEMI 3D-2模型。FIG6 shows the variation of the normalized relative residual of the half-space model, one-dimensional layered model, and three-dimensional COMMEMI3D-2 model of arbitrary anisotropic media with the number of iterations, and indicates the time taken. The test cycle is 500 seconds, and the polarization mode is XY mode. Among them, QMR+CCGD represents the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium provided in an embodiment of the present invention, QMR+CCDC represents the existing current density divergence correction method, and QMR represents a pure iterative solution without correction or constraint. Part (a) of FIG6 corresponds to the half-space model, part (b) corresponds to the one-dimensional layered model, and part (c) corresponds to the three-dimensional COMMEMI 3D-2 model.

图6说明本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法可以很好地压制伪解,显著提高了非平凡各向异性介质的电磁场数值模拟收敛效率。FIG6 illustrates that the numerical simulation method for electromagnetic fields of non-trivial anisotropic media provided in an embodiment of the present invention can suppress spurious solutions well and significantly improve the convergence efficiency of numerical simulation of electromagnetic fields of non-trivial anisotropic media.

2)准确性测试:2) Accuracy test:

本发明实施例中针对任意各向异性介质的一维层状模型的情况进行准确性测试。一维层状模型的模型分层及模型参数如表2所示。In the embodiment of the present invention, the accuracy test is performed on the one-dimensional layered model of any anisotropic medium. The model layers and model parameters of the one-dimensional layered model are shown in Table 2.

表2任意各向异性介质的一维层状模型电性参数Table 2 Electrical parameters of one-dimensional layered model of arbitrary anisotropic media

Figure BDA0003216477490000171
Figure BDA0003216477490000171

模型计算域空间维度为402km,402km,530km,并被剖分为30×30×59个六面体网格,测试周期为1-10000秒,响应计算测点位于计算域中心。图7给出了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法计算的电磁响应与现有解析方法计算的电磁响应的对比情况,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法计算的电磁响应对应于符号的标注,现有解析方法计算的电磁响应对应于短划线的标注。图7中,左侧部分为视电阻率与周期(Period)之间的曲线关系,右侧部分为阻抗相位(Impedancephase)与周期(Period)之间的曲线关系。The spatial dimensions of the model calculation domain are 402km, 402km, and 530km, and are divided into 30×30×59 hexahedral grids. The test period is 1-10000 seconds, and the response calculation point is located at the center of the calculation domain. FIG7 shows a comparison between the electromagnetic response calculated by the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium provided in an embodiment of the present invention and the electromagnetic response calculated by the existing analytical method. The electromagnetic response calculated by the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium provided in an embodiment of the present invention corresponds to the symbol annotation, and the electromagnetic response calculated by the existing analytical method corresponds to the dashed line annotation. In FIG7, the left part is the curve relationship between the apparent resistivity and the period (Period), and the right part is the curve relationship between the impedance phase (Impedancephase) and the period (Period).

从图7中可以看出,将xy、yx、xx、yy四个模式进行对比,电磁响应均能很好地吻合,验证了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法可以准确计算任意各向异性介质的一维层状模型的电磁响应。As can be seen from FIG7 , by comparing the four modes xy, yx, xx, and yy, the electromagnetic responses all match well, which verifies that the numerical simulation method for the electromagnetic field of a non-trivial anisotropic medium provided in the embodiment of the present invention can accurately calculate the electromagnetic response of a one-dimensional layered model of any anisotropic medium.

3)准确性测试:3) Accuracy test:

本发明实施例中针对任意各向异性介质的非对称岩脉模型的情况进行准确性测试。非对称岩脉模型如图8所示。非对称岩脉模型包括(a)、(b)、(c)三部分,三部分的电性参数如表3所示:In the embodiment of the present invention, the accuracy test is performed on the asymmetric dyke model of any anisotropic medium. The asymmetric dyke model is shown in FIG8 . The asymmetric dyke model includes three parts (a), (b), and (c), and the electrical parameters of the three parts are shown in Table 3:

表3任意各向异性介质的非对称岩脉模型电性参数Table 3 Electrical parameters of asymmetric vein model for arbitrary anisotropic media

Figure BDA0003216477490000172
Figure BDA0003216477490000172

Figure BDA0003216477490000181
Figure BDA0003216477490000181

模型计算域空间维度为60km,60km,148km,并被剖分为70×70×44个六面体网格,测试周期为10秒,剖面位于X轴中部,沿Y轴由中心至右端。图9给出了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法计算的电磁响应与二维常规方法计算的电磁响应的对比情况,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法计算的电磁响应对应于符号的标注,现有解析方法计算的电磁响应对应于短划线的标注。The model calculation domain space dimensions are 60km, 60km, 148km, and are divided into 70×70×44 hexahedral grids. The test period is 10 seconds. The section is located in the middle of the X-axis and along the Y-axis from the center to the right end. FIG9 shows the comparison between the electromagnetic response calculated by the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention and the electromagnetic response calculated by the two-dimensional conventional method. The electromagnetic response calculated by the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention corresponds to the symbol mark, and the electromagnetic response calculated by the existing analytical method corresponds to the dash mark.

从图9中可以看出,所给出模式的电磁响应亦能很好地吻合,验证了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法可以准确计算更为复杂的任意各向异性介质的非对称岩脉模型的电磁响应。此外,还说明了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法对频率不是很低的应用案例同样适用。As can be seen from FIG9 , the electromagnetic responses of the given modes also match well, verifying that the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention can accurately calculate the electromagnetic response of a more complex asymmetric dyke model of any anisotropic medium. In addition, it also illustrates that the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention is also applicable to application cases where the frequency is not very low.

4)准确性测试:4) Accuracy test:

本发明实施例中针对任意各向异性介质的三维COMMEMI 3D-2模型的情况进行准确性测试。三维COMMEMI 3D-2模型示意如图5所示,对于任意各向异性介质,需保留各块方括号内的所有角度。模型计算域空间维度及网格剖分与上述实施例中对此模型的有关描述一致(即均为125.626km,125.626km,145km,46×46×40),测试周期为1-10000秒,计算响应的测试点坐标为(62500,62500,0)。In the embodiment of the present invention, the accuracy test is performed on the three-dimensional COMMEMI 3D-2 model of any anisotropic medium. The schematic diagram of the three-dimensional COMMEMI 3D-2 model is shown in Figure 5. For any anisotropic medium, all angles in the square brackets of each block need to be retained. The spatial dimensions and grid division of the model calculation domain are consistent with the relevant description of this model in the above embodiment (i.e., all are 125.626km, 125.626km, 145km, 46×46×40), the test period is 1-10000 seconds, and the coordinates of the test point for calculating the response are (62500, 62500, 0).

图10给出了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法计算的电磁响应与常规直接解法计算的电磁响应的对比情况,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法计算的电磁响应对应于符号的标注,现有解析方法计算的电磁响应对应于短划线的标注。从图10中可以看出,四个模式的响应同样能很好地相互吻合,验证了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法可以准确计算复杂的任意各向异性介质的三维COMMEMI 3D-2模型的电磁响应。FIG10 shows a comparison between the electromagnetic response calculated by the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention and the electromagnetic response calculated by the conventional direct solution method. The electromagnetic response calculated by the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention corresponds to the symbol annotation, and the electromagnetic response calculated by the existing analytical method corresponds to the dashed line annotation. It can be seen from FIG10 that the responses of the four modes can also be well matched with each other, which verifies that the non-trivial anisotropic medium electromagnetic field numerical simulation method provided in the embodiment of the present invention can accurately calculate the electromagnetic response of the three-dimensional COMMEMI 3D-2 model of complex arbitrary anisotropic media.

综上,效率测试中的实施例与准确性测试中的实施例有力说明了本发明实施例中提供的非平凡各向异性介质电磁场数值模拟方法在非平凡各向异性介质电磁场数值模拟中压制伪解的有效性,规避了现有电流密度散度校正方法的缺陷,既能提高算法的收敛效率,又能保证解的准确性,具有普遍适用性,为非平凡各向异性介质电磁场高效数值模拟提供了新的有效手段,从而为复杂介质的电磁响应计算以及地下地质构造的精细反演成像等问题提供了计算保障。In summary, the embodiments in the efficiency test and the embodiments in the accuracy test strongly illustrate the effectiveness of the numerical simulation method of electromagnetic fields of non-trivial anisotropic media provided in the embodiments of the present invention in suppressing pseudo-solutions in the numerical simulation of electromagnetic fields of non-trivial anisotropic media, avoiding the defects of the existing current density divergence correction method, and can not only improve the convergence efficiency of the algorithm, but also ensure the accuracy of the solution. It has universal applicability, and provides a new and effective means for efficient numerical simulation of electromagnetic fields of non-trivial anisotropic media, thereby providing computational guarantees for problems such as electromagnetic response calculation of complex media and fine inversion imaging of underground geological structures.

如图11所示,在上述实施例的基础上,本发明实施例中提供了一种非平凡各向异性介质电磁场数值模拟系统,包括:As shown in FIG. 11 , based on the above embodiment, an embodiment of the present invention provides a numerical simulation system for electromagnetic fields of non-trivial anisotropic media, including:

第一确定模块111,用于确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;A first determination module 111 is used to determine the spatial topological position of the current density divergence constraint and the conductivity weighting factor in the non-trivial anisotropic medium;

第二确定模块112,用于基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;A second determination module 112, configured to determine the current density divergence constraint item based on the spatial topological position and the conductivity weighting factor;

修正模块113,用于基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;A correction module 113, used to correct the Maxwell electromagnetic field control equation based on the current density divergence constraint term to obtain a corrected equation;

求解模块114,用于对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。The solution module 114 is used to solve the correction equation to obtain a numerical solution of the electromagnetic field in the non-trivial anisotropic medium.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统,所述第一确定模块,具体用于:On the basis of the above-mentioned embodiment, in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiment of the present invention, the first determination module is specifically used for:

构建结构化六面体交错网格;Construct a structured hexahedral staggered grid;

对于所述非平凡各向异性介质中的电磁场,将所述电磁场的电场矢量定义在所述结构化六面体交错网格的棱边上,将所述电磁场的磁场矢量定义在所述结构化六面体交错网格的面上,将所述电磁场的电流密度散度定义在所述结构化六面体交错网格的节点上;For the electromagnetic field in the non-trivial anisotropic medium, the electric field vector of the electromagnetic field is defined on the edges of the structured hexahedral staggered grid, the magnetic field vector of the electromagnetic field is defined on the surface of the structured hexahedral staggered grid, and the current density divergence of the electromagnetic field is defined on the nodes of the structured hexahedral staggered grid;

基于所述电流密度散度的位置,确定所述电流密度散度约束的空间拓扑位置。Based on the location of the current density divergence, a spatial topological location of the current density divergence constraint is determined.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统,所述第一确定模块,还具体用于:On the basis of the above-mentioned embodiment, in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiment of the present invention, the first determining module is further specifically used for:

对于所述结构化六面体交错网格的任一节点,将所述任一节点周围的网格电导率张量中的对角元素平均至所述任一节点上,得到所述任一节点对应的电导率张量对角元素;For any node of the structured hexahedral staggered grid, averaging the diagonal elements in the grid conductivity tensor around the any node to the any node to obtain the diagonal elements of the conductivity tensor corresponding to the any node;

计算所述电导率张量对角元素的均方根,并将所述均方根的逆作为所述电导率加权因子。The root mean square of the diagonal elements of the conductivity tensor is calculated, and the inverse of the root mean square is used as the conductivity weighting factor.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统,所述第二确定模块,具体用于:On the basis of the above-mentioned embodiment, in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiment of the present invention, the second determination module is specifically used for:

基于所述电导率加权因子以及所述空间拓扑位置,确定备选电流密度散度约束项;Determining an alternative current density divergence constraint term based on the conductivity weighting factor and the spatial topological position;

基于所述备选电流密度散度约束项,确定所述电流密度散度约束项。The current density divergence constraint term is determined based on the candidate current density divergence constraint term.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统,所述第二确定模块,还具体用于:On the basis of the above-mentioned embodiment, in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiment of the present invention, the second determination module is further specifically used for:

将所述备选电流密度散度约束项进行正则化处理,得到所述电流密度散度约束项。The candidate current density divergence constraint term is regularized to obtain the current density divergence constraint term.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统,所述求解模块,具体用于:On the basis of the above-mentioned embodiments, in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiments of the present invention, the solution module is specifically used for:

基于所述结构化六面体交错网格,采用有限体积法,对所述修正方程以及所述修正方程对应的计算域进行离散处理,得到所述修正方程对应的第一离散结果以及所述计算域对应的第二离散结果;Based on the structured hexahedral staggered grid, the correction equation and the calculation domain corresponding to the correction equation are discretized by using the finite volume method to obtain a first discrete result corresponding to the correction equation and a second discrete result corresponding to the calculation domain;

确定所述第二离散结果的边界条件,并基于所述第一离散结果以及所述边界条件,确定所述电磁场的稀疏线性方程组;Determining boundary conditions of the second discrete result, and determining a sparse linear equation group of the electromagnetic field based on the first discrete result and the boundary conditions;

基于Krylov子空间求解器,求解所述稀疏线性方程组,得到所述电磁场数值解。The sparse linear equations are solved based on a Krylov subspace solver to obtain a numerical solution to the electromagnetic field.

在上述实施例的基础上,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统,所述求解模块,还具体用于:On the basis of the above-mentioned embodiment, in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiment of the present invention, the solution module is further specifically used for:

基于Krylov子空间求解器,采用拟最小残差法迭代求解所述稀疏线性方程组,得到所述电磁场数值解。Based on the Krylov subspace solver, the quasi-minimum residual method is adopted to iteratively solve the sparse linear equations to obtain the numerical solution of the electromagnetic field.

具体地,本发明实施例中提供的非平凡各向异性介质电磁场数值模拟系统中各模块的作用与上述方法类实施例中各步骤的操作流程是一一对应的,实现的效果也是一致的,具体参见上述实施例,本发明实施例中对此不再赘述。Specifically, the functions of each module in the non-trivial anisotropic medium electromagnetic field numerical simulation system provided in the embodiment of the present invention correspond one-to-one to the operating procedures of each step in the above method embodiment, and the effects achieved are also consistent. Please refer to the above embodiment for details, which will not be repeated in the embodiment of the present invention.

图12示例了一种电子设备的实体结构示意图,如图12所示,该电子设备可以包括:处理器(Processor)1210、通信接口(Communications Interface)1220、存储器(Memory)1230和通信总线1240,其中,处理器1210,通信接口1220,存储器1230通过通信总线1240完成相互间的通信。处理器1210可以调用存储器1230中的逻辑指令,以执行上述各实施例提供的非平凡各向异性介质电磁场数值模拟方法,该方法包括:确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。FIG12 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG12, the electronic device may include: a processor 1210, a communication interface 1220, a memory 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220 and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 may call the logic instructions in the memory 1230 to execute the numerical simulation method of the electromagnetic field of the non-trivial anisotropic medium provided by the above-mentioned embodiments, the method comprising: determining the spatial topological position and the conductivity weighting factor of the current density divergence constraint in the non-trivial anisotropic medium; determining the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor; modifying the Maxwell electromagnetic field control equation based on the current density divergence constraint term to obtain a modified equation; solving the modified equation to obtain the numerical solution of the electromagnetic field in the non-trivial anisotropic medium.

此外,上述的存储器1230中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the logic instructions in the above-mentioned memory 1230 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各实施例提供的非平凡各向异性介质电磁场数值模拟方法,该方法包括:确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the non-trivial anisotropic medium electromagnetic field numerical simulation method provided by the above embodiments, the method comprising: determining the spatial topological position and conductivity weighting factor of the current density divergence constraint in the non-trivial anisotropic medium; determining the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor; based on the current density divergence constraint term, correcting the Maxwell electromagnetic field control equation to obtain a corrected equation; solving the corrected equation to obtain the electromagnetic field numerical solution in the non-trivial anisotropic medium.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的非平凡各向异性介质电磁场数值模拟方法,该方法包括:确定非平凡各向异性介质中电流密度散度约束的空间拓扑位置以及电导率加权因子;基于所述空间拓扑位置以及所述电导率加权因子,确定所述电流密度散度约束项;基于所述电流密度散度约束项,对麦克斯韦电磁场控制方程进行修正,得到修正方程;对所述修正方程进行求解,得到所述非平凡各向异性介质中的电磁场数值解。On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the numerical simulation method of the electromagnetic field of a non-trivial anisotropic medium provided by the above embodiments, the method comprising: determining the spatial topological position and the conductivity weighting factor of the current density divergence constraint in the non-trivial anisotropic medium; determining the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor; based on the current density divergence constraint term, correcting the Maxwell electromagnetic field control equation to obtain a corrected equation; solving the corrected equation to obtain a numerical solution of the electromagnetic field in the non-trivial anisotropic medium.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A numerical simulation method of an electromagnetic field of a non-trivial anisotropic medium is characterized by comprising the following steps:
determining a spatial topological position constrained by current density divergence in a non-trivial anisotropic medium and a conductivity weighting factor;
determining the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor;
correcting a Maxwell electromagnetic field control equation based on the current density divergence constraint term to obtain a correction equation;
solving the correction equation to obtain an electromagnetic field numerical solution in the nontrivial anisotropic medium;
wherein the spatial topological position is determined based on:
constructing a structured hexahedral staggered grid;
for an electromagnetic field in the non-trivial anisotropic medium, defining an electric field vector of the electromagnetic field on edges of the structured hexahedral interleaved grid, defining a magnetic field vector of the electromagnetic field on faces of the structured hexahedral interleaved grid, defining a current density divergence of the electromagnetic field on nodes of the structured hexahedral interleaved grid;
determining a spatial topological position of the current density divergence constraint based on the position of the current density divergence;
solving the correction equation to obtain a numerical solution of the electromagnetic field in the nontrivial anisotropic medium, specifically comprising:
based on the structured hexahedral staggered grid, performing discrete processing on the correction equation and a calculation domain corresponding to the correction equation by adopting a finite volume method to obtain a first discrete result corresponding to the correction equation and a second discrete result corresponding to the calculation domain;
determining a boundary condition for the second discrete result and determining a sparse system of linear equations for the electromagnetic field based on the first discrete result and the boundary condition;
and solving the sparse linear equation set based on a Krylov subspace solver to obtain the electromagnetic field numerical solution.
2. A non-trivial anisotropic medium electromagnetic field numerical simulation method according to claim 1, wherein the conductivity weighting factor is determined based on:
for any node of the structured hexahedral staggered grid, averaging diagonal elements in the grid conductivity tensor around the any node to obtain a conductivity tensor diagonal element corresponding to the any node;
a root mean square of the diagonal elements of the conductivity tensor is computed, and an inverse of the root mean square is used as the conductivity weighting factor.
3. The method of numerical simulation of an electromagnetic field of a non-trivial anisotropic medium as set forth in claim 1, wherein said determining said current density divergence constraint term based on said spatial topological position and said conductivity weighting factor specifically comprises:
determining an alternative current density divergence constraint term based on the conductivity weighting factor and the spatial topological position;
determining the current density divergence constraint term based on the alternative current density divergence constraint term.
4. A non-trivial anisotropic medium electromagnetic field numerical simulation method according to claim 3, wherein said determining the current density divergence constraint term based on the candidate current density divergence constraint term, comprises in particular:
and carrying out regularization processing on the alternative current density divergence constraint term to obtain the current density divergence constraint term.
5. The non-trivial anisotropic medium electromagnetic field numerical simulation method of claim 1, wherein the solving the sparse linear equation set based on Krylov subspace solver to obtain the electromagnetic field numerical solution, specifically comprises:
and iteratively solving the sparse linear equation set by adopting a quasi-minimum residual error method based on a Krylov subspace solver to obtain the electromagnetic field numerical solution.
6. A numerical simulation system for electromagnetic fields of non-trivial anisotropic media, comprising:
a first determination module for determining a current density divergence constrained spatial topological position in a non-trivial anisotropic medium and a conductivity weighting factor;
a second determination module to determine the current density divergence constraint term based on the spatial topological position and the conductivity weighting factor;
the correction module is used for correcting a Maxwell electromagnetic field control equation based on the current density divergence constraint term to obtain a correction equation;
the solving module is used for solving the correction equation to obtain an electromagnetic field numerical solution in the non-trivial anisotropic medium;
wherein the spatial topological position is determined based on:
constructing a structured hexahedral staggered grid;
for an electromagnetic field in the non-trivial anisotropic medium, defining an electric field vector of the electromagnetic field on edges of the structured hexahedral interleaved grid, defining a magnetic field vector of the electromagnetic field on faces of the structured hexahedral interleaved grid, defining a current density divergence of the electromagnetic field on nodes of the structured hexahedral interleaved grid;
determining a spatial topological position of the current density divergence constraint based on the position of the current density divergence;
solving the correction equation to obtain a numerical solution of the electromagnetic field in the nontrivial anisotropic medium, specifically comprising:
based on the structured hexahedral staggered grid, performing discrete processing on the correction equation and a calculation domain corresponding to the correction equation by adopting a finite volume method to obtain a first discrete result corresponding to the correction equation and a second discrete result corresponding to the calculation domain;
determining a boundary condition for the second discrete result and determining a sparse system of linear equations for the electromagnetic field based on the first discrete result and the boundary condition;
and solving the sparse linear equation set based on a Krylov subspace solver to obtain the electromagnetic field numerical solution.
7. An electronic device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, characterized in that said processor, when executing said program, implements the steps of the method for numerical simulation of electromagnetic fields of a non-trivial anisotropic medium as claimed in any one of claims 1 to 5.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the method for numerical simulation of electromagnetic fields of a non-trivial anisotropic medium as claimed in any one of claims 1 to 5.
CN202110945379.3A 2021-08-17 2021-08-17 Method and system for simulating electromagnetic field value of non-trivial anisotropic medium Active CN113627027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110945379.3A CN113627027B (en) 2021-08-17 2021-08-17 Method and system for simulating electromagnetic field value of non-trivial anisotropic medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110945379.3A CN113627027B (en) 2021-08-17 2021-08-17 Method and system for simulating electromagnetic field value of non-trivial anisotropic medium

Publications (2)

Publication Number Publication Date
CN113627027A CN113627027A (en) 2021-11-09
CN113627027B true CN113627027B (en) 2023-04-11

Family

ID=78386196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110945379.3A Active CN113627027B (en) 2021-08-17 2021-08-17 Method and system for simulating electromagnetic field value of non-trivial anisotropic medium

Country Status (1)

Country Link
CN (1) CN113627027B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116430103B (en) * 2023-06-14 2023-08-15 兰州大学 Inversion method, equipment and medium for current density of superconducting tape

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115670A (en) * 1996-12-04 2000-09-05 Schlumberger Technology Corporation Method, apparatus, and article of manufacture for solving 3D Maxwell equations in inductive logging applications
CN111611737A (en) * 2020-05-19 2020-09-01 中南大学 An oceanic controllable source electromagnetic forward modeling method for three-dimensional arbitrary anisotropic media

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980736B (en) * 2017-04-11 2019-07-19 吉林大学 A marine controllable source electromagnetic method finite element forward modeling method for anisotropic media

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115670A (en) * 1996-12-04 2000-09-05 Schlumberger Technology Corporation Method, apparatus, and article of manufacture for solving 3D Maxwell equations in inductive logging applications
CN111611737A (en) * 2020-05-19 2020-09-01 中南大学 An oceanic controllable source electromagnetic forward modeling method for three-dimensional arbitrary anisotropic media

Also Published As

Publication number Publication date
CN113627027A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
US8201122B2 (en) Computing resistance sensitivities with respect to geometric parameters of conductors with arbitrary shapes
Ülkü et al. Marching on-in-time solution of the time domain magnetic field integral equation using a predictor-corrector scheme
CN105717547B (en) A kind of anisotropic medium mt non-grid numerical simulation method
Zhou et al. Three-dimensional edge-based finite element modeling of magnetotelluric data in anisotropic media with a divergence correction
US7506294B2 (en) Incremental solver for modeling an integrated circuit
CN115113286B (en) Aviation electromagnetic data fusion three-dimensional inversion method based on multi-component frequency domain
CN113627027B (en) Method and system for simulating electromagnetic field value of non-trivial anisotropic medium
US7539961B2 (en) Library-based solver for modeling an integrated circuit
CN117930135A (en) TDOA moving target positioning method based on NRZND model
Chen et al. A family of immersed finite element spaces and applications to three-dimensional interface problems
CN117972282A (en) Electromagnetic propagation analysis method and system in anisotropic layered medium
Maksimov et al. Accurate capacitance matrices for multiconductor transmission lines
Li et al. Shape optimization of the Stokes eigenvalue problem
CN110826283A (en) Preprocessor and three-dimensional finite difference electromagnetic forward modeling calculation method based on preprocessor
CN114065577B (en) A three-dimensional wavelet-Galerkin forward modeling method for DC resistivity
Jin et al. An adaptive heavy ball method for ill-posed inverse problems
Hyvönen et al. Compensation for geometric modeling errors by positioning of electrodes in electrical impedance tomography
CN118734649A (en) Multi-scale finite element airborne electromagnetic three-dimensional forward modeling method based on deformation octree
CN114297905B (en) A Fast Numerical Simulation Method for Two-Dimensional Electromagnetic Field
Sharma et al. A complete surface integral method for broadband modeling of 3D interconnects in stratified media
Romano et al. Accelerated partial inductance evaluation via cubic spline interpolation for the PEEC method
CN115017782B (en) Three-dimensional Natural Source Electromagnetic Field Calculation Method Considering Medium Anisotropy
Zhou et al. Fast 3D simulation of magnetotelluric data in anisotropic media using a rational Krylov method
Daroui et al. PEEC-based simulations using iterative method and regularization technique for power electronic applications
Zhao et al. Constraint-free adaptive FEMs on quadrilateral nonconforming meshes

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