CN115270633A - Prediction method, system, device and medium for 3D physics of fuel cell - Google Patents

Prediction method, system, device and medium for 3D physics of fuel cell Download PDF

Info

Publication number
CN115270633A
CN115270633A CN202210929061.0A CN202210929061A CN115270633A CN 115270633 A CN115270633 A CN 115270633A CN 202210929061 A CN202210929061 A CN 202210929061A CN 115270633 A CN115270633 A CN 115270633A
Authority
CN
China
Prior art keywords
fuel cell
dimensional
field
twin
physics
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.)
Pending
Application number
CN202210929061.0A
Other languages
Chinese (zh)
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.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong 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 Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN202210929061.0A priority Critical patent/CN115270633A/en
Publication of CN115270633A publication Critical patent/CN115270633A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/28Design optimisation, verification or simulation using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C10/00Computational theoretical chemistry, i.e. ICT specially adapted for theoretical aspects of quantum chemistry, molecular mechanics, molecular dynamics or the like
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/70Machine learning, data mining or chemometrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/08Fluids
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces
    • 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
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel cells

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Fluid Mechanics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Algebra (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Fuel Cell (AREA)

Abstract

The invention discloses a prediction method, a system, equipment and a medium of a three-dimensional physical field of a fuel cell, wherein the prediction method comprises the following steps: acquiring variable input parameters of random working conditions of the fuel cell to be predicted; the variable input parameters of the random working conditions of the fuel cell to be predicted are used as the input of a preset digital twin model of the three-dimensional multi-physical field of the fuel cell, and the digital twin result of the three-dimensional multi-physical field is output to obtain the prediction result of the three-dimensional multi-physical field of the fuel cell to be predicted; the method can realize the rapid and accurate prediction of three-dimensional multi-physical fields in the fuel cell on the basis of a given fuel cell numerical model, and meet the demand of multi-physical field prediction in the on-line control scene of the proton exchange membrane fuel cell; the method realizes rapid and accurate prediction of three-dimensional multi-physical fields in the fuel cell based on the intrinsic orthogonal decomposition method, and performs prediction on weight coefficients under any random working condition, so that the prediction efficiency and the accuracy of prediction results are high.

Description

燃料电池三维物理场的预测方法、系统、设备及介质Fuel cell three-dimensional physical field prediction method, system, equipment and medium

技术领域technical field

本发明属于燃料电池技术领域,特别涉及一种燃料电池三维物理场的预测方法、系统、设备及介质。The invention belongs to the technical field of fuel cells, and in particular relates to a prediction method, system, equipment and medium of a fuel cell three-dimensional physical field.

背景技术Background technique

随着全球气候的变化和碳中和议程的加速,能源行业正以越来越快的速度从化石燃料主导向可再生能源主导转变,然而可再生能源发电的间歇性限制了其进一步推广和应用;氢能有望作为二次能源,解决可再生能源发电的间歇性问题;作为氢能的利用设备之一,质子交换膜燃料电池或将成为未来应用最广泛的发动机替代品。目前质子交换膜燃料电池的商业应用正在世界各地迅速发展。With global climate change and the acceleration of the carbon neutral agenda, the energy industry is shifting from fossil fuel dominance to renewable energy dominance at an increasing speed, however, the intermittency of renewable energy power generation limits its further promotion and application ; Hydrogen energy is expected to be used as a secondary energy source to solve the intermittent problem of renewable energy power generation; as one of the hydrogen energy utilization devices, proton exchange membrane fuel cells may become the most widely used engine replacement in the future. Commercial applications of proton exchange membrane fuel cells are currently developing rapidly around the world.

充分了解质子交换膜燃料电池内部的实时状态,对其在线操作控制与寿命评估优化,具有至关重要的意义;由于质子交换膜燃料电池内存在大量微尺度结构,难以采用常规实验的方法对其内部的物理场开展原位测试;为此,学者们建立了一系列质子交换膜燃料电池性能预测模型;其中,适用于质子交换膜燃料电池在线控制过程的快速预测模型通常有较多简化;计算流体动力学模型可获得质子交换膜燃料电池内详细的三维物理场,但其仿真速度较慢,难以用于质子交换膜燃料电池内部物理场的在线预测。It is of great significance to fully understand the real-time state inside the proton exchange membrane fuel cell, and to optimize its online operation control and life evaluation; because there are a large number of micro-scale structures in the proton exchange membrane fuel cell, it is difficult to use conventional experimental methods to analyze them. The internal physical field conducts in-situ tests; for this reason, scholars have established a series of proton exchange membrane fuel cell performance prediction models; among them, the rapid prediction models suitable for the online control process of proton exchange membrane fuel cells are usually more simplified; calculation The fluid dynamics model can obtain the detailed three-dimensional physical field in the proton exchange membrane fuel cell, but its simulation speed is slow, and it is difficult to be used for online prediction of the internal physical field of the proton exchange membrane fuel cell.

发明内容Contents of the invention

针对现有技术中存在的技术问题,本发明提供了一种燃料电池三维物理场的预测方法、系统、设备及介质,以解决现有针对质子交换膜燃料电池的三维多物理场的仿真速度慢,无法实现燃料电池内部三维多物理场的在线预测的技术问题。Aiming at the technical problems existing in the prior art, the present invention provides a prediction method, system, equipment and medium for the three-dimensional physical field of a fuel cell, so as to solve the problem that the simulation speed of the existing three-dimensional multi-physical field for the proton exchange membrane fuel cell is slow , the technical problem that the online prediction of the three-dimensional multi-physics field inside the fuel cell cannot be realized.

为达到上述目的,本发明采用的技术方案为:In order to achieve the above object, the technical scheme adopted in the present invention is:

本发明提供了一种燃料电池三维物理场的预测方法,包括:The invention provides a method for predicting the three-dimensional physical field of a fuel cell, comprising:

获取待预测燃料电池随机工况的可变输入参数;Obtain the variable input parameters of the random operating conditions of the fuel cell to be predicted;

将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;The variable input parameters of the stochastic operating conditions of the fuel cell to be predicted are used as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and the digital twin result of the three-dimensional multi-physics field is output, that is, the fuel cell to be predicted is obtained 3D multiphysics prediction results;

其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:Wherein, the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field includes:

对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;Solve the pre-built 3D multi-physics coupling model of the fuel cell to obtain several twin snapshots;

针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;For each type of three-dimensional physical field in the fuel cell, several basis functions are constructed by using the intrinsic orthogonal decomposition method according to several twin snapshots, and the weights of each basis function direction of each three-dimensional physical field under each twin snapshot working condition are obtained. coefficient;

将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional multi-dimensional Digital twins of physical fields.

进一步的,所述待预测燃料电池随机工况的可变输入参数,包括待预测燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度。Further, the variable input parameters of the stochastic operating conditions of the fuel cell to be predicted include cathode pressure, anode pressure, cathode humidity, anode humidity, cathode stoichiometric ratio, anode stoichiometric ratio and operating temperature of the fuel cell to be predicted.

进一步的,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,具体如下:Further, the construction process of the digital twin model of the preset three-dimensional multi-physics field of the fuel cell is as follows:

构建燃料电池的三维多物理场的耦合模型;Construct a 3D multi-physics coupled model of the fuel cell;

根据所述燃料电池的三维多物理场的耦合模型,获取燃料电池的模型参数;Acquiring model parameters of the fuel cell according to the three-dimensional multi-physics coupling model of the fuel cell;

从所述燃料电池的模型参数中,选取可变参数,得到若干快照工况的可变输入参数;Select variable parameters from the model parameters of the fuel cell to obtain variable input parameters of several snapshot working conditions;

将若干快照工况的可变输入参数,作为燃料电池的三维多物理场的耦合模型的输入,通过仿真模拟,得到若干孪生快照;The variable input parameters of several snapshot working conditions are used as the input of the three-dimensional multi-physics coupling model of the fuel cell, and several twin snapshots are obtained through simulation;

针对燃料电池中的每一类三维物理场,根据若干孪生快照,生成若干快照工况下的快照矩阵;For each type of three-dimensional physical field in the fuel cell, according to several twin snapshots, generate a snapshot matrix under several snapshot conditions;

针对燃料电池中的每一类三维物理场,利用奇异值分解方法,对若干快照工况下的快照矩阵进行矩阵分解和矩阵变换处理,得到若干个基函数;For each type of three-dimensional physical field in the fuel cell, use the singular value decomposition method to perform matrix decomposition and matrix transformation processing on the snapshot matrix under several snapshot conditions, and obtain several basis functions;

将若干孪生快照,向每个基函数方向进行投影,重构得到每个孪生快照工况下各三维物理场的各基函数方向的权系数;Project several twin snapshots to each basis function direction, and reconstruct to obtain the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition;

将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional multi-dimensional Digital twins of physical fields.

进一步的,所述燃料电池的模型参数,包括燃料电池的几何参数、物性参数、电化学参数及操作参数。Further, the model parameters of the fuel cell include geometric parameters, physical parameters, electrochemical parameters and operating parameters of the fuel cell.

进一步的,所述燃料电池三维多物理场的耦合模型为基于液体压力连续的三维两相非等温数值仿真模型。Further, the fuel cell three-dimensional multi-physics coupling model is a three-dimensional two-phase non-isothermal numerical simulation model based on continuous liquid pressure.

进一步的,将若干快照工况的可变输入参数,作为燃料电池的三维多物理场的耦合模型的输入,通过仿真模拟,得到若干孪生快照的过程,具体如下:Further, the variable input parameters of several snapshot working conditions are used as the input of the three-dimensional multi-physics coupling model of the fuel cell, and the process of obtaining several twin snapshots through simulation is as follows:

采用C语言,将待预测燃料电池的三维多物理场的耦合模型编写至ANSYS Fluent软件中,将若干快照工况的可变输入参数作为输入,仿真输出,得到若干孪生快照;其中,若干孪生快照采用Tecplot文件的格式输出。Using C language, write the coupling model of the three-dimensional multi-physics field of the fuel cell to be predicted into ANSYS Fluent software, take the variable input parameters of several snapshot working conditions as input, and simulate the output to obtain several twin snapshots; among them, several twin snapshots The output is in the format of a Tecplot file.

进一步的,预设的燃料电池三维多物理场的数字孪生模型为:Further, the digital twin model of the preset fuel cell three-dimensional multi-physics field is:

Figure BDA0003780875540000031
Figure BDA0003780875540000031

其中,r为物理量的编号;f′r为待预测燃料电池可变输入参数下第r个物理量的三维物理场;b′r,j为第r个物理量的三维物理场在第j个基函数方向的权系数;ψr,j为第r个物理量的第j个基函数;j为上述基函数编号;lr为第r个物理量的截断阶数。Among them, r is the number of the physical quantity; f′ r is the three-dimensional physical field of the rth physical quantity under the variable input parameters of the fuel cell to be predicted; b′ r,j is the three-dimensional physical field of the rth physical quantity in the jth basis function ψ r,j is the jth basis function of the rth physical quantity; j is the number of the above basis functions; l r is the truncation order of the rth physical quantity.

本发明还提供了一种燃料电池三维物理场的预测系统,包括:The present invention also provides a prediction system for the three-dimensional physical field of the fuel cell, including:

获取模块,用于获取待预测燃料电池随机工况的可变输入参数;An acquisition module, configured to acquire variable input parameters of fuel cell stochastic operating conditions to be predicted;

预测模块,用于将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;The prediction module is used to use the variable input parameters of the random operating conditions of the fuel cell to be predicted as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and output the digital twin result of the three-dimensional multi-physics field, namely Obtain the prediction results of the three-dimensional multi-physics field of the fuel cell to be predicted;

其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:Wherein, the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field includes:

对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;Solve the pre-built 3D multi-physics coupling model of the fuel cell to obtain several twin snapshots;

针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;For each type of three-dimensional physical field in the fuel cell, several basis functions are constructed by using the intrinsic orthogonal decomposition method according to several twin snapshots, and the weights of each basis function direction of each three-dimensional physical field under each twin snapshot working condition are obtained. coefficient;

将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional multi-dimensional Digital twins of physical fields.

本发明还提供了一种燃料电池三维物理场的预测设备,包括The present invention also provides a prediction device for the three-dimensional physical field of the fuel cell, comprising

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现所述的燃料电池三维物理场的预测方法的步骤。The processor is configured to realize the steps of the method for predicting the three-dimensional physical field of the fuel cell when executing the computer program.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现所述的燃料电池三维物理场的预测方法的步骤。The present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for predicting the three-dimensional physical field of the fuel cell are realized.

与现有技术相比,本发明的有益效果为:Compared with prior art, the beneficial effect of the present invention is:

本发明提供了一种燃料电池三维物理场的预测方法及系统,通过基于离线仿真获得的若干孪生快照,实现燃料电池内部三维物理场的在线预测;其中,通过对预构建的燃料电池三维多物理场的耦合模型进行求解获得若干孪生快照,提供了离线快照;采用本征正交分解方法,针对燃料电池中的每一类三维物理场,构建若干个基函数,并得到每个孪生快照工况下各三维物理场的各基函数方向的权系数,实现描述燃料电池三维物理场的基函数坐标系的建立,并将三维笛卡尔坐标系下的若干孪生快照投影到基函数坐标系下,获得了每个快照工况下各三维物理场的各基函数方向的权系数,进而实现了燃料电池内物理场的重新表征;由于各基函数具有捕获信息非常集中的特点,使用基函数坐标系下的表征方式,将燃料电池三维物理场的预测的问题转化为权系数的预测问题,以使燃料电池三维物理场的预测问题得以大规模降阶,其预测时间可降低到秒的数量级;同时,利用预选取的机器学习算法模型、插值算法模型及或回归算法模型作为预测模型的基本框架,满足在基于较少的快照,实现多输入参数下预测模型构建的特点,解决了燃料电池三维物理场的预测问题中输入参数较多但快照数量不宜过多的状况;预测过程简单,针对质子交换膜燃料电池的三维多物理场的仿真速度快,能够实现燃料电池内部三维多物理场的在线预测,预测效率和预测结果准确度高。The present invention provides a prediction method and system for the three-dimensional physical field of a fuel cell, which realizes the online prediction of the internal three-dimensional physical field of the fuel cell through several twin snapshots obtained based on off-line simulation; The coupling model of the fuel cell is solved to obtain several twin snapshots, and offline snapshots are provided; using the intrinsic orthogonal decomposition method, several basis functions are constructed for each type of three-dimensional physical field in the fuel cell, and each twin snapshot working condition is obtained The weight coefficients of each basis function direction of each three-dimensional physical field are used to realize the establishment of the basis function coordinate system describing the three-dimensional physical field of the fuel cell, and several twin snapshots under the three-dimensional Cartesian coordinate system are projected into the basis function coordinate system to obtain The weight coefficients of each basis function direction of each three-dimensional physical field in each snapshot working condition are obtained, and then the re-characterization of the physical field in the fuel cell is realized. The characterization method of the fuel cell transforms the prediction problem of the three-dimensional physical field of the fuel cell into the prediction problem of the weight coefficient, so that the prediction problem of the three-dimensional physical field of the fuel cell can be reduced on a large scale, and the prediction time can be reduced to the order of seconds; at the same time, Using the pre-selected machine learning algorithm model, interpolation algorithm model and or regression algorithm model as the basic framework of the prediction model, it meets the characteristics of building a prediction model based on fewer snapshots and realizes multiple input parameters, and solves the three-dimensional physical field of fuel cells There are many input parameters in the prediction problem but the number of snapshots should not be too many; the prediction process is simple, and the simulation speed of the three-dimensional multi-physics field for the proton exchange membrane fuel cell is fast, and the online prediction of the three-dimensional multi-physics field inside the fuel cell can be realized. The prediction efficiency and prediction result accuracy are high.

附图说明Description of drawings

图1为本发明中预设的燃料电池三维多物理场的数字孪生模型的构建流程图;Fig. 1 is the construction flowchart of the digital twin model of the preset fuel cell three-dimensional multi-physics field in the present invention;

图2为实施例中各随机工况数字孪生结果中,电子电势场、温度场、膜态水含量场和液态水饱和度场的全局相对误差结果图;Fig. 2 is the global relative error result diagram of electronic potential field, temperature field, film water content field and liquid water saturation field in the digital twin results of each random working condition in the embodiment;

图3为实施例中某一随机工况液态水饱和度场的仿真结果及数字孪生预测结果的对比图;Fig. 3 is a comparison diagram of the simulation results of a random working condition liquid water saturation field and the digital twin prediction results in the embodiment;

图4为实施例中某一随机工况电子电势场的仿真结果及数字孪生预测结果的对比图;Fig. 4 is the comparison chart of the simulation result and digital twin prediction result of electric potential field of a certain random working condition in the embodiment;

图5为实施例中某一随机工况温度场的仿真结果及数字孪生预测结果的对比图。Fig. 5 is a comparison diagram of the simulation results and the digital twin prediction results of the temperature field of a certain random working condition in the embodiment.

具体实施方式Detailed ways

为了使本发明所解决的技术问题,技术方案及有益效果更加清楚明白,以下结合具体实施例,对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects solved by the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明提供了一种燃料电池的三维物理场的预测方法,包括以下步骤:The invention provides a method for predicting a three-dimensional physical field of a fuel cell, comprising the following steps:

步骤1、获取待预测燃料电池随机工况的可变输入参数;其中,所述待预测燃料电池随机工况的可变输入参数,包括待预测燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度。Step 1. Obtain the variable input parameters of the random operating conditions of the fuel cell to be predicted; wherein, the variable input parameters of the random operating conditions of the fuel cell to be predicted include the cathode pressure, anode pressure, cathode humidity, and anode humidity of the fuel cell to be predicted. Humidity, cathode stoichiometry, anode stoichiometry, and operating temperature.

步骤2、将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果。Step 2. The variable input parameters of the fuel cell random operating conditions to be predicted are used as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and the digital twin result of the three-dimensional multi-physics field is output, that is, the to-be 3D Multiphysics Prediction Results for Predicting Fuel Cells.

其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:Wherein, the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field includes:

对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;Solve the pre-built 3D multi-physics coupling model of the fuel cell to obtain several twin snapshots;

针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;For each type of three-dimensional physical field in the fuel cell, several basis functions are constructed by using the intrinsic orthogonal decomposition method according to several twin snapshots, and the weights of each basis function direction of each three-dimensional physical field under each twin snapshot working condition are obtained. coefficient;

将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,并基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Taking the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, and based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional Multiphysics digital twins.

如附图1所示,本发明中所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,具体包括以下步骤:As shown in Figure 1, the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field described in the present invention specifically includes the following steps:

步骤201、构建燃料电池的三维多物理场的耦合模型;其中,所述燃料电池三维多物理场的耦合模型为基于液体压力连续的三维两相非等温数值仿真模型。Step 201, constructing a three-dimensional multi-physics coupling model of the fuel cell; wherein, the three-dimensional multi-physics coupling model of the fuel cell is a three-dimensional two-phase non-isothermal numerical simulation model based on continuous liquid pressure.

步骤202、根据所述燃料电池的三维多物理场的耦合模型,获取燃料电池的模型参数。Step 202, according to the three-dimensional multi-physics coupling model of the fuel cell, obtain the model parameters of the fuel cell.

其中,所述燃料电池的模型参数,包括燃料电池的几何参数、物性参数、电化学参数及操作参数;具体的,所述几何参数包括燃料电池的流道长度、脊宽比及层厚;所述物性参数包括燃料电池的层电导率、扩散系数、密度极导热系数;所述电化学参数包括燃料电池的参考交换电流、参考浓度及铂/碳比;所述操作参数包括燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度。Wherein, the model parameters of the fuel cell include geometric parameters, physical parameters, electrochemical parameters and operating parameters of the fuel cell; specifically, the geometric parameters include the flow channel length, ridge width ratio and layer thickness of the fuel cell; The physical parameters include layer conductivity, diffusion coefficient, and density electrode thermal conductivity of the fuel cell; the electrochemical parameters include the reference exchange current, reference concentration, and platinum/carbon ratio of the fuel cell; the operating parameters include the cathode pressure of the fuel cell , anode pressure, cathode humidity, anode humidity, cathode stoichiometric ratio, anode stoichiometric ratio and operating temperature.

步骤203、从所述燃料电池的模型参数中,选取可变参数,采用试验设计方法,在所述可变参数的数值变化时,确定得到若干快照工况的可变输入参数;其中,若干快照工况的可变输入参数包括:燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度。Step 203, select variable parameters from the model parameters of the fuel cell, and use the experimental design method to determine variable input parameters for several snapshot working conditions when the values of the variable parameters change; wherein, several snapshots Variable input parameters for operating conditions include: cathode pressure, anode pressure, cathode humidity, anode humidity, cathode stoichiometric ratio, anode stoichiometric ratio, and operating temperature of the fuel cell.

步骤204、将若干快照工况的可变输入参数,作为燃料电池的三维多物理场的耦合模型的输入,通过仿真模拟,得到若干快照工况下的三维多物理场仿真结果,即得到若干孪生快照。Step 204, using the variable input parameters of several snapshot working conditions as the input of the three-dimensional multi-physics coupling model of the fuel cell, through simulation, to obtain the three-dimensional multi-physics simulation results under several snapshot working conditions, that is, to obtain several twin snapshot.

其中,具体过程如下:Among them, the specific process is as follows:

采用C语言,将待预测燃料电池的三维多物理场的耦合模型编写至ANSYS Fluent软件中,将若干快照工况的可变输入参数作为输入,仿真输出,得到若干孪生快照;其中,若干孪生快照采用Tecplot文件的格式输出。Using C language, write the coupling model of the three-dimensional multi-physics field of the fuel cell to be predicted into ANSYS Fluent software, take the variable input parameters of several snapshot working conditions as input, and simulate the output to obtain several twin snapshots; among them, several twin snapshots The output is in the format of a Tecplot file.

步骤205、针对燃料电池中的每一类三维物理场,根据若干孪生快照,生成若干快照工况下的快照矩阵。Step 205 , for each type of three-dimensional physical field in the fuel cell, according to several twin snapshots, generate snapshot matrices under several snapshot working conditions.

步骤206、针对燃料电池中的每一类三维物理场,利用奇异值分解方法,对若干快照工况下的快照矩阵进行矩阵分解和矩阵变换处理,得到若干个基函数。Step 206 , for each type of three-dimensional physical field in the fuel cell, use the singular value decomposition method to perform matrix decomposition and matrix transformation processing on the snapshot matrices under several snapshot working conditions to obtain several basis functions.

步骤207、将若干孪生快照,向每个基函数方向进行投影,重构得到每个孪生快照工况下各三维物理场的各基函数方向的权系数。Step 207 : Project several twin snapshots to each basis function direction, and reconstruct to obtain the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition.

步骤208、将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,并基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Step 208: Taking the weight coefficients of the basis function directions of each three-dimensional physical field under each twin snapshot working condition as a sample set, and based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, obtain the preset A 3D multiphysics digital twin of a fuel cell.

其中,所述预设的燃料电池三维多物理场的数字孪生模型为:Wherein, the digital twin model of the preset fuel cell three-dimensional multi-physics field is:

Figure BDA0003780875540000071
Figure BDA0003780875540000071

其中:r为物理量的编号;f′r为待预测燃料电池可变输入参数下第r个物理量的三维物理场;b′r,j为第r个物理量的三维物理场在第j个基函数方向的权系数;ψr,j为第r个物理量的第j个基函数;j为上述基函数编号;lr为第r个物理量的截断阶数。所述截断阶数指在该类三维物理场中所需考虑的基函数的数量。Among them: r is the serial number of the physical quantity; f′ r is the three-dimensional physical field of the r-th physical quantity under the variable input parameters of the fuel cell to be predicted; b′ r,j is the three-dimensional physical field of the r-th physical quantity in the j-th basis function ψ r,j is the jth basis function of the rth physical quantity; j is the number of the above basis functions; l r is the truncation order of the rth physical quantity. The truncation order refers to the number of basis functions that need to be considered in this type of three-dimensional physical field.

本发明还提供了一种燃料电池三维物理场的预测系统,包括获取模块及预测模块;获取模块,用于获取待预测燃料电池随机工况的可变输入参数;预测模块,用于将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。The present invention also provides a prediction system for the three-dimensional physical field of the fuel cell, which includes an acquisition module and a prediction module; the acquisition module is used to obtain variable input parameters of the fuel cell random working conditions to be predicted; The variable input parameters of the random operating conditions of the fuel cell to be predicted are used as the input of the preset digital twin model of the fuel cell 3D multiphysics, and the output is the digital twin result of the 3D multiphysics field, that is, the 3D multiphysics of the fuel cell to be predicted is obtained. The prediction result of the field; wherein, the construction process of the digital twin model of the preset three-dimensional multi-physics field of the fuel cell includes: solving the coupling model of the pre-built three-dimensional multi-physics field of the fuel cell to obtain several twin snapshots; For each type of three-dimensional physical field in the fuel cell, use the intrinsic orthogonal decomposition method according to several twin snapshots to construct several basis functions, and obtain the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition ; Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional Multiphysics digital twins.

本发明还提供了一种燃料电池三维物理场的预测设备,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现燃料电池三维物理场的预测方法的步骤。The present invention also provides a prediction device for the three-dimensional physical field of the fuel cell, comprising: a memory for storing a computer program; and a processor for implementing the steps of the method for predicting the three-dimensional physical field of the fuel cell when executing the computer program.

所述处理器执行所述计算机程序时实现上述燃料电池三维物理场的预测方法的步骤,例如:获取待预测燃料电池随机工况的可变输入参数;将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。When the processor executes the computer program, the steps of the method for predicting the above-mentioned three-dimensional physical field of the fuel cell are realized, for example: obtaining variable input parameters of the random operating conditions of the fuel cell to be predicted; The variable input parameters are used as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and the digital twin result of the three-dimensional multi-physics field is output, that is, the prediction result of the three-dimensional multi-physics field of the fuel cell to be predicted is obtained; Describe the construction process of the preset fuel cell 3D multiphysics digital twin model, including: solving the pre-built fuel cell 3D multiphysics coupling model to obtain several twin snapshots; for each type of fuel cell 3D In the physical field, according to several twin snapshots, the intrinsic orthogonal decomposition method is used to construct several basis functions, and the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition are obtained; each twin snapshot The weight coefficients of each basis function direction of each three-dimensional physical field under working conditions are used as a sample set, and based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset digital twin model of the three-dimensional multi-physics field of the fuel cell is obtained.

或者,所述处理器执行所述计算机程序时实现上述系统中各模块的功能,例如:获取模块,用于获取待预测燃料电池随机工况的可变输入参数;预测模块,用于将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Or, when the processor executes the computer program, it realizes the functions of the modules in the above system, for example: the acquisition module is used to obtain the variable input parameters of the random operating conditions of the fuel cell to be predicted; the prediction module is used to convert the The variable input parameters of the random operating conditions of the fuel cell to be predicted are used as the input of the preset digital twin model of the fuel cell 3D multiphysics, and the output is the digital twin result of the 3D multiphysics field, that is, the 3D multiphysics of the fuel cell to be predicted is obtained. The prediction result of the field; wherein, the construction process of the digital twin model of the preset three-dimensional multi-physics field of the fuel cell includes: solving the coupling model of the pre-built three-dimensional multi-physics field of the fuel cell to obtain several twin snapshots; For each type of three-dimensional physical field in the fuel cell, use the intrinsic orthogonal decomposition method according to several twin snapshots to construct several basis functions, and obtain the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition ; Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional Multiphysics digital twins.

示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成预设功能的一系列计算机程序指令段,所述指令段用于描述所述计算机程序在所述燃料电池三维物理场的预测设备中的执行过程。例如,所述计算机程序可以被分割成获取模块及预测模块,各模块具体功能如下:所述获取模块,用于获取待预测燃料电池随机工况的可变输入参数;所述预测模块,用于将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果。Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the processor to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing preset functions, and the instruction segments are used to describe the execution process of the computer program in the fuel cell three-dimensional physical field prediction device . For example, the computer program can be divided into an acquisition module and a prediction module, and the specific functions of each module are as follows: the acquisition module is used to obtain the variable input parameters of the random operating conditions of the fuel cell to be predicted; the prediction module is used to The variable input parameters of the stochastic operating conditions of the fuel cell to be predicted are used as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and the digital twin result of the three-dimensional multi-physics field is output, that is, the fuel cell to be predicted is obtained 3D multiphysics prediction results.

所述燃料电池三维物理场的预测设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述燃料电池三维物理场的预测设备可包括,但不仅限于处理器、存储器。本领域技术人员可以理解,上述是燃料电池三维物理场的预测设备的示例,并不构成对燃料电池三维物理场的预测设备的限定,可以包括比上述更多的部件,或者组合某些部件,或者不同的部件,例如所述燃料电池三维物理场的预测设备还可以包括输入输出设备、网络接入设备、总线等。The prediction equipment for the three-dimensional physical field of the fuel cell may be computing equipment such as desktop computers, notebooks, palmtop computers, and cloud servers. The prediction device for the three-dimensional physical field of the fuel cell may include, but not limited to, a processor and a memory. Those skilled in the art can understand that the above is an example of the prediction equipment of the three-dimensional physical field of the fuel cell, and does not constitute a limitation on the prediction equipment of the three-dimensional physical field of the fuel cell, and may include more components than the above, or combine some components, Or different components, for example, the prediction device for the three-dimensional physical field of the fuel cell may also include input and output devices, network access devices, buses, and the like.

所称处理器可以是中央处理单元(CentralProcessingUnit,CPU),还可以是其他通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(Field-ProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者所述处理器也可以是任何常规的处理器等,所述处理器是所述燃料电池三维物理场的预测设备的控制中心,利用各种接口和线路连接整个燃料电池三维物理场的预测设备的各个部分。The so-called processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field- ProgrammableGateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., the processor is the control center of the prediction equipment of the three-dimensional physical field of the fuel cell, and connects the entire Various parts of the device for prediction of fuel cell 3D physics.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述燃料电池三维物理场的预测设备的各种功能。The memory can be used to store the computer programs and/or modules, and the processor implements the fuel by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. Prediction of various functions of the device by three-dimensional physics of the battery.

所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(SmartMediaCard,SMC),安全数字(SecureDigital,SD)卡,闪存卡(FlashCard)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) and the like; the storage data area may store Data created based on the use of the mobile phone (such as audio data, phonebook, etc.), etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, smart memory card (SmartMediaCard, SMC), secure digital (SecureDigital, SD) card, flash memory card (FlashCard), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现所述的一种燃料电池三维物理场的预测方法的步骤。The present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for predicting the three-dimensional physical field of a fuel cell are realized .

所述燃料电池三维物理场的预测系统集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。If the integrated modules/units of the fuel cell three-dimensional physical field prediction system are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.

基于这样的理解,本发明实现上述燃料电池三维物理场的预测方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,所述计算机程序在被处理器执行时,可实现上述燃料电池三维物理场的预测方法的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或预设中间形式等。Based on such an understanding, the present invention realizes all or part of the process in the above-mentioned method for predicting the three-dimensional physical field of the fuel cell, and it can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable memory In the medium, when the computer program is executed by a processor, the steps of the above method for predicting the three-dimensional physical field of the fuel cell can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or preset intermediate form.

所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(RandomAccessMemory,RAM)、电载波信号、电信信号以及软件分发介质等。The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , random access memory (RandomAccessMemory, RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

需要说明的是,所述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable Storage media excludes electrical carrier signals and telecommunication signals.

实施例Example

以对氢燃料质子交换膜燃料电池的三维多物理场的预测过程为例;其中,所述氢燃料质子交换膜燃料电池为平行流道。Take the prediction process of the three-dimensional multi-physics field of the hydrogen fuel proton exchange membrane fuel cell as an example; wherein, the hydrogen fuel proton exchange membrane fuel cell is a parallel flow channel.

本实施例提供了一种燃料电池三维物理场的预测方法,包括以下步骤:This embodiment provides a method for predicting the three-dimensional physical field of a fuel cell, including the following steps:

步骤1、构建燃料电池的三维多物理场的耦合模型;其中,所述燃料电池三维多物理场的耦合模型为基于液体压力连续的三维两相非等温数值仿真模型;所述基于液体压力连续的三维两相非等温数值仿真模型,包括十二个守恒方程和若干子模型;其中,所述十二个守恒方程包括:质量守恒方程、三个动量守恒方程、能量守恒方程、三个组分守恒方程、电子电势守恒方程、质子电势守恒方程、膜态水守恒方程及液态水压力守恒方程;若干子模型包括团聚子模型、气液相变子模型和膜水相变子模型;其中,所述三维多物理场包括但不限于电子电势场、温度场、液态水饱和度场及膜态水含量场。Step 1. Construct a three-dimensional multi-physics coupling model of the fuel cell; wherein, the fuel cell three-dimensional multi-physics coupling model is a three-dimensional two-phase non-isothermal numerical simulation model based on liquid pressure continuum; A three-dimensional two-phase non-isothermal numerical simulation model, including twelve conservation equations and several sub-models; wherein, the twelve conservation equations include: mass conservation equations, three momentum conservation equations, energy conservation equations, three component conservation equations Equations, electron potential conservation equations, proton potential conservation equations, membrane water conservation equations and liquid water pressure conservation equations; several sub-models include agglomeration sub-models, gas-liquid phase transition sub-models and membrane-water phase transition sub-models; wherein, the Three-dimensional multiphysics fields include, but are not limited to, electron potential fields, temperature fields, liquid water saturation fields, and film water content fields.

步骤2、根据所述燃料电池的三维多物理场的耦合模型,获取燃料电池的模型参数;其中,所述燃料电池的模型参数,包括燃料电池的几何参数、物性参数、电化学参数及操作参数。Step 2. According to the three-dimensional multi-physics coupling model of the fuel cell, the model parameters of the fuel cell are obtained; wherein, the model parameters of the fuel cell include geometric parameters, physical parameters, electrochemical parameters and operating parameters of the fuel cell .

其中,几何参数包括燃料电池的流道长度、脊宽比及层厚;所述物性参数包括燃料电池的层电导率、扩散系数、密度极导热系数;电化学参数包括燃料电池的参考交换电流、参考浓度及铂/碳比;操作参数包括燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度。Among them, the geometric parameters include the flow channel length, ridge width ratio and layer thickness of the fuel cell; the physical parameters include the layer conductivity, diffusion coefficient, and density electrode thermal conductivity of the fuel cell; the electrochemical parameters include the reference exchange current of the fuel cell, Reference concentration and platinum/carbon ratio; operating parameters include cathode pressure, anode pressure, cathode humidity, anode humidity, cathode stoichiometry, anode stoichiometry, and operating temperature of the fuel cell.

步骤3、从所述燃料电池的模型参数中,选取可变参数,采用试验设计方法,在所述可变参数的数值变化时,确定得到若干快照工况的可变输入参数;其中,若干快照工况的可变输入参数包括:燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度;本实施例中,基于成对试验设计的方法,采用PICT(PairwiseIndependent Combinatorial Testing)软件开展试验设计,共设计139组快照工况的可变输入参数。Step 3. Select variable parameters from the model parameters of the fuel cell, and adopt an experimental design method to determine variable input parameters for several snapshot working conditions when the values of the variable parameters change; wherein, several snapshots The variable input parameters of the working conditions include: cathode pressure, anode pressure, cathode humidity, anode humidity, cathode stoichiometric ratio, anode stoichiometric ratio and operating temperature of the fuel cell; in this embodiment, based on the method of paired experimental design, PICT (Pairwise Independent Combinatorial Testing) software was used to carry out experimental design, and a total of 139 sets of variable input parameters for snapshot conditions were designed.

步骤4、将若干快照工况的可变输入参数,作为燃料电池的三维多物理场的耦合模型的输入,通过仿真模拟,得到若干孪生快照。Step 4. Using the variable input parameters of several snapshot working conditions as the input of the three-dimensional multi-physics coupling model of the fuel cell, several twin snapshots are obtained through simulation.

其中,仿真模拟过程,具体如下:Among them, the simulation process is as follows:

采用C语言,将燃料电池三维多物理场的耦合模型编写至ANSYS Fluent软件中,将若干快照工况的可变输入参数作为输入,仿真输出得到若干快照工况下的三维多物理场仿真结果;其中,所述若干快照工况下的三维多物理场仿真结果采用Tecplot文件的格式输出。Using C language, the fuel cell 3D multi-physics coupling model is written into ANSYS Fluent software, and the variable input parameters of several snapshot working conditions are used as input, and the simulation output obtains the 3D multi-physics simulation results under several snapshot working conditions; Wherein, the three-dimensional multi-physics simulation results under the several snapshot working conditions are output in the format of a Tecplot file.

本实施例中,基于ANSYS Fluent软件,采用C语言编写自定义函数(UDF),并将若干快照工况的可变输入参数作为输入,实现对燃料电池三维多物理场的耦合模型的求解;基于ANSYS Fluent软件向Tecplot软件的文件接口,同时解析网格文件,提取Tecplot软件的仿真结果,即得到以Tecplot文件格式输出的若干快照工况下的三维多物理场仿真结果。In this embodiment, based on ANSYS Fluent software, a user-defined function (UDF) is written in C language, and the variable input parameters of several snapshot working conditions are used as input to realize the solution of the coupling model of the three-dimensional multi-physics field of the fuel cell; based on The ANSYS Fluent software interfaces with the file of the Tecplot software, analyzes the grid file at the same time, extracts the simulation results of the Tecplot software, and obtains the 3D multi-physics simulation results under several snapshot conditions output in the Tecplot file format.

步骤5、根据若干快照工况下的三维物理场仿真结果,针对每种三维物理场,生成若干快照工况下的快照矩阵;具体的,基于C++自编程实现网格文件及仿真结果的解构,实现基于仿真结果生成快照矩阵;其中,若干快照工况下,第r个三维物理场的快照矩阵为:Step 5. According to the simulation results of three-dimensional physical fields under several snapshot working conditions, for each three-dimensional physical field, generate snapshot matrices under several snapshot working conditions; specifically, realize the deconstruction of grid files and simulation results based on C++ self-programming, Realize the generation of snapshot matrix based on the simulation results; among them, under several snapshot conditions, the snapshot matrix of the rth 3D physical field is:

Figure BDA0003780875540000131
Figure BDA0003780875540000131

其中:r为物理量或三维物理场的编号;Fr为第r个三维物理场的快照矩阵;m为网格节点数量;n为快照数量;fr,i,j为第j个快照中第i个节点上的第r个物理量的数值;其中,i取1~m,j取1~n。Among them: r is the number of the physical quantity or 3D physical field; F r is the snapshot matrix of the rth 3D physical field; m is the number of grid nodes; n is the number of snapshots; The value of the rth physical quantity on the i node; where, i is 1~m, and j is 1~n.

步骤6、针对每种三维物理场,基于奇异值分解方法,对若干快照工况下的快照矩阵进行矩阵分解及矩阵变换,得到多个三维基函数;其中,根据所述奇异值分解方法,针对每种三维物理场,若干快照工况下的快照矩阵可分解为如下式:Step 6. For each three-dimensional physical field, based on the singular value decomposition method, perform matrix decomposition and matrix transformation on the snapshot matrix under several snapshot working conditions to obtain multiple three-dimensional basis functions; wherein, according to the singular value decomposition method, for For each 3D physical field, the snapshot matrix under several snapshot conditions can be decomposed into the following formula:

Figure BDA0003780875540000132
Figure BDA0003780875540000132

其中:r为物理量的编号;Fr为第r个物理量的快照矩阵;Ur为第r个物理量的左奇异向量构成的左奇异矩阵;Σr为第r个物理量的奇异值矩阵;Vr为第r个物理量的右奇异向量构成的右奇异矩阵;·*为矩阵的共轭转置。Among them: r is the serial number of the physical quantity; F r is the snapshot matrix of the rth physical quantity; U r is the left singular matrix formed by the left singular vector of the rth physical quantity; Σ r is the singular value matrix of the rth physical quantity; V r is the right singular matrix formed by the right singular vector of the rth physical quantity; * is the conjugate transpose of the matrix.

本实施例中,采用单边Jacobi算法获得右奇异矩阵;其中,基于C++实现所述单边Jacobi算法;具体过程如下:In this embodiment, the right singular matrix is obtained by using the unilateral Jacobi algorithm; wherein, the unilateral Jacobi algorithm is implemented based on C++; the specific process is as follows:

(1)计算初始核矩阵:(1) Calculate the initial kernel matrix:

Figure BDA0003780875540000133
Figure BDA0003780875540000133

其中:r为物理量的编号;k为Jacobi变换次数;

Figure BDA0003780875540000141
为第r个物理量第k次Jacobi变换后的核矩阵;Fr为第r个物理量的快照矩阵;·*为矩阵的共轭转置。Among them: r is the serial number of the physical quantity; k is the Jacobi transformation number;
Figure BDA0003780875540000141
is the kernel matrix of the rth physical quantity after the kth Jacobi transformation; F r is the snapshot matrix of the rth physical quantity; · * is the conjugate transposition of the matrix.

(2)循环所有满足1≤p<q≤n的p、q组合,获得核矩阵的二阶主子式如下,执行步骤(3)、步骤(4):(2) Loop through all combinations of p and q that satisfy 1≤p<q≤n, and obtain the second-order principal subform of the kernel matrix as follows, and perform steps (3) and (4):

Figure BDA0003780875540000142
Figure BDA0003780875540000142

其中:r为物理量的编号;p为所述二阶主子式的行编号;q为所述二阶主子式的列编号;

Figure BDA0003780875540000143
为第r个物理量第k次Jacobi变换后的核矩阵的第p行第p列;
Figure BDA0003780875540000144
为第r个物理量第k次Jacobi变换后的核矩阵的第p行第q列;
Figure BDA0003780875540000145
为第r个物理量第k次Jacobi变换后的核矩阵的第q行第p列;
Figure BDA0003780875540000146
为第r个物理量第k次Jacobi变换后的核矩阵的第q行第q列。Wherein: r is the numbering of physical quantity; p is the row number of described second-order main sub-form; q is the column number of described second-order main sub-form;
Figure BDA0003780875540000143
is the p-th row and p-th column of the kernel matrix after the k-th Jacobi transformation of the r-th physical quantity;
Figure BDA0003780875540000144
is the pth row and qth column of the kernel matrix after the kth Jacobi transformation of the rth physical quantity;
Figure BDA0003780875540000145
is the qth row and pth column of the kernel matrix after the kth Jacobi transformation of the rth physical quantity;
Figure BDA0003780875540000146
is the qth row and qth column of the kernel matrix after the kth Jacobi transformation of the rth physical quantity.

(3)Jacobi矩阵Jr,k计算:(3) Calculation of Jacobi matrix J r, k :

Figure BDA0003780875540000147
Figure BDA0003780875540000147

Figure BDA0003780875540000148
Figure BDA0003780875540000148

其中:r为物理量的编号;p为所述二阶主子式的行编号;q为所述二阶主子式的列编号;θr,k为第r个物理量第k次Jacobi变换的旋转角;Jr,k为第r个物理量第k次Jacobi变换的矩阵表示;sin为角度的正弦;cos为角度的余弦;cot为角度的余切。Wherein: r is the numbering of physical quantity; p is the row numbering of described second-order principal subform; q is the column number of described second-order principal subform; θ r, k is the rotation angle of the kth Jacobi transformation of the rth physical quantity; J r, k is the matrix representation of the kth Jacobi transformation of the rth physical quantity; sin is the sine of the angle; cos is the cosine of the angle; cot is the cotangent of the angle.

(4)更新核矩阵:(4) Update the kernel matrix:

Figure BDA0003780875540000151
Figure BDA0003780875540000151

其中:r为物理量的编号;

Figure BDA0003780875540000152
为第r个物理量第k+1次Jacobi变换后的核矩阵;
Figure BDA0003780875540000153
为第r个物理量第k次Jacobi变换后的核矩阵;Jr,k为第r个物理量第k次Jacobi变换的矩阵表示;·*为矩阵的共轭转置。Where: r is the serial number of the physical quantity;
Figure BDA0003780875540000152
is the kernel matrix of the rth physical quantity after the k+1th Jacobi transformation;
Figure BDA0003780875540000153
is the kernel matrix after the k-th Jacobi transformation of the r-th physical quantity; J r,k is the matrix representation of the k-th Jacobi transformation of the r-th physical quantity; · * is the conjugate transposition of the matrix.

(5)不断循环步骤(2),直到核矩阵转换为对角阵为止。(5) Repeat step (2) continuously until the kernel matrix is transformed into a diagonal matrix.

(6)右奇异向量的计算:(6) Calculation of the right singular vector:

Figure BDA0003780875540000154
Figure BDA0003780875540000154

其中:r为物理量的编号;Nr为第r个物理量将核矩阵转换为对角阵所需Jacobi变换的数量;Jr,k(k取1~Nr)为第r个物理量第k次Jacobi变换的矩阵表示。Among them: r is the serial number of the physical quantity; N r is the number of Jacobi transformations required to transform the kernel matrix into a diagonal matrix for the rth physical quantity; J r,k (k takes 1 to N r ) is the kth time Matrix representation of the Jacobi transform.

(7)快照旋转:(7) Snapshot rotation:

ψ′r=FrVr ψ′ r = F r V r

其中:r为物理量的编号;ψ′r为第r个物理量未归一化的基函数向量组成的矩阵;Fr为第r个物理量的快照矩阵;Vr为第r个物理量的右奇异矩阵。Among them: r is the serial number of the physical quantity; ψ′ r is the matrix composed of unnormalized basis function vectors of the rth physical quantity; F r is the snapshot matrix of the rth physical quantity; V r is the right singular matrix of the rth physical quantity .

(8)将矩阵ψ′r的各列向量按其二范数(即奇异值或所含信息量)||ψ′r,i||2从大到小排序,并归一化后获得基函数:(8) Sort the column vectors of the matrix ψ′ r according to their two norms (that is, the singular value or the amount of information contained) ||ψ′ r,i || 2 from large to small, and obtain the basis after normalization function:

Figure BDA0003780875540000155
Figure BDA0003780875540000155

其中:r为物理量的编号;i为基函数的编号;ψr,i为第r个物理量的第i个基函数;ψ′r,i为第r个物理量的第i个未归一化的基函数;||·||为向量的二范数。Among them: r is the number of the physical quantity; i is the number of the basis function; ψ r,i is the i-th basis function of the r-th physical quantity; ψ′ r,i is the i-th unnormalized Basis function; ||·|| is the second norm of the vector.

步骤7、针对每种三维物理场,将各快照工况下的三维物理场,向每个基函数方向进行投影,重构得到每个快照工况下各三维物理场的各基函数方向的权系数;具体过程如下:Step 7. For each three-dimensional physical field, project the three-dimensional physical field under each snapshot condition to each basis function direction, and reconstruct to obtain the weights of each basis function direction of each three-dimensional physical field under each snapshot condition coefficient; the specific process is as follows:

将各快照工况下三维物理场,向每个基函数方向进行投影,得到每个快照工况在每个基函数方向对应的权系数;其中,每个快照工况在每个基函数方向对应的权系数为:Project the three-dimensional physical field under each snapshot condition to each basis function direction to obtain the corresponding weight coefficient of each snapshot condition in each basis function direction; where each snapshot condition corresponds to each basis function direction The weight coefficient is:

Figure BDA0003780875540000161
Figure BDA0003780875540000161

其中:r为物理量的编号;br,i,k代表第k个快照中第r个物理量在第i个基函数上投影的权系数;

Figure BDA0003780875540000162
为第r个物理量第i个基函数的共轭转置;fr,k为第k个快照中的第r个物理量的三维物理场。Among them: r is the serial number of the physical quantity; b r, i, k represent the weight coefficients of the rth physical quantity projected on the i-th basis function in the k-th snapshot;
Figure BDA0003780875540000162
is the conjugate transpose of the i-th basis function of the r-th physical quantity; f r,k is the three-dimensional physical field of the r-th physical quantity in the k-th snapshot.

步骤8、将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型;优选的,所述预选取的机器学习算法为人工神经网络算法、多元自适应回归样条算法或深度学习算法。Step 8. Taking the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, to obtain the preset fuel The digital twin model of the three-dimensional multi-physics field of the battery; preferably, the pre-selected machine learning algorithm is an artificial neural network algorithm, a multivariate adaptive regression spline algorithm or a deep learning algorithm.

本实施例中,选定预设的截断误差TE%,若lr满足第r个物理量的前lr个基函数忽略了小于TE%的信息量且第r个物理量的前lr-1个基函数忽略了超过TE%的信息量,则将lr称为第r个物理量截断误差TE%下的截断阶数;其中,预设的燃料电池三维多物理场的数字孪生模型为:In this embodiment, the preset truncation error TE% is selected, if l r satisfies that the first l r basis functions of the rth physical quantity ignore the amount of information less than TE% and the first lr -1 of the rth physical quantity The basis function ignores the amount of information exceeding TE%, so l r is called the truncation order under the rth physical quantity truncation error TE%. Among them, the preset digital twin model of the three-dimensional multi-physics field of the fuel cell is:

Figure BDA0003780875540000163
Figure BDA0003780875540000163

其中:r为物理量的编号;f′r为待预测燃料电池可变输入参数下第r个物理量的三维物理场;b′r,j为第r个物理量的三维物理场在第j个基函数方向的权系数;ψr,j为第r个物理量的第j个基函数;j为上述基函数编号;lr为第r个物理量的截断阶数。Among them: r is the serial number of the physical quantity; f′ r is the three-dimensional physical field of the r-th physical quantity under the variable input parameters of the fuel cell to be predicted; b′ r,j is the three-dimensional physical field of the r-th physical quantity in the j-th basis function ψ r,j is the jth basis function of the rth physical quantity; j is the number of the above basis functions; l r is the truncation order of the rth physical quantity.

步骤9、获取待预测燃料电池随机工况的可变输入参数;Step 9. Obtain the variable input parameters of the random working conditions of the fuel cell to be predicted;

步骤10、将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果。Step 10, using the variable input parameters of the random working conditions of the fuel cell to be predicted as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and outputting the result of the digital twin of the three-dimensional multi-physics field, that is, the to-be Predicting 3D multiphysics prediction results for fuel cells.

试验验证:Test verification:

以下以二十组随机可变输入参数,TE%=0.01%为例对三维多物理场数字孪生技术的预测效果展开阐述。全局相对误差以二范数定义,如下式所示:Taking 20 sets of randomly variable input parameters, TE%=0.01% as an example, the prediction effect of the three-dimensional multi-physics digital twin technology will be described below. The global relative error is defined by a two-norm, as shown in the following formula:

Figure BDA0003780875540000171
Figure BDA0003780875540000171

其中:r为物理量的编号;

Figure BDA0003780875540000172
指三维数字孪生结果中第r个物理量的三维物理场;fr,j指相同可变输入参数下的数值仿真结果中第r个物理量的三维物理场;δr为第r个物理量的全局相对误差。Where: r is the serial number of the physical quantity;
Figure BDA0003780875540000172
refers to the 3D physical field of the rth physical quantity in the 3D digital twin results; f r, j refers to the 3D physical field of the rth physical quantity in the numerical simulation results under the same variable input parameters; δ r is the global relative value of the rth physical quantity error.

如附图2所示,附图2中给出了实施例中各随机工况数字孪生结果中,电子电势场、温度场、膜态水含量场和液态水饱和度场的全局相对误差结果图;从附图2中可以看出,大部分工况全局相对误差在15%以内,验证了本实施例提供的三维多物理场数字孪生方法的可靠性。As shown in Figure 2, Figure 2 shows the global relative error results of the electronic potential field, temperature field, membrane water content field and liquid water saturation field in the digital twin results of each random working condition in the embodiment ; It can be seen from Figure 2 that the global relative error of most working conditions is within 15%, which verifies the reliability of the three-dimensional multi-physics digital twin method provided by this embodiment.

如附图3-5所示,附图3中给出了实施例中某一随机工况液态水饱和度场的仿真结果及数字孪生预测结果的对比图,附图4中给出了实施例中某一随机工况电子电势场的仿真结果及数字孪生预测结果的对比图,附图5中给出了实施例中某一随机工况温度场的仿真结果及数字孪生预测结果的对比图;从附图3-5中可以看出,本实施例所述的燃料电池三维物理场的预测方法,可较准确地捕捉各物理场的全局特征及局部特征,且预测精度较高。As shown in accompanying drawings 3-5, accompanying drawing 3 provides the simulation results of a certain random working condition liquid water saturation field in the embodiment and the comparison chart of digital twin prediction results, and accompanying drawing 4 provides the embodiment A comparison diagram of the simulation results of the electronic potential field of a random working condition and the prediction results of the digital twin, and the comparison diagram of the simulation results of the temperature field of a random working condition in the embodiment and the prediction results of the digital twin are shown in Figure 5; It can be seen from the accompanying drawings 3-5 that the method for predicting the three-dimensional physical field of the fuel cell described in this embodiment can more accurately capture the global and local characteristics of each physical field, and the prediction accuracy is relatively high.

本实施例所述的燃料电池三维物理场的预测方法,满足在给定燃料电池数值模型的基础上,基于大量离线仿真结果,实现燃料电池内三维多物理场的快速准确预测,满足燃料电池在线控制场景下多物理场预测的需求;其中,基于本征正交分解技术实现燃料电池内三维多物理场的快速准确预测,并采用预选取的机器学习算法、插值算法或回归算法对任意随机工况下的权系数展开预测,然后对预测所得权系数和基函数通过模态叠加的方法快速准确地获得任意随机工况下的多物理场预测结果。The prediction method of the three-dimensional physical field of the fuel cell described in this embodiment satisfies the requirement of fast and accurate prediction of the three-dimensional multi-physics field in the fuel cell based on a given numerical model of the fuel cell and based on a large number of off-line simulation results, and satisfies the requirements of the fuel cell on-line The demand for multi-physics prediction in the control scenario; among them, based on the intrinsic orthogonal decomposition technology, the fast and accurate prediction of the three-dimensional multi-physics field in the fuel cell is realized, and the pre-selected machine learning algorithm, interpolation algorithm or regression algorithm is used to analyze any stochastic The prediction of the weight coefficients under the conditions is carried out, and then the predicted weight coefficients and basis functions are used to quickly and accurately obtain the multi-physics prediction results under any random working conditions through the method of modal superposition.

需要说明的是,本实施例所述的燃料电池三维物理场的预测方法,同样适用于其他几何结构、其他类型的燃料电池及其他燃料电池模型等情况;例如:蛇形流道、固体氧化物燃料电池、三维单相等温模型等。It should be noted that the prediction method of the fuel cell three-dimensional physical field described in this embodiment is also applicable to other geometric structures, other types of fuel cells and other fuel cell models; for example: serpentine flow channel, solid oxide Fuel cells, three-dimensional single-phase thermal model, etc.

本实施例提供的一种燃料电池三维物理场的预测系统、设备及计算机可读存储介质中相关部分的说明可以参见本实施例所述的一种燃料电池三维物理场的预测方法中对应部分的详细说明,在此不再赘述。For the description of relevant parts of a fuel cell three-dimensional physical field prediction system, equipment, and computer-readable storage medium provided in this embodiment, please refer to the corresponding part of a fuel cell three-dimensional physical field prediction method described in this embodiment Detailed description will not be repeated here.

本发明所述的燃料电池三维物理场的预测方法、系统、设备及介质,仅需数秒内即可预测燃料电池内三维多物理场,验证了本发明可被应用于燃料电池内部物理场的在线预测。The prediction method, system, equipment and medium of the three-dimensional physical field of the fuel cell described in the present invention can predict the three-dimensional multi-physical field in the fuel cell within a few seconds, which verifies that the present invention can be applied to the online prediction of the internal physical field of the fuel cell predict.

上述实施例仅仅是能够实现本发明技术方案的实施方式之一,本发明所要求保护的范围并不仅仅受本实施例的限制,还包括在本发明所公开的技术范围内,任何熟悉本技术领域的技术人员所容易想到的变化、替换及其他实施方式。The above-mentioned embodiment is only one of the implementation manners capable of realizing the technical solution of the present invention, and the scope of protection claimed by the present invention is not only limited by this embodiment, but also includes within the technical scope disclosed in the present invention, anyone familiar with this technology Changes, substitutions and other implementations that can easily occur to those skilled in the art.

Claims (10)

1.一种燃料电池三维物理场的预测方法,其特征在于,包括:1. A method for predicting the three-dimensional physical field of a fuel cell, comprising: 获取待预测燃料电池随机工况的可变输入参数;Obtain the variable input parameters of the random operating conditions of the fuel cell to be predicted; 将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;The variable input parameters of the stochastic operating conditions of the fuel cell to be predicted are used as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and the digital twin result of the three-dimensional multi-physics field is output, that is, the fuel cell to be predicted is obtained 3D multiphysics prediction results; 其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:Wherein, the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field includes: 对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;Solve the pre-built 3D multi-physics coupling model of the fuel cell to obtain several twin snapshots; 针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;For each type of three-dimensional physical field in the fuel cell, several basis functions are constructed by using the intrinsic orthogonal decomposition method according to several twin snapshots, and the weights of each basis function direction of each three-dimensional physical field under each twin snapshot working condition are obtained. coefficient; 将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional multi-dimensional Digital twins of physical fields. 2.根据权利要求1所述的一种燃料电池三维物理场的预测方法,其特征在于,所述待预测燃料电池随机工况的可变输入参数,包括待预测燃料电池的阴极压力、阳极压力、阴极湿度、阳极湿度、阴极化学计量比、阳极化学计量比及操作温度。2. The prediction method of a kind of fuel cell three-dimensional physical field according to claim 1, it is characterized in that, the variable input parameters of the stochastic working conditions of the fuel cell to be predicted include the cathode pressure and the anode pressure of the fuel cell to be predicted , cathode humidity, anode humidity, cathode stoichiometric ratio, anode stoichiometric ratio and operating temperature. 3.根据权利要求1所述的一种燃料电池三维物理场的预测方法,其特征在于,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,具体如下:3. A method for predicting a fuel cell three-dimensional physical field according to claim 1, wherein the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field is as follows: 构建燃料电池的三维多物理场的耦合模型;Construct a 3D multi-physics coupled model of the fuel cell; 根据所述燃料电池的三维多物理场的耦合模型,获取燃料电池的模型参数;Acquiring model parameters of the fuel cell according to the three-dimensional multi-physics coupling model of the fuel cell; 从所述燃料电池的模型参数中,选取可变参数,得到若干快照工况的可变输入参数;Select variable parameters from the model parameters of the fuel cell to obtain variable input parameters of several snapshot working conditions; 将若干快照工况的可变输入参数,作为燃料电池的三维多物理场的耦合模型的输入,通过仿真模拟,得到若干孪生快照;The variable input parameters of several snapshot working conditions are used as the input of the three-dimensional multi-physics coupling model of the fuel cell, and several twin snapshots are obtained through simulation; 针对燃料电池中的每一类三维物理场,根据若干孪生快照,生成若干快照工况下的快照矩阵;For each type of three-dimensional physical field in the fuel cell, according to several twin snapshots, generate a snapshot matrix under several snapshot conditions; 针对燃料电池中的每一类三维物理场,利用奇异值分解方法,对若干快照工况下的快照矩阵进行矩阵分解和矩阵变换处理,得到若干个基函数;For each type of three-dimensional physical field in the fuel cell, use the singular value decomposition method to perform matrix decomposition and matrix transformation processing on the snapshot matrix under several snapshot conditions, and obtain several basis functions; 将若干孪生快照,向每个基函数方向进行投影,重构得到每个孪生快照工况下各三维物理场的各基函数方向的权系数;Project several twin snapshots to each basis function direction, and reconstruct to obtain the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition; 将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional multi-dimensional Digital twins of physical fields. 4.根据权利要求3所述的一种燃料电池三维物理场的预测方法,其特征在于,所述燃料电池的模型参数,包括燃料电池的几何参数、物性参数、电化学参数及操作参数。4 . The method for predicting the three-dimensional physical field of a fuel cell according to claim 3 , wherein the model parameters of the fuel cell include geometric parameters, physical parameters, electrochemical parameters, and operating parameters of the fuel cell. 5.根据权利要求3所述的一种燃料电池三维物理场的预测方法,其特征在于,所述燃料电池三维多物理场的耦合模型为基于液体压力连续的三维两相非等温数值仿真模型。5 . The method for predicting a three-dimensional physical field of a fuel cell according to claim 3 , wherein the coupling model of the three-dimensional multi-physics field of the fuel cell is a three-dimensional two-phase non-isothermal numerical simulation model based on continuous liquid pressure. 6.根据权利要求3所述的一种燃料电池三维物理场的预测方法,其特征在于,将若干快照工况的可变输入参数,作为燃料电池的三维多物理场的耦合模型的输入,通过仿真模拟,得到若干孪生快照的过程,具体如下:6. The prediction method of a kind of fuel cell three-dimensional physical field according to claim 3, it is characterized in that, the variable input parameters of some snapshot operating conditions, as the input of the coupling model of the three-dimensional multi-physics field of fuel cell, through The process of simulating and obtaining several twin snapshots is as follows: 采用C语言,将待预测燃料电池的三维多物理场的耦合模型编写至ANSYS Fluent软件中,将若干快照工况的可变输入参数作为输入,仿真输出,得到若干孪生快照;其中,若干孪生快照采用Tecplot文件的格式输出。Using C language, write the coupling model of the three-dimensional multi-physics field of the fuel cell to be predicted into ANSYS Fluent software, take the variable input parameters of several snapshot working conditions as input, and simulate the output to obtain several twin snapshots; among them, several twin snapshots The output is in the format of a Tecplot file. 7.根据权利要求3所述的一种燃料电池三维物理场的预测方法,其特征在于,预设的燃料电池三维多物理场的数字孪生模型为:7. The prediction method of a kind of fuel cell three-dimensional physical field according to claim 3, is characterized in that, the digital twin model of preset fuel cell three-dimensional multi-physics field is:
Figure FDA0003780875530000021
Figure FDA0003780875530000021
其中,r为物理量的编号;fr′为待预测燃料电池可变输入参数下第r个物理量的三维物理场;br,j为第r个物理量的三维物理场在第j个基函数方向的权系数;ψr,j为第r个物理量的第j个基函数;j为上述基函数编号;lr为第r个物理量的截断阶数。Among them, r is the serial number of the physical quantity; f r ′ is the three-dimensional physical field of the r-th physical quantity under the variable input parameters of the fuel cell to be predicted; b r,j is the three-dimensional physical field of the r-th physical quantity in the j-th basis function ψ r,j is the jth basis function of the rth physical quantity; j is the number of the above basis functions; l r is the truncation order of the rth physical quantity.
8.一种燃料电池三维物理场的预测系统,其特征在于,包括:8. A prediction system for a fuel cell three-dimensional physical field, characterized in that it comprises: 获取模块,用于获取待预测燃料电池随机工况的可变输入参数;An acquisition module, configured to acquire variable input parameters of fuel cell stochastic operating conditions to be predicted; 预测模块,用于将所述待预测燃料电池随机工况的可变输入参数,作为预设的燃料电池三维多物理场的数字孪生模型的输入,输出得到三维多物理场的数字孪生结果,即得到待预测燃料电池三维多物理场的预测结果;The prediction module is used to use the variable input parameters of the random operating conditions of the fuel cell to be predicted as the input of the preset digital twin model of the three-dimensional multi-physics field of the fuel cell, and output the digital twin result of the three-dimensional multi-physics field, namely Obtain the prediction results of the three-dimensional multi-physics field of the fuel cell to be predicted; 其中,所述预设的燃料电池三维多物理场的数字孪生模型的构建过程,包括:Wherein, the construction process of the digital twin model of the preset fuel cell three-dimensional multi-physics field includes: 对预构建的燃料电池三维多物理场的耦合模型进行求解,得到若干孪生快照;Solve the pre-built 3D multi-physics coupling model of the fuel cell to obtain several twin snapshots; 针对燃料电池中的每一类三维物理场,根据若干孪生快照采用本征正交分解方法,构建若干个基函数,并获取每个孪生快照工况下各三维物理场的各基函数方向的权系数;For each type of three-dimensional physical field in the fuel cell, several basis functions are constructed by using the intrinsic orthogonal decomposition method according to several twin snapshots, and the weights of each basis function direction of each three-dimensional physical field under each twin snapshot working condition are obtained. coefficient; 将所述每个孪生快照工况下各三维物理场的各基函数方向的权系数作为样本集,基于预选取的机器学习算法、插值算法或回归算法,得到所述预设的燃料电池三维多物理场的数字孪生模型。Using the weight coefficients of each basis function direction of each three-dimensional physical field under each twin snapshot working condition as a sample set, based on a pre-selected machine learning algorithm, interpolation algorithm or regression algorithm, the preset fuel cell three-dimensional multi-dimensional Digital twins of physical fields. 9.一种燃料电池三维物理场的预测设备,其特征在于,包括9. A prediction device for a fuel cell three-dimensional physical field, characterized in that it includes 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1-7任一项所述的燃料电池三维物理场的预测方法的步骤。A processor, configured to implement the steps of the method for predicting the three-dimensional physical field of a fuel cell according to any one of claims 1-7 when executing the computer program. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-7任一项所述的燃料电池三维物理场的预测方法的步骤。10. A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, the fuel cell according to any one of claims 1-7 is realized Steps in a prediction method for 3D physics.
CN202210929061.0A 2022-08-03 2022-08-03 Prediction method, system, device and medium for 3D physics of fuel cell Pending CN115270633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210929061.0A CN115270633A (en) 2022-08-03 2022-08-03 Prediction method, system, device and medium for 3D physics of fuel cell

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210929061.0A CN115270633A (en) 2022-08-03 2022-08-03 Prediction method, system, device and medium for 3D physics of fuel cell

Publications (1)

Publication Number Publication Date
CN115270633A true CN115270633A (en) 2022-11-01

Family

ID=83748390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210929061.0A Pending CN115270633A (en) 2022-08-03 2022-08-03 Prediction method, system, device and medium for 3D physics of fuel cell

Country Status (1)

Country Link
CN (1) CN115270633A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115762683A (en) * 2022-11-25 2023-03-07 中国科学院宁波材料技术与工程研究所 Fuel cell design data processing method, device and electronic equipment
CN116404205A (en) * 2023-06-02 2023-07-07 上海重塑能源科技有限公司 Digital twin-based fuel cell low-temperature operation control system and method
CN118534332A (en) * 2024-07-24 2024-08-23 深圳市菲尼基科技有限公司 Battery monitoring method and system based on BMS system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115762683A (en) * 2022-11-25 2023-03-07 中国科学院宁波材料技术与工程研究所 Fuel cell design data processing method, device and electronic equipment
CN115762683B (en) * 2022-11-25 2023-05-26 中国科学院宁波材料技术与工程研究所 Method and device for processing fuel cell design data and electronic equipment
CN116404205A (en) * 2023-06-02 2023-07-07 上海重塑能源科技有限公司 Digital twin-based fuel cell low-temperature operation control system and method
CN116404205B (en) * 2023-06-02 2023-09-08 上海重塑能源科技有限公司 Digital twin-based fuel cell low-temperature operation control system and method
CN118534332A (en) * 2024-07-24 2024-08-23 深圳市菲尼基科技有限公司 Battery monitoring method and system based on BMS system
CN118534332B (en) * 2024-07-24 2024-09-27 深圳市菲尼基科技有限公司 Battery monitoring method and system based on BMS system

Similar Documents

Publication Publication Date Title
CN115270633A (en) Prediction method, system, device and medium for 3D physics of fuel cell
US11455439B2 (en) Neural network force field computational algorithms for molecular dynamics computer simulations
CN105574809B (en) Electromagnetic transient simulation graphics processor parallel calculating method based on matrix exponetial
CN103077268B (en) Towards the state space method for automatic modeling of electromagnetic transient in power system emulation
CN113746087B (en) Power grid transient stability sample controllable generation and evaluation method and system based on CTGAN
CN108897716B (en) A data processing device and method for reducing the amount of calculation through memory read and write operations
CN107609141A (en) A Fast Probabilistic Modeling Method for Large-Scale Renewable Energy Data
Astolfi et al. Model reduction by moment matching: Beyond linearity a review of the last 10 years
US20200365236A1 (en) Graph neural network force field computational algorithms for molecular dynamics computer simulations
CN103336867A (en) Proton exchange membrane fuel cell model optimizing process method
CN108038340A (en) One proton exchanging film fuel battery fractional order Stute space model identification method
Xiao et al. Exploration of artificial-intelligence oriented power system dynamic simulators
CN117574973A (en) Outlier-aware adaptive mixed-precision quantization method for interatomic potential energy surface models
CN107632522B (en) Method for identifying non-linear state space model of proton exchange membrane fuel cell
CN112906272A (en) Reactor steady-state physical thermal full-coupling fine numerical simulation method and system
CN118782178B (en) Method and device for predicting properties of electrolyte for lithium batteries based on deep learning
CN115392029A (en) A spatio-temporal modeling method for lithium battery thermal process based on KWLTSA
CN117613952A (en) Matrix completion state estimation method and system for three-phase unbalanced distribution network
CN101478159A (en) Transient stabilized constraint tide optimization process based on differential equality constraint conversion order reduction
Trong et al. Deterministic and probabilistic wind speed forecasting employing a hybrid deep learning model and quantile regression
CN115935635B (en) Electrochemical model-based lithium battery road end voltage calculation method, device and medium
CN119007791B (en) Static random access memory circuit yield evaluation method
CN118885746A (en) A CVT error state prediction method, system, medium, and terminal
Zhu et al. Fault Diagnosis of Proton Exchange Membrane Fuel Cells Based on Deep Learning and Transfer Learning
Wei et al. Wind Power Forecasting Model Based on Feature Processing and Deep Hybrid Kernel Extreme Learning Machine

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