T-shaped three-way simulation test method and device and electronic equipment
The T-type tee simulation method and device enhance simulation accuracy and industrial modeling by structurally dividing the tee into a control body and connecting pipes, incorporating specific equations, and connecting with other pipeline components for precise testing across different conditions.
Patent Information
- Application Number
- CN202411182261.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-27
AI Technical Summary
Existing methods for simulating and testing T-type tees in pipeline systems lack accuracy and fail to account for various working conditions, leading to inadequate support for industrial modeling and optimization.
A T-type tee simulation method and device that structurally divides the tee into a control body and three connecting pipes, incorporating a main equation group (mass, energy, and momentum conservation equations) and a constitutive equation group (wall friction and structural loss equations), allowing connection with other pipeline components to form a simulation system for accurate testing under different conditions.
Improves simulation accuracy, enables reusability and scalability of the model, and provides reliable support for industrial modeling applications by accurately simulating and testing target parameters under varying working conditions.
Smart Images

Figure CN119066869A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to T-type tee design technology, and more particularly to a T-type tee simulation test method, device and electronic equipment. Background Art
[0002] T-joint is a kind of connector used in pipeline system, which has T shape and is usually used to divert fluid from one pipeline to two different pipelines, or to converge fluids in two pipelines into one pipeline. It is widely used in industrial and civil fields, such as in water supply systems, HVAC systems and chemical production processes.
[0003] As a simple and effective pipeline connection component, the performance of T-type tee is affected by many factors, such as fluid properties, pipeline geometry, pipeline materials and manufacturing process, so it is necessary to simulate and test T-type tee to ensure the safety and efficient operation of the entire pipeline system. It can be seen that there is an urgent need for a method that can effectively simulate and test T-type tee. Summary of the invention
[0004] The embodiments of the present invention provide a T-type three-way simulation test method, device and electronic equipment to better conform to the actual physical situation, improve the simulation accuracy, and be applicable to simulation tests under different working conditions, thereby achieving the reusability and scalability of the model and providing reliable support for industrial modeling applications.
[0005] In a first aspect, an embodiment of the present invention provides a T-type three-way simulation test method, comprising:
[0006] Constructing a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes a mass conservation equation, an energy conservation equation, and a momentum conservation equation of the T-type tee, and the constitutive equation group includes a wall friction equation and a structural loss equation of the T-type tee;
[0007] The T-type tee model is connected with other pipeline components to construct a simulation system, and based on the simulation system, a simulation test is performed on the target parameters of the T-type tee under the target working conditions to obtain the target parameter values corresponding to the target parameters, wherein the target working conditions are characterized based on the fluid flow direction of the T-type tee.
[0008] In a second aspect, an embodiment of the present invention further provides a T-type three-way simulation test device, comprising:
[0009] A T-type tee model construction module is used to construct a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee;
[0010] The T-type tee simulation test module is used to connect the T-type tee model with other pipeline components to build a simulation system, and based on the simulation system, simulate and test the target parameters of the T-type tee under the target working conditions to obtain the target parameter values corresponding to the target parameters, wherein the target working conditions are characterized based on the fluid flow direction of the T-type tee.
[0011] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0012] one or more processors;
[0013] A memory for storing one or more programs;
[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement the T-type three-way simulation test method provided by any embodiment of the present invention.
[0015] One embodiment of the above invention has the following advantages or beneficial effects:
[0016] By constructing a T-type tee model that is more in line with the actual physical situation, the T-type tee is structurally divided into a control body and three connecting pipes. The T-type tee model includes a main equation group and a constitutive equation group. The main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee; the T-type tee model is connected with other pipeline components to build a complete simulation system, and based on the simulation system, the target parameters of the T-type tee under different target working conditions can be accurately simulated and tested to obtain the target parameter values corresponding to the target parameters, thereby improving the simulation accuracy, and being applicable to simulation tests under different working conditions, realizing the reusability and scalability of the model, and providing reliable support for industrial modeling applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of a T-type three-way simulation test method provided by an embodiment of the present invention;
[0019] Figure 2 It is a schematic diagram of the structure of a T-type three-way model involved in one embodiment of the present invention;
[0020] Figure 3 is a test schematic diagram of a simulation system involved in an embodiment of the present invention;
[0021] Figure 4 It is a schematic diagram of a structural block diagram of a T-type three-way model involved in an embodiment of the present invention;
[0022] Figure 5 It is a flow chart of another T-type three-way simulation test method provided by one embodiment of the present invention;
[0023] Figure 6 It is a schematic diagram of four working conditions of a T-type tee involved in an embodiment of the present invention;
[0024] Figure 7 It is a structural schematic diagram of a T-type three-way simulation test device provided by an embodiment of the present invention;
[0025] Figure 8 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] Figure 1 This is a flow chart of a T-type tee simulation test method provided by an embodiment of the present invention. This embodiment is applicable to the case of performing simulation test on a T-type tee. The method can be executed by a T-type tee simulation test device, which can be implemented by software and / or hardware and integrated into an electronic device. Figure 1 As shown, the method specifically comprises the following steps:
[0028] S110. Construct a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group. The main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee.
[0029] Among them, see Figure 2 The T-type tee is composed of a control body connected to three connecting pipes, and the inlet and outlet interface angles differ by 90 degrees. When building the model, the complex set of equations is decomposed into the main set of equations and the constitutive set of equations containing the source terms. The fluid in the T-type tee can be liquid or gas. The following assumptions are made in the modeling process of the T-type tee: ① The liquid or gas inside is a continuous medium; ②
[0030] Density and velocity are average values on the flow cross section; ③ The pressure is evenly distributed on any pipe cross section; ④ It is assumed that the velocity of the intersection joint is perpendicular to the flow path of the fluid; ⑤ There are different branches of confluence and branch diversion in the multi-pass; ⑥ In actual processing, the conservation of front and rear mass flow is used for processing, that is, the ratio of the cross-sectional area of the front and rear pipes is used to distribute the mass flow. In the T-type tee, only the wall friction loss and structural loss can be considered to construct the constitutive equation group. Wall friction refers to the effect of the pipe wall on the fluid when the fluid flows. Wall friction can be divided into liquid phase wall friction and gas phase wall friction. Structural loss refers to the deformation loss borne by the straight pipe and side pipe in the T-type tee. Since structural loss will cause local resistance pressure drop, it is necessary to use the structural loss equation to calculate the local resistance pressure drop caused by shape loss. The wall friction pressure drop caused by friction loss is calculated using the wall friction equation.
[0031] Specifically, by structurally dividing the T-type three-way into a control body and three connecting pipes, the fluid flow behavior can be effectively managed and controlled. The T-type three-way model is based on the mass flow conservation principle of the inlet and outlet pipes, and uses the ratio of the cross-sectional area of the pipes to distribute the mass flow for the inlet and outlet connecting pipes. In this embodiment, based on the Modelica language, the T-type three-way model can be decomposed into a main equation group and a constitutive equation group for modeling respectively.
[0032] For example, in the main set of equations, the mass conservation equation is constructed as:
[0033]
[0034] The energy conservation equation constructed is:
[0035]
[0036] The momentum conservation equation constructed is:
[0037]
[0038] Wherein, subscript k represents gas or liquid (gas subscript g, liquid subscript f); w represents wall; α k is the volume percentage; ρ k is the density; u k is the speed; h k is the specific enthalpy; p is the pressure; Γ k is the amount of interfacial material exchange; F wk is the wall friction pressure drop caused by friction loss; F a is the local resistance pressure drop caused by shape loss; q wk Transfer heat to the wall.
[0039] In the constitutive equation group, the constructed wall friction equation can use the Lockhart-Martinelli model to calculate the total pressure drop of the two phases, and then apply the Chisholm phase separation friction theory to obtain the gas-liquid phase separation pressure drop, so as to obtain the wall friction pressure drop caused by friction loss.
[0040] The constructed structural loss equation can be used to calculate the local resistance coefficient of the T-type tee, which is obtained by interpolation based on the area ratio and flow ratio of the pipeline inlet and outlet. After calculating the local resistance coefficient K, the local resistance pressure drop F caused by shape loss can be determined by the following equation a :
[0041]
[0042] Among them, ρ g and ρ f They are respectively the fluid vapor phase density and liquid phase density, in kg / m 3 ; The vapor phase here refers to water vapor; v g and v f are the fluid vapor phase flow rate and liquid phase flow rate, in m / s; α is the mass gas content. If the mass gas content is 0, the above equation can be simplified to:
[0043] Exemplarily, in the main equation group, the main control volume is expressed in the form of a control body, and the sub-control volume is expressed in the form of a connecting pipe; the control body calculates the mass conservation equation and the energy conservation equation, and each connecting pipe calculates the momentum conservation equation. At the same time, the control body passes the calculated parameter values to each connecting pipe, and each connecting pipe passes the calculated parameter values to the control body. The two are coupled and iteratively completed to complete the calculation of the main equation group and the constitutive equation group.
[0044] Among them, the main control volume is a real cavity in the physical world, such as how much fluid a bucket can hold; the secondary control volume is a virtual concept for numerical solution, which is used to calculate the flow transfer relationship between the center points of the front and rear control bodies, that is, to calculate the flow rate or mass flow rate. By iteratively solving the main equation group and the constitutive equation group based on the configured initial parameters, the simulation results of the T-type tee after each iteration are obtained.
[0045] S120, connecting the T-type tee model with other pipeline components to construct a simulation system, and based on the simulation system, performing simulation tests on target parameters of the T-type tee under target working conditions to obtain target parameter values corresponding to the target parameters, wherein the target working conditions are characterized based on the fluid flow direction of the T-type tee.
[0046] Among them, other pipeline components refer to other pipeline accessories in the pipeline system except T-type tees. Other pipeline components can also be characterized by the model after modeling. The simulation system refers to the simulation model of the pipeline system. The target operating condition refers to the current operating condition of the T-type tee. Different operating conditions correspond to different fluid flow directions. There are a total of 8 operating conditions based on the fluid flow direction of the three interfaces in the T-type tee, but since in fact all interfaces cannot be inlets or outlets, 2 operating conditions are excluded, and there are actually only 6 operating conditions. The target parameter refers to the parameter that needs to be simulated and tested in the T-type tee. The target parameter value refers to the specific value of the target parameter, that is, the simulation result. For example, the target parameters may include: the specific enthalpy h of the T-type tee k , pressure p and speed u k The target parameters can be obtained by solving the main equations.
[0047] Specifically, after completing the T-type three-way modeling, the T-type three-way model can be connected with other pipeline components using connectors in the form of instantiated components to form a simulation system. Figure 3, the simulation system is in a one-in-two-out condition, and the T-type three-way model, three conventional pipeline components, one flow inlet component and two pressure outlet components are connected in sequence to construct a simulation system. Before the performance test of the T-type three-way is performed based on the simulation system, the simulation initial value and simulation parameter information of the T-type three-way need to be configured. For example, the simulation initial value is set to: the inner diameter of the straight pipe is 20mm, the inlet elevation and outlet elevation are 0mm, the length is 100mm, the inner diameter of the side pipe is 10mm, the pressure is 1MPa, the fluid temperature is 25degC, the mass gas content is 0 and the inlet flow rate is 1kg / s. The simulation parameter information is set to: the simulation time is 10s, the interval length is 1, the output time step is 0.01s, the Euler solution algorithm is used and the calculation accuracy is 0.001. Based on the set simulation initial value and simulation parameter information, the simulation system starts to run, so that the simulation system can obtain the target parameter values corresponding to the target parameters of the T-type three-way under the target working conditions by iteratively solving the main equation group and the constitutive equation group. Since the target operating condition can be dynamically controlled over time, simulation tests can be carried out under different operating conditions. While ensuring computational efficiency and accuracy, the reusability and scalability of the model are achieved. At the same time, this method provides reliable support for industrial modeling applications and provides a useful reference for the design and optimization of pipeline accessories in the engineering field.
[0048] For example, see Figure 4 , the simulation test process in the simulation system is: passing the environmental parameters configured in the global variable model, such as the ambient temperature, to the wall friction equation and the structural loss equation in the constitutive equation group, and solving the wall friction equation and the structural loss equation to obtain the wall friction pressure drop caused by friction loss and the local resistance pressure drop caused by shape loss, and passing the local resistance pressure drop and the wall friction pressure drop to the mass conservation equation, energy conservation equation and momentum conservation equation in the main equation group for solution, and obtaining the simulation results of the specific enthalpy, pressure and velocity in the current iteration process, thereby realizing the simulation test of the T-type three-way model. The fluid interface model transfers the specific enthalpy, pressure and velocity calculated by other pipeline components to the main equation group in the T-type three-way model, and the main equation group also transfers the specific enthalpy, pressure and velocity calculated by the three-way to other pipeline components. Among them, the global variable model and the fluid interface model are the basic models that have been constructed, which are used to form a complete pipeline system with the T-type three-way model.
[0049] The technical solution of this embodiment is to construct a T-type tee model that is more in line with the actual physical situation. The T-type tee is structurally divided into a control body and three connecting pipes. The T-type tee model includes a main equation group and a constitutive equation group. The main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee. The T-type tee model is connected with other pipeline components to build a complete simulation system. Based on the simulation system, the target parameters of the T-type tee under different target working conditions can be accurately simulated and tested to obtain the target parameter values corresponding to the target parameters, thereby improving the simulation accuracy. It can also be applicable to simulation tests under different working conditions, thereby realizing the reusability and scalability of the model and providing reliable support for industrial modeling applications.
[0050] Figure 5 This is a flow chart of another T-type three-way simulation test method provided by an embodiment of the present invention. Based on the above embodiments, this embodiment describes the specific process of the simulation test in detail. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0051] See also Figure 5 Another T-type three-way simulation test method provided in this embodiment specifically includes the following steps:
[0052] S510, constructing a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes a mass conservation equation, an energy conservation equation, and a momentum conservation equation of the T-type tee, and the constitutive equation group includes a wall friction equation and a structural loss equation of the T-type tee;
[0053] S520, connect the T-type three-way model with other pipeline components to build a simulation system.
[0054] S530. In each iteration of the simulation system, the structural loss equation is solved based on the target working condition corresponding to the T-type tee to obtain the local resistance coefficient of the T-type tee under the target working condition, and the local resistance pressure drop caused by the shape loss is determined based on the local resistance coefficient.
[0055] Among them, the local resistance coefficient may include: a first local resistance coefficient corresponding to the first interface in the T-type tee, a second local resistance coefficient corresponding to the second interface, and a third local resistance coefficient corresponding to the third interface, wherein the first interface and the third interface refer to the interfaces on both sides of the straight pipe in the T-type tee, and the second interface refers to the interface on one side of the side pipe in the T-type tee. The straight pipe refers to the main pipe in the T-type tee, that is, the main pipe with both ends being unobstructed. The side pipe refers to the side pipe in the T-type tee, that is, the bypass pipe with only one end being unobstructed. Since the T-type tee includes 3 interfaces, it is necessary to determine the local resistance pressure drop at each interface position.
[0056] Among them, the six actual working conditions can be divided into four working conditions, and the simulation results under each working condition are the same. Figure 6 , the target working condition may include the first working condition, the second working condition, the third working condition and the fourth working condition. Among them, the first working condition can be regarded as a one-input and two-output working condition. The first working condition includes two working conditions, that is, the first working condition refers to the first interface (i.e. Figure 6 The "1" in the figure is the import and the second interface (i.e. Figure 6 "2" in the figure) and the third interface (i.e. Figure 6 The "3" in the figure) are all outlets, or the third interface is an import and the first interface and the second interface are both outlets. The second operating condition can be regarded as a two-in-one-out operating condition. The second operating condition also includes 2 operating conditions, namely, the second operating condition means that the first interface and the second interface are both imports and the third interface is an outlet, or the second interface and the third interface are both imports and the first interface is an outlet. The third operating condition can be regarded as a two-straight-pipe-in and side-pipe-out operating condition. The third operating condition only includes 1 operating condition, namely, the third operating condition means that the first interface and the third interface are both imports and the second interface is an outlet. The fourth operating condition can be regarded as a two-straight-pipe-out and side-pipe-in operating condition. The fourth operating condition only includes 1 operating condition, namely, the fourth operating condition means that the second interface is an import and the first interface and the third interface are both outlets.
[0057] Specifically, in each iteration of the simulation system, the known parameters in the equation group at the time of the iteration can be updated based on the target parameter values after the previous iteration, and the target parameter values in the equation group can be solved again, thereby completing an iterative solution of the target parameters. In each iteration, the structural loss equation can be solved based on the target working condition corresponding to the T-type tee to obtain the local resistance coefficient of the T-type tee under the target working condition, and the local resistance coefficient is the structural loss coefficient. Based on the relationship between the local resistance coefficient and the local resistance pressure drop described in the above embodiment, the local resistance pressure drop caused by the shape loss of the T-type tee under the target working condition can be determined.
[0058] Exemplarily, when the local resistance coefficient includes: a first local resistance coefficient corresponding to the first interface, a second local resistance coefficient corresponding to the second interface, and a third local resistance coefficient corresponding to the third interface, the "solving the structural loss equation based on the target working condition corresponding to the T-type tee to obtain the local resistance coefficient of the T-type tee under the target working condition" in step S530 may include:
[0059] When the target operating condition is the first operating condition, the first local resistance coefficient corresponding to the first interface is determined to be 0, and an interpolation calculation is performed based on the area ratio and flow ratio between the first interface and the second interface to obtain a second local resistance coefficient corresponding to the second interface, and an interpolation calculation is performed based on the flow ratio between the first interface and the third interface to obtain a third local resistance coefficient corresponding to the third interface;
[0060] When the target operating condition is the second operating condition, a first local resistance coefficient corresponding to the first interface is determined based on the flow ratio between the first interface and the third interface, an interpolation calculation is performed based on the area ratio and the flow ratio between the second interface and the third interface to obtain a second local resistance coefficient corresponding to the second interface, and a third local resistance coefficient corresponding to the third interface is determined to be 0;
[0061] When the target operating condition is the third operating condition or the fourth operating condition, the first local resistance coefficient corresponding to the first interface is determined based on the flow ratio and area ratio between the first interface and the second interface, and the second local resistance coefficient corresponding to the second interface is determined to be 0, and the third local resistance coefficient corresponding to the third interface is determined based on the area ratio and flow ratio between the second interface and the third interface.
[0062] Specifically, when the target working condition is the first working condition, the flow area of the straight pipe A1=A3=A, and the flow area of the side pipe A2 is less than or equal to A. It can be directly determined that the first local resistance coefficient K1 corresponding to the first interface is 0. Based on the area ratio between the first interface and the second interface And flow ratio Perform interpolation calculation to obtain the second local resistance coefficient K2 corresponding to the second interface. For example, in, It is interpolated from the two-dimensional array in the resistance manual table. Based on the flow ratio between the first interface and the third interface Perform interpolation calculation to obtain the third local resistance coefficient K3 corresponding to the third interface. For example, in, is interpolated from a 1D array in the manual table of resistances.
[0063] When the target operating condition is the second operating condition, the flow area of the straight pipe is A1=A3=A, and the flow area of the side pipe is less than or equal to A. Based on the flow ratio between the first interface and the third interface and Determine the first local resistance coefficient K1 corresponding to the first interface. For example, Based on the area ratio between the second interface and the third interface And flow ratio Perform interpolation calculation to obtain the second local resistance coefficient K2 corresponding to the second interface. For example, in, It is obtained by interpolation from the two-dimensional array in the resistance manual table. It can be directly determined that the third local resistance coefficient K3 corresponding to the third interface is 0.
[0064] When the target operating condition is the third operating condition or the fourth operating condition, the calculation method of the local resistance coefficient is the same. For example, the flow area of the straight pipe is A1=A3=A, and the flow area of the side pipe is greater than or equal to A. Based on the flow ratio between the first interface and the second interface and area ratio Determine the first local resistance coefficient K1 corresponding to the first interface. For example, The second local resistance coefficient K2 corresponding to the second interface can be directly determined to be 0. Based on the area ratio between the second interface and the third interface And flow ratio Determine the third local resistance coefficient K3 corresponding to the third interface. For example, Wherein, Q is the volume flow rate.
[0065] Exemplarily, "determining the local resistance pressure drop caused by shape loss based on the local resistance coefficient" in step S530 may include: determining the local resistance coefficient of the straight pipe corresponding to the straight pipe in the T-type tee based on the first local resistance coefficient and the third local resistance coefficient, and determining the local resistance pressure drop of the straight pipe due to shape loss based on the local resistance coefficient of the straight pipe; determining the local resistance pressure drop of the side pipe in the T-type tee due to shape loss based on the second local resistance coefficient.
[0066] Specifically, the first local resistance coefficient and the third local resistance coefficient of the flow to the straight pipe (i.e., the main branch) in the T-type tee can be added to obtain the local resistance coefficient of the straight pipe corresponding to the straight pipe. The second local resistance coefficient of the flow to the side pipe (i.e., the side branch) in the T-type tee can be directly determined as the local resistance coefficient of the side pipe corresponding to the side pipe. According to the relationship between the local resistance coefficient and the local resistance pressure drop described in the above embodiment: The local resistance pressure drop of the straight pipe due to shape loss is determined based on the local resistance coefficient of the straight pipe, and the local resistance pressure drop of the side pipe due to shape loss is determined based on the second local resistance coefficient.
[0067] Exemplarily, after obtaining the local resistance coefficient of the T-type tee under the target working condition, it can also include: based on the local resistance coefficient of the T-type tee calculated in the previous iteration, continuity processing is performed on the local resistance coefficient calculated in the current iteration to update the local resistance coefficient calculated in the current iteration.
[0068] Specifically, in actual situations, the flow rate may fluctuate, and the local resistance coefficient is strongly correlated with the flow rate, so it is necessary to perform continuity processing on the local resistance coefficient. For example, after determining each local resistance coefficient of the T-type tee under the target working condition during the current iteration, the local resistance coefficient calculated in the current iteration can be processed continuously based on each local resistance coefficient calculated in the previous iteration. For example, for each local resistance coefficient K1, K2 or K3, the local resistance coefficient K calculated in the previous iteration can be processed continuously. n-1 The local resistance coefficient K calculated by the current iteration n Perform weighted processing and use the processing result as the local resistance coefficient K calculated for the current iteration n For example, K n =0.9K n-1 +0.1K n , thereby ensuring that the iterative changes of the local resistance coefficient will not be too drastic, thus avoiding the situation where the main equation does not converge.
[0069] S540. Obtain the wall friction pressure drop caused by friction loss by solving the wall friction equation.
[0070] Specifically, the Lockhart-Martinelli model can be used to calculate the total two-phase pressure drop, and then the Chisholm phase separation friction theory can be applied to obtain the gas-liquid phase separation pressure drop, thereby obtaining the wall friction pressure drop caused by friction loss.
[0071] S550. Obtain target parameter values corresponding to the target parameters under the target working conditions by solving the main equation group based on the local resistance pressure drop and the wall friction pressure drop.
[0072] Specifically, the local resistance pressure drop and the wall friction pressure drop are transferred to the mass conservation equation, energy conservation equation and momentum conservation equation in the main equation group for solution, and the simulation results of specific enthalpy, pressure and velocity in the current iteration process are obtained, thereby realizing the simulation test of the T-type three-way model.
[0073] The technical solution of this embodiment is to solve the structural loss equation based on the target working condition corresponding to the T-type tee in each iteration process of the simulation system, obtain the local resistance coefficient of the T-type tee under the target working condition, and determine the local resistance pressure drop caused by shape loss based on the local resistance coefficient; obtain the wall friction pressure drop caused by friction loss by solving the wall friction equation; obtain the target parameter values corresponding to the target parameters under the target working condition by solving the main equation group based on the local resistance pressure drop and the wall friction pressure drop, thereby achieving the reusability and scalability of the model while ensuring the calculation efficiency and accuracy. At the same time, this method provides reliable support for industrial modeling applications and provides a useful reference for the design and optimization of pipeline accessories in the engineering field.
[0074] The following is an embodiment of a T-type tee simulation test device provided in an embodiment of the present invention. The device and the T-type tee simulation test methods of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the T-type tee simulation test device, reference can be made to the embodiment of the above-mentioned T-type tee simulation test method.
[0075] Figure 7 Schematic diagram of the structure of a T-type three-way simulation test device provided by an embodiment of the present invention. This embodiment is applicable to the case of performing simulation test on a T-type three-way. Figure 7 As shown, the device specifically includes: a T-type three-way model building module 710 and a T-type three-way simulation test module 720.
[0076] Among them, the T-type tee model construction module 710 is used to construct a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee; the T-type tee simulation test module 720 is used to connect the T-type tee model with other pipeline components, build a simulation system, and simulate and test the target parameters of the T-type tee under the target operating conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters, wherein the target operating conditions are characterized based on the fluid flow direction of the T-type tee.
[0077] The technical solution of this embodiment is to construct a T-type tee model that is more in line with the actual physical situation. The T-type tee is structurally divided into a control body and three connecting pipes. The T-type tee model includes a main equation group and a constitutive equation group. The main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee. The T-type tee model is connected with other pipeline components to build a complete simulation system. Based on the simulation system, the target parameters of the T-type tee under different target working conditions can be accurately simulated and tested to obtain the target parameter values corresponding to the target parameters, thereby improving the simulation accuracy. It can also be applicable to simulation tests under different working conditions, thereby realizing the reusability and scalability of the model and providing reliable support for industrial modeling applications.
[0078] Optionally, the target parameters include: specific enthalpy, pressure and speed of the T-joint.
[0079] Optionally, in the main equation group, the main control volume is expressed in the form of the control body, and the sub-control volume is expressed in the form of the connecting pipe; the control body calculates the mass conservation equation and the energy conservation equation, and each connecting pipe calculates the momentum conservation equation. At the same time, the control body transfers the calculated parameter values to each connecting pipe, and each connecting pipe transfers the calculated parameter values to the control body, and the two are coupled and iterated to complete the calculation of the main equation group and the constitutive equation group.
[0080] Optionally, the T-type three-way simulation test module 720 includes:
[0081] a local resistance pressure drop determination unit, configured to obtain a local resistance coefficient of the T-type tee under the target working condition by solving the structural loss equation based on the target working condition corresponding to the T-type tee during each iteration of the simulation system, and determine a local resistance pressure drop caused by shape loss based on the local resistance coefficient;
[0082] a wall friction pressure drop determination unit, configured to obtain the wall friction pressure drop caused by friction loss by solving the wall friction equation;
[0083] The target parameter value determination unit is used to obtain the target parameter value corresponding to the target parameter under the target working condition by solving the main equation group based on the local resistance pressure drop and the wall friction pressure drop.
[0084] Optionally, the local resistance coefficient includes: a first local resistance coefficient corresponding to a first interface in the T-type tee, a second local resistance coefficient corresponding to a second interface, and a third local resistance coefficient corresponding to a third interface, wherein the first interface and the third interface refer to interfaces on both sides of the straight pipe in the T-type tee, and the second interface refers to an interface on one side of the side pipe in the T-type tee;
[0085] The target operating conditions include a first operating condition, a second operating condition, a third operating condition and a fourth operating condition, wherein the first operating condition refers to that the first interface is an import and the second interface and the third interface are both outlets, or the third interface is an import and the first interface and the second interface are both outlets; the second operating condition refers to that the first interface and the second interface are both imports and the third interface are outlets, or the second interface and the third interface are both imports and the first interface is an outlet; the third operating condition refers to that the first interface and the third interface are both imports and the second interface is an outlet; the fourth operating condition refers to that the second interface is an import and the first interface and the third interface are both outlets.
[0086] Optionally, the local resistance pressure drop determination unit is specifically used to:
[0087] When the target operating condition is the first operating condition, determining that a first local resistance coefficient corresponding to the first interface is 0, and performing interpolation calculation based on an area ratio and a flow ratio between the first interface and the second interface to obtain a second local resistance coefficient corresponding to the second interface, and performing interpolation calculation based on a flow ratio between the first interface and the third interface to obtain a third local resistance coefficient corresponding to the third interface;
[0088] When the target operating condition is the second operating condition, a first local resistance coefficient corresponding to the first interface is determined based on a flow ratio between the first interface and the third interface, an interpolation calculation is performed based on an area ratio and a flow ratio between the second interface and the third interface to obtain a second local resistance coefficient corresponding to the second interface, and a third local resistance coefficient corresponding to the third interface is determined to be 0;
[0089] When the target operating condition is the third operating condition or the fourth operating condition, the first local resistance coefficient corresponding to the first interface is determined based on the flow ratio and area ratio between the first interface and the second interface, and the second local resistance coefficient corresponding to the second interface is determined to be 0, and the third local resistance coefficient corresponding to the third interface is determined based on the area ratio and flow ratio between the second interface and the third interface.
[0090] Optionally, the local resistance pressure drop determination unit is further used for:
[0091] Based on the first local resistance coefficient and the third local resistance coefficient, the straight pipe local resistance coefficient corresponding to the straight pipe in the T-type tee is determined, and based on the straight pipe local resistance coefficient, the local resistance pressure drop caused by the shape loss of the straight pipe is determined; based on the second local resistance coefficient, the local resistance pressure drop caused by the shape loss of the side pipe in the T-type tee is determined.
[0092] Optionally, the device further comprises:
[0093] The local resistance coefficient updating module is used to perform continuity processing on the local resistance coefficient calculated in the current iteration based on the local resistance coefficient calculated in the previous iteration of the T-type tee, so as to update the local resistance coefficient calculated in the current iteration.
[0094] The T-type tee simulation test device provided in the embodiment of the present invention can execute the T-type tee simulation test method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the T-type tee simulation test method.
[0095] It is worth noting that in the embodiment of the above-mentioned T-type three-way simulation test device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0096] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 8 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 8 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0097] like Figure 8 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0098] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0099] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0100] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory 30 (RAM) and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 8 not shown, usually called a "hard drive"). Although Figure 8 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0101] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0102] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0103] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a T-type three-way simulation test method provided by any embodiment of the present invention, the method comprising:
[0104] Constructing a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes a mass conservation equation, an energy conservation equation, and a momentum conservation equation of the T-type tee, and the constitutive equation group includes a wall friction equation and a structural loss equation of the T-type tee;
[0105] The T-type tee model is connected with other pipeline components to construct a simulation system, and based on the simulation system, a simulation test is performed on the target parameters of the T-type tee under the target working conditions to obtain the target parameter values corresponding to the target parameters, wherein the target working conditions are characterized based on the fluid flow direction of the T-type tee.
[0106] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the T-type three-way simulation test method provided by any embodiment of the present invention.
[0107] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0108] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A T-type three-way simulation test method, It is characterized in that include: Constructing a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes a mass conservation equation, an energy conservation equation, and a momentum conservation equation of the T-type tee, and the constitutive equation group includes a wall friction equation and a structural loss equation of the T-type tee; The T-type tee model is connected with other pipeline components to construct a simulation system, and based on the simulation system, a simulation test is performed on the target parameters of the T-type tee under the target working conditions to obtain the target parameter values corresponding to the target parameters, wherein the target working conditions are characterized based on the fluid flow direction of the T-type tee.
2. The method according to claim 1, It is characterized in that The target parameters include: specific enthalpy, pressure and speed of the T-joint.
3. The method according to claim 1, It is characterized in that In the main equation group, the main control volume is expressed in the form of the control body, and the sub-control volume is expressed in the form of the connecting pipe; the control body calculates the mass conservation equation and the energy conservation equation, and each connecting pipe calculates the momentum conservation equation. At the same time, the control body transfers the calculated parameter value to each connecting pipe, and each connecting pipe transfers the calculated parameter value to the control body, and the two are coupled and iterated to complete the calculation of the main equation group and the constitutive equation group.
4. The method according to claim 1, It is characterized in that Based on the simulation system, a simulation test is performed on the target parameters of the T-type three-way under the target working condition to obtain the target parameter values corresponding to the target parameters, including: In each iteration of the simulation system, the structural loss equation is solved based on the target working condition corresponding to the T-type tee to obtain the local resistance coefficient of the T-type tee under the target working condition, and the local resistance pressure drop caused by the shape loss is determined based on the local resistance coefficient; By solving the wall friction equation, the wall friction pressure drop caused by friction loss is obtained; By solving the main equation group based on the local resistance pressure drop and the wall friction pressure drop, the target parameter value corresponding to the target parameter under the target working condition is obtained.
5. The method according to claim 4, It is characterized in that The local resistance coefficient includes: a first local resistance coefficient corresponding to the first interface in the T-type tee, a second local resistance coefficient corresponding to the second interface, and a third local resistance coefficient corresponding to the third interface, wherein the first interface and the third interface refer to the interfaces on both sides of the straight pipe in the T-type tee, and the second interface refers to the interface on one side of the side pipe in the T-type tee; The target operating conditions include a first operating condition, a second operating condition, a third operating condition and a fourth operating condition, wherein the first operating condition refers to that the first interface is an import and the second interface and the third interface are both outlets, or the third interface is an import and the first interface and the second interface are both outlets; the second operating condition refers to that the first interface and the second interface are both imports and the third interface are outlets, or the second interface and the third interface are both imports and the first interface is an outlet; the third operating condition refers to that the first interface and the third interface are both imports and the second interface is an outlet; the fourth operating condition refers to that the second interface is an import and the first interface and the third interface are both outlets.
6. The method according to claim 5, It is characterized in that The structural loss equation is solved based on the target working condition corresponding to the T-type tee to obtain the local resistance coefficient of the T-type tee under the target working condition, including: When the target operating condition is the first operating condition, determining that a first local resistance coefficient corresponding to the first interface is 0, and performing interpolation calculation based on an area ratio and a flow ratio between the first interface and the second interface to obtain a second local resistance coefficient corresponding to the second interface, and performing interpolation calculation based on a flow ratio between the first interface and the third interface to obtain a third local resistance coefficient corresponding to the third interface; When the target operating condition is the second operating condition, a first local resistance coefficient corresponding to the first interface is determined based on a flow ratio between the first interface and the third interface, an interpolation calculation is performed based on an area ratio and a flow ratio between the second interface and the third interface to obtain a second local resistance coefficient corresponding to the second interface, and a third local resistance coefficient corresponding to the third interface is determined to be 0; When the target operating condition is the third operating condition or the fourth operating condition, the first local resistance coefficient corresponding to the first interface is determined based on the flow ratio and area ratio between the first interface and the second interface, and the second local resistance coefficient corresponding to the second interface is determined to be 0, and the third local resistance coefficient corresponding to the third interface is determined based on the area ratio and flow ratio between the second interface and the third interface.
7. The method according to claim 5, It is characterized in that Determining the local resistance pressure drop caused by shape loss based on the local resistance coefficient includes: Determine the straight pipe local resistance coefficient corresponding to the straight pipe in the T-type tee based on the first local resistance coefficient and the third local resistance coefficient, and determine the local resistance pressure drop of the straight pipe caused by shape loss based on the straight pipe local resistance coefficient; Based on the second local resistance coefficient, the local resistance pressure drop caused by the shape loss of the side pipe in the T-type tee is determined.
8. The method according to claim 4, It is characterized in that After obtaining the local resistance coefficient of the T-type tee under the target working condition, the method further includes: Based on the local resistance coefficient of the T-type tee calculated in the previous iteration, continuity processing is performed on the local resistance coefficient calculated in the current iteration to update the local resistance coefficient calculated in the current iteration.
9. A T-type three-way simulation test device, It is characterized in that include: A T-type tee model construction module is used to construct a T-type tee model corresponding to the T-type tee, wherein the T-type tee is structurally divided into a control body and three connecting pipes, and the T-type tee model includes a main equation group and a constitutive equation group, the main equation group includes the mass conservation equation, energy conservation equation and momentum conservation equation of the T-type tee, and the constitutive equation group includes the wall friction equation and structural loss equation of the T-type tee; The T-type tee simulation test module is used to connect the T-type tee model with other pipeline components to build a simulation system, and based on the simulation system, simulate and test the target parameters of the T-type tee under the target working conditions to obtain the target parameter values corresponding to the target parameters, wherein the target working conditions are characterized based on the fluid flow direction of the T-type tee.
10. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the T-type three-way simulation test method as described in any one of claims 1-8.
Citation Information
Patent Citations
Modelica-based two-phase flow pipeline design method and system and medium
CN115186419A
Data simulation method based on two-phase flow pipeline model
CN118070525A
Automated streaming data model generation with parallel processing capability
US11550643B1
