Pipeline flow determination method and device suitable for green chemical production

By constructing segmented pipeline flow function and adjustment function in a dynamic process simulation system, the local instability problem of pipeline model when dealing with dynamic pressure difference is solved, and the accuracy and stability of the calculation are improved.

CN119558214APending Publication Date: 2025-03-04BEIJING ZHITONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411587476.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In dynamic process simulation systems, there is local instability in the pipeline model when dealing with dynamic pressure differences, resulting in low calculation accuracy and stability.

Method used

By obtaining steady-state and dynamic fluid parameters, the dynamic pipeline resistance coefficient is determined, and the first and second pipeline flow functions in segments are constructed. Combined with the adjustment function, the target pipeline flow function is constructed to determine the dynamic flow of the fluid in the pipeline.

Benefits of technology

The accuracy and stability of the pipeline model are improved, local instability is avoided, and the interpretability and robustness of the system are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119558214A_ABST
    Figure CN119558214A_ABST
Patent Text Reader

Abstract

The invention relates to a pipeline flow determination method and device suitable for green chemical production, and is applied to the technical field of pipeline flow calculation, and the method comprises the steps: obtaining the steady-state pressure difference of fluid at an inlet and an outlet of a pipeline under a steady-state working condition, the steady-state flow of fluid in the pipeline, and steady-state fluid molecular parameters; obtaining the dynamic pressure difference of the fluid at the inlet and the outlet of the pipeline and the dynamic fluid molecule parameters of the fluid in the pipeline at any moment t; according to the steady-state pressure intensity difference, the steady-state flow, the steady-state fluid molecule parameters and the dynamic fluid molecule parameters, the dynamic pipeline resistance coefficient of the pipeline is determined; constructing a first pipeline flow function and a second pipeline flow function according to the dynamic pressure difference and the dynamic pipeline resistance coefficient, and constructing a target pipeline flow function according to the first pipeline flow function and the second pipeline flow function; and substituting the dynamic pressure difference into the target pipeline flow function, and determining the flow of the fluid in the pipeline at any moment t. The accuracy and stability of the pipeline model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of pipeline flow calculation, and in particular to a pipeline flow determination method and device suitable for the production of green chemical products. Background Art

[0002] In the dynamic process simulation system, by establishing a pipeline model and collecting relevant parameters of the fluid at the pipeline inlet and outlet, the flow rate of the fluid in the pipeline in the pipeline model can be calculated. The pipeline model is not only the physical basis for connecting the various parts of the system, but also the key to ensure the accuracy and practicality of the simulation.

[0003] In the related technology, the flow rate of the fluid in the pipeline can be calculated based on the pressure difference between the fluid at the pipeline inlet and the pipeline outlet. Since the pipeline model of the dynamic process simulation system adds a time variable, it can be expressed as a number of differential equations. The solution process of the pipeline model is to solve the differential-algebraic equations. When the pressure difference between the fluid at the pipeline inlet and the pipeline outlet tends to 0, the first-order derivative of the pressure difference tends to ∞. When the integral is calculated, the rate of change at this point is very large, causing local instability to the system, resulting in low accuracy, stability and practicality of the entire dynamic process simulation system. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a pipeline flow determination method, device, electronic device and storage medium suitable for the production of green chemical products.

[0005] According to a first aspect of the present application, a pipeline flow determination method applicable to green chemical production is provided, comprising:

[0006] Obtain the steady-state pressure difference of the fluid at the pipeline inlet and outlet, the steady-state flow rate of the fluid in the pipeline, and the steady-state fluid molecular parameters under steady-state conditions;

[0007] Obtain the dynamic pressure difference of the fluid at the pipeline inlet and outlet at any time t and the dynamic fluid molecular parameters of the fluid in the pipeline;

[0008] Determining a dynamic pipeline resistance coefficient of the pipeline according to the steady-state pressure difference, the steady-state flow rate, the steady-state fluid molecular parameters and the dynamic fluid molecular parameters;

[0009] According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a segmented first pipeline flow function f(ΔP) and a second pipeline flow function g(ΔP) are constructed, wherein: g(ΔP) is a linear function of ΔP, ΔP ≤ ΔP * , and g(ΔP) is at ΔP=ΔP * The value at ΔP* is the preset pressure difference threshold, r is the dynamic pipeline resistance coefficient, and ΔP is the dynamic pressure difference;

[0010] Constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP);

[0011] Substitute the dynamic pressure difference into the target pipeline flow function to determine the flow rate of the fluid in the pipeline at any time t.

[0012] Optionally, constructing a second pipeline flow function g(ΔP) according to the dynamic pressure difference and the dynamic pipeline resistance coefficient includes:

[0013] According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a second pipeline flow function is constructed:

[0014] Optionally, constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP) includes:

[0015] According to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), the target pipeline flow function is constructed

[0016] Optionally, constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP) includes:

[0017] According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function is constructed Where, R(ΔP-ΔP * ) and ΔP-ΔP * Positively correlated;

[0018] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function:

[0019] F(ΔP)=g(ΔP)+R(ΔP-ΔP * )(f(ΔP)-g(ΔP)),ΔP>0.

[0020] Optionally, according to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * ),include:

[0021] According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function is constructed

[0022] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function, including:

[0023] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function

[0024] Among them, b is an adjustable parameter.

[0025] Optionally, according to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * ),include:

[0026] According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * )=Sigmoid(c(ΔP-ΔP * ));

[0027] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function, including:

[0028] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function F(ΔP)=g(ΔP)+Sigmoid(c(ΔP-ΔP * ))(f(ΔP)-g(ΔP)),ΔP>0;

[0029] Among them, c is an adjustable parameter.

[0030] Optionally, constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP) includes:

[0031] According to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), the target pipeline flow function is constructed

[0032] in,

[0033] According to a second aspect of the present application, a pipeline flow determination device suitable for green chemical production is provided, comprising:

[0034] A steady-state data acquisition module is used to obtain the steady-state pressure difference of the fluid at the pipeline inlet and outlet, the steady-state flow rate of the fluid in the pipeline, and the steady-state fluid molecular parameters under steady-state working conditions;

[0035] A dynamic data acquisition module is used to obtain the dynamic pressure difference of the fluid at the pipeline inlet and outlet at any time t and the dynamic fluid molecular parameters of the fluid in the pipeline;

[0036] A dynamic pipeline resistance coefficient determination module, used to determine the dynamic pipeline resistance coefficient of the pipeline according to the steady-state pressure difference, the steady-state flow rate, the steady-state fluid molecular parameters and the dynamic fluid molecular parameters;

[0037] The segmented pipeline flow function construction module is used to construct a segmented first pipeline flow function f(ΔP) and a second pipeline flow function g(ΔP) according to the dynamic pressure difference and the dynamic pipeline resistance coefficient, wherein: g(ΔP) is a linear function of ΔP, ΔP ≤ ΔP * , and g(ΔP) is at ΔP=ΔP * The value at ΔP * is the preset pressure difference threshold, r is the dynamic pipeline resistance coefficient, and ΔP is the dynamic pressure difference;

[0038] A target pipeline flow function construction module, used to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP);

[0039] The pipeline flow determination module is used to substitute the dynamic pressure difference into the target pipeline flow function to determine the flow of the fluid in the pipeline at any time t.

[0040] Optionally, the segmented pipeline flow function construction module is specifically used to construct the second pipeline flow function g(ΔP) in the following manner:

[0041] According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a second pipeline flow function is constructed:

[0042] Optionally, the target pipeline flow function construction module is specifically used to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP).

[0043] Optionally, the target pipeline flow function construction module is specifically used to construct a regulation function according to the dynamic pressure difference and the preset pressure difference threshold. Where, R(ΔP-ΔP * ) and ΔP-ΔP * positively correlated; and

[0044] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function:

[0045] F(ΔP)=g(ΔP)+R(ΔP-ΔP * )(f(ΔP)-g(ΔP)),ΔP>0.

[0046] Optionally, the target pipeline flow function construction module is specifically used to construct a regulation function according to the dynamic pressure difference and the preset pressure difference threshold. as well as,

[0047] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function

[0048] Among them, b is an adjustable parameter.

[0049] Optionally, the target pipeline flow function construction module is specifically used to construct an adjustment function R(ΔP-ΔP) according to the dynamic pressure difference and the preset pressure difference threshold. * )=Sigmoid(c(ΔP-ΔP * ));

[0050] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function F(ΔP)=g(ΔP)+Sigmoid(c(ΔP-ΔP * ))(f(ΔP)-g(ΔP)),ΔP>0;

[0051] Among them, c is an adjustable parameter.

[0052] Optionally, the target pipeline flow function construction module is specifically used to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP).

[0053] in,

[0054] According to a third aspect of the present application, an electronic device is provided, comprising: a processor, wherein the processor is configured to execute a computer program stored in a memory, wherein the computer program implements the method described in the first aspect when executed by the processor.

[0055] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect is implemented.

[0056] According to a fifth aspect of the present application, a computer program product is provided. When the computer program product is run on a computer, the computer is enabled to execute the method described in the first aspect.

[0057] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:

[0058] By establishing a segmented first pipeline flow function and a second pipeline flow function, when the dynamic pressure difference is large, the first pipeline flow function is used, and when the dynamic pressure difference is small (for example, approaching 0), the second pipeline flow function is used. The second pipeline flow function is a linear function of the dynamic pressure difference, so the first-order derivative of the dynamic pressure difference is a finite value. When the integral is calculated, the rate of change at this point is also a normal finite value. Starting from the physical principles and combining mathematical laws, the accuracy and stability of the pipeline model are improved, thereby ensuring the accuracy, stability and practicality of the entire dynamic process simulation system. At the same time, the interpretability and robustness are stronger. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0061] Figure 1 A schematic diagram of a pipeline model;

[0062] Figure 2 A flow chart of a pipeline flow determination method applicable to green chemical production in an embodiment of the present application;

[0063] Figure 3 is the image of the tanh function;

[0064] Figure 4 is the image of the Sigmoid function;

[0065] Figure 5 This is a schematic diagram of a structure of a pipeline flow determination device suitable for green chemical product production in an embodiment of the present application;

[0066] Figure 6 A schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0068] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0069] The process variables in the steady-state process simulation system remain unchanged over time. The pipeline model can be expressed as a set of nonlinear algebraic equations. The model solution process is to solve this set of nonlinear algebraic equations. In the dynamic process simulation system, the process variables change over time. The dynamic process simulation system can describe how the process variables change over time and how they change under external interference. In theory, the calculation of the dynamic process simulation system never stops. If any parameter fluctuates, the entire system state at that moment needs to be recalculated. Any parameter and its calculation results can be intuitively displayed on the relationship curve of parameter change over time, so as to analyze and study the system.

[0070] The pipeline model in the dynamic process simulation system is as follows Figure 1 As shown, P1, z1, and u1 are the pressure, vertical height, and flow velocity of the fluid at the pipeline inlet, respectively; P2, z2, and u2 are the pressure, vertical height, and flow velocity of the fluid at the pipeline outlet, respectively.

[0071] Based on the pipeline model, using the fluid flow model Bernoulli equation and Fanning formula, the following formula can be obtained: According to this formula, the flow rate of the fluid in the pipeline can be calculated, and r is the dynamic pipeline resistance coefficient. When ΔP→0, the first-order derivative of F with respect to ΔP, F′→∞, when integrated, the rate of change at this point is very large, causing local instability to the system.

[0072] How to improve the inaccuracy, poor stability and limitations of the pipeline model, make the pipeline model more in line with physical laws, improve the accuracy and stability of the pipeline model, and ensure the accuracy, stability and practicality of the entire dynamic process simulation system has become a technical problem that needs to be solved urgently.

[0073] See also Figure 2 , Figure 2A flow chart of a pipeline flow determination method applicable to green chemical production in an embodiment of the present application may include the following steps:

[0074] Step S202, obtaining the steady-state pressure difference of the fluid at the pipeline inlet and outlet, the steady-state flow rate of the fluid in the pipeline, and the steady-state fluid molecular parameters under steady-state working conditions.

[0075] Steady-state fluid molecular parameters, including steady-state fluid molecular weight and steady-state fluid density. Steady-state pressure difference, steady-state flow rate and steady-state fluid molecular parameters are used to calculate the dynamic pipe resistance coefficient.

[0076] Step S204, obtaining the dynamic pressure difference of the fluid at the pipeline inlet and outlet at any time t and the dynamic fluid molecular parameters of the fluid in the pipeline.

[0077] Similar to the steady-state fluid molecular parameters, the dynamic fluid molecular parameters include dynamic fluid molecular weight and dynamic fluid density. Dynamic fluid molecular parameters are also used to calculate the dynamic pipe resistance coefficient.

[0078] Step S206, determining the dynamic pipeline resistance coefficient of the pipeline according to the steady-state pressure difference, the steady-state flow rate, the steady-state fluid molecular parameters and the dynamic fluid molecular parameters.

[0079] According to the steady-state pressure difference and steady-state flow rate, the pipeline resistance coefficient under steady-state conditions can be obtained, that is, the steady-state pipeline resistance coefficient. For details, please refer to the following formula: F' is the steady-state flow rate, P1' is the steady-state pressure of the fluid at the pipeline inlet, P2' is the steady-state pressure of the fluid at the pipeline outlet, and r' is the steady-state pipeline resistance coefficient.

[0080] According to the following formula: The dynamic pipeline resistance coefficient r can be calculated;

[0081] Where M' is the steady-state fluid molecular weight, ρ' is the steady-state fluid density, M is the dynamic fluid molecular weight, and ρ is the dynamic fluid density.

[0082] Step S208, constructing a segmented first pipeline flow function f(ΔP) and a second pipeline flow function g(ΔP) according to the dynamic pressure difference and the dynamic pipeline resistance coefficient, wherein: g(ΔP) is a linear function of ΔP, ΔP ≤ ΔP * , and g(ΔP) is at ΔP=ΔP * The value at ΔP * is the preset pressure difference threshold, which can be adjusted according to the steady-state values ​​of multiple states, r is the dynamic pipeline resistance coefficient, and ΔP is the dynamic pressure difference.

[0083] When the dynamic pressure difference is large, the flow rate obeys the law of square of resistance, and when the dynamic pressure difference is small, the flow rate can be processed according to the linear law, which can be adjusted according to the actual modeling scenario. Therefore, the segmented first pipeline flow function and the second pipeline flow function can be constructed, and the flow rate can be calculated according to the first pipeline flow function and the second pipeline flow function.

[0084] Optionally, a second pipeline flow function can be constructed based on the dynamic pressure difference and the dynamic pipeline resistance coefficient: It can be seen that the first pipeline flow function and the second pipeline flow function are in the range of ΔP = ΔP * When ΔP→0, the first-order derivative F′ of ΔP is is a finite constant value. When the integral is calculated, the rate of change at this point will not be very large, avoiding local instability in the system.

[0085] Step S210: construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP).

[0086] In some embodiments, the target pipeline flow function can be constructed directly according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP). That is, the flow rate is calculated directly using piecewise functions. As mentioned above, by setting parameters, F(ΔP) can be made to be within ΔP. * Points continuous.

[0087] It should be noted that in In the case of ΔP, F(ΔP) is * The point derivative is discontinuous, which will lead to instability in the numerical calculation of the model. To avoid this problem, a regulation function can be constructed based on the dynamic pressure difference and the preset pressure difference threshold:

[0088] Where, R(ΔP-ΔP * ) and ΔP-ΔP * Positively correlated;

[0089] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function:

[0090] F(ΔP)=g(ΔP)+R(ΔP-ΔP * )(f(ΔP)-g(ΔP)),ΔP>0.

[0091] This application is for R(ΔP-ΔP *) is not limited in its specific form. Since the target pipeline flow function is not a piecewise function, the derivative is continuous within the range of ΔP>0.

[0092] Optionally, a regulation function is constructed according to the dynamic pressure difference and the preset pressure difference threshold. According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function The image of the tanh function is as follows Figure 3 As shown in Figure 2, where b is an adjustable parameter.

[0093] Optionally, according to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * )=Sigmoid(c(ΔP-ΔP * ));

[0094] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function F(ΔP)=g(ΔP)+Sigmoid(c(ΔP-ΔP * ))(f(ΔP)-g(ΔP)),ΔP>0; the image of the Sigmoid function is as follows Figure 4 As shown in Figure 2, c is an adjustable parameter.

[0095] Combination Figure 3 and Figure 4 It can be seen that after the introduction of tanh or sigmoid function, F(ΔP) is * Continuous at point, F(ΔP) at ΔP * The first-order derivative of the point is also continuous. At the same time, when ΔP>ΔP * , ΔP-ΔP * As the value gradually increases, F(ΔP) approaches f(ΔP); when ΔP≤ΔP * , ΔP>ΔP * As the value gradually decreases, F(ΔP) approaches g(ΔP). By adjusting the value of b or c, the rate at which F(ΔP) approaches f(ΔP) or g(ΔP) can be adjusted. The larger the value of b or c, the faster the rate at which F(ΔP) approaches f(ΔP) or g(ΔP).

[0096] It should be noted that when ΔP<0, F(ΔP) has no solution, that is, the pipeline model can only calculate the pipeline flow in one direction, and cannot calculate when the pipeline flows in reverse. Optionally, in order to achieve bidirectional flow, the target pipeline flow function can be constructed based on the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP)

[0097] in,

[0098] In some embodiments, a target pipeline flow function may also be constructed:

[0099] F(ΔP)=sgn(ΔP)g(|ΔP|)+R(|ΔP|-ΔP * )(f(|ΔP|)-g(|ΔP|)). According to this target pipeline flow function, it not only supports bidirectional flow, but also improves the accuracy and stability of the pipeline model.

[0100] Step S212, substituting the dynamic pressure difference into the target pipeline flow function to determine the flow rate of the fluid in the pipeline at any time t.

[0101] The pipeline flow determination method of the embodiment of the present application establishes a segmented first pipeline flow function and a second pipeline flow function. When the dynamic pressure difference is large, the first pipeline flow function is used, and when the dynamic pressure difference is small (for example, tending to 0), the second pipeline flow function is used. The second pipeline flow function is a linear function of the dynamic pressure difference, and therefore the first-order derivative of the dynamic pressure difference is a finite value. When the integral is calculated, the rate of change at this point is also a normal finite value. In addition, by constructing an adjustment function, the target pipeline flow function F(ΔP) can be adjusted at ΔP * The first-order derivative of the point is also continuous, avoiding the instability of the numerical calculation of the model. Starting from the physical principles and combining mathematical laws, the accuracy and stability of the pipeline model are improved, thereby ensuring the accuracy, stability and practicality of the entire dynamic process simulation system. At the same time, it is more interpretable and robust.

[0102] Corresponding to the above method embodiment, the present application embodiment also provides a pipeline flow determination device suitable for green chemical production, see Figure 5 , the pipeline flow determination device 500 includes:

[0103] The steady-state data acquisition module 502 is used to obtain the steady-state pressure difference of the fluid at the pipeline inlet and outlet, the steady-state flow rate of the fluid in the pipeline, and the steady-state fluid molecular parameters under steady-state working conditions;

[0104] The dynamic data acquisition module 504 is used to acquire the dynamic pressure difference of the fluid at the pipeline inlet and outlet at any time t and the dynamic fluid molecular parameters of the fluid in the pipeline;

[0105] A dynamic pipeline resistance coefficient determination module 506 is used to determine the dynamic pipeline resistance coefficient of the pipeline according to the steady-state pressure difference, the steady-state flow rate, the steady-state fluid molecular parameters and the dynamic fluid molecular parameters;

[0106] The segmented pipeline flow function construction module 508 is used to construct the segmented first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP) according to the dynamic pressure difference and the dynamic pipeline resistance coefficient, wherein: g(ΔP) is a linear function of ΔP, ΔP ≤ ΔP * , and g(ΔP) is at ΔP=ΔP * The value at ΔP * is the preset pressure difference threshold, r is the dynamic pipeline resistance coefficient, and ΔP is the dynamic pressure difference;

[0107] A target pipeline flow function construction module 510 is used to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP);

[0108] The pipeline flow determination module 512 is used to substitute the dynamic pressure difference into the target pipeline flow function to determine the flow rate of the fluid in the pipeline at any time t.

[0109] Optionally, the segmented pipeline flow function construction module 508 is specifically configured to construct the second pipeline flow function g(ΔP) in the following manner:

[0110] According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, the second pipeline flow function is constructed:

[0111] Optionally, the target pipeline flow function construction module 510 is specifically configured to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP).

[0112] Optionally, the target pipeline flow function construction module 510 is specifically used to construct a regulation function according to the dynamic pressure difference and the preset pressure difference threshold. Where, R(ΔP-ΔP * ) and ΔP-ΔP * positively correlated; and

[0113] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function:

[0114] F(ΔP)=g(ΔP)+R(ΔP-ΔP * )(f(ΔP)-g(ΔP)),ΔP>0.

[0115] Optionally, the target pipeline flow function construction module 510 is specifically used to construct a regulation function according to the dynamic pressure difference and the preset pressure difference threshold. as well as,

[0116] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function

[0117]

[0118] Among them, b is an adjustable parameter.

[0119] Optionally, the target pipeline flow function construction module 510 is specifically used to construct an adjustment function R(ΔP-ΔP) according to the dynamic pressure difference and the preset pressure difference threshold. * )=Sigmoid(c(ΔP-ΔP * ));as well as,

[0120] According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function F(ΔP)=g(ΔP)+Sigmoid(c(ΔP-ΔP * ))(f(ΔP)-g(ΔP)),ΔP>0;

[0121] Among them, c is an adjustable parameter.

[0122] Optionally, the target pipeline flow function construction module 510 is specifically configured to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP).

[0123] in,

[0124] The specific details of each module or unit in the above device have been described in detail in the corresponding method, so they will not be repeated here.

[0125] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0126] An embodiment of the present application also provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the pipeline flow determination method applicable to the production of green chemicals in the above-mentioned example implementation.

[0127] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.

[0128] like Figure 6 As shown, the electronic device may include: a processor 602 , a communication interface 604 , a memory 606 , and a communication bus 608 .

[0129] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .

[0130] The communication interface 604 is used to communicate with other electronic devices or servers.

[0131] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above method embodiment.

[0132] Specifically, the program 610 may include program codes, which include computer operation instructions.

[0133] The processor 602 may be a central processing unit, or a specific integrated circuit, or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0134] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0135] The program 610 can be specifically used to enable the processor 602 to execute the steps in the above-mentioned pipeline flow determination method embodiment applicable to the production of green chemicals.

[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding process descriptions in the aforementioned method embodiments and will not be repeated here.

[0137] A computer-readable storage medium is also provided in an embodiment of the present application, on which a computer program is stored. When the computer program is executed by a processor, the pipeline flow determination method applicable to the production of green chemicals is implemented.

[0138] It should be noted that the computer-readable storage medium shown in the present application may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency, etc., or any suitable combination of the above.

[0139] In an embodiment of the present application, a computer program product is also provided. When the computer program product is run on a computer, the computer executes the above-mentioned pipeline flow determination method applicable to the production of green chemical products.

[0140] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0141] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A pipeline flow determination method suitable for green chemical production, characterized in that: include: Obtain the steady-state pressure difference of the fluid at the pipeline inlet and outlet, the steady-state flow rate of the fluid in the pipeline, and the steady-state fluid molecular parameters under steady-state conditions; Obtain the dynamic pressure difference of the fluid at the pipeline inlet and outlet at any time t and the dynamic fluid molecular parameters of the fluid in the pipeline; Determining a dynamic pipeline resistance coefficient of the pipeline according to the steady-state pressure difference, the steady-state flow rate, the steady-state fluid molecular parameters and the dynamic fluid molecular parameters; According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a segmented first pipeline flow function f(ΔP) and a second pipeline flow function g(ΔP) are constructed, wherein: g(ΔP) is a linear function of ΔP, ΔP ≤ ΔP * , and g(ΔP) is at ΔP=ΔP * The value at ΔP * is the preset pressure difference threshold, r is the dynamic pipeline resistance coefficient, and ΔP is the dynamic pressure difference; Constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP); Substitute the dynamic pressure difference into the target pipeline flow function to determine the flow rate of the fluid in the pipeline at any time t.

2. The method according to claim 1, characterized in that According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a second pipeline flow function g(ΔP) is constructed, including: According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a second pipeline flow function is constructed:

3. The method according to claim 1, characterized in that Constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), including: According to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), the target pipeline flow function is constructed 4. The method according to claim 1, characterized in that: Constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), including: According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function is constructed Where, R(ΔP-ΔP * ) and ΔP-ΔP * Positively correlated; According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function: F(ΔP)=g(ΔP)+R(ΔP-ΔP * )(f(ΔP)-g(ΔP)),ΔP>0。 5. The method according to claim 4, characterized in that According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * ),include: According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function is constructed According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function, including: According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function Among them, b is an adjustable parameter.

6. The method according to claim 4, characterized in that According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * ),include: According to the dynamic pressure difference and the preset pressure difference threshold, a regulation function R(ΔP-ΔP * )=Sigmoid(c(ΔP-ΔP * )); According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function, including: According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function F(ΔP)=g(ΔP)+Sigmoid(c(ΔP-ΔP * ))(f(ΔP)-g(ΔP)),ΔP>0; Among them, c is an adjustable parameter.

7. The method according to claim 1, characterized in that Constructing a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), including: According to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP), the target pipeline flow function is constructed in, 8. A pipeline flow determination device suitable for green chemical production, characterized in that: The device comprises: A steady-state data acquisition module is used to obtain the steady-state pressure difference of the fluid at the pipeline inlet and outlet, the steady-state flow rate of the fluid in the pipeline, and the steady-state fluid molecular parameters under steady-state working conditions; A dynamic data acquisition module is used to obtain the dynamic pressure difference of the fluid at the pipeline inlet and outlet at any time t and the dynamic fluid molecular parameters of the fluid in the pipeline; A dynamic pipeline resistance coefficient determination module, used to determine the dynamic pipeline resistance coefficient of the pipeline according to the steady-state pressure difference, the steady-state flow rate, the steady-state fluid molecular parameters and the dynamic fluid molecular parameters; The segmented pipeline flow function construction module is used to construct a segmented first pipeline flow function f(ΔP) and a second pipeline flow function g(ΔP) according to the dynamic pressure difference and the dynamic pipeline resistance coefficient, wherein: g(ΔP) is a linear function of ΔP, ΔP ≤ ΔP * , and g(ΔP) is at ΔP=ΔP * The value at ΔP * is the preset pressure difference threshold, r is the dynamic pipeline resistance coefficient, and ΔP is the dynamic pressure difference; A target pipeline flow function construction module, used to construct a target pipeline flow function according to the first pipeline flow function f(ΔP) and the second pipeline flow function g(ΔP); The pipeline flow determination module is used to substitute the dynamic pressure difference into the target pipeline flow function to determine the flow of the fluid in the pipeline at any time t.

9. The device according to claim 8, characterized in that The segmented pipeline flow function construction module is specifically used to construct the second pipeline flow function g(ΔP) in the following manner: According to the dynamic pressure difference and the dynamic pipeline resistance coefficient, a second pipeline flow function is constructed:

10. The device according to claim 8, characterized in that The target pipeline flow function construction module is specifically used to construct a regulation function according to the dynamic pressure difference and the preset pressure difference threshold. Where, R(ΔP-ΔP * ) and ΔP-ΔP * positively correlated; and According to the first pipeline flow function f(ΔP), the second pipeline flow function g(ΔP) and the adjustment function R(ΔP-ΔP * ), construct the target pipeline flow function: F(ΔP)=g(ΔP)+R(ΔP-ΔP * )(f(ΔP)-g(ΔP)),ΔP>0。