CN113627100B - Method, device and electronic device for determining flow coefficient - Google Patents

Method, device and electronic device for determining flow coefficient Download PDF

Info

Publication number
CN113627100B
CN113627100B CN202110895654.5A CN202110895654A CN113627100B CN 113627100 B CN113627100 B CN 113627100B CN 202110895654 A CN202110895654 A CN 202110895654A CN 113627100 B CN113627100 B CN 113627100B
Authority
CN
China
Prior art keywords
simulation
valve
preset
flow
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110895654.5A
Other languages
Chinese (zh)
Other versions
CN113627100A (en
Inventor
张楼悦
朱美印
王曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang 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 Beihang University filed Critical Beihang University
Priority to CN202110895654.5A priority Critical patent/CN113627100B/en
Publication of CN113627100A publication Critical patent/CN113627100A/en
Application granted granted Critical
Publication of CN113627100B publication Critical patent/CN113627100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Fluid Mechanics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Algebra (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a flow coefficient determining method, a flow coefficient determining device and electronic equipment, which are used for carrying out simulation processing on a preset valve flow field simulation model based on a simulation instruction and preset simulation parameters after receiving the simulation instruction sent by a user, and calculating an error result based on the obtained simulation result and a preset experiment result; if the error result accords with the preset result, continuing to execute the step of receiving the simulation instruction sent by the user until the preset condition is reached, obtaining a final valve flow field simulation model, and determining the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters. The method can determine the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters, and can obtain the final valve flow field simulation model meeting the precision requirement only by a limited amount of experimental data, so that the requirement on the amount of experimental data can be reduced, and the acquisition efficiency of the flow coefficient is improved while the flow coefficient meeting the precision requirement is obtained.

Description

流量系数确定方法、装置和电子设备Method, device and electronic device for determining flow coefficient

技术领域Technical Field

本发明涉及调节阀技术领域,尤其是涉及一种流量系数确定方法、装置和电子设备。The present invention relates to the technical field of regulating valves, and in particular to a method, device and electronic equipment for determining a flow coefficient.

背景技术Background technique

套筒阀是调节阀的一类,套筒阀的主体结构是一对内外重叠的套筒,内部套筒的壁面上对称分布着用于控制流体流量的节流孔,通过改变节流孔的形状尺寸便能较为方便的改变套筒阀的流量特性,套筒阀作为管网控制系统的调节阀,在对管网控制系统进行设计时需要先确定该套筒阀的流量特性,具体的,通常需要确定该套筒阀的流量系数。相关技术中,通常通过神经网络算法对实际试验数据散点图进行数据分析,或者通过采集的散点数据进行迭代拟合回归的相关方法,这些方式虽然能够得到精度较高的流量系数,但是对试验数据的数量有较高的要求,流量系数的获取效率较低,如果试验数据的数量不足或较少,采用上述方式难以获取到满足精度需求的流量系数。The sleeve valve is a type of regulating valve. The main structure of the sleeve valve is a pair of sleeves that overlap inside and outside. The wall of the inner sleeve is symmetrically distributed with throttle holes for controlling the fluid flow. By changing the shape and size of the throttle holes, the flow characteristics of the sleeve valve can be changed more conveniently. The sleeve valve is used as a regulating valve for the pipe network control system. When designing the pipe network control system, the flow characteristics of the sleeve valve need to be determined first. Specifically, the flow coefficient of the sleeve valve usually needs to be determined. In the related technology, the scatter plot of the actual test data is usually analyzed by a neural network algorithm, or the related method of iterative fitting regression is performed on the collected scatter data. Although these methods can obtain a high-precision flow coefficient, they have high requirements on the number of test data, and the efficiency of obtaining the flow coefficient is low. If the number of test data is insufficient or small, it is difficult to obtain a flow coefficient that meets the accuracy requirements by the above method.

发明内容Summary of the invention

本发明的目的在于提供一种流量系数确定方法、装置和电子设备,以提高处理效率,改善流量系数的精度。The object of the present invention is to provide a method, device and electronic equipment for determining a flow coefficient, so as to improve processing efficiency and the accuracy of the flow coefficient.

本发明提供的一种流量系数确定方法,方法包括:接收用户发出的仿真指令;基于仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,得到仿真结果;基于仿真结果与预设实验结果,计算误差结果;如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型;基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。The present invention provides a method for determining a flow coefficient, which includes: receiving a simulation instruction issued by a user; simulating a preset valve flow field simulation model based on the simulation instruction and preset simulation parameters to obtain a simulation result; calculating an error result based on the simulation result and a preset experimental result; if the error result meets the preset result, continuing to execute the step of receiving the simulation instruction issued by the user until a preset condition is met to obtain a final valve flow field simulation model; and determining the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters.

进一步的,预设的阀门流场仿真模型通过下述方式确定:接收用户发出的模型构建指令;根据模型构建指令,构建阀门三维模型;接收用户发出的模型导入指令和预设的导入参数;基于模型导入指令和预设的导入参数,将阀门三维模型输入至预设仿真软件中,得到与阀门三维模型对应的阀门流场仿真模型。Furthermore, the preset valve flow field simulation model is determined in the following manner: receiving a model building instruction issued by a user; building a valve three-dimensional model according to the model building instruction; receiving a model import instruction and preset import parameters issued by the user; based on the model import instruction and the preset import parameters, inputting the valve three-dimensional model into the preset simulation software to obtain a valve flow field simulation model corresponding to the valve three-dimensional model.

进一步的,预设条件包括:误差结果不符合预设结果,或者,误差结果的数量达到预设数量。Furthermore, the preset conditions include: the error result does not meet the preset result, or the number of error results reaches a preset number.

进一步的,仿真模拟参数包括多组,每组仿真模拟参数包括一个阀门开度数据和一个阀门压力比,其中,阀门压力比包括:阀门的阀后压力与阀前压力的比值;基于最终阀门流场仿真模型和预设仿真模拟参数,确定流量系数的步骤包括:针对每组仿真模拟参数,基于最终阀门流场仿真模型和该组仿真模拟参数,确定该组仿真模拟参数对应的仿真流量;基于该组仿真模拟参数对应的仿真流量,确定该组仿真模拟参数对应的流量系数;基于每组仿真模拟参数对应的流量系数,确定流量系数集合。Furthermore, the simulation parameters include multiple groups, each group of simulation parameters includes a valve opening data and a valve pressure ratio, wherein the valve pressure ratio includes: the ratio of the valve's post-valve pressure to the valve's pre-valve pressure; based on the final valve flow field simulation model and preset simulation parameters, the step of determining the flow coefficient includes: for each group of simulation parameters, based on the final valve flow field simulation model and the group of simulation parameters, determining the simulation flow corresponding to the group of simulation parameters; based on the simulation flow corresponding to the group of simulation parameters, determining the flow coefficient corresponding to the group of simulation parameters; based on the flow coefficient corresponding to each group of simulation parameters, determining a flow coefficient set.

进一步的,方法还包括:对流量系数集合进行插值处理,得到处理后的流量系数集合;将处理后的流量系数集合和预设输入参数,输入至预设仿真验证模型,得到输出结果。Furthermore, the method also includes: performing interpolation processing on the flow coefficient set to obtain a processed flow coefficient set; inputting the processed flow coefficient set and preset input parameters into a preset simulation verification model to obtain an output result.

本发明提供的一种流量系数确定装置,装置包括:接收模块,用于接收用户发出的仿真指令;仿真模块,用于基于仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,得到仿真结果;计算模块,用于基于仿真结果与预设实验结果,计算误差结果;第一确定模块,用于如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型;第二确定模块,用于基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。The present invention provides a flow coefficient determination device, which includes: a receiving module, which is used to receive a simulation instruction issued by a user; a simulation module, which is used to simulate a preset valve flow field simulation model based on the simulation instruction and preset simulation parameters to obtain a simulation result; a calculation module, which is used to calculate an error result based on the simulation result and a preset experimental result; a first determination module, which is used to continue to execute the step of receiving the simulation instruction issued by the user if the error result meets the preset result, until the preset condition is met to obtain a final valve flow field simulation model; and a second determination module, which is used to determine the flow coefficient based on the final valve flow field simulation model and preset simulation parameters.

进一步的,装置还包括:阀门流场仿真模型确定模块;阀门流场仿真模型确定模块用于:接收用户发出的模型构建指令;根据模型构建指令,构建阀门三维模型;接收用户发出的模型导入指令和预设的导入参数;基于模型导入指令和预设的导入参数,将阀门三维模型输入至预设仿真软件中,得到与阀门三维模型对应的阀门流场仿真模型。Furthermore, the device also includes: a valve flow field simulation model determination module; the valve flow field simulation model determination module is used to: receive a model building instruction issued by a user; build a valve three-dimensional model according to the model building instruction; receive a model import instruction and preset import parameters issued by a user; based on the model import instruction and the preset import parameters, input the valve three-dimensional model into the preset simulation software to obtain a valve flow field simulation model corresponding to the valve three-dimensional model.

进一步的,预设条件包括:误差结果不符合预设结果,或者,误差结果的数量达到预设数量。Furthermore, the preset conditions include: the error result does not meet the preset result, or the number of error results reaches a preset number.

进一步的,仿真模拟参数包括多组,每组仿真模拟参数包括一个阀门开度数据和一个阀门压力比,其中,阀门压力比包括:阀门的阀后压力与阀前压力的比值;第二确定模块还用于:针对每组仿真模拟参数,基于最终阀门流场仿真模型和该组仿真模拟参数,确定该组仿真模拟参数对应的仿真流量;基于该组仿真模拟参数对应的仿真流量,确定该组仿真模拟参数对应的流量系数;基于每组仿真模拟参数对应的流量系数,确定流量系数集合。Furthermore, the simulation parameters include multiple groups, each group of simulation parameters includes a valve opening data and a valve pressure ratio, wherein the valve pressure ratio includes: the ratio of the valve's post-valve pressure to the valve's pre-valve pressure; the second determination module is also used to: for each group of simulation parameters, determine the simulation flow corresponding to the group of simulation parameters based on the final valve flow field simulation model and the group of simulation parameters; determine the flow coefficient corresponding to the group of simulation parameters based on the simulation flow corresponding to the group of simulation parameters; determine the flow coefficient set based on the flow coefficient corresponding to each group of simulation parameters.

本发明提供的一种电子设备,包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述任一项的流量系数确定方法。An electronic device provided by the present invention includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any of the above flow coefficient determination methods.

本发明提供的流量系数确定方法、装置和电子设备,在接收到用户发出的仿真指令后,可以基于该仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,基于得到的仿真结果与预设实验结果,计算误差结果;如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型,基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。该方式可以基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数,只需要有限数量的实验数据就可以得到满足精度需求的最终阀门流场仿真模型,从而可以减少对实验数据数量的要求,在得到满足精度需求的流量系数的同时,提高流量系数的获取效率。The flow coefficient determination method, device and electronic device provided by the present invention can simulate a preset valve flow field simulation model based on the simulation instruction and preset simulation parameters after receiving a simulation instruction issued by a user, and calculate an error result based on the obtained simulation result and the preset experimental result; if the error result meets the preset result, continue to execute the step of receiving the simulation instruction issued by the user until the preset condition is met, and obtain the final valve flow field simulation model, and determine the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters. This method can determine the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters, and only a limited number of experimental data are needed to obtain the final valve flow field simulation model that meets the accuracy requirements, thereby reducing the requirements for the number of experimental data, and while obtaining a flow coefficient that meets the accuracy requirements, the efficiency of obtaining the flow coefficient is improved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

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

图1为本发明实施例提供的一种流量系数确定方法的流程图;FIG1 is a flow chart of a method for determining a flow coefficient provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种流量系数确定方法的流程图;FIG2 is a flow chart of another method for determining a flow coefficient provided by an embodiment of the present invention;

图3为本发明实施例提供的一种套筒阀的结构示意图;FIG3 is a schematic structural diagram of a sleeve valve provided in an embodiment of the present invention;

图4为本发明实施例提供的一种流量特性获取方法的流程图;FIG4 is a flow chart of a method for acquiring flow characteristics provided by an embodiment of the present invention;

图5为本发明实施例提供的一种套筒阀三维流场仿真模型示意图;FIG5 is a schematic diagram of a three-dimensional flow field simulation model of a sleeve valve provided in an embodiment of the present invention;

图6为本发明实施例提供的一种流量系数曲面的示意图;FIG6 is a schematic diagram of a flow coefficient surface provided by an embodiment of the present invention;

图7为本发明实施例提供的一种第一次流量试验输出对比示意图;FIG7 is a schematic diagram of a first flow test output comparison according to an embodiment of the present invention;

图8为本发明实施例提供的一种第一次流量试验相对误差分析图;FIG8 is a relative error analysis diagram of a first flow test provided by an embodiment of the present invention;

图9为本发明实施例提供的一种第二次流量试验输出对比示意图;FIG9 is a schematic diagram of a second flow test output comparison according to an embodiment of the present invention;

图10为本发明实施例提供的一种第二次流量试验相对误差分析图;FIG10 is a relative error analysis diagram of a second flow test provided by an embodiment of the present invention;

图11为本发明实施例提供的一种流量系数确定装置的结构示意图;FIG11 is a schematic structural diagram of a flow coefficient determination device provided by an embodiment of the present invention;

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

具体实施方式Detailed ways

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

套筒阀作为管网控制系统的调节阀,在对管网控制系统进行设计时需要先获取该套筒阀的流量特性,具体的,通常需要确定该套筒阀的流量系数。相关技术中,对于大口径套筒阀,通常可以直接通过实际试验的方法来获取该流量特性插值,该方式不仅成本高、研发周期长,而且精度也得不到有效的保证,一般不作为主流方法。另外一种方式中,调节阀流量特性的获取主要采用的方法是针对具体调节阀的型号,利用计算流体力学(CFD,Computational Fluid Dynamics)技术分析流量特性。由于目前市面上CFD的数值模拟软件已经发展得较为成熟,因此,这种方法能够以较高的效率达到较高精度的仿真结果;但该方法的缺点也同样明显,该方法中,流量系数表的精度质量十分依赖仿真人员的专业素养与仿真经验,进而使得同一型号阀门在不同工况下流量系数精度的散度较大,为后续控制系统的建模与仿真带来模型上的误差。另外一种方式中,可以通过神经网络算法对实际试验数据散点图进行数据分析,或者通过采集的散点数据进行迭代拟合回归的相关方法,该方式虽然能够得到精度较高的流量系数表,但是对试验的数据数量有较高的要求,如果试验数据的数量不足或较少,采用上述方式难以获取到满足精度需求的流量系数。As a regulating valve of the pipe network control system, the sleeve valve needs to obtain the flow characteristics of the sleeve valve first when designing the pipe network control system. Specifically, it is usually necessary to determine the flow coefficient of the sleeve valve. In the related art, for large-caliber sleeve valves, the flow characteristic interpolation can usually be directly obtained through actual test methods. This method is not only costly and has a long R&D cycle, but also the accuracy cannot be effectively guaranteed. It is generally not used as a mainstream method. In another way, the main method used to obtain the flow characteristics of the regulating valve is to analyze the flow characteristics using computational fluid dynamics (CFD) technology for the specific regulating valve model. Since the numerical simulation software of CFD on the market has been developed to a relatively mature level, this method can achieve high-precision simulation results with high efficiency; but the disadvantages of this method are also obvious. In this method, the accuracy quality of the flow coefficient table is very dependent on the professional quality and simulation experience of the simulation personnel, which makes the dispersion of the flow coefficient accuracy of the same model valve under different working conditions large, which brings model errors to the subsequent control system modeling and simulation. In another method, a neural network algorithm can be used to analyze the scatter plot of actual test data, or a related method of iterative fitting regression can be used through the collected scattered data. Although this method can obtain a flow coefficient table with higher accuracy, it has high requirements on the amount of test data. If the amount of test data is insufficient or small, it is difficult to obtain a flow coefficient that meets the accuracy requirements using the above method.

基于此,本发明实施例提供了一种流量系数确定方法、装置和电子设备,该技术可以应用于需要获取调节阀流量特性的应用中,具体可以应用于需要获取调节阀流量系数的应用中。Based on this, an embodiment of the present invention provides a flow coefficient determination method, device and electronic device. This technology can be applied to applications that need to obtain the flow characteristics of a control valve, and specifically can be applied to applications that need to obtain the flow coefficient of a control valve.

为便于对本实施例进行理解,首先对本发明实施例所公开的一种流量系数确定方法进行详细介绍;如图1所示,该方法包括如下步骤:To facilitate understanding of this embodiment, a method for determining a flow coefficient disclosed in an embodiment of the present invention is first introduced in detail; as shown in FIG1 , the method includes the following steps:

步骤S102,接收用户发出的仿真指令。Step S102, receiving a simulation instruction issued by a user.

上述仿真指令可以理解为用户发出的需要对预设的阀门流场仿真模型进行仿真的指令;在实际实现时,可以通过仿真软件接收用户发出的该仿真指令,其中,该分析软件可以是流场仿真软件,如ANSYS Fluent或STAR-CCM(Computational ContinuumMechanics)等。The above-mentioned simulation instruction can be understood as an instruction issued by the user to simulate the preset valve flow field simulation model; in actual implementation, the simulation instruction issued by the user can be received through the simulation software, wherein the analysis software can be a flow field simulation software, such as ANSYS Fluent or STAR-CCM (Computational Continuum Mechanics).

步骤S104,基于仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,得到仿真结果。Step S104, based on the simulation instruction and the preset simulation parameters, the preset valve flow field simulation model is simulated to obtain a simulation result.

上述阀门流场仿真模型可以是套筒阀三维流场仿真模型等,该阀门流场仿真模型通常绘制有网格,并且通常被配置有相关的配置参数,如阀前压力、阀前温度、阀门开度、阀后压力等;上述仿真参数通常包括为阀门流场仿真模型预先设定的边界条件、迭代次数或收敛指标等预设参数;在实际实现时,当接收到用户发出的仿真指令后,可以根据该仿真指令和预先设定的仿真参数对阀门流场仿真模型进行仿真,得到仿真结果,对于阀门流场仿真模型来说,该仿真结果通常是阀门的输出流量,即阀门的质量流量,其中,该质量流量可以理解为单位时间内流体通过封闭管道或敞开槽有效截面的流体质量,单位通常是kg/s或kg/h等。The above-mentioned valve flow field simulation model can be a three-dimensional flow field simulation model of a sleeve valve, etc. The valve flow field simulation model is usually drawn with a grid and is usually configured with relevant configuration parameters, such as the pressure before the valve, the temperature before the valve, the valve opening, the pressure after the valve, etc.; the above-mentioned simulation parameters usually include preset parameters such as boundary conditions, number of iterations or convergence indicators pre-set for the valve flow field simulation model; in actual implementation, after receiving the simulation instruction issued by the user, the valve flow field simulation model can be simulated according to the simulation instruction and the pre-set simulation parameters to obtain a simulation result. For the valve flow field simulation model, the simulation result is usually the output flow rate of the valve, that is, the mass flow rate of the valve, wherein the mass flow rate can be understood as the mass of the fluid passing through the effective cross-section of a closed pipe or an open groove per unit time, and the unit is usually kg/s or kg/h, etc.

步骤S106,基于仿真结果与预设实验结果,计算误差结果。Step S106, calculating the error result based on the simulation result and the preset experimental result.

上述预设实验结果通常是与仿真过程同条件下的实际实验流量结果,比如,与仿真过程为同样的阀前压力、阀前温度、阀门开度和阀后压力时的实际实验结果等;该误差结果通常是仿真结果与预设实验结果之间的相对误差,比如,该相对误差的计算公式可以是:相对误差=|仿真结果-预设实验结果|/预设实验结果*100%。The above-mentioned preset experimental results are usually the actual experimental flow results under the same conditions as the simulation process, for example, the actual experimental results with the same valve front pressure, valve front temperature, valve opening and valve rear pressure as the simulation process; the error result is usually the relative error between the simulation result and the preset experimental result. For example, the calculation formula of the relative error can be: relative error = |simulation result-preset experimental result|/preset experimental result*100%.

步骤S108,如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型。Step S108, if the error result meets the preset result, continue to execute the step of receiving the simulation instruction issued by the user until the preset condition is met to obtain the final valve flow field simulation model.

上述预设结果通常是预先设置的相对误差阈值,比如,该相对误差阈值可以是7%或8%等,具体可以根据实际需求设置该预设结果;在实际实现时,可以将上述误差结果与预设结果进行比较,以确认上述误差结果是否符合精度要求,如果误差结果符合预设结果,通常会重复执行上述接收用户发出的仿真指令的步骤,直至达到预设条件,该预设条件可以用于指示重复过程停止的条件,比如,该预设条件可以是得到的误差结果的数量达到指定数量,也可以理解为重复执行的次数达到指定次数等,比如,重复执行10次,得到10个误差结果等;在达到上述预设条件后,得到上述最终阀门流场仿真模型,该最终阀门流场仿真模型可以理解为在不同边界条件下均能满足精度要求的模型。The above-mentioned preset result is usually a preset relative error threshold, for example, the relative error threshold may be 7% or 8%, etc., and the preset result may be set specifically according to actual needs; in actual implementation, the above-mentioned error result may be compared with the preset result to confirm whether the above-mentioned error result meets the accuracy requirement. If the error result meets the preset result, the above-mentioned step of receiving the simulation instruction issued by the user is usually repeated until the preset condition is reached. The preset condition may be used to indicate the condition for stopping the repetitive process, for example, the preset condition may be that the number of error results obtained reaches a specified number, or it may be understood that the number of repeated executions reaches a specified number, etc. For example, the execution is repeated 10 times to obtain 10 error results, etc.; after the above-mentioned preset condition is reached, the above-mentioned final valve flow field simulation model is obtained, and the final valve flow field simulation model may be understood as a model that can meet the accuracy requirements under different boundary conditions.

如果上述误差结果不符合预设结果,可以生成相应的提示信息,该提示信息可以用于提示用户预设的阀门流场仿真模型可能需要修改,具体的,用户可以根据误差结果分析原因,以修改仿真模型。If the above error result does not conform to the preset result, a corresponding prompt information can be generated, which can be used to prompt the user that the preset valve flow field simulation model may need to be modified. Specifically, the user can analyze the cause according to the error result to modify the simulation model.

步骤S110,基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。Step S110, determining the flow coefficient based on the final valve flow field simulation model and preset simulation parameters.

上述预设的仿真模拟参数可以是阀门开度和阀门压力比的一个或多个不同组合,比如,阀门开度分别是10°、20°、…、90°的开度和0.1、0.2、…、0.9的压力比;其中,阀门压力比可以是阀后压力与阀前压力之间的比值;在得到上述最终阀门流场仿真模型后,可以基于该最终阀门流场仿真模型和预设的仿真模拟参数,得到上述流量系数,在仿真模拟参数包括多个不同组合的情况下,上述流量系数通常也包括多个,多个流量系数可以以表格形式表示,即得到流量系数表。The above-mentioned preset simulation parameters can be one or more different combinations of valve opening and valve pressure ratio, for example, the valve opening is 10°, 20°, ..., 90° and the pressure ratio is 0.1, 0.2, ..., 0.9; wherein, the valve pressure ratio can be the ratio between the pressure after the valve and the pressure before the valve; after obtaining the above-mentioned final valve flow field simulation model, the above-mentioned flow coefficient can be obtained based on the final valve flow field simulation model and the preset simulation parameters. When the simulation parameters include multiple different combinations, the above-mentioned flow coefficient usually also includes multiple flow coefficients, and the multiple flow coefficients can be expressed in tabular form, that is, a flow coefficient table is obtained.

上述流量系数确定方法,在接收到用户发出的仿真指令后,可以基于该仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,基于得到的仿真结果与预设实验结果,计算误差结果;如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型,基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。该方式可以基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数,只需要有限数量的实验数据就可以得到满足精度需求的最终阀门流场仿真模型,从而可以减少对实验数据数量的要求,在得到满足精度需求的流量系数的同时,提高流量系数的获取效率。The above-mentioned flow coefficient determination method, after receiving the simulation instruction issued by the user, can simulate the preset valve flow field simulation model based on the simulation instruction and the preset simulation parameters, and calculate the error result based on the obtained simulation result and the preset experimental result; if the error result meets the preset result, continue to execute the step of receiving the simulation instruction issued by the user until the preset condition is met, and the final valve flow field simulation model is obtained, and the flow coefficient is determined based on the final valve flow field simulation model and the preset simulation parameters. This method can determine the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters, and only a limited number of experimental data are needed to obtain the final valve flow field simulation model that meets the accuracy requirements, thereby reducing the requirements for the number of experimental data, and while obtaining the flow coefficient that meets the accuracy requirements, the efficiency of obtaining the flow coefficient is improved.

本发明实施例还提供了另一种流量系数确定方法,该方法在上述实施例方法的基础上实现;该方法重点描述基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数的具体过程,该方法中,仿真模拟参数包括多组,每组仿真模拟参数包括一个阀门开度数据和一个阀门压力比,其中,阀门压力比包括:阀门的阀后压力与阀前压力的比值;其中,阀门开度数据可以以角度值表示,比如,该阀门开度可以是10°、20°、30°等,阀门开度通常与质量流量成正比,即阀门开度越大,质量流量通常也越高;如图2所示,该方法包括如下步骤:The embodiment of the present invention also provides another method for determining the flow coefficient, which is implemented on the basis of the method of the above embodiment; the method focuses on describing the specific process of determining the flow coefficient based on the final valve flow field simulation model and preset simulation parameters, in which the simulation parameters include multiple groups, each group of simulation parameters includes a valve opening data and a valve pressure ratio, wherein the valve pressure ratio includes: the ratio of the valve back pressure to the valve front pressure; wherein the valve opening data can be expressed as an angle value, for example, the valve opening can be 10°, 20°, 30°, etc., and the valve opening is generally proportional to the mass flow, that is, the larger the valve opening, the higher the mass flow; as shown in FIG. 2 , the method includes the following steps:

步骤S202,接收用户发出的仿真指令。Step S202, receiving a simulation instruction issued by a user.

步骤S204,基于仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,得到仿真结果。Step S204: based on the simulation instruction and the preset simulation parameters, the preset valve flow field simulation model is simulated to obtain a simulation result.

在实际实现时,上述预设的阀门流场仿真模型通过下述步骤一至步骤四确定:In actual implementation, the above preset valve flow field simulation model is determined through the following steps 1 to 4:

步骤一,接收用户发出的模型构建指令。Step 1: Receive the model building instruction issued by the user.

步骤二,根据模型构建指令,构建阀门三维模型。Step 2: Build a three-dimensional model of the valve according to the model building instructions.

上述模型构建指令可以理解为当用户需要构建阀门三维模型时所发出的指令;在实际实现时,可以通过三维建模软件接收上述模型构建指令,在接收到该模型构建指令后,可以基于该模型构建指令,构建阀门三维模型,比如,可以构建套筒阀三维模型等;需要说明的是,由于在一般情况下,阀门是作为管网控制系统的组成部分,因此,在构建阀门三维模型时,通常会构建包含该阀门的三维管网模型,具体的,用户可以分析实际试验管网的物理结构,通过三维建模软件构建三维管网模型。The above-mentioned model building instructions can be understood as instructions issued when the user needs to build a three-dimensional model of a valve; in actual implementation, the above-mentioned model building instructions can be received through three-dimensional modeling software. After receiving the model building instructions, a three-dimensional model of the valve can be built based on the model building instructions. For example, a three-dimensional model of a sleeve valve can be built; it should be noted that, in general, valves are components of a pipeline control system. Therefore, when building a three-dimensional model of a valve, a three-dimensional pipeline network model including the valve is usually built. Specifically, the user can analyze the physical structure of the actual test pipeline and build a three-dimensional pipeline network model through three-dimensional modeling software.

步骤三,接收用户发出的模型导入指令和预设的导入参数。Step three: receiving the model import instruction and preset import parameters issued by the user.

步骤四,基于模型导入指令和预设的导入参数,将阀门三维模型输入至预设仿真软件中,得到与阀门三维模型对应的阀门流场仿真模型。Step 4: Based on the model import instruction and preset import parameters, the valve three-dimensional model is input into the preset simulation software to obtain a valve flow field simulation model corresponding to the valve three-dimensional model.

上述模型导入指令可以理解为当用户需要将上述构建好的阀门三维模型导入至预设仿真软件时所发出的指令;上述导入参数可以是用户设置的网格局部加密、网格尺寸设定等相关参数;在实际实现时,可以基于接收到的模型导入指令和预设的导入参数,将阀门三维模型导入至预设仿真软件中,以进行流场建模并绘制网格,得到上述阀门流场仿真模型;上述预设仿真软件可以是有限元分析前处理软件或流场仿真软件等;如果构建的是三维管网模型,则可以将已建好的三维管网模型导入有限元分析前处理软件或流场仿真软件中进行流场建模并绘制网格。The above-mentioned model import instruction can be understood as an instruction issued when the user needs to import the above-mentioned constructed valve three-dimensional model into the preset simulation software; the above-mentioned import parameters can be relevant parameters such as local mesh encryption and mesh size setting set by the user; in actual implementation, the valve three-dimensional model can be imported into the preset simulation software based on the received model import instruction and the preset import parameters to perform flow field modeling and draw the mesh to obtain the above-mentioned valve flow field simulation model; the above-mentioned preset simulation software can be finite element analysis pre-processing software or flow field simulation software, etc.; if a three-dimensional pipe network model is constructed, the constructed three-dimensional pipe network model can be imported into the finite element analysis pre-processing software or flow field simulation software for flow field modeling and mesh drawing.

步骤S206,基于仿真结果与预设实验结果,计算误差结果。Step S206, calculating the error result based on the simulation result and the preset experimental result.

步骤S208,如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型。Step S208: If the error result meets the preset result, continue to execute the step of receiving the simulation instruction issued by the user until the preset condition is met to obtain the final valve flow field simulation model.

上述预设条件包括:误差结果不符合预设结果,或者,误差结果的数量达到预设数量。在实际实现时,如果误差结果满足精度要求,则可以重复执行接收用户发出的仿真指令的步骤,直至误差结果不再符合预设结果,或者,测试点的数量已足够证明模型精度范围为止,比如,重复测试十次即可认为模型精度满足要求。The above-mentioned preset conditions include: the error result does not meet the preset result, or the number of error results reaches the preset number. In actual implementation, if the error result meets the accuracy requirement, the step of receiving the simulation instruction issued by the user can be repeatedly executed until the error result no longer meets the preset result, or the number of test points is sufficient to prove the model accuracy range. For example, repeating the test ten times can be considered that the model accuracy meets the requirement.

步骤S210,针对每组仿真模拟参数,基于最终阀门流场仿真模型和该组仿真模拟参数,确定该组仿真模拟参数对应的仿真流量。Step S210, for each set of simulation parameters, based on the final valve flow field simulation model and the set of simulation parameters, determining the simulation flow corresponding to the set of simulation parameters.

在确定所构建的阀门流场仿真模型在不同边界条件下均满足精度要求后,分别在10°、20°、…、90°的开度和0.1、0.2、…、0.9的压比下进行流场仿真模拟,得到不同开度和不同压比下的仿真流量,即输出流量,多个输出流量可以以输出流量等距二维插值表的形式表示。After determining that the constructed valve flow field simulation model meets the accuracy requirements under different boundary conditions, flow field simulation is carried out at openings of 10°, 20°, …, 90° and pressure ratios of 0.1, 0.2, …, 0.9, respectively, to obtain the simulated flow rates at different openings and pressure ratios, i.e., the output flow rates. Multiple output flow rates can be represented in the form of an equidistant two-dimensional interpolation table of output flow rates.

步骤S212,基于该组仿真模拟参数对应的仿真流量,确定该组仿真模拟参数对应的流量系数。Step S212, based on the simulated flow corresponding to the set of simulation parameters, determine the flow coefficient corresponding to the set of simulation parameters.

参见图3所示的一种套筒阀的结构示意图,其中,图3(a)为套筒阀的正视图,图3(b)为套筒阀的斜视图,图3(c)为套筒阀的爆炸图;套筒阀是调节阀的一种,套筒阀通过套筒与阀芯之间的相对位移来调节阀门的开度进而影响调节阀的流量。根据相关文献可知套筒阀的流量可通过下式计算:See the structural schematic diagram of a sleeve valve shown in Figure 3, where Figure 3(a) is a front view of the sleeve valve, Figure 3(b) is an oblique view of the sleeve valve, and Figure 3(c) is an exploded view of the sleeve valve; the sleeve valve is a type of regulating valve, and the sleeve valve adjusts the valve opening through the relative displacement between the sleeve and the valve core to affect the flow of the regulating valve. According to relevant literature, the flow of the sleeve valve can be calculated by the following formula:

式中,Qm为套筒阀的质量流量,为套筒阀的流量系数,S为调节阀的流通截面积,T1、P1分别为阀前气流温度和压力,R是已知的理想气体常数。Where Qm is the mass flow rate of the sleeve valve, is the flow coefficient of the sleeve valve, S is the flow cross-sectional area of the regulating valve, T1 and P1 are the temperature and pressure of the gas flow before the valve, and R is the known ideal gas constant.

由于T1、P1在试验中测得,S可以通过阀门开度计算出来,而阀门开度同样可以在实验中测得。因此,在确定仿真模拟参数对应的仿真流量后,根据该公式(1),确定对应的流量系数。Since T1 and P1 are measured in the experiment, S can be calculated by the valve opening, and the valve opening can also be measured in the experiment. Therefore, after determining the simulated flow corresponding to the simulation parameters, the corresponding flow coefficient is determined according to formula (1).

步骤S214,基于每组仿真模拟参数对应的流量系数,确定流量系数集合。Step S214, determining a set of flow coefficients based on the flow coefficients corresponding to each set of simulation parameters.

具体的,在得到每组仿真模拟参数对应的流量系数后,可以得到流量系数集合,该流量系数集合可以以流量系数二维插值表的形式表示。Specifically, after obtaining the flow coefficient corresponding to each set of simulation parameters, a flow coefficient set can be obtained, and the flow coefficient set can be expressed in the form of a two-dimensional interpolation table of flow coefficients.

步骤S216,对流量系数集合进行插值处理,得到处理后的流量系数集合。Step S216, interpolation processing is performed on the flow coefficient set to obtain a processed flow coefficient set.

在实际实现时,如果该流量系数集合以流量系数二维插值表的形式表示,可以对该二维插值表进行外插以填补边界参数;比如,增加阀门压力比分别为0和1时,在不同阀门开度下各自对应的流量系数等。In actual implementation, if the flow coefficient set is represented in the form of a two-dimensional interpolation table of flow coefficients, the two-dimensional interpolation table can be extrapolated to fill in the boundary parameters; for example, when the valve pressure ratio is 0 and 1 respectively, the corresponding flow coefficients at different valve openings are added.

步骤S218,将处理后的流量系数集合和预设输入参数,输入至预设仿真验证模型,得到输出结果。Step S218, input the processed flow coefficient set and preset input parameters into a preset simulation verification model to obtain an output result.

在得到上述插值处理后的流量系数集合后,可以将该处理后的流量系数集合代入软件Matlab/Simulink当中,同其他相应的模块构造出试验的机理模型,并以实际试验时的输入作为仿真输入信号进行仿真,得到仿真流量输出曲线,即上述输出结果,可以将所得到的输出结果与实际试验流量输出曲线进行比对分析,确定相对误差范围并得出结论。After obtaining the flow coefficient set after the above interpolation processing, the processed flow coefficient set can be substituted into the software Matlab/Simulink, and the experimental mechanism model can be constructed with other corresponding modules. The input during the actual test is used as the simulation input signal for simulation to obtain the simulated flow output curve, that is, the above output result. The obtained output result can be compared and analyzed with the actual test flow output curve to determine the relative error range and draw a conclusion.

上述流量系数确定方法,针对每组仿真模拟参数,基于最终阀门流场仿真模型和该组仿真模拟参数,确定该组仿真模拟参数对应的仿真流量。基于该组仿真模拟参数对应的仿真流量,确定该组仿真模拟参数对应的流量系数。基于每组仿真模拟参数对应的流量系数,确定流量系数集合。对流量系数集合进行插值处理,得到处理后的流量系数集合。将处理后的流量系数集合和预设输入参数,输入至预设仿真验证模型,得到输出结果。该方式可以基于最终阀门流场仿真模型和多组仿真模拟参数,确定流量系数,只需要有限数量的实验数据就可以得到满足精度需求的最终阀门流场仿真模型,从而可以减少对实验数据数量的要求,在得到满足精度需求的流量系数的同时,提高流量系数的获取效率。The above-mentioned flow coefficient determination method, for each set of simulation parameters, determines the simulated flow corresponding to the set of simulation parameters based on the final valve flow field simulation model and the set of simulation parameters. Based on the simulated flow corresponding to the set of simulation parameters, determine the flow coefficient corresponding to the set of simulation parameters. Based on the flow coefficient corresponding to each set of simulation parameters, determine the flow coefficient set. Perform interpolation processing on the flow coefficient set to obtain a processed flow coefficient set. Input the processed flow coefficient set and preset input parameters into the preset simulation verification model to obtain an output result. This method can determine the flow coefficient based on the final valve flow field simulation model and multiple sets of simulation parameters. Only a limited number of experimental data are needed to obtain the final valve flow field simulation model that meets the accuracy requirements, thereby reducing the requirements on the number of experimental data, while obtaining a flow coefficient that meets the accuracy requirements, and improving the efficiency of obtaining the flow coefficient.

为进一步理解上述实施例,结合上述公式(1)可知,只需要知道即可获得通过阀门的流量。根据对于阀门流量系数的研究,/>主要取决于阀门前后的压比和阀门开度,因此可将流量系数描述为To further understand the above embodiment, combined with the above formula (1), it can be known that we only need to know The flow rate through the valve can be obtained. According to the research on the valve flow coefficient, /> It mainly depends on the pressure ratio before and after the valve and the valve opening, so the flow coefficient can be described as

公式(2)中,Pr=P2/P1表示阀前后的压比,P2表示阀后的压力,VP表示套筒阀的开度。In formula (2), P r =P 2 /P 1 represents the pressure ratio before and after the valve, P 2 represents the pressure after the valve, and V P represents the opening of the sleeve valve.

因此,为获取在任意压比和任意阀门开度下的阀门流量系数,只需得到f1即可,通过f1就能以Pr和VP这两个易测值来解出阀门的流量系数进而计算出流过阀门的流量。Therefore, to obtain the valve flow coefficient at any pressure ratio and any valve opening, it is only necessary to obtain f1 . Through f1 , the valve flow coefficient can be solved with the two easily measured values of Pr and Vp . The flow rate through the valve can then be calculated.

由于套筒阀的流量特性无法通过数学解析式来精确描述,即上述公式(2)中的f1无法仅通过数学建模得到解析式形式,因此目前工程上常用的套筒阀流量特性是通过数值拟合方法来进行逼近以得到的流量特性近似解,通过将其流量特性代入机理建模软件便可以用于管网控制系统的设计与仿真。本实施例采用的是基于有限实验数据与流场仿真分析相结合的套筒阀的流量特性获取方法。参见图4所示的一种流量特性获取方法的流程图,其详细的具体步骤如下:Since the flow characteristics of the sleeve valve cannot be accurately described by mathematical analytical expressions, that is, f1 in the above formula (2) cannot be obtained in analytical form only by mathematical modeling, the flow characteristics of the sleeve valve commonly used in engineering are approximated by numerical fitting methods to obtain an approximate solution of the flow characteristics. By substituting its flow characteristics into the mechanism modeling software, it can be used for the design and simulation of the pipe network control system. This embodiment adopts a method for obtaining the flow characteristics of the sleeve valve based on the combination of limited experimental data and flow field simulation analysis. Referring to the flowchart of a flow characteristics acquisition method shown in Figure 4, the detailed specific steps are as follows:

Step.1,在选定套筒阀型号后,建立三维模型,具体的,分析实际试验管网的物理结构,通过三维建模软件构建三维管网模型。Step 1. After selecting the sleeve valve model, establish a three-dimensional model. Specifically, analyze the physical structure of the actual test pipeline network and construct a three-dimensional pipeline network model through three-dimensional modeling software.

Step.2,配置流场仿真模型,具体的,将已建好的三维管网模型导入有限元分析前处理软件中进行流场建模并绘制网格,得到仿真模型(对应上述阀门流场仿真模型)。Step 2, configure the flow field simulation model. Specifically, import the built three-dimensional pipe network model into the finite element analysis pre-processing software to perform flow field modeling and draw the grid to obtain the simulation model (corresponding to the above-mentioned valve flow field simulation model).

Step.3,根据实际试验的各项参数为仿真模型设定边界条件、迭代次数、收敛指标等预设参数(对应上述预设的仿真参数)。Step 3, according to the actual test parameters, set the boundary conditions, number of iterations, convergence index and other preset parameters for the simulation model (corresponding to the above preset simulation parameters).

Step.4,进行流场仿真实验,即将Step.3中已设定好的仿真模型进行流场仿真,获取输出流量(对应上述仿真结果)。Step 4, conduct a flow field simulation experiment, that is, conduct a flow field simulation on the simulation model set in Step 3 to obtain the output flow (corresponding to the above simulation results).

Step.5,进行误差精度对比,具体的,通过将Step.4中所得到的输出流量与同条件下的实际实验流量进行比对,得到两者之间的相对误差(对应上述误差结果)。Step.5, compare the error accuracy. Specifically, by comparing the output flow obtained in Step.4 with the actual experimental flow under the same conditions, the relative error between the two is obtained (corresponding to the above error result).

Step.6,判断精度是否满足要求,具体的,判断Step.5中所得到的相对误差是否满足精度要求,若不满足则分析原因修改仿真模型,即进行模型修正;精度不满足要求的原因可能跟三维模型的构建细节有关,也可能跟仿真模型的网格划分有关,具体原因需要具体分析;若满足精度要求则重复Step.2至Step.5的步骤直至精度不再满足要求,或者测试点的数量已足够证明模型精度范围为止。需要说明的是,如果只是阀门压力比改变而阀门开度保持不变,可以不用重新设置网格生成,如果阀门开度改变,由于阀门开度改变会导致流场的形状改变,所以需要重新生成网格。阀门压力比改变通常需要改变该步骤中的边界条件设置,也就是说,如果阀门压力比和阀门开度都有改变,在每次重复执行时,Step.2和Step.3通常会有改变。Step.6, determine whether the accuracy meets the requirements. Specifically, determine whether the relative error obtained in Step.5 meets the accuracy requirements. If not, analyze the reasons and modify the simulation model, that is, perform model correction. The reasons why the accuracy does not meet the requirements may be related to the construction details of the three-dimensional model or the mesh division of the simulation model. The specific reasons need to be analyzed in detail. If the accuracy requirements are met, repeat the steps from Step.2 to Step.5 until the accuracy no longer meets the requirements or the number of test points is sufficient to prove the accuracy range of the model. It should be noted that if only the valve pressure ratio changes and the valve opening remains unchanged, there is no need to reset the mesh generation. If the valve opening changes, the mesh needs to be regenerated because the change in the valve opening will cause the shape of the flow field to change. The change in the valve pressure ratio usually requires changing the boundary condition settings in this step. That is to say, if both the valve pressure ratio and the valve opening change, Step.2 and Step.3 will usually change each time the execution is repeated.

Step.7,按等距阀门开度与阀门压力比进行流场仿真试验;具体的,可以在确定所建仿真模型在不同边界条件下下均满足精度要求后,分别在10°、20°、…、90°的开度和0.1、0.2、…、0.9的压比下进行流场仿真模拟,得到不同开度和不同压比下的关于输出流量等距二维插值表;Step 7, conduct flow field simulation test according to equidistant valve opening and valve pressure ratio; specifically, after determining that the constructed simulation model meets the accuracy requirements under different boundary conditions, flow field simulation can be conducted at openings of 10°, 20°, ..., 90° and pressure ratios of 0.1, 0.2, ..., 0.9, respectively, to obtain an equidistant two-dimensional interpolation table of output flow at different openings and different pressure ratios;

Step.8,通过计算获得等距阀门压力与阀门开度下的阀门流量系数,具体的,通过公式(1)将Step.7中所得到的输出流量等距二维插值表进行计算,得到目标套筒阀的流量系数二维插值表。Step 8, obtain the valve flow coefficient under the equidistant valve pressure and valve opening by calculation. Specifically, the output flow equidistant two-dimensional interpolation table obtained in Step 7 is calculated by formula (1) to obtain the flow coefficient two-dimensional interpolation table of the target sleeve valve.

Step.9,通过外插算法得到完整的套筒阀流量特性,具体的,将Step.8中所得到的流量系数二维插值表进行外插以填补边界参数,代入软件Matlab/Simulink当中,具体可以代入simulink中的look up table模块中,该模块输入阀门压比和开度后,可以输出对应流量。同其他相应的模块构造出试验的机理模型,比如,可以与信号输入模块、信号输出模块或数据处理模块等模块构造出试验的机理模型,当然也可以根据实际需求添加所需的模块,如数据预处理模块等;该机理模型可以理解为整个仿真验证平台模型,用于验证对比通过本方式所得到的阀门流量特性计算出来的阀门流量与实际试验流量之间的误差。并以实际试验时的输入作为仿真输入信号进行仿真,得到仿真流量输出曲线。注意,为了有效验证,本步骤中所使用的实际流量数据要与之前进行测试用的实际流量数据相区分。Step.9, obtain the complete sleeve valve flow characteristics through the extrapolation algorithm. Specifically, the two-dimensional interpolation table of flow coefficient obtained in Step.8 is extrapolated to fill the boundary parameters and substituted into the software Matlab/Simulink. Specifically, it can be substituted into the look up table module in simulink. After the valve pressure ratio and opening are input, the module can output the corresponding flow. The mechanism model of the experiment is constructed with other corresponding modules. For example, the mechanism model of the experiment can be constructed with modules such as signal input module, signal output module or data processing module. Of course, the required modules such as data preprocessing module can also be added according to actual needs; the mechanism model can be understood as the entire simulation verification platform model, which is used to verify and compare the error between the valve flow calculated by the valve flow characteristics obtained by this method and the actual test flow. And the input during the actual test is used as the simulation input signal for simulation to obtain the simulation flow output curve. Note that in order to effectively verify, the actual flow data used in this step should be distinguished from the actual flow data used for the previous test.

需要说明的是,Step4中得到的仿真流量值是用流场仿真软件(flow simulation)得到的,是CFD计算的结果,Step9中得到的仿真流量曲线是用simulink中look up table模块输出并计算得到的。前者用来获取调节阀流量特性表,后者用来验证调节阀流量特性表。It should be noted that the simulated flow value obtained in Step 4 is obtained using flow simulation software and is the result of CFD calculation. The simulated flow curve obtained in Step 9 is output and calculated using the lookup table module in simulink. The former is used to obtain the control valve flow characteristic table, and the latter is used to verify the control valve flow characteristic table.

通过流场仿真软件计算得到调节阀不同压比、开度下的流量并以此计算出调节阀的流量特性表,为验证这个流量特性表的准确性,将其导入simulink中的look up table模块并与其他辅助模块形成验证对比平台。然后以实际试验的压比和开度作为输入,通过look up table模块输出对应流量特性,进而计算出阀门输出流量,这个阀门输出流量就是Step9中的仿真流量输出曲线。The flow rate of the regulating valve under different pressure ratios and openings is calculated by flow field simulation software, and the flow characteristic table of the regulating valve is calculated based on this. In order to verify the accuracy of this flow characteristic table, it is imported into the look up table module in simulink and forms a verification and comparison platform with other auxiliary modules. Then, the pressure ratio and opening of the actual test are used as input, and the corresponding flow characteristics are output through the look up table module, and then the valve output flow is calculated. This valve output flow is the simulation flow output curve in Step 9.

Step.10,将Step.9中所得到的仿真流量输出曲线与实际试验流量输出曲线进行比对分析,确定相对误差范围并得出结论。Step.10, compare and analyze the simulated flow output curve obtained in Step.9 with the actual test flow output curve, determine the relative error range and draw conclusions.

上述方式提供了一种在试验数据有限的情况下获得套筒阀流量特性的通用方法。该方法结合了数据处理与流场仿真的优势,在保障精度的前提下减少了对试验数据数量的依赖,提高了流量特性的获取效率。The above method provides a general method for obtaining the flow characteristics of sleeve valves when the test data is limited. This method combines the advantages of data processing and flow field simulation, reduces the dependence on the number of test data while ensuring accuracy, and improves the efficiency of obtaining flow characteristics.

以下通过一个实际算例对上述方法作进一步说明。首先,参见图5所示的一种套筒阀三维流场仿真模型示意图,根据该型号套筒阀的实际工作环境,在Solidworks软件中建立该套筒阀三维流场仿真模型。The above method is further illustrated by an actual example. First, referring to the schematic diagram of a three-dimensional flow field simulation model of a sleeve valve shown in FIG5 , a three-dimensional flow field simulation model of the sleeve valve is established in Solidworks software according to the actual working environment of the sleeve valve of this model.

由图5所示可知,本实施例为两路气流掺混试验,其中管路一内的气流由套筒阀控制,管路二内的气流流量已知,管路一和管路二内的气流在混合器中掺混后进入管路三。因此,管路三内的气体流量为输出气体流量,通过控制管路一中套筒阀的前后压比以及阀门开度便能间接地控制管路三中的输出气体流量。As shown in FIG5 , this embodiment is a two-way airflow mixing test, in which the airflow in pipeline 1 is controlled by a sleeve valve, the airflow in pipeline 2 is known, and the airflows in pipeline 1 and pipeline 2 are mixed in the mixer and enter pipeline 3. Therefore, the gas flow in pipeline 3 is the output gas flow, and the output gas flow in pipeline 3 can be indirectly controlled by controlling the front-to-back pressure ratio and valve opening of the sleeve valve in pipeline 1.

以下以某次套筒阀流量试验为例简述该试验点的流量对比验证过程。The following briefly describes the flow comparison and verification process of the test point using a sleeve valve flow test as an example.

Step.1,选取一次验证数据如表1所示Step.1, select the verification data as shown in Table 1

表1验证数据Table 1 Verification data

Step.2,根据公式(1)以及阀门开度数据,计算套筒阀的阀芯位移量,并在三维模型中进行相应的配置。该计算过程可以人工换算,也可以通过程序自动计算,这是开度与流通孔面积的映射。其中,流通孔全关对应开度0,流通孔全开对应开度90。Step 2, calculate the displacement of the valve core of the sleeve valve according to formula (1) and the valve opening data, and configure it accordingly in the three-dimensional model. This calculation process can be converted manually or automatically calculated by the program. This is a mapping between the opening and the flow hole area. Among them, the full closing of the flow hole corresponds to an opening of 0, and the full opening of the flow hole corresponds to an opening of 90.

Step.3,在流场仿真软件中进行流场相关设定,包括边界条件设定、目标设定、局部初始网格设定。Step 3, perform flow field related settings in the flow field simulation software, including boundary condition setting, target setting, and local initial grid setting.

Step.4,进行仿真计算,得到流量管的仿真流量,即管路一的套筒阀输出侧的仿真流量。由于管路二流量已知,可以通过管路三的输出减去管路二的输入获得管路一的输出。Step 4, perform simulation calculation to obtain the simulated flow of the flow tube, that is, the simulated flow on the output side of the sleeve valve of pipeline 1. Since the flow of pipeline 2 is known, the output of pipeline 1 can be obtained by subtracting the input of pipeline 2 from the output of pipeline 3.

通过上述流场仿真计算获得通过流量管的流量为48.87kg/s,与实际测量流量的相对误差为The flow rate through the flow tube obtained by the above flow field simulation calculation is 48.87kg/s, and the relative error with the actual measured flow rate is

由此便完成了一个试验点的流量对比验证,为了进一步验证该套筒阀三维流场仿真模型的可信度,从数次实际试验中一共选取了10组满足验证条件的点进行流场仿真验证。根据前文所述的步骤进行流场仿真,仿真输出流量与实际试验输出流量的误差对比如表2所示。Thus, the flow comparison verification of a test point is completed. In order to further verify the credibility of the three-dimensional flow field simulation model of the sleeve valve, a total of 10 groups of points that meet the verification conditions are selected from several actual tests for flow field simulation verification. According to the steps described above, the flow field simulation is carried out, and the error comparison between the simulated output flow and the actual test output flow is shown in Table 2.

表2套筒阀仿真模型验证结果Table 2 Sleeve valve simulation model verification results

由表2中的误差数据可知,仿真流量输出与实际输出之间的相对误差不超过6%,其精度对于管网控制系统是可以接受的,因此本三维流场模型可以用于套筒阀流量特性的获取,需要说明的是,可以根据实际需求确定实际可以接受的相对误差阈值,比如,该相对误差阈值可以是8%等。It can be seen from the error data in Table 2 that the relative error between the simulated flow output and the actual output does not exceed 6%, and its accuracy is acceptable for the pipe network control system. Therefore, this three-dimensional flow field model can be used to obtain the flow characteristics of the sleeve valve. It should be noted that the actual acceptable relative error threshold can be determined according to actual needs. For example, the relative error threshold can be 8%.

下面基于套筒阀的流场仿真模型,以套筒阀开度依次由10°、20°、30°、40°、50°、60°、70°、80°和90°,套筒阀压比依次由0.1、0.2、0.3、0.4、0.5、0.6、0.7、0.8、0.9来设定流场仿真条件进行仿真,流场仿真结果以及基于仿真结果通过公式(1)反算出的对应流量系数如表3(仅给出开度10°和90°的结果)所示。通过流场仿真获得的流量特性关于套筒阀压比和开度的插值表如表4所示,表4中的数据是不同Vp和Pr对应的流量系数,流量系数可以用于计算输出流量,由此便可直接通过输入压比和开度而直接计算出对应的输出流量。通过数值计算获得完整的套筒阀流量系数插值表如表5所示,表5中最后一行全取0,是因为压比为1时不存在气体流动,所以强行设为0,其他增加的数据根据线性外插得到。实际仿真中一般用不到最边缘的数据,因此其精度要求可以相对较低。The following flow field simulation model based on the sleeve valve is simulated by setting the flow field simulation conditions with the sleeve valve openings of 10°, 20°, 30°, 40°, 50°, 60°, 70°, 80° and 90°, and the sleeve valve pressure ratios of 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 and 0.9. The flow field simulation results and the corresponding flow coefficients calculated by formula (1) based on the simulation results are shown in Table 3 (only the results of openings of 10° and 90° are given). The interpolation table of the flow characteristics obtained by flow field simulation with respect to the sleeve valve pressure ratio and opening is shown in Table 4. The data in Table 4 are the flow coefficients corresponding to different Vp and Pr. The flow coefficients can be used to calculate the output flow, thereby directly calculating the corresponding output flow through the input pressure ratio and opening. The complete sleeve valve flow coefficient interpolation table obtained by numerical calculation is shown in Table 5. The last row in Table 5 is all 0 because there is no gas flow when the pressure ratio is 1, so it is forcibly set to 0, and the other added data are obtained by linear interpolation. The most marginal data are generally not used in actual simulation, so the accuracy requirement can be relatively low.

表3套筒阀流量仿真验证结果Table 3 Sleeve valve flow simulation verification results

表4套筒阀流量特性插值表Table 4 Interpolation table of flow characteristics of sleeve valve

表5套筒阀完整流量特性插值表Table 5 Interpolation table of complete flow characteristics of sleeve valve

参见图6所示的一种流量系数随压比与开度的变化的示意图,通过matlab软件生成其插值曲面,图6可以展示直观展示套筒阀的流量系数随压比与开度的变化情况,至此,便得到了完整的套筒阀流量特性插值表,可以直接用于Simulink软件仿真使用。Referring to the schematic diagram of the flow coefficient changing with the pressure ratio and the opening shown in FIG6, the interpolation surface is generated by the matlab software. FIG6 can intuitively show the flow coefficient of the sleeve valve changing with the pressure ratio and the opening. At this point, a complete sleeve valve flow characteristic interpolation table is obtained, which can be directly used for Simulink software simulation.

选取两次实际试验的数据用于该方法的技术效果验证,通过搭建仿真平台将实际试验输出与仿真试验输出相对比,得到流量输出对比分析图和流量相对误差分析图,具体的,参见图7所示的第一次流量试验输出对比示意图、图8所示的第一次流量试验相对误差分析图、图9所示的第二次流量试验输出对比示意图、图10所示第二次流量试验相对误差分析图。Data from two actual tests were selected for verifying the technical effect of the method. By building a simulation platform, the actual test output was compared with the simulation test output to obtain a flow output comparison analysis diagram and a flow relative error analysis diagram. Specifically, see the first flow test output comparison diagram shown in Figure 7, the first flow test relative error analysis diagram shown in Figure 8, the second flow test output comparison diagram shown in Figure 9, and the second flow test relative error analysis diagram shown in Figure 10.

由图7和图9可知,仿真流量输出曲线与实际试验流量的输出曲线大致吻合,仅在流量突变处存在较小偏离,并且稳态误差基本可忽略不计。图8和图10分别表示两次试验中仿真流量与实际试验流量之间的相对误差,由图可以看出,第一次验证试验中的流量相对误差总体处于6%以下,局部最大值不超过8%,满足工程应用需求。As shown in Figures 7 and 9, the output curve of the simulated flow rate is roughly consistent with the output curve of the actual test flow rate, with only a small deviation at the sudden change of flow rate, and the steady-state error is basically negligible. Figures 8 and 10 respectively show the relative error between the simulated flow rate and the actual test flow rate in the two tests. It can be seen from the figures that the relative error of the flow rate in the first verification test is generally below 6%, and the local maximum value does not exceed 8%, which meets the requirements of engineering applications.

上述方式提供了一种在试验数据有限的情况下获取较高精度的套筒阀流量系数的方法;在保障精度的前提下减少了对试验数据数量的依赖;在后续获得更多的试验数据后,可以基于更多的试验数据使得模型精度进一步提高,因此该方法具有随数据完整度的提高而不断加强的特性。The above method provides a method for obtaining a sleeve valve flow coefficient with higher accuracy when the test data is limited; it reduces the dependence on the amount of test data while ensuring accuracy; after obtaining more test data in the future, the model accuracy can be further improved based on more test data. Therefore, this method has the characteristic of being continuously strengthened as the data completeness improves.

本发明实施例提供了一种流量系数确定装置,如图11所示,该装置包括:接收模块110,用于接收用户发出的仿真指令;仿真模块111,用于基于仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,得到仿真结果;计算模块112,用于基于仿真结果与预设实验结果,计算误差结果;第一确定模块113,用于如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型;第二确定模块114,用于基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。An embodiment of the present invention provides a flow coefficient determination device, as shown in Figure 11, the device includes: a receiving module 110, used to receive a simulation instruction issued by a user; a simulation module 111, used to simulate a preset valve flow field simulation model based on the simulation instruction and preset simulation parameters to obtain a simulation result; a calculation module 112, used to calculate an error result based on the simulation result and a preset experimental result; a first determination module 113, used to continue to execute the step of receiving the simulation instruction issued by the user if the error result meets the preset result, until the preset condition is met to obtain the final valve flow field simulation model; a second determination module 114, used to determine the flow coefficient based on the final valve flow field simulation model and preset simulation parameters.

上述流量系数确定装置,在接收到用户发出的仿真指令后,可以基于该仿真指令和预设的仿真参数,对预设的阀门流场仿真模型进行仿真处理,基于得到的仿真结果与预设实验结果,计算误差结果;如果误差结果符合预设结果,继续执行接收用户发出的仿真指令的步骤,直至达到预设条件,得到最终阀门流场仿真模型,基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数。该方式可以基于最终阀门流场仿真模型和预设的仿真模拟参数,确定流量系数,只需要有限数量的实验数据就可以得到满足精度需求的最终阀门流场仿真模型,从而可以减少对实验数据数量的要求,在得到满足精度需求的流量系数的同时,提高流量系数的获取效率。After receiving the simulation instruction issued by the user, the above-mentioned flow coefficient determination device can simulate the preset valve flow field simulation model based on the simulation instruction and the preset simulation parameters, and calculate the error result based on the obtained simulation result and the preset experimental result; if the error result meets the preset result, continue to execute the step of receiving the simulation instruction issued by the user until the preset condition is met, and the final valve flow field simulation model is obtained, and the flow coefficient is determined based on the final valve flow field simulation model and the preset simulation parameters. This method can determine the flow coefficient based on the final valve flow field simulation model and the preset simulation parameters, and only a limited number of experimental data are needed to obtain the final valve flow field simulation model that meets the accuracy requirements, thereby reducing the requirements for the number of experimental data, and while obtaining the flow coefficient that meets the accuracy requirements, the efficiency of obtaining the flow coefficient is improved.

进一步的,还包括阀门流场仿真模型确定模块,该阀门流场仿真模型确定模块用于:接收用户发出的模型构建指令;根据模型构建指令,构建阀门三维模型;接收用户发出的模型导入指令和预设的导入参数;基于模型导入指令和预设的导入参数,将阀门三维模型输入至预设仿真软件中,得到与阀门三维模型对应的阀门流场仿真模型。Furthermore, it also includes a valve flow field simulation model determination module, which is used to: receive a model building instruction issued by a user; build a valve three-dimensional model according to the model building instruction; receive a model import instruction and preset import parameters issued by the user; based on the model import instruction and the preset import parameters, input the valve three-dimensional model into the preset simulation software to obtain a valve flow field simulation model corresponding to the valve three-dimensional model.

进一步的,预设条件包括:误差结果不符合预设结果,或者,误差结果的数量达到预设数量。Furthermore, the preset conditions include: the error result does not meet the preset result, or the number of error results reaches a preset number.

进一步的,仿真模拟参数包括多组,每组仿真模拟参数包括一个阀门开度数据和一个阀门压力比,其中,阀门压力比包括:阀门的阀后压力与阀前压力的比值;第二确定模块还用于:针对每组仿真模拟参数,基于最终阀门流场仿真模型和该组仿真模拟参数,确定该组仿真模拟参数对应的仿真流量;基于该组仿真模拟参数对应的仿真流量,确定该组仿真模拟参数对应的流量系数;基于每组仿真模拟参数对应的流量系数,确定流量系数集合。Furthermore, the simulation parameters include multiple groups, each group of simulation parameters includes a valve opening data and a valve pressure ratio, wherein the valve pressure ratio includes: the ratio of the valve's post-valve pressure to the valve's pre-valve pressure; the second determination module is also used to: for each group of simulation parameters, determine the simulation flow corresponding to the group of simulation parameters based on the final valve flow field simulation model and the group of simulation parameters; determine the flow coefficient corresponding to the group of simulation parameters based on the simulation flow corresponding to the group of simulation parameters; determine the flow coefficient set based on the flow coefficient corresponding to each group of simulation parameters.

进一步的,第二确定模块还用于:对流量系数集合进行插值处理,得到处理后的流量系数集合;将处理后的流量系数集合和预设输入参数,输入至预设仿真验证模型,得到输出结果。Furthermore, the second determination module is also used to: perform interpolation processing on the flow coefficient set to obtain a processed flow coefficient set; input the processed flow coefficient set and preset input parameters into a preset simulation verification model to obtain an output result.

本发明实施例所提供的流量系数确定装置,其实现原理及产生的技术效果和前述流量系数确定方法实施例相同,为简要描述流量系数确定装置实施例部分未提及之处,可参考前述流量系数确定方法实施例中相应内容。The flow coefficient determination device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned flow coefficient determination method embodiment. To briefly describe the parts not mentioned in the flow coefficient determination device embodiment, reference may be made to the corresponding contents in the aforementioned flow coefficient determination method embodiment.

本发明实施例还提供了一种电子设备,参见图12所示,该电子设备包括处理器130和存储器131,该存储器131存储有能够被处理器130执行的机器可执行指令,该处理器130执行机器可执行指令以实现上述流量系数确定方法。An embodiment of the present invention further provides an electronic device, as shown in FIG. 12 , the electronic device includes a processor 130 and a memory 131 , the memory 131 stores machine executable instructions that can be executed by the processor 130 , and the processor 130 executes the machine executable instructions to implement the above-mentioned flow coefficient determination method.

进一步地,图12所示的电子设备还包括总线132和通信接口133,处理器130、通信接口133和存储器131通过总线132连接。Furthermore, the electronic device shown in FIG. 12 further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .

其中,存储器131可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口133(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线132可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Among them, the memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 132 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in Figure 12, but it does not mean that there is only one bus or one type of bus.

处理器130可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器130中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器130可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processor,简称DSP)、专用集成电路(Application Specific IntegratedCircuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器131,处理器130读取存储器131中的信息,结合其硬件完成前述实施例的方法的步骤。The processor 130 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 130. The above processor 130 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the above embodiment in combination with its hardware.

本发明实施例还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,该机器可执行指令促使处理器实现上述流量系数确定方法,具体实现可参见方法实施例,在此不再赘述。An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned flow coefficient determination method. The specific implementation can be found in the method embodiment, which will not be repeated here.

本发明实施例所提供的流量系数确定方法、装置和电子设备的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。The computer program product of the flow coefficient determination method, device and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

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

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

Claims (6)

1. A method of flow coefficient determination, the method comprising:
receiving a simulation instruction sent by a user;
Based on the simulation instruction and preset simulation parameters, performing simulation processing on a preset valve flow field simulation model to obtain a simulation result;
Calculating an error result based on the simulation result and a preset experimental result; wherein, the simulation result comprises: the output flow of the valve; the preset experimental result is an actual experimental flow result under the same condition as the simulation process; the error result is a relative error between the simulation result and a preset experiment result;
If the error result accords with the preset result, continuing to execute the step of receiving the simulation instruction sent by the user until the preset condition is reached, and obtaining a final valve flow field simulation model; the preset conditions include: the error result does not accord with the preset result, or the number of the error results reaches a preset number;
determining the flow coefficient based on the final valve flow field simulation model and preset simulation parameters;
The simulated parameters include a plurality of sets, each set of simulated parameters including a valve opening data and a valve pressure ratio, wherein the valve pressure ratio includes: the ratio of the valve post-valve pressure to the valve pre-valve pressure of the valve;
the step of determining the flow coefficient based on the final valve flow field simulation model and preset simulation parameters comprises the following steps:
determining simulation flow corresponding to each group of simulation parameters based on the final valve flow field simulation model and the group of simulation parameters;
Determining flow coefficients corresponding to the set of simulation parameters based on the simulation flow corresponding to the set of simulation parameters;
and determining a flow coefficient set based on the flow coefficients corresponding to each group of simulation parameters.
2. The method of claim 1, wherein the predetermined valve flow field simulation model is determined by:
receiving a model construction instruction sent by a user;
Constructing a valve three-dimensional model according to the model construction instruction;
Receiving a model import instruction and preset import parameters sent by a user;
And inputting the valve three-dimensional model into preset simulation software based on the model import instruction and preset import parameters to obtain a valve flow field simulation model corresponding to the valve three-dimensional model.
3. The method according to claim 1, wherein the method further comprises:
Performing interpolation processing on the flow coefficient set to obtain a processed flow coefficient set;
and inputting the processed flow coefficient set and preset input parameters into a preset simulation verification model to obtain an output result.
4. A flow coefficient determination device, the device comprising:
The receiving module is used for receiving a simulation instruction sent by a user;
The simulation module is used for carrying out simulation processing on a preset valve flow field simulation model based on the simulation instruction and preset simulation parameters to obtain a simulation result;
The calculation module is used for calculating an error result based on the simulation result and a preset experiment result; wherein, the simulation result comprises: the output flow of the valve; the preset test result is an actual experimental flow result under the same condition as the simulation process; the error result is a relative error between the simulation result and a preset experiment result;
The first determining module is used for continuously executing the step of receiving the simulation instruction sent by the user if the error result accords with the preset result until the preset condition is reached, so as to obtain a final valve flow field simulation model; the preset conditions include: the error result does not accord with the preset result, or the number of the error results reaches a preset number;
the second determining module is used for determining the flow coefficient based on the final valve flow field simulation model and preset simulation parameters;
The simulated parameters include a plurality of sets, each set of simulated parameters including a valve opening data and a valve pressure ratio, wherein the valve pressure ratio includes: the ratio of the valve post-valve pressure to the valve pre-valve pressure of the valve;
The second determining module is further configured to:
determining simulation flow corresponding to each group of simulation parameters based on the final valve flow field simulation model and the group of simulation parameters;
Determining flow coefficients corresponding to the set of simulation parameters based on the simulation flow corresponding to the set of simulation parameters;
and determining a flow coefficient set based on the flow coefficients corresponding to each group of simulation parameters.
5. The apparatus of claim 4, wherein the apparatus further comprises: a valve flow field simulation model determining module;
The valve flow field simulation model determining module is used for: receiving a model construction instruction sent by a user;
Constructing a valve three-dimensional model according to the model construction instruction;
Receiving a model import instruction and preset import parameters sent by a user;
And inputting the valve three-dimensional model into preset simulation software based on the model import instruction and preset import parameters to obtain a valve flow field simulation model corresponding to the valve three-dimensional model.
6. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the flow coefficient determination method of any of claims 1-3.
CN202110895654.5A 2021-08-05 2021-08-05 Method, device and electronic device for determining flow coefficient Active CN113627100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110895654.5A CN113627100B (en) 2021-08-05 2021-08-05 Method, device and electronic device for determining flow coefficient

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110895654.5A CN113627100B (en) 2021-08-05 2021-08-05 Method, device and electronic device for determining flow coefficient

Publications (2)

Publication Number Publication Date
CN113627100A CN113627100A (en) 2021-11-09
CN113627100B true CN113627100B (en) 2024-05-17

Family

ID=78382843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110895654.5A Active CN113627100B (en) 2021-08-05 2021-08-05 Method, device and electronic device for determining flow coefficient

Country Status (1)

Country Link
CN (1) CN113627100B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114154433A (en) * 2021-11-17 2022-03-08 北京航天试验技术研究所 Fluid simulation method based on data comparison analysis
CN115270502B (en) * 2022-08-11 2025-04-25 苏州东菱振动试验仪器有限公司 Method for determining flow coefficient of excitation coil, temperature control method and vibration table
CN117494481B (en) * 2024-01-02 2024-03-19 昆明理工大学 A method and system for simulating the breach of a channel loose rock and soil barrier dam

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677964A (en) * 2016-01-07 2016-06-15 江苏神通阀门股份有限公司 CFD simulation and grid self-adaption based valve flow coefficient calculating method
WO2019132035A1 (en) * 2017-12-28 2019-07-04 Yokogawa Electric Corporation Apparatus, simulation system, method and program
CN111767663A (en) * 2020-05-29 2020-10-13 江苏神通阀门股份有限公司 A convenient calculation method of valve flow coefficient based on CFD simulation
CN111881524A (en) * 2020-06-16 2020-11-03 合肥通用机械研究院有限公司 Valve flow characteristic simulation experiment method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677964A (en) * 2016-01-07 2016-06-15 江苏神通阀门股份有限公司 CFD simulation and grid self-adaption based valve flow coefficient calculating method
WO2019132035A1 (en) * 2017-12-28 2019-07-04 Yokogawa Electric Corporation Apparatus, simulation system, method and program
CN111767663A (en) * 2020-05-29 2020-10-13 江苏神通阀门股份有限公司 A convenient calculation method of valve flow coefficient based on CFD simulation
CN111881524A (en) * 2020-06-16 2020-11-03 合肥通用机械研究院有限公司 Valve flow characteristic simulation experiment method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
变负载流量调节阀电液伺服作动系统研究;姜震;王曦;朱美印等;燃气涡轮试验与研究;第32卷(第5期);全文 *
基于CFD和网格自适应的流量系数计算方法;周晓明;汪志琨;张逸芳;;电子科技大学学报(02);全文 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN113627100B (en) Method, device and electronic device for determining flow coefficient
JP6837328B2 (en) Convergence estimation of nonlinear PDEs and linear solvers
CN113868061B (en) Chip verification method, device and server
CN112836435A (en) Method, device and electronic device for correcting results of coarse mesh numerical simulation
CN111914516B (en) A network data prediction sequence generation method, device, equipment and storage medium
CN111353232A (en) Quantitative Analysis Method and Device for Uncertainty of Thermal-Hydraulic Program Results of Reactor Core
CN118468983B (en) Method and device for constructing digital twin simulation model of power equipment with multiple physical fields
WO2021032177A1 (en) Smart contract processing method and system, computer device, and readable storage medium
Wu Series expansion of the SABR joint density
CN114970396A (en) CFD model correction method considering randomness and cognitive uncertainty
Akar et al. Transient and first passage time distributions of first-and second-order multi-regime Markov fluid queues via ME-fication
CN116522660A (en) Numerical simulation method and system for explosion problem
CN118378499B (en) Method and device for evaluating service life reliability of counter-force turbine of liquid rocket engine
WO2025124166A1 (en) Deep learning-based model simulation prediction method and system
CN114117999A (en) Order reduction method and device for interconnection line mathematical model, electronic equipment and storage medium
CN114239216A (en) Modelica-based hot fluid medium simulation real-time method
CN111313998B (en) Statistical channel model verification method and device
CN119088105A (en) A sterilizer humidification control method, system, equipment and medium
CN118228587A (en) Uncertainty analysis method of core digital twin system based on MCMC
CN117826634A (en) Simulation system multi-task debugging method and device based on intelligent optimization algorithm
Favero et al. Sampling probabilities, diffusions, ancestral graphs, and duality under strong selection
CN119760912B (en) A method and device for determining valve core profile of a regulating valve
Branisavljević et al. Uncertainty reduction in water distribution network modelling using system inflow data
CN113742193A (en) Data analysis method and device, electronic equipment and storage medium
CN110569285B (en) Method and device for calculating background value of soil element

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