+

CN116150995B - Rapid simulation method of switch arc model - Google Patents

Rapid simulation method of switch arc model Download PDF

Info

Publication number
CN116150995B
CN116150995B CN202310140875.0A CN202310140875A CN116150995B CN 116150995 B CN116150995 B CN 116150995B CN 202310140875 A CN202310140875 A CN 202310140875A CN 116150995 B CN116150995 B CN 116150995B
Authority
CN
China
Prior art keywords
neural network
task
equation
loss function
constructing
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
CN202310140875.0A
Other languages
Chinese (zh)
Other versions
CN116150995A (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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN202310140875.0A priority Critical patent/CN116150995B/en
Publication of CN116150995A publication Critical patent/CN116150995A/en
Application granted granted Critical
Publication of CN116150995B publication Critical patent/CN116150995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • 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)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Molecular Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了电弧仿真技术领域的一种开关电弧模型的快速仿真方法,包括:先建立电弧模型,给定训练任务集和任务目标集;构造对应的基于元初始化的深度神经网络框架,构造损失函数,构造基于元初始化的元网络,构造损失函数,选取适当的神经网络的参数;对电弧模型进行训练,训练完成后得到权重;将权重设置为网络的初始参数,进行目标任务的训练,从而实现基于元初始化的等离子体方程数值计算,得到神经网络的输出,即对应电弧模型的仿真结果。本发明能够在同种开关电弧模型但参数变化的情况下,更快速地进行模型仿真;对比于传统方法,本发明的仿真方法不依赖网格剖分,可以直接进行模型地仿真,精度更高。

The invention discloses a fast simulation method of a switch arc model in the field of arc simulation technology, comprising: first establishing an arc model, giving a training task set and a task target set; constructing a corresponding deep neural network framework based on element initialization, constructing a loss function, constructing a element network based on element initialization, constructing a loss function, and selecting appropriate parameters of the neural network; Simulation results for the arc model. The present invention can perform model simulation more quickly in the case of the same switch arc model but with variable parameters; compared with the traditional method, the simulation method of the present invention does not rely on grid division, and can directly perform model simulation with higher precision.

Description

一种开关电弧模型的快速仿真方法A Fast Simulation Method of Switching Arc Model

技术领域technical field

本发明属于电弧仿真技术领域,具体涉及一种开关电弧模型的快速仿真方法。The invention belongs to the technical field of arc simulation, and in particular relates to a fast simulation method for a switch arc model.

背景技术Background technique

电弧是电力系统中一种较为常见的气体放电现象。作为一种高温高导电率的放电等离子体,电弧放电时能够产生上万摄氏度及以上的高温,同时还会产生大量的热辐射,具有能量大、高温高导电、质量小等特征。利用电弧的这些特征可以将其适当地应用到日常生活和工业生产中。但是由于电弧是一种能量巨大的气体,为了电力系统的安全防护,精确了解电弧的特性及其发展过程至关重要。Arcing is a relatively common gas discharge phenomenon in power systems. As a high-temperature and high-conductivity discharge plasma, arc discharge can generate high temperatures of tens of thousands of degrees Celsius and above, and at the same time generate a large amount of heat radiation. It has the characteristics of high energy, high temperature and high conductivity, and small mass. Utilizing these characteristics of the arc can be properly applied to daily life and industrial production. However, since the arc is a gas with huge energy, it is very important to accurately understand the characteristics of the arc and its development process for the safety protection of the power system.

数值模拟是研究电弧特性的常用方法,包括有限差分、有限元、有限体积法。但是这类传统方法都有一定的缺陷,其结果依赖网格划分,在求解高维问题中可能会有精度不准确的问题,同时其在瞬态电弧的求解中需要大量迭代,计算较慢。而深度神经网络作为一种强大的非线性映射工具,作为一种新型方法在电弧仿真方面已有良好表现。Numerical simulation is a common method to study arc characteristics, including finite difference, finite element, and finite volume method. However, this kind of traditional method has certain defects. The result depends on mesh division, which may cause inaccurate accuracy in solving high-dimensional problems. At the same time, it requires a large number of iterations in the solution of transient arc, and the calculation is slow. As a powerful nonlinear mapping tool, deep neural network has performed well in arc simulation as a new method.

然而基于深度学习的神经网络虽然在求解单个电弧模型上效果较好,但是在面对同种模型的不同求解工况时,神经网络往往需要重新训练网络权重,计算消耗大,而元初始化方法在解决此类问题上有很大潜力。However, although the neural network based on deep learning is effective in solving a single arc model, when faced with different solving conditions of the same model, the neural network often needs to retrain the network weights, which consumes a lot of calculations, and the meta-initialization method has great potential in solving such problems.

发明内容Contents of the invention

针对现有技术的不足,本发明的目的在于提供,以解决上述背景技术中提出的问题。Aiming at the deficiencies of the prior art, the purpose of the present invention is to provide solutions to the problems raised in the background art above.

本发明的目的可以通过以下技术方案实现:The purpose of the present invention can be achieved through the following technical solutions:

一种开关电弧模型的快速仿真方法,包括:A fast simulation method for a switching arc model, comprising:

步骤1、先建立电弧模型,给定训练任务集和任务目标集;Step 1. First establish the arc model, and give the training task set and task target set;

步骤2、然后基于步骤1的电弧模型构造对应的基于元初始化的深度神经网络框架,构造损失函数,根据等离子体方程构造基于元初始化的元网络,以等式和相应的边界条件、初始条件为基础构造损失函数,选取适当的神经网络的参数;Step 2, then constructing a corresponding deep neural network framework based on meta-initialization based on the arc model in step 1, constructing a loss function, constructing a meta-network based on meta-initialization according to the plasma equation, constructing a loss function based on the equation and corresponding boundary conditions and initial conditions, and selecting appropriate parameters of the neural network;

步骤3、接着对步骤2中构建完成的电弧模型进行训练,直至损失函数值下降到给定阈值,训练完成后得到权重;Step 3. Then train the arc model constructed in step 2 until the loss function value drops to a given threshold, and obtain the weight after the training is completed;

步骤4、最后将步骤3的权重设置为网络的初始参数,进行目标任务的训练,直至损失函数值下降到给定阈值,从而实现基于元初始化的等离子体方程数值计算,得到神经网络的输出,即对应电弧模型的仿真结果。Step 4. Finally, set the weight of step 3 as the initial parameter of the network, and carry out the training of the target task until the value of the loss function drops to a given threshold, so as to realize the numerical calculation of the plasma equation based on element initialization, and obtain the output of the neural network, which is the simulation result of the corresponding arc model.

优选地,所述步骤1中需要先建立等离子体方程模型,然后将对应的等离子体方程模型改写成如下一般公式:Preferably, in the step 1, the plasma equation model needs to be established first, and then the corresponding plasma equation model is rewritten into the following general formula:

u+N[u(x,t);λ]=0,X∈Ωu+N[u(x,t);λ]=0,X∈Ω

边界条件为:The boundary conditions are:

初始条件为:The initial conditions are:

ui+N[u(x,t);λ]=βu i +N[u(x,t);λ]=β

式中,X(x,t)是输入量,x是空间量,t是时间量,u是方程的解,具体含义取决于对应多物理场方程的类型,λ是方程中的可变参数,N[·;λ]是被λ参数化的非线性算子,是对应的边界值,β是对应的初始值;In the formula, X(x,t) is the input quantity, x is the space quantity, t is the time quantity, u is the solution of the equation, the specific meaning depends on the type of the corresponding multiphysics field equation, λ is the variable parameter in the equation, N[·;λ] is the nonlinear operator parameterized by λ, is the corresponding boundary value, and β is the corresponding initial value;

给定训练任务集λtest=[λ12,...,λm],该任务集的每个参数构造一个对应的等离子体方程,给定任务目标集λtask=[λ12,...,λn],该任务集的每个参数对应一个需要计算的等离子体方程。Given the training task set λ test =[λ 12 ,...,λ m ], each parameter of the task set constructs a corresponding plasma equation, and given the task target set λ task =[λ 12 ,...,λ n ], each parameter of the task set corresponds to a plasma equation that needs to be calculated.

优选地,所述步骤2中损失函数Lk包括三部分:Preferably, the loss function L k includes three parts in the step 2:

根据等离子体方程构造第i个任务的损失函数的第一部分LfConstruct the first part of the loss function L f of the i-th task according to the plasma equation:

式中,是在计算域内的采样点数,Ψ是激活函数;In the formula, Is the number of sampling points in the calculation domain, Ψ is the activation function;

根据边界条件构造损失第i个任务的函数的第二部分LbConstruct the second part L b of the function that loses the i-th task according to the boundary conditions:

式中,是在边界域内的采样点数;In the formula, is the number of sampling points in the boundary domain;

根据初始条件构造损失第i个任务的函数的第三部分LiConstruct the third part L i of the function that loses the i-th task according to the initial conditions:

式中,是在边界域内的采样点数,当没有给定初始条件时,Li=0;In the formula, is the number of sampling points in the boundary domain, when no initial condition is given, Li=0;

构造第i个任务的损失函数 Construct the loss function of the i-th task

通过各任务损失函数构造总损失函数 Construct the total loss function through the loss function of each task

本发明的有益效果:Beneficial effects of the present invention:

1、本发明方法能够在同种开关电弧模型但参数变化的情况下,更快速地进行模型仿真;1. The method of the present invention can perform model simulation more quickly under the same switch arc model but with parameter changes;

2、本发明方法对比于传统方法,本发明的仿真方法不依赖网格剖分,可以直接进行模型地仿真,精度更高。2. Compared with the traditional method, the method of the present invention does not rely on grid division, and can directly perform model simulation with higher precision.

附图说明Description of drawings

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

图1是本发明方法流程示意图;Fig. 1 is a schematic flow sheet of the method of the present invention;

图2是本发明中1维稳态电弧模型求解示意图;Fig. 2 is a schematic diagram of solving the 1-dimensional steady-state arc model in the present invention;

图3是本发明方法与普通神经网络训练结果的对比图;Fig. 3 is the contrast figure of the inventive method and common neural network training result;

图4是本发明方法与普通神经网络损失函数值的对比图;Fig. 4 is the contrast figure of the inventive method and common neural network loss function value;

图5是本发明方法与普通神经网络L2误差的对比图。Fig. 5 is a comparison diagram of the L2 error between the method of the present invention and the common neural network.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明提出一种开关电弧模型的快速仿真方法,包括4个步骤;The present invention proposes a fast simulation method of a switching arc model, including 4 steps;

步骤1、先建立电弧模型,给定训练任务集和任务目标集,Step 1. First establish the arc model, given the training task set and task target set,

步骤2、然后基于电弧模型构造对应的基于元初始化的深度神经网络框架,构造损失函数,选取适当的神经网络的层数等网络超参数;Step 2. Then, based on the arc model, construct a corresponding deep neural network framework based on element initialization, construct a loss function, and select appropriate network hyperparameters such as the number of layers of the neural network;

步骤3、接着对电弧模型进行训练,直至损失函数值下降到给定阈值,训练完成后得到权重;Step 3, then train the arc model until the loss function value drops to a given threshold, and get the weight after the training is completed;

步骤4、最后将权重设置为网络的初始参数,进行目标任务的训练,直至损失函数值下降到给定阈值,从而实现基于元初始化的等离子体方程数值计算。Step 4. Finally, the weight is set as the initial parameter of the network, and the training of the target task is carried out until the value of the loss function drops to a given threshold, thereby realizing the numerical calculation of the plasma equation based on meta-initialization.

步骤1详细如下:Step 1 is detailed as follows:

根据具体问题建立对应的等离子体方程模型,然后将对应的等离子体方程模型改写成如下一般公式:According to the specific problem, the corresponding plasma equation model is established, and then the corresponding plasma equation model is rewritten into the following general formula:

u+N[u(x,t);λ]=0,X∈Ωu+N[u(x,t);λ]=0,X∈Ω

边界条件为:The boundary conditions are:

初始条件为:The initial conditions are:

ui+N[u(x,t);λ]=βu i +N[u(x,t);λ]=β

式中,X(x,t)是输入量,x是空间量,t是时间量,u是方程的解,具体含义取决于对应多物理场方程的类型,λ是方程中的可变参数,N[·;λ]是被λ参数化的非线性算子,是对应的边界值,β是对应的初始值;给定训练任务集λtest=[λ12,...,λm],该任务集的每个参数都能构造一个对应的等离子体方程,给定任务目标集λtask=[λ12,...,λn],该任务集的每个参数都对应一个需要计算的等离子体方程。In the formula, X(x,t) is the input quantity, x is the space quantity, t is the time quantity, u is the solution of the equation, the specific meaning depends on the type of the corresponding multiphysics field equation, λ is the variable parameter in the equation, N[·;λ] is the nonlinear operator parameterized by λ, is the corresponding boundary value, and β is the corresponding initial value; given the training task set λ test =[λ 12 ,...,λ m ], each parameter of the task set can construct a corresponding plasma equation, and given the task target set λ task =[λ 12 ,...,λ n ], each parameter of the task set corresponds to a plasma equation that needs to be calculated.

步骤2详细如下;Step 2 is detailed as follows;

选择深度神经网络类型;根据等离子体方程构造基于元初始化的元网络,以等式和相应的边界条件、初始条件为基础构造损失函数,选取适当的神经网络的层数等参数,神经网络类型包括但不限于前馈神经网络、卷积神经网络、循环神经网络等:Select the type of deep neural network; construct a meta-network based on meta-initialization according to the plasma equation, construct a loss function based on the equation and corresponding boundary conditions and initial conditions, and select appropriate parameters such as the number of layers of the neural network. The types of neural networks include but are not limited to feedforward neural networks, convolutional neural networks, and recurrent neural networks:

先根据训练任务集的任务分别构造对应的损失函数LkFirst construct the corresponding loss function L k according to the tasks of the training task set:

根据等离子体方程构造第i个任务的损失函数的第一部分LfConstruct the first part of the loss function L f of the i-th task according to the plasma equation:

式中,是在计算域内的采样点数,Ψ是激活函数;In the formula, Is the number of sampling points in the calculation domain, Ψ is the activation function;

然后根据边界条件构造损失第i个任务的函数的第二部分LbThen construct the second part Lb of the function that loses the i-th task according to the boundary conditions:

式中,是在边界域内的采样点数;In the formula, is the number of sampling points in the boundary domain;

接着根据初始条件构造损失第i个任务的函数的第三部分LiThen construct the third part L i of the function that loses the i-th task according to the initial conditions:

式中,是在边界域内的采样点数。如果没有给定初始条件,Li=0;In the formula, is the number of sampling points within the boundary domain. If no initial condition is given, L i =0;

最后构造第i个任务的损失函数 Finally, construct the loss function of the i-th task

根据上述的各任务损失函数构造总损失函数选择合适的神经网络参数,包括但不限于层数、神经元数、学习率。Construct the total loss function according to the above-mentioned loss functions of each task Select appropriate neural network parameters, including but not limited to the number of layers, number of neurons, and learning rate.

请参阅图1所示,以1维稳态电弧为研究对象,通过元初始化方法计算1维稳态电弧方程不同参数条件下的仿真结果,包括如下步骤:Please refer to Figure 1. Taking the 1-dimensional steady-state arc as the research object, the simulation results of the 1-dimensional steady-state arc equation under different parameter conditions are calculated by the meta-initialization method, including the following steps:

步骤1、建立1维稳态电弧模型,详细如下:Step 1. Establish a 1-dimensional steady-state arc model, the details are as follows:

步骤1.1、先基于质量守恒方程、能量守恒方程和欧姆定律方程建立1维电弧方程模型:Step 1.1, first establish a 1-dimensional arc equation model based on the mass conservation equation, energy conservation equation and Ohm's law equation:

其中,边界条件为:Among them, the boundary conditions are:

T|r=R=Tb T | r = R = T b

式中,r是电弧半径,T是温度,σ是电导率,g是电弧电导,k是热导率,Erad是辐射产生的能量损失,Tb为r=R时给定的边界温度值;In the formula, r is arc radius, T is temperature, σ is electrical conductivity, g is arc conductance, k is thermal conductivity, E rad is the energy loss caused by radiation, T b is the given boundary temperature value when r=R;

步骤1.2、将温度参数T作为可变参数λ,给定训练任务集λtest=[1600K,1700K,1800K,1900K,2000K],该任务集的每个参数都能构造一个对应的等离子体方程;Step 1.2, using the temperature parameter T as the variable parameter λ, given the training task set λ test = [1600K, 1700K, 1800K, 1900K, 2000K], each parameter of the task set can construct a corresponding plasma equation;

步骤1.3、给定任务目标集λtask=[1550K,1650K,1750K,1850K,1950K],该任务集的每个参数都对应一个需要计算的等离子体方程。Step 1.3. Given task target set λ task =[1550K, 1650K, 1750K, 1850K, 1950K], each parameter of the task set corresponds to a plasma equation to be calculated.

步骤2、基于步骤1的等离子体方程模型构造对应的元网络框架,如图2所示,详细如下;Step 2, constructing the corresponding meta-network framework based on the plasma equation model in step 1, as shown in Figure 2, details are as follows;

步骤2.1、选择深度神经网络类型,例如前馈神经网络;Step 2.1, select the type of deep neural network, such as feedforward neural network;

步骤2.2、根据电弧方程构造基于元初始化的元网络,详细如下;Step 2.2, constructing a meta-network based on meta-initialization according to the arc equation, the details are as follows;

步骤2.2.1、根据训练任务集的任务分别构造对应的损失函数LkStep 2.2.1. Construct corresponding loss functions L k according to the tasks of the training task set;

步骤2.2.1.1、根据电弧方程构造第i个任务的损失函数的第一部分LfStep 2.2.1.1. Construct the first part L f of the loss function of the i-th task according to the arc equation:

式中,是在计算域内的采样点数,Ψ是激活函数;In the formula, Is the number of sampling points in the calculation domain, Ψ is the activation function;

步骤2.2.1.2、根据边界条件构造损失第i个任务的函数的第二部分:Step 2.2.1.2. Construct the second part of the function that loses the i-th task according to the boundary conditions:

式中,是在计算域内的采样点数,Ψ是激活函数;In the formula, Is the number of sampling points in the calculation domain, Ψ is the activation function;

步骤2.2.1.3、根据初始条件构造损失第i个任务的函数的第三部分LiStep 2.2.1.3. Construct the third part L i of the loss function of the i-th task according to the initial conditions:

式中,是在边界域内的采样点数。如果没有给定初始条件,Li=0;In the formula, is the number of sampling points within the boundary domain. If no initial condition is given, L i =0;

步骤2.2.1.4、构造第i个任务的损失函数 Step 2.2.1.4, Construct the loss function of the i-th task

步骤2.2.2、根据步骤2.2.1的各任务损失函数构造总损失函数:Step 2.2.2. Construct a total loss function according to the loss functions of each task in step 2.2.1:

步骤2.2.3、设置神经网络隐藏层为6层,每层50个神经元,随机初始化权重,学习率设为10-5,训练次数设为10000次。Step 2.2.3. Set the hidden layer of the neural network to 6 layers, 50 neurons in each layer, initialize the weights randomly, set the learning rate to 10-5, and set the training times to 10,000 times.

步骤3、对电弧模型进行训练,直至损失函数值下降到给定阈值,训练完成后得到权重;Step 3. Train the arc model until the loss function value drops to a given threshold, and get the weight after the training is completed;

步骤3.1、随机初始化步骤2.1选择的深度神经网络的权重;Step 3.1, randomly initializing the weight of the deep neural network selected in step 2.1;

步骤3.2、使用神经网络训练步骤1.3的各任务对应的电弧方程;Step 3.2, using the neural network to train the arc equation corresponding to each task of step 1.3;

步骤3.3、计算各任务对应的电弧方程的损失函数值,并计算总损失函数值。神经网络训练方程的次数是可更改的,具体次数根据具体电弧方程而定,并且神经网络更换训练任务时需要重置网络权重;Step 3.3, calculate the loss function value of the arc equation corresponding to each task, and calculate the total loss function value. The number of neural network training equations can be changed, and the specific number depends on the specific arc equation, and the network weight needs to be reset when the neural network changes the training task;

步骤3.4、根据损失函数总和,使用梯度优化算法更新神经网络权重;Step 3.4, according to the sum of the loss functions, use the gradient optimization algorithm to update the neural network weights;

步骤3.5、将步骤3.4得到的权重赋给神经网络;Step 3.5, assigning the weight obtained in step 3.4 to the neural network;

步骤3.6、重复步骤3.2-3.5,观察神经网络的总损失函数值直至其下降到给定阈值;Step 3.6, repeat steps 3.2-3.5, observe the total loss function value of the neural network until it drops to a given threshold;

步骤3.7、得到神经网络的权重参数。Step 3.7, obtaining the weight parameters of the neural network.

步骤4、将步骤3的权重设置为网络的初始参数,进行目标任务的训练;Step 4, the weight of step 3 is set as the initial parameter of network, carries out the training of target task;

步骤4.1、构造目标任务网络,该网络的各参数与上述元网络参数一致,即神经网络隐藏层为6层,每层50个神经元,随机初始化权重,学习率设为10-5。;Step 4.1. Construct the target task network. The parameters of the network are consistent with the parameters of the above-mentioned meta-network, that is, the hidden layer of the neural network is 6 layers, each layer has 50 neurons, the weights are randomly initialized, and the learning rate is set to 10 -5 . ;

步骤4.2、将步骤3.7得到的权重设置为目标任务网络的初始参数;Step 4.2, setting the weight obtained in step 3.7 as the initial parameter of the target task network;

步骤4.3、神经网络对各目标任务对应的电弧方程训练一次得到输出值;Step 4.3, the neural network trains the arc equation corresponding to each target task once to obtain an output value;

步骤4.4、计算损失函数值;Step 4.4, calculating the loss function value;

步骤4.5、使用梯度优化算法更新神经网络权重;Step 4.5, using the gradient optimization algorithm to update the neural network weights;

步骤4.6、重复步骤4.3-4.5,观察神经网络的损失函数值直至其下降到给定阈值;Step 4.6, repeat steps 4.3-4.5, observe the loss function value of the neural network until it drops to a given threshold;

步骤4.7、得到神经网络的输出,即对应电弧模型的仿真结果。In step 4.7, the output of the neural network is obtained, that is, the simulation result corresponding to the arc model.

此时基于元初始化的神经网络训练结果和普通神经网络训练结果、损失函数值、L2误差的对比图分别如图3、4、5所示,可以看出,首先,基于元初始化的神经网络和普通神经网络都能得到准确的仿真结果。其次,相较于普通神经网络,使用基于元初始化的神经网络后损失函数值、L2误差的下降速度更快,同时它们能在更少的次数内下降到某一额定阈值(10-2)。因此认为,使用基于元初始化的神经网络后,其收敛速度变快,不同边界温度下电弧模型的训练效率得到了显著提高。At this time, the comparison diagrams of the neural network training results based on meta-initialization and ordinary neural network training results, loss function values, and L2 errors are shown in Figures 3, 4, and 5, respectively. It can be seen that, first, both the neural network based on meta-initialization and ordinary neural networks can obtain accurate simulation results. Second, compared with ordinary neural networks, the loss function value and L2 error decrease faster after using the neural network based on meta-initialization, and they can fall to a certain rated threshold (10 -2 ) in fewer times. Therefore, it is believed that after using the neural network based on meta-initialization, its convergence speed becomes faster, and the training efficiency of the arc model at different boundary temperatures is significantly improved.

通过该方法与传统方法和普通的神经网络方法对比可得,基于元初始化的深度神经网络方法得到的结果与原有方法得到的结果的拟合度很高,从而得到该方法的结果是准确的,另一方面,在使用本示例的方法后,1维稳态电弧模型的仿真速度得到了提高。By comparing this method with the traditional method and the common neural network method, it can be seen that the results obtained by the deep neural network method based on element initialization have a high degree of fitting with the results obtained by the original method, so that the results of this method are accurate. On the other hand, after using the method in this example, the simulation speed of the 1-dimensional steady-state arc model has been improved.

在本说明书的描述中,参考术语“一个实施例”、“示例”、“具体示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions with reference to the terms "one embodiment", "example", "specific example" and the like mean that specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是说明本发明的原理,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。The basic principles, main features and advantages of the present invention have been shown and described above. Those skilled in the art should understand that the present invention is not limited by the above-mentioned embodiments. What are described in the above-mentioned embodiments and the description only illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention also has various changes and improvements, and these changes and improvements all fall within the scope of the claimed invention.

Claims (7)

1. A fast simulation method of a switch arc model is characterized by comprising the following steps:
step 1, firstly, establishing an arc model, and giving a training task set and a task target set;
step 2, constructing a corresponding deep neural network frame based on element initialization based on the arc model in the step 1, constructing a loss function, constructing a element network based on element initialization according to a plasma equation, constructing the loss function based on the equation and corresponding boundary conditions and initial conditions, and selecting proper parameters of the neural network;
step 3, training the arc model constructed in the step 2 until the loss function value is reduced to a given threshold value, and obtaining weight after training is completed;
and step 4, finally, setting the weight in the step 3 as an initial parameter of the network, and training a target task until the loss function value is reduced to a given threshold value, so as to realize the numerical calculation of the plasma equation based on element initialization, and obtain the output of the neural network, namely the simulation result corresponding to the arc model.
2. The method for fast simulation of a switching arc model according to claim 1, wherein in step 1, a plasma equation model is required to be established first, and then the corresponding plasma equation model is rewritten into the following general formula:
u+N[u(x,t);λ]=0,X∈Ω
the boundary conditions are:
the initial conditions are:
u i +N[u(x,t);λ]=β
wherein X (X, t) is the input quantity, X is the spatial quantity, t is the temporal quantity, u is the solution of the equation, the specific meaning depends on the type of the corresponding multi-physical field equation, λ is the variable parameter in the equation, N [. Cndot.; lambda (lambda)]Is a nonlinear operator parameterized by lambda,is the corresponding boundary value, and beta is the corresponding initial value;
given training task set lambda test =[λ 12 ,...,λ m ]Each parameter of the task set constructs a corresponding plasma equation, giving a task target set lambda task =[λ 12 ,...,λ n ]Each parameter of the task set corresponds to a plasma equation that needs to be calculated.
3. The method according to claim 1, wherein the neural network types in the step 2 include a feed-forward neural network, a convolutional neural network and a cyclic neural network.
4. The method according to claim 1, wherein the loss function L in the step 2 k Comprises three parts:
constructing a first part L of a loss function of an ith task according to a plasma equation f
In the method, in the process of the invention,is the number of sampling points in the computational domain, ψ is the activation function;
constructing a second part L of the function losing the ith task according to boundary conditions b
In the method, in the process of the invention,is the number of sampling points in the boundary domain;
constructing a third part L of the function losing the ith task according to the initial conditions i
In the method, in the process of the invention,is the number of samples in the boundary domain, li=0 when no initial conditions are given;
constructing a loss function for an ith task
Constructing a total loss function from task loss functions
5. The method according to claim 1, wherein the parameters of the neural network in step 2 include the number of layers, the number of neurons and the learning rate.
6. The method for rapid simulation of a switching arc model according to claim 1, wherein the step 3 specifically comprises the steps of:
step 3.1, randomly initializing the weight of the deep neural network selected in the step 2;
step 3.2, training an arc equation corresponding to each task of the step 1 by using a neural network;
step 3.3, calculating a loss function value of an arc equation corresponding to each task, and calculating a total loss function value, wherein the number of times of the neural network training equation is changeable, the specific number of times is determined according to the specific arc equation, and the neural network needs to reset the network weight when the training task is replaced;
step 3.4, updating the weight of the neural network by using a gradient optimization algorithm according to the sum of the loss functions;
step 3.5, giving the weight obtained in the step 3.4 to the neural network;
step 3.6, repeating the steps 3.2-3.5, and observing the total loss function value of the neural network until the total loss function value is reduced to a given threshold value;
and 3.7, obtaining the weight parameters of the neural network.
7. The method for rapid simulation of a switching arc model according to claim 6, wherein the step 4 specifically comprises the steps of:
step 4.1, constructing a target task network, wherein each parameter of the network is consistent with the parameters of the meta-network;
step 4.2, setting the weight obtained in the step 3.7 as an initial parameter of a target task network;
step 4.3, training the arc equation corresponding to each target task once by the neural network to obtain an output value;
step 4.4, calculating a loss function value;
step 4.5, updating the weight of the neural network by using a gradient optimization algorithm;
step 4.6, repeating the steps 4.3-4.5, and observing the loss function value of the neural network until the loss function value is reduced to a given threshold value;
and 4.7, obtaining the output of the neural network, namely the simulation result of the corresponding arc model.
CN202310140875.0A 2023-02-21 2023-02-21 Rapid simulation method of switch arc model Active CN116150995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310140875.0A CN116150995B (en) 2023-02-21 2023-02-21 Rapid simulation method of switch arc model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310140875.0A CN116150995B (en) 2023-02-21 2023-02-21 Rapid simulation method of switch arc model

Publications (2)

Publication Number Publication Date
CN116150995A CN116150995A (en) 2023-05-23
CN116150995B true CN116150995B (en) 2023-07-25

Family

ID=86338738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310140875.0A Active CN116150995B (en) 2023-02-21 2023-02-21 Rapid simulation method of switch arc model

Country Status (1)

Country Link
CN (1) CN116150995B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111458629A (en) * 2019-01-21 2020-07-28 平高集团有限公司 Inversion method and device for mechanical fault of high-voltage switch
CN111506990A (en) * 2020-04-03 2020-08-07 东南大学 1-dimensional arc model-based rapid screening method for environment-friendly arc-extinguishing gas
JP2020144849A (en) * 2019-03-04 2020-09-10 富士通株式会社 Device and method for training meta learning network
WO2021007812A1 (en) * 2019-07-17 2021-01-21 深圳大学 Deep neural network hyperparameter optimization method, electronic device and storage medium
CN112597700A (en) * 2020-12-15 2021-04-02 北京理工大学 Aircraft trajectory simulation method based on neural network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553357B2 (en) * 1999-09-01 2003-04-22 Koninklijke Philips Electronics N.V. Method for improving neural network architectures using evolutionary algorithms
US20160246905A1 (en) * 2006-02-14 2016-08-25 Power Analytics Corporation Method For Predicting Arc Flash Energy And PPE Category Within A Real-Time Monitoring System
EP3944121A4 (en) * 2019-03-19 2022-06-01 GS Yuasa International Ltd. SIMULATION METHOD, SIMULATION DEVICE AND SIMULATION PROGRAM
US11631000B2 (en) * 2019-12-31 2023-04-18 X Development Llc Training artificial neural networks based on synaptic connectivity graphs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111458629A (en) * 2019-01-21 2020-07-28 平高集团有限公司 Inversion method and device for mechanical fault of high-voltage switch
JP2020144849A (en) * 2019-03-04 2020-09-10 富士通株式会社 Device and method for training meta learning network
WO2021007812A1 (en) * 2019-07-17 2021-01-21 深圳大学 Deep neural network hyperparameter optimization method, electronic device and storage medium
CN111506990A (en) * 2020-04-03 2020-08-07 东南大学 1-dimensional arc model-based rapid screening method for environment-friendly arc-extinguishing gas
CN112597700A (en) * 2020-12-15 2021-04-02 北京理工大学 Aircraft trajectory simulation method based on neural network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RBF网络参数优化方法及其在开关磁阻电机建模中的应用;彭晓燕;谭震;陈昌荣;黄源;;科技导报(第19期);全文 *

Also Published As

Publication number Publication date
CN116150995A (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN113297534B (en) A numerical calculation method for plasma equations based on a dual neural network framework
CN115081250B (en) Affine power flow calculation method for power system uncertainty based on holomorphic embedding
CN106980718A (en) A kind of fuzzy intelligence multiple extreme response phase method for calculating leaf longevity
CN112987569B (en) A Perturbation Upper Bound Adaptive Fractional-Order Global Terminal Sliding Mode Model-Free Control Method
CN113495486B (en) A model predictive control method based on extended state observer for structural thermal testing
CN105353315A (en) Estimation method of state of charge of battery system on the basis of Unscented Kalman Filter
CN110276120B (en) Equivalent method of all-vanadium redox flow battery energy storage system based on electrothermal coupling
CN108647838A (en) A kind of power grid Situation Awareness method based on Random Matrices Theory and online limit of sequence learning machine
CN105116346A (en) Series-connected battery system and method for estimating state of charge thereof
CN115587512A (en) ANSYS TwinBuilder-based lithium battery thermoelectric coupling digital twin model construction method
CN115270593A (en) Multi-physical-field model separation type solving method based on deep learning
CN105353314A (en) Estimation method of state of charge of parallel-connected battery system
CN112965384A (en) Global nonsingular rapid terminal sliding mode model-free method for adaptive neural network
CN116484495A (en) An Aerodynamic Data Fusion Modeling Method Based on Design of Experiments
CN116150995B (en) Rapid simulation method of switch arc model
CN115146527A (en) A coupled solution method for multiphysics models based on deep learning
CN106354190B (en) A kind of photovoltaic maximum power point method for tracing based on multi-objective optimization algorithm
Tao et al. An improved log-cosine variation slime mold-simplified gated recurrent neural network for the high-precision state of charge estimation of lithium-ion batteries
CN116451505B (en) Method, system, equipment and medium for checking line parameters of distribution network
CN110362860B (en) Electric field measuring instrument bracket optimization method based on finite element simulation and differential evolution algorithm
Shen et al. Neural network predictive control for vanadium redox flow battery
CN106772075A (en) A kind of online battery impedance model optimization method for considering thermograde
CN107958129B (en) Algorithm for simulating microcosmic current distribution of zinc oxide piezoresistor
CN117318021A (en) Electric power system dynamic state estimation method and system based on long-term and short-term memory network
CN110058635A (en) The MPPT method combined based on improvement particle swarm algorithm with fuzzy algorithmic approach

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载