A method, device, equipment and medium for determining a friction coefficient of a circular pipeline

By constructing a friction coefficient calculation model based on the Colebrook equation, the computational difficulties of the Colebrook equation were solved by using the linear regression method, thus realizing an efficient method for determining the friction coefficient of circular pipes.

CN120124321BActive Publication Date: 2025-12-23CHINA NUCLEAR IND 23 CONSTR +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510608900.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-12-23
Estimated Expiration
2045-05-13

AI Technical Summary

Technical Problem

Existing methods for solving the Colebrook equation suffer from problems such as non-convergence, difficulty in determining the true solution, and difficulty in calculating the derivative. The application of Moody diagrams in engineering is limited to teaching, resulting in low efficiency in determining the friction coefficient of circular pipes.

Method used

A friction coefficient calculation model is constructed based on the Colebrook equation. The nonlinear equation is transformed into a linear equation through mapping relationship, and the friction coefficient is determined by linear regression and single calculation.

Benefits of technology

It enables efficient determination of the friction coefficient of circular pipes without iteration and trial and error, improving computational efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120124321B_ABST
    Figure CN120124321B_ABST
Patent Text Reader

Abstract

The application provides a circular pipeline friction coefficient determination method, device, equipment and medium, and relates to the technical field of data processing, and comprises the following steps: obtaining circular pipeline parameters and a discrete value step length; inputting the circular pipeline parameters and the discrete value step length into a friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step length; the friction coefficient calculation model is constructed based on a mapping relationship between a friction coefficient equivalent value obtained by a Colebrook equation and the circular pipeline parameters; performing linear regression on each of the discrete friction coefficient equivalent values according to the discrete value step length to obtain a regression equation; and solving the regression equation to obtain the friction coefficient of the circular pipeline. The technical scheme of the embodiment of the application optimizes the solving method of the Colebrook equation, and improves the efficiency of determining the friction coefficient of the circular pipeline.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular to a circular pipeline friction coefficient determination method, device, equipment and medium. BACKGROUND

[0002] The resistance of fluid flowing in a pipeline is divided into two kinds of straight pipe resistance and local resistance. The straight pipe resistance is usually calculated by the Fanning formula, and the friction coefficient λ in the formula is an important parameter for determining the straight pipe resistance. Under turbulent flow conditions, there are two methods for determining the friction coefficient λ, one is to use the Colebrook equation, and the other is to refer to the Moody chart.

[0003] The Colebrook equation is a transcendental equation without analytical solution. In recent years, a number of methods for solving the Colebrook equation have been published at home and abroad, including Matlab, Fortran language, and even VBA UDF custom function version. These methods mostly use loop and iteration algorithms, and have problems such as non-convergent calculation, difficulty in finding real solutions, and difficulty in derivative function calculation. The Moody chart, as a graphical method of the Colebrook equation, is widely used in the engineering field. With the increasing popularity of computational science, such chart solving methods are currently only used for teaching purposes. SUMMARY

[0004] Therefore, the purpose of the present application is to provide a circular pipeline friction coefficient determination method, which constructs a friction coefficient calculation model based on the mapping relationship between the equivalent value of the friction coefficient obtained from the Colebrook equation and the parameters of the circular pipeline, realizes the conversion of the nonlinear equation into a linear equation, and calculates the friction coefficient without trial and error and iteration, thereby improving the efficiency of determining the friction coefficient of the circular pipeline.

[0005] In a first aspect, the present application provides a circular pipeline friction coefficient determination method, comprising:

[0006] obtaining the parameters of the circular pipeline and the discrete value step;

[0007] inputting the parameters of the circular pipeline and the discrete value step into a friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step; the friction coefficient calculation model is constructed based on the mapping relationship between the equivalent value of the friction coefficient obtained from the Colebrook equation and the parameters of the circular pipeline;

[0008] performing linear regression on each of the discrete friction coefficient equivalent values according to the discrete value step to obtain a regression equation;

[0009] solving the regression equation to obtain the friction coefficient of the circular pipeline.

[0010] In the preferable embodiment of the present application, the circular pipeline parameters and the discrete value step length are input into the friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step length, including:

[0011] The circular pipeline parameters are input into the friction coefficient calculation model to obtain a friction coefficient calculation formula;

[0012] The value range of the friction coefficient calculation formula is obtained;

[0013] The value range is discretized according to the discrete value step length to obtain a plurality of discrete value data;

[0014] Each discrete value data is input into the friction coefficient calculation formula to obtain a discrete friction coefficient equivalent value corresponding to each discrete value data.

[0015] In the preferable embodiment of the present application, the circular pipeline parameters include absolute roughness, pipeline inner diameter and Reynolds number.

[0016] In the preferable embodiment of the present application, the friction coefficient calculation model can be described by the following formula:

[0017]

[0018] Wherein, t refers to the friction coefficient equivalent value; ε refers to the absolute roughness; d refers to the pipeline inner diameter; Re refers to the Reynolds number.

[0019] In the preferable embodiment of the present application, the regression equation is solved to obtain the friction coefficient of the circular pipeline, including:

[0020] The regression equation is solved to obtain the friction coefficient equivalent value of the circular pipeline;

[0021] The friction coefficient equivalent value is input into the conversion model to obtain the friction coefficient of the circular pipeline.

[0022] In the preferable embodiment of the present application, the conversion model can be described by the following formula:

[0023]

[0024] Wherein, t refers to the friction coefficient equivalent value; λ refers to the friction coefficient.

[0025] In the preferable embodiment of the present application, the regression equation is solved to obtain the friction coefficient of the circular pipeline, including:

[0026] The discrete valued data and the discrete friction coefficient equivalent value are input into a regression tool of an Excel table, and a regression equation output by the regression tool is obtained.

[0027] In a second aspect, the embodiment of the present application further provides a circular pipeline friction coefficient determination device, comprising:

[0028] A parameter acquisition module is configured to acquire a circular pipeline parameter and a discrete valued step length.

[0029] A discrete module is configured to input the circular pipeline parameter and the discrete valued step length into a friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete valued step length.

[0030] A regression module is configured to perform linear regression on each of the discrete friction coefficient equivalent values according to the discrete valued step length to obtain a regression equation.

[0031] A friction coefficient determination module is configured to solve the regression equation to obtain a friction coefficient of the circular pipeline.

[0032] In a third aspect, the embodiment of the present application further provides an electronic device comprising a processor and a memory, wherein the memory stores computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the circular pipeline friction coefficient determination method of the first aspect.

[0033] In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions, when invoked and executed by a processor, cause the processor to implement the circular pipeline friction coefficient determination method of the first aspect.

[0034] The embodiment of the present application has the following beneficial effects:

[0035] The embodiment of the present application provides a circular pipeline friction coefficient determination method, which constructs a friction coefficient calculation model based on a mapping relationship between a friction coefficient equivalent value obtained by a Colebrook equation and a circular pipeline parameter, converts a nonlinear equation into a linear equation, calculates the friction coefficient without trial and error and iteration, and improves the efficiency of circular pipeline friction coefficient determination.

[0036] Other features and advantages of the present application will be illustrated in the following description, or can be known or determined without doubt from the description, or can be known or determined without doubt from the description, or can be known or determined without doubt from the description.

[0037] In order to make the above objectives, characteristics and advantages of the present application more obvious and easy to understand, the following preferred embodiments are specifically described below, and the accompanying drawings are referred to for a detailed description. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0039] Figure 1 A flow chart of a circular pipeline friction coefficient determination method provided by an embodiment of the present application is shown in the figure.

[0040] Figure 2 A flow chart of another circular pipeline friction coefficient determination method provided by an embodiment of the present application is shown in the figure.

[0041] Figure 3 A structural schematic diagram of a circular pipeline friction coefficient determination device provided by an embodiment of the present application is shown in the figure.

[0042] Figure 4 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the present application will be described clearly and completely below with reference to the drawings. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.

[0044] The resistance of fluid flowing in a pipeline is divided into two kinds, straight pipe resistance and local resistance. The straight pipe resistance is usually calculated by Fanning formula, and the friction coefficient λ in the formula is an important parameter for determining the straight pipe resistance. In the field of engineering design, it is often necessary to calculate the pressure loss of the pipeline, so as to determine the performance and type of the conveying equipment such as pump.

[0045] Under the condition of turbulent flow, there are two methods for determining the friction coefficient λ, one is to determine by Colebrook equation, and the other is to search Moody diagram.

[0046] The Colebrook equation is an empirical equation that was correlated by Colebrook in 1939 from experimental data, which implicitly relates the unknown friction factor to the known Reynolds number and the relative roughness of the pipe as a transcendental equation. But since the equation is a transcendental equation, there is no analytical solution.

[0047] In recent years, many methods for solving the Colebrook equation have been published at home and abroad, including Matlab, Fortran language, and even VBA UDF custom function version. These methods mostly use loop and iteration algorithms. The main problems are:

[0048] (1) It is difficult to determine the initial value, which may lead to non-convergence of calculation;

[0049] (2) It is difficult to determine the interval, which may not find the real solution;

[0050] (3) The original function form is complex, and the calculation of the derivative function is more difficult.

[0051] In 1944, Professor Moody of Princeton University published "Friction Factor in Pipe Flow" and proposed the Moody chart, which describes the relationship between the friction factor, the relative roughness and the Reynolds number in the form of a curve chart. In this way, the corresponding λ value can be found according to the values of ε / d and Re. In the past few decades, the Moody chart has been widely used as a graphical method for solving the Colebrook equation in the engineering field. With the increasing popularity of computing science, such chart-based solving methods are now only used for teaching purposes.

[0052] Based on this, the friction factor determination method provided by the embodiment of the application can construct a friction factor calculation model based on the mapping relationship between the equivalent value of the friction factor obtained by the Colebrook equation and the parameters of the circular pipe, realize the conversion of the nonlinear equation into a linear equation, and calculate the friction factor without trial and error and iteration, thereby improving the efficiency of determining the friction factor of the circular pipe.

[0053] In order to facilitate the understanding of the embodiment, first, a circular pipe friction factor determination method disclosed by the embodiment of the application is introduced in detail.

[0054] Embodiment 1

[0055] The embodiment of the application provides a circular pipe friction factor determination method, Figure 1 A flowchart of the circular pipe friction factor determination method provided by the embodiment of the application is shown in FIG. 1. As shown in the figure, the circular pipe friction factor determination method can include the following steps: Figure 1

[0056] ​Step S101, obtain the circular pipe parameter and the discrete value step length.

[0057] The circular pipe parameter refers to the parameter of the circular pipe for which the friction coefficient needs to be determined. The circular pipe parameter at least includes the absolute roughness, the pipe inner diameter and the Reynolds number. Wherein, when the circular pipe is a casing pipe, the circular pipe is divided into an inner pipe and an outer pipe, at this time, the liquid flows through the annulus between the inner pipe and the outer pipe, at this time, the pipe inner diameter is the diameter of the annulus between the inner pipe and the outer pipe. When the circular pipe is not a casing pipe, the pipe diameter is the diameter of the circular inner wall.

[0058] For example, a casing pipe heat exchanger, the inner pipe and the outer pipe are both smooth pipes, the diameters are φ30mm×2.5mm and φ56mm×3mm respectively. The water with an average temperature of 40℃ flows through the annulus of the casing pipe at a flow rate of 10m³ per hour. At this time, the annulus diameter d=(56-3×2-30)=20mm=0.02m.

[0059] Another example, the diameter of the circular pipe is φ30mm×2.5mm, the water with an average temperature of 40℃ flows through the pipe at a flow rate of 10m³ per hour. At this time, the pipe inner diameter d=30-2.5×2=25mm=0.025m.

[0060] The discrete value step length refers to the distance between two adjacent discrete points when the discrete friction coefficient equivalent value is discretized. The discrete value step length can be set according to the actual situation.

[0061] Specifically, the circular pipe parameter and the discrete value step length of the circular pipe for which the friction coefficient needs to be determined can be queried.

[0062] Step S102, input the circular pipe parameter and the discrete value step length into the friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step length.

[0063] The friction coefficient calculation model is constructed based on the mapping relationship between the friction coefficient equivalent value and the circular pipe parameter obtained from the Colebrook equation. It can be understood that the Colebrook equation can be described as follows:

[0064]

[0065] Wherein, λ refers to the friction coefficient; ε refers to the absolute roughness; d refers to the pipe inner diameter; Re refers to the Reynolds number. Through substitution processing of the Colebrook equation, the substitute the letter t, thereby establishing the mapping relationship between the friction coefficient equivalent value and the circular pipe parameter, and constructing the friction coefficient calculation model.

[0066] The friction coefficient calculation model can be described by the following formula:

[0067]

[0068] Wherein, t refers to the friction coefficient equivalent value; ε refers to the absolute roughness; d refers to the pipe diameter; Re refers to the Reynolds number. At this time, the image of f(t) can be approximated as a straight line.

[0069] Specifically, the circular pipe parameters are input into the friction coefficient calculation model, and f(t) is discretized according to the discrete value step, that is, on the image of f(t), a discrete point is taken every discrete value step interval, and a plurality of discrete points are obtained. The value of f(t) corresponding to each discrete point is taken as a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step.

[0070] Step S103, linear regression is performed on each of the discrete friction coefficient equivalent values according to the discrete value step to obtain a regression equation.

[0071] According to the discrete value step, the regression equation is obtained by performing linear regression on the value of f(t) and the value of t corresponding to each discrete point. For example, the regression equation can be calculated by the least square method principle.

[0072] Step S104, solving the regression equation to obtain the friction coefficient of the circular pipe.

[0073] Solving the regression equation determines the intersection point of the image of the regression equation and the abscissa axis. The abscissa of the intersection point is the solution of the regression equation, that is, t. Since there is a conversion relationship between the friction coefficient and the friction coefficient equivalent value, that is, t= Therefore, the friction coefficient of the circular pipe can be obtained according to the conversion relationship.

[0074] Specifically, the friction coefficient of the circular pipe can be calculated by steps A1-A2:

[0075] Step A1, solving the regression equation to obtain the regression friction coefficient equivalent value;

[0076] Step A2, inputting the regression friction coefficient equivalent value into the conversion model to obtain the friction coefficient of the circular pipe.

[0077] Wherein, the regression friction coefficient equivalent value refers to the abscissa of the intersection point of the regression equation and the abscissa axis.

[0078] The conversion model can be described by the following formula:

[0079]

[0080] Wherein, t refers to the friction coefficient equivalent value; λ refers to the friction coefficient.

[0081] The circular pipeline friction coefficient determination method provided by the embodiment of the application constructs a friction coefficient calculation model based on the mapping relationship between the friction coefficient equivalent value obtained by the Colebrook equation and the circular pipeline parameters, realizes the conversion of a nonlinear equation into a linear equation, can calculate the friction coefficient without trial and error and iteration, and improves the efficiency of determining the circular pipeline friction coefficient.

[0082] Embodiment 2

[0083] The embodiment of the application further provides another circular pipeline friction coefficient determination method; the method is realized on the basis of the method in the above embodiment; the method mainly describes the specific implementation mode of inputting the circular pipeline parameters and the discrete value step length into the friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step length.

[0084] Figure 2 The flowchart of another circular pipeline friction coefficient determination method provided by the embodiment of the application is shown in Figure 2 The circular pipeline friction coefficient determination method can include the following steps:

[0085] Step S201, obtaining the circular pipeline parameters and the discrete value step length.

[0086] Exemplarily, a set of tube heat exchanger, the inner tube and the outer tube are both smooth tubes, and the diameters are φ30mm*2.5mm and φ56mm*3mm respectively. Water with an average temperature of 40℃ flows through the annulus of the tube at a flow rate of 10m³ per hour, at this time, the annulus diameter d=(56-3*2-30)=20mm=0.02m, the absolute roughness ε=0.01mm, and the Reynolds number Re=66400.

[0087] In Excel, the cell D4 is inputted with 0.02, the cell D5 is inputted with 0.00001, and the cell D6 is inputted with 66400.

[0088] Step S202, inputting the circular pipeline parameters into the friction coefficient calculation model to obtain a friction coefficient calculation formula.

[0089] The circular pipeline parameters are substituted into the friction coefficient calculation model, the absolute roughness, the pipeline inner diameter and the Reynolds number in the friction coefficient calculation model are valued, and a friction coefficient calculation formula is obtained.

[0090] On the basis of the above example, the friction coefficient calculation formula is:

[0091]

[0092] Step S203, obtaining the value range of the friction coefficient calculation formula.

[0093] The value range of the friction coefficient calculation formula refers to the range of the equivalent value of the friction coefficient in the friction coefficient calculation formula, and the range of the equivalent value of the friction coefficient can be determined according to actual conditions.

[0094] On the basis of the previous example, the value range of the friction coefficient calculation formula can be 0.1 to 10.

[0095] Step S204, discretizing the value range according to the discrete value step length to obtain a plurality of discrete value data.

[0096] The discrete value data refers to the data points selected according to the discrete value step length in the value range.

[0097] On the basis of the previous example, the value range is 0.1 to 10, the value step length is 0.1, and the obtained discrete value data is 0.1, 0.2, 0.3, 0.4, …, 9.6, 9.7, 9.8, 9.9, and 10.

[0098] Step S205, inputting each of the discrete value data into the friction coefficient calculation formula to obtain a discrete friction coefficient equivalent value corresponding to each of the discrete value data.

[0099] Specifically, each discrete value data is input as the equivalent value of the friction coefficient t into the friction coefficient calculation formula to obtain the discrete friction coefficient equivalent value corresponding to the discrete value data, that is, .

[0100] On the basis of the previous example, in Excel, cell B11 inputs 0.1, indicating that it is filled down to 10 with a step length of 0.1. Cell C11 inputs the formula: =B11+2*LOG10($D$5 / 3.7 / $D$4+2.51*B11 / $D$6) to calculate the corresponding f(x) value. The formula in cell C11 is the friction coefficient calculation formula.

[0101] Step S206, inputting the discrete value data and the discrete friction coefficient equivalent value into the regression tool of the Excel table to obtain the regression equation output by the regression tool.

[0102] Specifically, the regression tool in the data analysis tool is opened in Excel, and the cells storing the discrete value data and the discrete friction data equivalent value are input into the regression tool. The regression tool outputs the corresponding regression equation.

[0103] On the basis of the last example, open the "regression" tool in the data analysis tool in Excel, set the Y value input area as C10:C110 and the X value input area as B10:B110, and use the least square method to obtain the regression equation y = -7.57714 + 1.1086 x based on the discrete value data and the discrete friction coefficient, wherein x refers to the equivalent value of the friction coefficient after regression.

[0104] In step S207, the regression equation is solved to obtain the friction coefficient of the circular pipeline.

[0105] On the basis of the last example, let y = 0, and solve x = 6.83487, and further calculate the friction coefficient λ = 0.02141. Wherein, the result calculated by using the Newton iteration method is 0.02154, and the relative error is 0.6%. As can be seen, the error between the friction coefficient obtained by the circular pipeline friction coefficient determination method provided in the embodiment of the application and the friction coefficient obtained by the prior art is small, and therefore, the circular pipeline friction coefficient determination method provided in the embodiment of the application can ensure accuracy while avoiding the trial and error calculation in the prior art, simplifying the calculation process of the Colebrook equation by using simple one-way calculation, and improving the determination efficiency of the circular pipeline friction coefficient.

[0106] Embodiment 3

[0107] Corresponding to the above method embodiment, the embodiment of the application provides a circular pipeline friction coefficient determination device, Figure 3 A structural schematic diagram of the circular pipeline friction coefficient determination device provided in the embodiment of the application is shown in Figure 3 As shown in the figure, the circular pipeline friction coefficient determination device can include:

[0108] The parameter acquisition module 301 is configured to acquire the circular pipeline parameters and the discrete value step length;

[0109] The discrete module 302 is configured to input the circular pipeline parameters and the discrete value step length into a friction coefficient calculation model to obtain a plurality of discrete friction coefficient equivalent values corresponding to the discrete value step length; the friction coefficient calculation model is constructed based on the mapping relationship between the friction coefficient equivalent value obtained based on the Colebrook equation and the circular pipeline parameters;

[0110] The regression module 303 is configured to perform linear regression on each of the discrete friction coefficient equivalent values according to the discrete value step length to obtain a regression equation;

[0111] The friction coefficient determination module 304 is configured to solve the regression equation to obtain the friction coefficient of the circular pipeline.

[0112] The circular pipeline friction coefficient determination device provided by the embodiment of the application realizes transformation of a nonlinear equation into a linear equation, and the friction coefficient can be calculated without trial and error and iteration, thereby improving the efficiency of determining the circular pipeline friction coefficient.

[0113] In some embodiments, the discrete module 302 is further configured to:

[0114] input the circular pipeline parameters into the friction coefficient calculation model to obtain a friction coefficient calculation formula;

[0115] obtain a value range of the friction coefficient calculation formula;

[0116] discretize the value range according to the discrete value step to obtain a plurality of discrete value data;

[0117] input each of the discrete value data into the friction coefficient calculation formula to obtain a discrete friction coefficient equivalent value corresponding to each of the discrete value data.

[0118] In some embodiments, the circular pipeline parameters include absolute roughness, pipeline inner diameter and Reynolds number.

[0119] In some embodiments, the friction coefficient calculation model can be described by the following formula:

[0120]

[0121] wherein t represents the friction coefficient equivalent value, ε represents the absolute roughness, d represents the pipeline inner diameter, and Re represents the Reynolds number.

[0122] In some embodiments, the friction coefficient determination module 304 is further configured to:

[0123] solve the regression equation to obtain a regression friction coefficient equivalent value;

[0124] input the regression friction coefficient equivalent value into the conversion model to obtain the friction coefficient of the circular pipeline.

[0125] In some embodiments, the conversion model can be described by the following formula:

[0126]

[0127] wherein t represents the friction coefficient equivalent value, and λ represents the friction coefficient.

[0128] In some embodiments, the regression module 303 is further configured to:

[0129] The discrete valued data and the discrete friction coefficient equivalent value are input into a regression tool of an Excel table, and a regression equation output by the regression tool is obtained.

[0130] The device provided by the embodiment of the present application has the same implementation principle and generated technical effects as the foregoing method embodiment, and for brevity of description, the part not mentioned in the device embodiment can be referred to the corresponding content in the foregoing method embodiment.

[0131] Embodiment 4

[0132] The embodiment of the present application further provides an electronic device for running the circular pipeline friction coefficient determination method. Figure 4 As shown in the structural schematic diagram of an electronic device, the electronic device comprises a memory 400 and a processor 401, wherein the memory 400 is used for storing one or more computer instructions, and the one or more computer instructions are executed by the processor 401 to realize the circular pipeline friction coefficient determination method.

[0133] Further, Figure 4 As shown in the structural schematic diagram of an electronic device, the electronic device further comprises a bus 402 and a communication interface 403, and the processor 401, the communication interface 403 and the memory 400 are connected through the bus 402.

[0134] The memory 400 can contain a high-speed random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 403 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 402 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 the convenience of representation, Figure 4 Only one bidirectional arrow is used in the foregoing description, but it does not mean that there is only one bus or only one type of bus.

[0135] The processor 401 can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 401 or the instruction in the form of software. The processor 401 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; 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. Each method, step and logic block diagram disclosed in the embodiment of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiment of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in 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 in the art. The storage medium is located in the memory 400, and the processor 401 reads the information in the memory 400, and combines the hardware to complete the steps of the method of the above embodiment.

[0136] The embodiment of the present application also provides a computer readable storage medium, the computer readable storage medium stores computer executable instructions, when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to implement the above-mentioned circular pipeline friction coefficient determination method. For specific implementation, please refer to the method embodiment, which will not be repeated here.

[0137] The computer program product for determining the friction coefficient of the circular pipeline provided by the embodiment of the present application comprises a computer readable storage medium storing non-volatile program codes executable by the processor. The instructions included in the program codes can be used to execute the method described in the foregoing method embodiment. For specific implementation, please refer to the method embodiment, which will not be repeated here.

[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

[0139] In several embodiments provided by the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. The described device embodiments are merely schematic, and for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the among different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electric, mechanical or other forms.

[0140] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. In actual implementation, some or all of the units can be selected according to the actual needs to achieve the purposes of the embodiments of the present application.

[0141] In addition, each function unit in the various embodiments of the present application can be integrated in one processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated in one unit.

[0142] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0143] Finally, it should be noted that the above-described embodiments are merely specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, but not to limit the present application, and the protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still make modifications or easily think of changes to the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features therein, within the technical range disclosed by the present application. The modifications, changes or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for determining the friction coefficient of a circular pipe, characterized in that, include: Obtain the parameters of the circular pipe and the discrete value step size; the circular pipe parameters include absolute roughness, pipe inner diameter and Reynolds number; the discrete value step size refers to the distance between two adjacent discrete points when discretizing the equivalent value of the discrete friction coefficient, and the discrete value step size is set according to the actual situation; The circular pipe parameters and discrete value step size are input into the friction coefficient calculation model to obtain multiple discrete friction coefficient equivalent values ​​corresponding to the discrete value step size. The friction coefficient calculation model is constructed based on the mapping relationship between the equivalent value of the friction coefficient obtained from the Colebrook equation and the parameters of the circular pipe. Based on the discrete value step size, linear regression is performed on the equivalent values ​​of each discrete friction coefficient to obtain the regression equation; Solving the regression equation yields the friction coefficient of the circular pipe; By performing substitution on the Colebrook equation, By substituting the variable with the letter 't', a mapping relationship is established between the equivalent value of the friction coefficient and the parameters of the circular pipe, thus constructing a friction coefficient calculation model; λ refers to the friction coefficient, and t refers to the equivalent value of the friction coefficient.

2. The method according to claim 1, characterized in that, The step involves inputting the circular pipe parameters and the discrete value step size into the friction coefficient calculation model to obtain multiple discrete equivalent friction coefficient values ​​corresponding to the discrete value step size, including: The parameters of the circular pipe are input into the friction coefficient calculation model to obtain the friction coefficient calculation formula; Obtain the range of values ​​for the friction coefficient calculation formula; According to the discrete value step size, the value range is discretized to obtain multiple discrete value data; The discrete values ​​are input into the friction coefficient calculation formula to obtain the discrete friction coefficient equivalent value corresponding to each discrete value.

3. The method according to claim 1, characterized in that, The friction coefficient calculation model can be described by the following formula: Where t refers to the equivalent value of the friction coefficient; ε refers to the absolute roughness; d refers to the inner diameter of the pipe; and Re refers to the Reynolds number.

4. The method according to claim 1, characterized in that, Solving the regression equation to obtain the friction coefficient of the circular pipe includes: Solving the regression equation yields the equivalent value of the friction coefficient after regression. The equivalent value of the regressed friction coefficient is input into the transformation model to obtain the friction coefficient of the circular pipe.

5. The method according to claim 4, characterized in that, The conversion model is described by the following formula: Where t refers to the equivalent value of the friction coefficient; λ refers to the friction coefficient.

6. The method according to claim 2, characterized in that, The step of performing linear regression on the equivalent values ​​of each discrete friction coefficient according to the discrete value step size to obtain the regression equation includes: Input the discrete value data and the equivalent value of the discrete friction coefficient into the regression tool of an Excel spreadsheet to obtain the regression equation output by the regression tool.

7. A device for determining the friction coefficient of a circular pipe, characterized in that, The method for determining the friction coefficient of a circular pipe according to any one of claims 1 to 6 includes: The parameter acquisition module is used to acquire the parameters of the circular pipe and the discrete value step size; the circular pipe parameters include absolute roughness, pipe inner diameter and Reynolds number; the discrete value step size refers to the distance between two adjacent discrete points when discretizing the equivalent value of the discrete friction coefficient, and the discrete value step size is set according to the actual situation; The discrete module is used to input the circular pipe parameters and discrete value step size into the friction coefficient calculation model to obtain multiple discrete equivalent friction coefficient values ​​corresponding to the discrete value step size; the friction coefficient calculation model is constructed based on the mapping relationship between the equivalent friction coefficient values ​​obtained from the Colebrook equation and the circular pipe parameters; The regression module is used to perform linear regression on the equivalent values ​​of each discrete friction coefficient according to the discrete value step size, and obtain the regression equation. The friction coefficient determination module is used to solve the regression equation to obtain the friction coefficient of the circular pipe.

8. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the method for determining the friction coefficient of a circular pipe as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for determining the friction coefficient of a circular pipe as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Computer aided design system and method used for determining pumping head

    CN102024069A

  • Control system in a gas pipeline network to satisfy pressure constraints

    CN108730773A