A T-shaped tee joint simulation test method, device and electronic device
By constructing the T-Tele Model and dividing it into a control body and takeover, and combining the simulation system for parameter testing, the accuracy problem of T-Tele Model simulation test is solved, the reusability and scalability of the model are realized, and industrial applications are supported.
Patent Information
- Application Number
- CN202411182261.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2044-08-27
AI Technical Summary
It is difficult for the existing technology to effectively carry out simulation tests of T-Tele, which affects the safe and efficient operation of the pipeline system.
A T-shaped tee model is constructed, and its structure is divided into one control body and three takeovers, including a system of subject equations and a system of constitutive equations. The system of subject equations includes the equations of conservation of mass, conservation of energy and conservation of momentum. The system of constitutive equations includes the equations of wall friction and structural loss, and the test of target parameters is carried out through a simulation system.
Improve simulation accuracy, realize the reusability and scalability of the model, and provide reliable support for industrial modeling.
Smart Images

Figure CN119066869B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the design technology of T-shaped tees, and in particular, to a simulation test method, device, and electronic device for T-shaped tees. Background Art
[0002] A T-shaped tee refers to a connector used in a pipeline system, having a T shape, and is usually used to divert fluid from one pipeline to two different pipelines, or to converge the fluid in two pipelines into one pipeline. It has a wide range of applications in both industrial and civil fields, such as in water supply systems, HVAC systems, and chemical production processes, etc.
[0003] As a simple and effective pipeline connection component, the performance of a T-shaped tee is affected by many factors, such as fluid characteristics, pipeline geometric structure, pipeline material, and manufacturing process, etc., so it is necessary to conduct simulation tests on the T-shaped tee to ensure the safe and efficient operation of the entire pipeline system. It can be seen that there is an urgent need for a way to effectively conduct simulation tests on T-shaped tees. Summary of the Invention
[0004] The embodiments of the present invention provide a simulation test method, device, and electronic device for T-shaped tees, which are more in line with the physical actual situation, improve the simulation accuracy, and can be applicable to simulation tests under different working conditions, realizing the reusability and scalability of the model, and providing reliable support for industrialized modeling applications.
[0005] In a first aspect, the embodiments of the present invention provide a simulation test method for T-shaped tees, including:
[0006] Construct a T-shaped tee model corresponding to the T-shaped tee. Among them, the T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee;
[0007] Connect the T-shaped tee model with other pipeline components to construct a simulation system, and conduct a simulation test on the target parameters of the T-shaped tee under the target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters, where the target working conditions are characterized based on the fluid flow direction of the T-shaped tee.
[0008] In a second aspect, the embodiments of the present invention further provide a simulation test device for T-shaped tees, including:
[0009] The T-shaped tee model construction module is used to construct a T-shaped tee model corresponding to the T-shaped tee. Among them, the T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee;
[0010] The T-shaped tee simulation test module is used to connect the T-shaped tee model with other pipeline components to construct a simulation system, and perform simulation tests on the target parameters of the T-shaped tee under target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters. Among them, the target working conditions are characterized based on the fluid flow direction of the T-shaped tee.
[0011] Thirdly, an embodiment of the present invention further provides an electronic device, which includes:
[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-shaped tee simulation test method provided in 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-shaped tee model that more conforms to the physical actual situation, the T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee; Connect the T-shaped tee model with other pipeline components to construct a complete simulation system, and based on the simulation system, the target parameters of the T-shaped 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 the simulation tests under different working conditions, realizing the reusability and scalability of the model, and providing reliable support for industrialized modeling applications. Description of the Drawings
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.
[0018] Figure 1 It is a flowchart of a T-shaped tee joint simulation test method provided by an embodiment of the present invention;
[0019] Figure 2 It is a schematic structural diagram of a T-shaped tee joint model involved in an embodiment of the present invention;
[0020] Figure 3 It is a test schematic diagram of a simulation system involved in an embodiment of the present invention;
[0021] Figure 4 It is a schematic block diagram of the structure of a T-shaped tee joint model involved in an embodiment of the present invention;
[0022] Figure 5 It is a flowchart of another T-shaped tee joint simulation test method provided by an embodiment of the present invention;
[0023] Figure 6 It is a schematic diagram of four working conditions of a T-shaped tee joint involved in an embodiment of the present invention;
[0024] Figure 7 It is a schematic structural diagram of a T-shaped tee joint simulation test device provided by an embodiment of the present invention;
[0025] Figure 8 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners
[0026] The following will further elaborate on the present invention in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only the parts related to the present invention rather than all the structures are shown in the accompanying drawings.
[0027] Figure 1 It is a flowchart of a T-shaped tee joint simulation test method provided by an embodiment of the present invention. This embodiment is applicable to the situation of simulating and testing a T-shaped tee joint. This method can be executed by a T-shaped tee joint simulation test device, and this device can be implemented in a software and / or hardware manner and integrated into an electronic device. As Figure 1 shown, this method specifically includes the following steps:
[0028] S110. Construct a T-shaped tee model corresponding to the T-shaped tee. The T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main set of equations and a constitutive set of equations. The main set of equations includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive set of equations includes the wall friction equation and the structural loss equation of the T-shaped tee.
[0029] Among them, referring to Figure 2 , the T-shaped tee is formed by connecting a control volume with three nozzles, and the inlet and outlet interface angles differ by 90 degrees. When establishing the model, the complex set of equations model is decomposed into a main set of equations and a constitutive set of equations containing each source term equation. The fluid in the T-shaped tee can be liquid or gas. The following assumptions are adopted in the modeling process of the T-shaped tee: ① The liquid or gas is a continuous medium inside; ② The density and velocity are the average values on the flow cross-section; ③ The pressure is evenly distributed on any pipe cross-section; ④ It is assumed that the velocity at the intersection joint is perpendicular to the fluid flow path; ⑤ There are confluences of different branches and divergences of branches in the multi-way; ⑥ In actual processing, the mass flow conservation before and after is adopted for processing, that is, the mass flow rate is distributed by the ratio of the cross-sectional areas of the pipes before and after. In the T-shaped tee, only the wall friction loss and structural loss can be considered to construct the constitutive set of equations. Wall friction refers to the action of the pipe wall on the fluid when the fluid flows. The wall friction force can be divided into liquid-phase wall friction force and gas-phase wall friction force. Structural loss refers to the deformation loss borne by the straight pipe and side pipe in the T-shaped tee. Since the 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 the shape loss. The wall friction pressure drop caused by the friction loss is calculated by using the wall friction equation.
[0030] Specifically, by structurally dividing the T-shaped tee into a control volume and three nozzles, the fluid flow behavior can be effectively managed and controlled. The T-shaped tee model is based on the principle of mass flow conservation of the inlet and outlet pipes, and uses the ratio of the cross-sectional areas of the pipes to distribute the mass flow rate for the inlet and outlet nozzles. This embodiment can decompose the T-shaped tee model into a main set of equations and a constitutive set of equations for separate modeling based on the Modelica language.
[0031] For example, in the main set of equations, the constructed mass conservation equation is:
[0032]
[0033] The constructed energy conservation equation is:
[0034]
[0035] The constructed momentum conservation equation is:
[0036]
[0037] Among them, the subscript k represents gas or liquid (the gas subscript is g, and the liquid subscript is f); represents the wall surface; is the volume percentage; is the density; is the velocity; is the specific enthalpy; is the pressure; is the interfacial mass exchange amount; is the wall friction pressure drop caused by friction loss; is the local resistance pressure drop caused by form loss; is the heat transfer amount on the wall surface.
[0038] In the constitutive equations, the constructed wall friction equation can be used to calculate the two-phase total pressure drop by using the Lockhart-Martinelli model, and then the Chisholm two-phase friction theory is applied to obtain the gas-liquid phase separation pressure drop, so as to obtain the wall friction pressure drop caused by friction loss.
[0039] The constructed structural loss equation can be used to calculate the local resistance coefficient of the T-shaped tee. The local resistance coefficient is obtained by interpolation calculation based on the area ratio and flow ratio at the inlet and outlet of the pipeline. After calculating the local resistance coefficient K, the local resistance pressure drop caused by form loss can be determined by the following equation :
[0040]
[0041] Among them, ρ g and ρ f are the vapor density and liquid density of the fluid respectively, with the unit of kg / m 3 ; the vapor phase here refers to water vapor; v g and v f are the vapor velocity and liquid velocity of the fluid respectively, with the unit of m / s; α is the mass gas content. If the mass gas content is 0, the above equation can be simplified to: .
[0042] Exemplarily, in the main equations, the main control volume is represented in the form of a control volume, and the secondary control volume is represented in the form of a nozzle; the control volume calculates the mass conservation equation and the energy conservation equation, and each nozzle calculates the momentum conservation equation. At the same time, the control volume transfers the calculated parameter values to each nozzle, and each nozzle transfers the calculated parameter values to the control volume. The two are coupled and iterated to complete the calculation of the main equations and the constitutive equations.
[0043] Among them, the main control volume is a real cavity in the physical world. For example, how much fluid a water bucket can hold; the secondary control volume is a concept virtualized for numerical solution, used to calculate the flow transfer relationship between the central points of the front and rear control volumes, that is, to calculate the flow velocity or mass flow rate. By iteratively solving the main body equations and constitutive equations based on the configured initial parameters, the simulation results of the T-shaped tee after each iteration can be obtained.
[0044] S120. Connect the T-shaped tee model with other pipeline components to construct a simulation system, and perform simulation tests on the target parameters of the T-shaped tee under the target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters. Among them, the target working conditions are characterized based on the fluid flow direction of the T-shaped tee.
[0045] Among them, other pipeline components refer to other pipeline accessories in the pipeline system except the T-shaped tee. Other pipeline components can also be characterized by the models after modeling. The simulation system refers to the simulation model of the pipeline system. The target working condition refers to the working condition that the T-shaped tee is currently in. Different working conditions correspond to different fluid flow directions. Based on the fluid flow directions of the three interfaces in the T-shaped tee, there are a total of 8 working conditions. However, since in fact all interfaces cannot be either inlets or outlets, 2 working conditions are excluded, and actually only 6 working conditions exist. The target parameter refers to the parameter that needs to be simulated and tested in the T-shaped tee. The target parameter value refers to the specific value of the target parameter, that is, the simulation result. For example, the target parameter can include: the specific enthalpy of the T-shaped tee , pressure and velocity . The target parameter can be obtained by solving the main body equation.
[0046] Specifically, after completing the modeling of the T-shaped tee, in the form of instantiating components, the T-shaped tee model can be connected with other pipeline components using connectors to form a simulation system. For example, see Figure 3, the simulation system is in a working condition of one inlet and two outlets. The T-shaped tee model, 3 conventional pipeline components, 1 flow inlet component and 2 pressure outlet components are connected in sequence to construct the simulation system. Before performing a performance test on the T-shaped tee based on the simulation system, it is necessary to configure the simulation initial values and simulation parameter information of the T-shaped tee. For example, the simulation initial values are set as follows: the inner diameter of the straight pipe is 20 mm, the inlet elevation and outlet elevation are 0 mm, the length is 100 mm, the inner diameter of the side pipe is 10 mm, the pressure is 1 MPa, the fluid temperature is 25 degC, the mass gas content is 0, and the inlet flow rate is 1 kg / s. The simulation parameter information is set as follows: the simulation time is 10 s, the interval length is 1, the output time step is 0.01 s, the Euler solution algorithm is adopted, and the calculation accuracy is 0.001. Based on the set simulation initial values and simulation parameter information, the simulation system is started to run, so that the simulation system can obtain the target parameter values corresponding to the target parameters of the T-shaped tee under the target working condition by iteratively solving the main body equations and constitutive equations. Since the target working condition can be dynamically controlled over time, simulation tests can be carried out under different working conditions. On the premise of ensuring calculation efficiency and accuracy, the reusability and expandability of the model are realized. At the same time, this method provides reliable support for industrialized modeling applications and useful references for the design and optimization of pipeline accessories in the engineering field.
[0047] Exemplarily, refer to Figure 4 , the simulation test process in the simulation system is as follows: the environmental parameters configured in the global variable model, such as the environmental temperature, etc., are passed to the wall friction equation and the structural loss equation in the constitutive equations, and the wall friction equation and the structural loss equation are solved to obtain the wall friction pressure drop caused by friction loss and the local resistance pressure drop caused by form loss. The local resistance pressure drop and the wall friction pressure drop are passed to the mass conservation equation, the energy conservation equation and the momentum conservation equation in the main body equations for solution to obtain the simulation results of specific enthalpy, pressure and velocity in the current iteration process, so as to realize the simulation test of the T-shaped tee model. The fluid interface model is to transfer the specific enthalpy, pressure and velocity calculated by other pipeline components to the main body equations in the T-shaped tee model, and the main body equations also transfer the specific enthalpy, pressure and velocity calculated by the tee to other pipeline components. Among them, the global variable model and the fluid interface model are already constructed basic models, which are used to form a complete pipeline system with the T-shaped tee model.
[0048] The technical solution of this embodiment constructs a T-shaped tee model that more conforms to the physical actual situation. The T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee. Connect the T-shaped tee model with other pipeline components to construct a complete simulation system, and based on the simulation system, the target parameters of the T-shaped 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 the simulation tests under different working conditions, realizing the reusability and scalability of the model, and providing reliable support for industrialized modeling applications.
[0049] Figure 5 FIG. 4 is a flowchart of another T-shaped tee simulation test method provided by an embodiment of the present invention. On the basis of the above embodiments, this embodiment details the specific process of the simulation test. The explanations of the same or corresponding terms as those in the above embodiments are not repeated here.
[0050] See Figure 5 , another T-shaped tee simulation test method provided by this embodiment specifically includes the following steps:
[0051] S510. Construct a T-shaped tee model corresponding to the T-shaped tee. Among them, the T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee.
[0052] S520. Connect the T-shaped tee model with other pipeline components to construct a simulation system.
[0053] S530. In each iteration process of the simulation system, solve the structural loss equation based on the target working condition corresponding to the T-shaped tee to obtain the local resistance coefficient of the T-shaped tee under the target working condition, and determine the local resistance pressure drop caused by form loss based on the local resistance coefficient.
[0054] Among them, the local resistance coefficients may include: the first local resistance coefficient corresponding to the first interface in the T-shaped tee, the second local resistance coefficient corresponding to the second interface, and the third local resistance coefficient corresponding to the third interface. Among them, the first interface and the third interface refer to the two side interfaces of the straight pipe in the T-shaped tee, and the second interface refers to one side interface of the side pipe in the T-shaped tee. The straight pipe refers to the main pipe in the T-shaped tee, that is, the main road pipe with both ends unobstructed. The side pipe refers to the side pipe in the T-shaped tee, that is, the bypass pipe with only one end unobstructed. Since the T-shaped tee includes 3 interfaces, it is necessary to determine the local resistance pressure drop at each interface position.
[0055] Among them, the 6 actual working conditions can be divided into 4 working conditions, and the simulation results under each working condition are the same. See Figure 6 , the target working conditions 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-in-two-out working condition. The first working condition includes 2 working conditions, that is, the first working condition means that the first interface (i.e., Figure 6 "1" in) is the inlet and the second interface (i.e., Figure 6 "2" in) and the third interface (i.e., Figure 6 "3" in) are both outlets, or the third interface is the inlet and the first interface and the second interface are both outlets. The second working condition can be regarded as a two-in-one-out working condition. The second working condition also includes 2 working conditions, that is, the second working condition means that the first interface and the second interface are both inlets and the third interface is the outlet, or the second interface and the third interface are both inlets and the first interface is the outlet. The third working condition can be regarded as a working condition where two straight pipes enter and the side pipe exits. The third working condition only includes 1 working condition, that is, the third working condition means that the first interface and the third interface are both inlets and the second interface is the outlet. The fourth working condition can be regarded as a working condition where two straight pipes exit and the side pipe enters. The fourth working condition only includes 1 working condition, that is, the fourth working condition means that the second interface is the inlet and the first interface and the third interface are both outlets.
[0056] Specifically, in each iteration process of the simulation system, the known parameters in the equations can be updated based on the target parameter values after the previous iteration, and the target parameter values in the equations can be solved again, so as to complete one iteration solution of the target parameters. In each iteration process, the structural loss equation can be solved based on the target working condition corresponding to the T-shaped tee, and the local resistance coefficient of the T-shaped tee under the target working condition can be obtained. This local resistance coefficient is the structural loss coefficient. The local resistance pressure drop caused by form loss of the T-shaped tee under the target working condition can be determined based on the relationship between the local resistance coefficient and the local resistance pressure drop described in the above embodiments.
[0057] Exemplarily, when the local resistance coefficients include: the first local resistance coefficient corresponding to the first interface, the second local resistance coefficient corresponding to the second interface, and the third local resistance coefficient corresponding to the third interface, "solving the structural loss equation based on the target operating condition corresponding to the T-shaped tee to obtain the local resistance coefficient of the T-shaped tee under the target operating condition" in step S530 may include:
[0058] When the target operating condition is the first operating condition, determine that the first local resistance coefficient corresponding to the first interface is 0, and perform interpolation calculation based on the area ratio and flow ratio between the first interface and the second interface to obtain the second local resistance coefficient corresponding to the second interface, and perform interpolation calculation based on the flow ratio between the first interface and the third interface to obtain the third local resistance coefficient corresponding to the third interface;
[0059] When the target operating condition is the second operating condition, determine the first local resistance coefficient corresponding to the first interface based on the flow ratio between the first interface and the third interface, perform interpolation calculation based on the area ratio and flow ratio between the second interface and the third interface to obtain the second local resistance coefficient corresponding to the second interface, and determine that the third local resistance coefficient corresponding to the third interface is 0;
[0060] When the target operating condition is the third operating condition or the fourth operating condition, determine the first local resistance coefficient corresponding to the first interface based on the flow ratio and area ratio between the first interface and the second interface, and determine that the second local resistance coefficient corresponding to the second interface is 0, and determine the third local resistance coefficient corresponding to the third interface based on the area ratio and flow ratio between the second interface and the third interface.
[0061] Specifically, when the target operating condition is the first operating condition, the flow area A1 = A3 = A of the straight pipe, and the flow area A2 of the side pipe is less than or equal to A. The first local resistance coefficient K1 corresponding to the first interface can be directly determined to be 0. Based on the area ratio between the first interface and the second interface and the flow ratio perform interpolation calculation to obtain the second local resistance coefficient corresponding to the second interface . For example, , where 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 corresponding to the third interface . For example, , where is interpolated from the one-dimensional array in the resistance manual table.
[0062] When the target operating condition is the second operating condition, the flow area A1 = A3 = A of the straight pipe, and the flow area A2 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 corresponding to the first interface . For example, . Based on the area ratio and the flow ratio between the second interface and the third interface, perform interpolation calculation to obtain the second local resistance coefficient corresponding to the second interface . For example, , where is interpolated from the two-dimensional array in the resistance manual table. The third local resistance coefficient corresponding to the third interface can be directly determined to be 0.
[0063] When the target working condition is the third working condition or the fourth working condition, the calculation method of the local resistance coefficient is the same. For example, where the flow-through area A1 = A3 = A of the straight pipe and the flow-through area A2 of the side pipe is greater than or equal to A. Based on the flow ratio and the area ratio between the first interface and the second interface, determine the first local resistance coefficient corresponding to the first interface . For example, . The second local resistance coefficient corresponding to the second interface can be directly determined to be 0. Based on the area ratio and the flow ratio between the second interface and the third interface, determine the third local resistance coefficient corresponding to the third interface . For example, . Where are all volume flows.
[0064] Exemplarily, "determine the local resistance pressure drop caused by the form loss based on the local resistance coefficient" in step S530 may include: based on the first local resistance coefficient and the third local resistance coefficient, determine the straight-pipe local resistance coefficient corresponding to the straight pipe in the T-shaped tee, and based on the straight-pipe local resistance coefficient, determine the local resistance pressure drop caused by the form loss of the straight pipe; based on the second local resistance coefficient, determine the local resistance pressure drop caused by the form loss of the side pipe in the T-shaped tee.
[0065] Specifically, the first local resistance coefficient and the third local resistance coefficient flowing into the straight pipe (i.e., the main branch) in the T-shaped tee can be added to obtain the straight-pipe local resistance coefficient corresponding to the straight pipe. The second local resistance coefficient flowing into the side pipe (i.e., the side branch) in the T-shaped tee can be directly determined as the side-pipe local resistance coefficient 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: , determine the local resistance pressure drop caused by the form loss of the straight pipe based on the straight-pipe local resistance coefficient, and determine the local resistance pressure drop caused by the form loss of the side pipe based on the second local resistance coefficient.
[0066] Exemplarily, after obtaining the local resistance coefficient of the T-shaped tee under the target working condition, it may further include: based on the local resistance coefficient calculated in the previous iteration of the T-shaped tee, performing continuity processing on the local resistance coefficient calculated in the current iteration to update the local resistance coefficient calculated in the current iteration.
[0067] Specifically, in actual situations, it may be encountered that the flow rate is large or small, and the local resistance coefficient is strongly correlated with the flow rate, so continuity processing of the local resistance coefficient is required. For example, after determining each local resistance coefficient of the T-shaped tee under the target working condition in the current iteration process, based on each local resistance coefficient calculated in the previous iteration, continuity processing can be performed on the local resistance coefficient calculated in the current iteration. For example, for each local resistance coefficient 、 or in terms of, the local resistance coefficient calculated in the previous iteration and the local resistance coefficient calculated in the current iteration are weighted processed, and the processing result is used as the local resistance coefficient calculated in the current iteration . For example, , so as to ensure that the local resistance coefficient does not change too violently in successive iterations, thereby avoiding the situation where the main equation does not converge.
[0068] S540. By solving the wall friction equation, the wall friction pressure drop caused by friction loss is obtained.
[0069] Specifically, the Lockhart-Martinelli model can be used to calculate the two-phase total pressure drop, and then the Chisholm two-phase friction theory is applied to obtain the gas-liquid phase pressure drop, so as to obtain the wall friction pressure drop caused by friction loss.
[0070] S550. By solving the main equation set 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.
[0071] Specifically, the local resistance pressure drop and the wall friction pressure drop are transmitted to the mass conservation equation, the energy conservation equation, and the momentum conservation equation in the main equation set for solution to obtain the simulation results of specific enthalpy, pressure, and velocity in the current iteration process, thereby realizing the simulation test of the T-shaped tee model.
[0072] In the technical solution of this embodiment, in each iteration process of the simulation system, by solving the structural loss equation based on the target working condition corresponding to the T-shaped tee, the local resistance coefficient of the T-shaped tee under the target working condition is obtained, and the local resistance pressure drop caused by the form loss is determined based on the local resistance coefficient; by solving the wall friction equation, the wall friction pressure drop caused by the friction loss is obtained; by solving the main body equations 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. Thus, on the premise of ensuring the calculation efficiency and accuracy, the reusability and expandability of the model are realized. At the same time, this method provides reliable support for industrialized modeling applications and useful references for the design and optimization of pipeline accessories in the engineering field.
[0073] The following is an embodiment of the T-shaped tee simulation test device provided by the embodiment of the present invention. This device and the T-shaped tee simulation test method of the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiment of the T-shaped tee simulation test device, reference can be made to the embodiment of the T-shaped tee simulation test method.
[0074] Figure 7 FIG. is a schematic structural diagram of a T-shaped tee simulation test device provided by an embodiment of the present invention. This embodiment is applicable to the situation of simulating and testing a T-shaped tee. As Figure 7 shown, the device specifically includes: a T-shaped tee model construction module 710 and a T-shaped tee simulation test module 720.
[0075] Among them, the T-shaped tee model construction module 710 is used to construct a T-shaped tee model corresponding to the T-shaped tee. Among them, the T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and the structural loss equation of the T-shaped tee; the T-shaped tee simulation test module 720 is used to connect the T-shaped tee model with other pipeline components to construct a simulation system, and based on the simulation system, simulate and test the target parameters of the T-shaped tee under the target working condition to obtain the target parameter value corresponding to the target parameter, where the target working condition is characterized based on the fluid flow direction of the T-shaped tee.
[0076] The technical solution of this embodiment constructs a T-shaped tee model that better conforms to the physical actual situation. The T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee. Connect the T-shaped tee model with other pipeline components to construct a complete simulation system, and based on the simulation system, the target parameters of the T-shaped 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 the simulation tests under different working conditions, realizing the reusability and scalability of the model, and providing reliable support for industrialized modeling applications.
[0077] Optionally, the target parameters include: the specific enthalpy, pressure, and velocity of the T-shaped tee.
[0078] Optionally, in the main body equation set, the main control volume is represented in the form of the control volume, and the secondary control volume is represented in the form of the nozzle; the control volume calculates the mass conservation equation and energy conservation equation, and each nozzle calculates the momentum conservation equation. At the same time, the control volume transfers the calculated parameter values to each nozzle, and each nozzle transfers the calculated parameter values to the control volume, and the two are coupled and iterated to complete the calculation of the main body equation set and the constitutive equation set.
[0079] Optionally, the T-shaped tee simulation test module 720 includes:
[0080] The local resistance pressure drop determination unit is used to solve the structural loss equation based on the target working condition corresponding to the T-shaped tee in each iteration process of the simulation system, obtain the local resistance coefficient of the T-shaped tee under the target working condition, and determine the local resistance pressure drop caused by the form loss based on the local resistance coefficient;
[0081] The wall friction pressure drop determination unit is used to solve the wall friction equation to obtain the wall friction pressure drop caused by the friction loss;
[0082] The target parameter value determination unit is used to solve the main body equation set based on the local resistance pressure drop and the wall friction pressure drop to obtain the target parameter values corresponding to the target parameters under the target working condition.
[0083] Optionally, the local resistance coefficient includes: a first local resistance coefficient corresponding to a first interface in the T-shaped tee, a second local resistance coefficient corresponding to a second interface, and a third local resistance coefficient corresponding to a third interface, where the first interface and the third interface refer to the two side interfaces of the straight pipe in the T-shaped tee, and the second interface refers to one side interface of the side pipe in the T-shaped tee;
[0084] The target working conditions include a first working condition, a second working condition, a third working condition, and a fourth working condition. Among them, the first working condition means that the first interface is the inlet and the second interface and the third interface are both outlets, or the third interface is the inlet and the first interface and the second interface are both outlets; the second working condition means that the first interface and the second interface are both inlets and the third interface is the outlet, or the second interface and the third interface are both inlets and the first interface is the outlet; the third working condition means that the first interface and the third interface are both inlets and the second interface is the outlet; the fourth working condition means that the second interface is the inlet and the first interface and the third interface are both outlets.
[0085] Optionally, the local resistance pressure drop determination unit is specifically configured to:
[0086] When the target working condition is the first working condition, determine that the first local resistance coefficient corresponding to the first interface is 0, and perform interpolation calculation based on the area ratio and flow ratio between the first interface and the second interface to obtain the second local resistance coefficient corresponding to the second interface, and perform interpolation calculation based on the flow ratio between the first interface and the third interface to obtain the third local resistance coefficient corresponding to the third interface;
[0087] When the target working condition is the second working condition, determine the first local resistance coefficient corresponding to the first interface based on the flow ratio between the first interface and the third interface, perform interpolation calculation based on the area ratio and flow ratio between the second interface and the third interface to obtain the second local resistance coefficient corresponding to the second interface, and determine that the third local resistance coefficient corresponding to the third interface is 0;
[0088] When the target working condition is the third working condition or the fourth working condition, determine the first local resistance coefficient corresponding to the first interface based on the flow ratio and area ratio between the first interface and the second interface, and determine that the second local resistance coefficient corresponding to the second interface is 0, and determine the third local resistance coefficient corresponding to the third interface based on the area ratio and flow ratio between the second interface and the third interface.
[0089] Optionally, the local resistance pressure drop determination unit is further configured to:
[0090] Based on the first local resistance coefficient and the third local resistance coefficient, determine the local resistance coefficient of the straight pipe corresponding to the straight pipe in the T-shaped tee, and based on the local resistance coefficient of the straight pipe, determine the local resistance pressure drop caused by the form loss of the straight pipe; based on the second local resistance coefficient, determine the local resistance pressure drop caused by the form loss of the side pipe in the T-shaped tee.
[0091] Optionally, the device further includes:
[0092] A local resistance coefficient update module, configured 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-shaped tee, so as to update the local resistance coefficient calculated in the current iteration.
[0093] The T-shaped tee simulation test device provided by the embodiments of the present invention can execute the T-shaped tee simulation test method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the T-shaped tee simulation test method.
[0094] It should be noted that in the embodiments of the above-mentioned T-shaped tee simulation test device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and are not used to limit the protection scope of the present invention.
[0095] Figure 8 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 8 The block diagram of the exemplary electronic device 12 suitable for implementing the embodiments of the present invention is shown. Figure 8 The displayed electronic device 12 is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present invention.
[0096] As Figure 8 shown, the electronic device 12 is presented 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 connecting different system components (including the system memory 28 and the processing unit 16).
[0097] The bus 18 represents one or more of several types of bus structures, including a memory bus or a memory control body, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0098] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media accessible by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0099] The system memory 28 can 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 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 can be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 8 not shown, commonly referred to as a "hard disk drive"). Although Figure 8 not shown in, a disk drive for reading and writing on removable non-volatile disks (such as a "floppy disk"), and an optical disk drive for reading and writing on removable non-volatile optical disks (such as a CD-ROM, DVD-ROM or other optical media) can be provided. In these cases, each drive can be connected to the bus 18 through one or more data media interfaces. The system memory 28 can include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0100] A program / utility 40 having a set (at least one) of program modules 42 can be stored, for example, in the system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. An implementation of a network environment may be included in each or some combination of these examples. The program modules 42 generally perform the functions and / or methods in the embodiments described in the present invention.
[0101] The electronic device 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 22. Moreover, the electronic device 12 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the electronic device 12 through the bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in combination 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, etc.
[0102] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the steps of a T-shaped tee joint simulation test method provided by any embodiment of the present invention. The method includes:
[0103] Construct a T-shaped tee joint model corresponding to the T-shaped tee joint. Among them, the T-shaped tee joint is structurally divided into a control volume and three nozzles. The T-shaped tee joint model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, the energy conservation equation, and the momentum conservation equation of the T-shaped tee joint. The constitutive equation set includes the wall friction equation and the structural loss equation of the T-shaped tee joint;
[0104] Connect the T-shaped tee joint model with other pipeline components to construct a simulation system, and perform a simulation test on the target parameters of the T-shaped tee joint under the target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters. Among them, the target working conditions are characterized based on the fluid flow direction of the T-shaped tee joint.
[0105] Of course, those skilled in the art can understand that the processor can also implement the technical solutions of the T-shaped tee joint simulation test method provided by any embodiment of the present invention.
[0106] Those of ordinary skill in the art should understand that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be concentrated on a single computing device or distributed across a network composed of multiple computing devices. Optionally, they can be implemented using 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 separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0107] Note that the above is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope 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. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A simulation test method for a T-shaped tee joint, characterized in that Including: Construct a T-shaped tee model corresponding to the T-shaped tee. The T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and structural loss equation of the T-shaped tee; Connect the T-shaped tee model with other pipeline components to construct a simulation system, and perform a simulation test on the target parameters of the T-shaped tee under the target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters. The target working conditions are characterized based on the fluid flow direction of the T-shaped tee; Among them, in the main body equation set, the main control volume is represented in the form of the control volume, and the secondary control volume is represented in the form of the nozzle; the control volume calculates the mass conservation equation and energy conservation equation, and each nozzle calculates the momentum conservation equation. At the same time, the control volume transfers the calculated parameter values to each nozzle, and each nozzle transfers the calculated parameter values to the control volume, and the two are coupled and iterated to complete the calculation of the main body equation set and the constitutive equation set; Performing a simulation test on the target parameters of the T-shaped tee under the target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters includes: In each iteration process of the simulation system, by solving the structural loss equation based on the target working conditions corresponding to the T-shaped tee, the local resistance coefficient of the T-shaped tee under the target working conditions is obtained, 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 the friction loss is obtained; By solving the main body equation set based on the local resistance pressure drop and the wall friction pressure drop, the target parameter values corresponding to the target parameters under the target working conditions are obtained.
2. The method according to claim 1, wherein The target parameters include: the specific enthalpy, pressure, and velocity of the T-shaped tee.
3. The method according to claim 1, wherein The local resistance coefficients include: the first local resistance coefficient corresponding to the first interface in the T-shaped tee, the second local resistance coefficient corresponding to the second interface, and the third local resistance coefficient corresponding to the third interface. The first interface and the third interface refer to the two side interfaces of the straight pipe in the T-shaped tee, and the second interface refers to one side interface of the side pipe in the T-shaped tee; The target working conditions include a first working condition, a second working condition, a third working condition, and a fourth working condition. Among them, the first working condition means that the first interface is an inlet and the second and third interfaces are both outlets, or the third interface is an inlet and the first and second interfaces are both outlets; the second working condition means that the first and second interfaces are both inlets and the third interface is an outlet, or the second and third interfaces are both inlets and the first interface is an outlet; the third working condition means that the first and third interfaces are both inlets and the second interface is an outlet; the fourth working condition means that the second interface is an inlet and the first and third interfaces are both outlets.
4. The method according to claim 3, wherein By solving the structural loss equation based on the target working condition corresponding to the T-shaped tee, the local resistance coefficient of the T-shaped tee under the target working condition is obtained, including: When the target working condition is the first working condition, it is determined that the first local resistance coefficient corresponding to the first interface is 0, and interpolation calculation is performed based on the area ratio and flow ratio between the first interface and the second interface to obtain the second local resistance coefficient corresponding to the second interface, and interpolation calculation is performed based on the flow ratio between the first interface and the third interface to obtain the third local resistance coefficient corresponding to the third interface; When the target working condition is the second working condition, the first local resistance coefficient corresponding to the first interface is determined based on the flow ratio between the first interface and the third interface, interpolation calculation is performed based on the area ratio and flow ratio between the second interface and the third interface to obtain the second local resistance coefficient corresponding to the second interface, and it is determined that the third local resistance coefficient corresponding to the third interface is 0; When the target working condition is the third working condition or the fourth working 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 it is determined that the second local resistance coefficient corresponding to the second interface is 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.
5. The method according to claim 3, wherein Based on the local resistance coefficient, the local resistance pressure drop caused by form loss is determined, including: 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-shaped tee is determined, and based on the straight-pipe local resistance coefficient, the local resistance pressure drop caused by form loss of the straight pipe is determined; Based on the second local resistance coefficient, the local resistance pressure drop caused by form loss of the side pipe in the T-shaped tee is determined.
6. The method according to claim 1, characterized in that, After obtaining the local resistance coefficient of the T-shaped tee under the target working condition, it further includes: Based on the local resistance coefficient calculated in the previous iteration of the T-shaped tee, the local resistance coefficient calculated in the current iteration is processed for continuity to update the local resistance coefficient calculated in the current iteration.
7. A T-shaped three-way simulation test device, characterized in that Including: The T-shaped tee model construction module is used to construct the T-shaped tee model corresponding to the T-shaped tee. Among them, the T-shaped tee is structurally divided into a control volume and three nozzles. The T-shaped tee model includes a main body equation set and a constitutive equation set. The main body equation set includes the mass conservation equation, energy conservation equation, and momentum conservation equation of the T-shaped tee. The constitutive equation set includes the wall friction equation and the structural loss equation of the T-shaped tee; The T-shaped tee simulation test module is used to connect the T-shaped tee model with other pipeline components to construct a simulation system, and perform simulation tests on the target parameters of the T-shaped tee under the target working conditions based on the simulation system to obtain the target parameter values corresponding to the target parameters. Among them, the target working conditions are characterized based on the fluid flow direction of the T-shaped tee; Among them, in the main body equation set, the main control volume is represented in the form of the control volume, and the secondary control volume is represented in the form of the nozzle; the control volume calculates the mass conservation equation and the energy conservation equation, and each nozzle calculates the momentum conservation equation. At the same time, the control volume transfers the calculated parameter values to each nozzle, and each nozzle transfers the calculated parameter values to the control volume. The two are coupled and iterated to complete the calculation of the main body equation set and the constitutive equation set; The T-shaped tee simulation test module includes: The local resistance pressure drop determination unit is used to solve the structural loss equation based on the target working conditions corresponding to the T-shaped tee in each iteration process of the simulation system, obtain the local resistance coefficient of the T-shaped tee under the target working conditions, and determine the local resistance pressure drop caused by the shape loss based on the local resistance coefficient; The wall friction pressure drop determination unit is used to solve the wall friction equation to obtain the wall friction pressure drop caused by the friction loss; The target parameter value determination unit is used to solve the main body equation set based on the local resistance pressure drop and the wall friction pressure drop to obtain the target parameter values corresponding to the target parameters under the target working conditions.
8. An electronic device, characterized in that, The electronic device includes: 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-shaped tee simulation test method according to any one of claims 1-6.
Citation Information
Patent Citations
Modelica-based two-phase flow pipeline design method and system and medium
CN115186419A
Automated streaming data model generation with parallel processing capability
US11550643B1