Adaptive flange device, adjustment method and system for pressure pipeline
Through the variable diameter structure and intelligent control of the adaptive flange device, the problems of single flow and chattering of the internal flow path of the flange in the pressure pipeline system are solved, achieving stable flow output and improving system stability under any conditions.
Patent Information
- Application Number
- CN202410725573.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-06
AI Technical Summary
It is difficult to maintain the single-pass variable diameter structure of the internal flow path of the flange in the pressure pipeline system with the existing technology. As a result, the pressure pipeline connected to the output end cannot meet the basic flow output task under any variable conditions, and there is also a vibration problem.
Design an adaptive flange device that extrudes the flexible sleeve through the shrinking component to form a variable diameter structure to ensure the seamless integrity of the flow path, and realizes dynamic adjustment of the diameter and taper through the frame component and servo electric cylinder. Combined with Momentum gradient descent algorithm and PID controller to optimize flow and pressure conditions in real time.
It realizes that the pressure pipeline connected to the output end can meet the basic flow output under any variable conditions, reducing tremor, improving system stability and efficiency, extending service life, and reducing failure rate and energy consumption.
Smart Images

Figure CN118293293B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pressure systems, in particular to the technical field of flanges for pressure pipeline node connections, and in particular to an adaptive flange device, an adjustment method and a system for pressure pipelines. Background Art
[0002] In the pressure piping system, flanges are usually used to connect the pressure pipes at the front and rear ends. When the medium is flowing, the flow channel design inside the flange may cause turbulence or eddy currents when the fluid passes through due to rigid impact, unevenness or changes, thereby causing vibration.
[0003] To this end, traditional technology has developed a flange with a variable diameter structure in the internal flow channel. The change in the shape and size of the internal flow channel can have a certain impact on the flow of the fluid. If designed properly, this flange can reduce the eddy current and turbulence generated by the fluid at the bend or diameter change of the pipeline to a certain extent, thereby reducing the instability of the flow.
[0004] However, when the flow, pressure, speed and other parameters of the input medium are in a state of constant change, the fluid dynamics in the pipeline system will become more complicated. Although the reducer flange can improve the stability of the flow to a certain extent, its design is usually based on specific working conditions. When these conditions change, the originally optimized flow channel design may no longer be applicable, and may even aggravate the instability of the flow. Therefore, there are many existing technologies that have been improved and optimized to address this phenomenon, such as:
[0005] A prior art discloses a retractable flange [1] By adjusting the axial length of the flange pipe fitting, the pressure shock caused by the medium inside the flange can be compensated; however, it only realizes a "buffer zone" by the change of length, which can only optimize the axial force of the fluid; when the flow rate is too high, the pressure pipeline connected to its output end will still be affected by vibration; at the same time, the adjustment of the axial length means that it cannot play its telescopic function when it is connected to the fixed pressure pipeline at the front and back.
[0006] Another prior art discloses a flange capable of automatically reducing pressure [2] By setting a pressure relief pipe on the flange fitting, the pressure shock caused by the medium inside the flange can be compensated; however, this multi-pass design destroys the single-channel mode of the flange fitting, so that the fluid will not be backflowed when flowing through the bypass, but turbulence and eddy current will be generated, which will not only increase energy consumption, but may also cause wear on the pipeline at the output end;
[0007] Another prior art discloses a flexible flange [3], by setting a guide component, the pressure shock caused by the medium inside the flange is compensated; however, it cannot adaptively adjust the inner diameter of the flange pipe fitting, and the passage of the flange pipe fitting has multiple components built in, which is not a smooth and complete overall flow channel, so that the fluid will produce turbulence and eddy currents, and the above-mentioned technical problems still occur;
[0008] Another prior art discloses a flexible flange [4] , by splitting the flange into two parts and connecting them with wire ropes, the wire ropes are used to compensate for the pressure shock inside the flange caused by the influence of the medium; however, the flange as a whole is still a rigid component, and it cannot guarantee that the pressure pipeline connected to the output end can meet the basic flow output task under any variable conditions;
[0009] Another prior art discloses an improved structure of a pressure pipe [5] , by optimizing the diameter of the structure of the rectifying channel, the fluid medium is optimized to be ejected (output) in a centralized form; although it is adapted to and optimized for the "toilet" scenario where the fluid input is constant under this technical solution, once the fluid input is variable, its structure cannot guarantee that the pressure pipeline connected to the output end can meet the basic flow output task without vibration under any variable conditions;
[0010] Another prior art discloses an improved structure of a pressure pipe [6] , through the built-in spring sheet, the adaptive variable diameter adjustment of the pipe fitting is realized, but each spring sheet cannot form a complete seamless structure, resulting in the generation of eddy currents; at the same time, this adjustment mode is a passive adjustment based on the pressure generated by the size of the fluid, and it has no active adjustment ability; and the multiple spring sheets arranged in an annular manner and the corresponding gaps become a spoiler structure, so that the turbulence generated by the fluid will scatter and impact the inner wall of the pipe body, causing more serious vibration;
[0011] Another prior art discloses an improved pressure relief structure for a pressure pipe [7] , a variable diameter structure is realized through the built-in reset mechanism and the pressure relief ball, which realizes the adaptive fluid performance optimization of input and output; however, its variable diameter structure is not on the same axis, and it is a three-way parallel design, which still has the above-mentioned technical problems.
[0012] In summary, the technical problem to be solved by the present invention can be summarized as: how to ensure that the internal flow path of the flange belongs to a seamless single-pass variable diameter structure, and ensure that the pressure pipeline connected to the output end meets the basic flow output task under any variable conditions while reducing vibration.
[0013] To this end, the present invention proposes an adaptive flange device, an adjustment method and a system for a pressure pipeline.
[0014] The literature information cited in this background technology is as follows:
[0015] [1] Zhong Tingliang, Li Huifang. A pipeline expansion joint [P]. CN200920279268.8: 2010-09-22.
[0016] [2]Xiao Yuanchao, Liu Haiguang, Zhang Laide, et al. A pressure pipe with regulating function[P]. CN202020131974.4: 2020-09-22.
[0017] [3] Chen Wenjun. An adaptive flexible flange[P]. CN202022714981.X: 2021-07-30.
[0018] [4] Dong Chaokui, Liang Chengying. A flexible flange connector [P]. CN201620750807.1: 2016-12-07.
[0019] [5] Chen Jinlai. An optimized toilet nozzle structure and a toilet with the nozzle structure [P]. CN201921813835.3: 2020-11-17.
[0020] [6] Xu Ting, Geng Qingzhu, Zhang Baorui, et al. A water flow device for maintaining stable flow[P]. CN201921958502.X: 2020-07-24.
[0021] [7] Yu Wenqi, Yu Danyang. A smart pressure reducing device for liquid pipelines[P]. CN202022805362.1: 2021-08-03. Summary of the invention
[0022] In view of this, the embodiment of the present invention hopes to provide an adaptive flange device, adjustment method and system for pressure pipelines to solve or alleviate the technical problems existing in the prior art, namely, how to ensure that the internal flow path of the flange belongs to a seamless single-pass variable structure, and ensure that the pressure pipeline connected to the output end meets the basic flow output task under any variable conditions, while reducing vibration. And at least one beneficial option is provided for this; the technical solution of the present invention is implemented as follows:
[0023] First, adaptive flange device for pressure pipe:
[0024] In order to achieve the requirements of the technical problems to be solved, the basic functions of the flange device are as follows: the input end and the output end are respectively connected to the two pressure pipes, the flow path inside the flange device has a variable diameter structure, the shape of the flow path includes a large diameter A located on the input end side and a small diameter C located on the output end side, the variable diameter structure includes a small diameter B arranged between the large diameter A and the small diameter C and having the same size as the small diameter C, and there is a taper D between the small diameter B and the large diameter A; in summary, the improvements are as follows:
[0025] The major diameter A, the minor diameter B, the minor diameter C and the taper D are formed by squeezing the flexible sleeve 3 through the expansion and contraction component 2 to form the flow path and have the variable diameter structure; and according to the current medium flow, size and / or pressure at the input end, the pressure pipeline at the output end does not vibrate and is under the condition of normal flow output, the minor diameter B and the minor diameter C of the flexible sleeve 3, and the taper D are adjustable, and the flow path is an integral seamless structure and its sealing degree remains unchanged.
[0026] In one embodiment, in order to achieve the support requirements of the retractable assembly 2, a frame assembly 1 is introduced, and a plurality of groups of the retractable assembly 2 are mounted in a circular array on the frame assembly 1, so that all the retractable assembly 2 form a polygonal approximate cylindrical shape;
[0027] The shrinking and expanding component 2 not only squeezes the flexible sleeve 3 in the frame component 1 to adjust the axial length, but also squeezes the flexible sleeve 3 to shrink and expand in the frame component 1 to adjust the size of the minor diameter B, the minor diameter C and the taper D of the flexible sleeve 3;
[0028] Specifically, the frame assembly 1 includes a first sleeve 101 and a second sleeve 103 fixed therein, wherein the second sleeve 103 is located in the inner middle portion of the first sleeve 101;
[0029] At the same time, in order to facilitate the introduction of the matching connection relationship of the structural parts in the following text, the axial direction of the first sleeve 101 will be directly perpendicular to the horizontal plane for understanding and introduction:
[0030] The redundant positions of the inner upper part of the first sleeve 101 are provided with dovetail frames 102 with sliding grooves in the form of a ring array, and the expansion and contraction assembly 2 slides in the frame assembly 1 by means of the dovetail frames 102;
[0031] The second sleeve 103 and the first sleeve 101 cooperate to form an annular groove, in which the bottom of the flexible sleeve 3 is embedded, and the upper part of the flexible sleeve 3 extends from the first sleeve 101 and is flush with the top surface of the expansion and contraction assembly 2;
[0032] Specifically, in order to meet the normal flange docking requirements, the first connection plate 5 is fixedly provided at the bottom of the first sleeve 101, and the top of the flexible sleeve 3 needs to be matched with the second connection plate 6; the first connection plate 5 and the second connection plate 6, both of which are hollow, are responsible for connecting different pressure pipes, that is, realizing the functions of the input end and the output end mentioned above. The first connection plate 5 and the second connection plate 6 may be provided with a plurality of threaded holes on the outside to dock different pressure pipes in a bolted connection mode;
[0033] Specifically, if the second connection plate 6 is connected to the external pressure pipe system, the small diameter C of the flexible sleeve 3 will inevitably be stretched when the size changes, forming a bell-shaped structure, which is contrary to the original intention of the present technical solution. Therefore, an annular receiving groove 601 needs to be provided in the second connection plate 6, and a telescopic portion 304 extends from the top of the flexible sleeve 3, and the telescopic portion 304 is limitedly slidably fitted in the receiving groove 601; when the expansion and contraction component 2 squeezes the flexible sleeve 3, Fig.12 As shown in the structure of the F area, when the expansion and contraction assembly 2 squeezes the flexible sleeve 3, the telescopic portion 304 has a rounded structure, which does not affect the forming of the small diameter C. At the same time, the lifting space of the expansion and contraction assembly 2 is reserved; when the small diameter C needs to be expanded or contracted, the telescopic portion 304 is limitedly slidably matched in the storage groove 601, which does not affect the normal change of the small diameter C.
[0034] In one embodiment: in combination with the above, the major diameter A, the minor diameter B, the minor diameter C and the taper D are formed by the expansion and contraction assembly 2 squeezing the flexible sleeve 3 into the flow path and having the variable diameter structure. All the expansion and contraction assemblies 2 form a polygonal approximate cylindrical shape, and this approximate cylindrical shape squeezes the flexible sleeve 3 into the flow path and has the variable diameter structure. Therefore, how to make all the expansion and contraction assemblies 2 approach or move away from each other, and ensure that the approximate cylindrical shape still has three-dimensional geometric characteristics and is adjustable in size, is the main function of the expansion and contraction assembly 2.
[0035] Therefore, each of the retractable and expandable components 2 includes a first plate body 202 and a second plate body 203;
[0036] Taking the axis of the approximate cylindrical shape as a reference, the first plate 202 and the second plate 203 fit each other, and the second plate 203 is located inside and occupies half of the first plate 202; and the second plate 203 in the remaining retractable assembly 2 occupies the other end of the first plate 202. In this way, the approximate cylindrical shape is formed by a circle, and the surface of the second plate 203 contacts the flexible sleeve 3, so that the minor diameter B and the minor diameter C of the flexible sleeve 3 are formed;
[0037] However, the taper D has not yet been formed; therefore, the bottom of the first plate body 202 and the second plate body 203 are both hinged with a telescopic plate 204 that can be telescoped up and down and is arranged obliquely, the bottom of the telescopic plate 204 matched with the first plate body 202 is slidably matched with the dovetail frame 102 of the first sleeve 101, and the bottom of the telescopic plate 204 matched with the second plate body 203 is hinged to the top of the first sleeve 101;
[0038] In this way, the surface of the telescopic plate 204 also contacts the flexible sleeve 3, so that the taper D of the flexible sleeve 3 is formed; at the same time, when the telescopic plate 204 slides up and down through the first servo electric cylinder 205, the taper D can be adjusted.
[0039] Specifically, however, the introduction of the telescopic plate 204 only provides support for the first plate body 202 and the second plate body 203 (i.e., the hinge mentioned above), and it cannot control the second plate body 203 to slide on the surface of the first plate body 202, that is, it cannot further make the second plate body 203 of each of the telescopic components 2 move closer to or farther away from each other synchronously, so as to achieve the above-mentioned "ensuring that the approximately cylindrical shape still has three-dimensional geometric features and is adjustable in size";
[0040] Therefore, for each of the retractable and extendable components 2, a retractable arm 201 and a linkage component 207 that can be raised and lowered are also required to be introduced. The upper part of the retractable arm 201 is hinged to the outer surface of the first plate 202, the middle part of the linkage component 207 is connected to the middle part of the first plate 202, and the two sides of the linkage component 207 are slidably matched with the two second plate bodies 203, that is, the second plate body 203 in the current retractable and extendable component 2 and the second plate body 203 in the adjacent retractable and extendable component 2; when the retractable arm 201 is raised and lowered, it pulls and drives the first plate body 202 to perform linear displacement; and because the lower part of the first plate body 202 has a retractable plate 204 that functions as a hinge, the reference point of the linear displacement lies in the sliding matching relationship between the retractable plate 204 and the dovetail frame 102. At this time, because the linkage component 207 defines the second plate body 203, the actions of the first plate body 202 and the second plate body 203 at this time are:
[0041] 1) The first plate 202 moves closer or farther along the central axis of the approximately cylindrical shape, with only one redundant degree of freedom at the bottom, which is offset by the sliding of the telescopic plate 204 on the dovetail frame 102;
[0042] 2) The second plate 203: under the linkage of the linkage assembly 207 and the extrusion of the first plate 202, the second plate 203 also moves closer or farther along the central axis of the approximately cylindrical shape, and its bottom has no extra degree of freedom and is supported by being hinged to the first sleeve 101 by the bottom of the telescopic plate 204;
[0043] 3) Due to the relationship of "two second plates 203 + one first plate 202" mentioned above, the approximately cylindrical shape still has three-dimensional geometric features and its size is adjustable;
[0044] Therefore, the second plate 203 moves closer to or farther away from the central axis line of the approximately cylindrical shape, and the size of the minor diameter B and the minor diameter C of the flexible sleeve 3 is adjusted during the process of squeezing the flexible sleeve 3 .
[0045] In one embodiment, when the second plate body 203 and the first plate body 202 are moving closer or farther away from each other along the central axis of the approximately cylindrical shape, the telescopic plates 204 supported by their respective bottoms are slidable. Therefore, when performing the above-mentioned actions, the telescopic plates 204 will inevitably slide uncontrollably due to the influence of gravity or reaction force, but the first servo electric cylinder 205 can output a linear reverse stroke to offset the sliding.
[0046] However, the above mode can only offset the linear force. If it is a rotational force, the first servo electric cylinder 205 cannot be adapted accordingly. Therefore, the telescopic plate 204 needs to be improved accordingly.
[0047] Specifically, the telescopic plate 204 includes an inlay plate 2042 and a slide plate 2041 sliding therein. With the midpoint of the flexible sleeve 3 as a reference, the bottoms of the first plate body 202 and the second plate body 203 are hinged with a telescopic plate 204 that can be telescoped up and down and is arranged obliquely. The bottom of the inlay plate 2042 of the telescopic plate 204 that cooperates with the first plate body is slidably matched with the dovetail frame 102 of the first sleeve 101, and the bottom of the telescopic plate 204 that cooperates with the second plate body 203 is hinged to the top of the first sleeve 101.
[0048] The top of the slide plate 2041 is hinged to the bottom of the first plate body 202 or the bottom of the second plate body 203 in a reverse stroke self-locking manner through a reverse stroke self-locking component 206;
[0049] This ensures that the force transmitted by the first plate 202 or the second plate 203 that can cause the slide plate 2041 to move in the opposite direction of the current movement is not received by the panel 2042 .
[0050] Specifically, the reverse stroke self-locking assembly 206 includes a sleeve 2061, a pin shaft 2062 rotatably fitted therein, a rotating disk 2063 fixedly provided on the pin shaft 2062, a ratchet 2065 hingedly connected to the rotating disk 2063 and elastically storing force through an elastic paddle 2066, the ratchet 2065 meshes with a ratchet wheel 2064 fixedly provided in the sleeve 2061, and based on the elastic paddle 2066, the ratchet 2065 is always meshed with the ratchet wheel 2064; the sleeve 2061 is fixedly provided on the sliding Plate 2041, the pin shaft 2062 is fixed to the second plate body 203 or the first plate body 202; the opening directions of the ratchet 2065 and the ratchet wheel 2064 need to meet the following adjustment: when the second plate body 203 and the first plate body 202 are approaching or moving away from each other along the straight line of the center axis of the approximate cylinder, if a rotational force opposite to the extension direction of the telescopic plate 204 is generated, the ratchet 2065 will clamp the ratchet wheel 2064; otherwise, the ratchet 2065 will engage with the ratchet wheel 2064.
[0051] In one embodiment, the relationship of "two second plates 203 + one first plate 202" achieves "movement close to or away from the central axis of the approximate cylindrical shape", but it is only achieved by relying on a retractable telescopic arm 201. In order to achieve this movement of all the retractable components 2 synchronously, that is, to meet the relationship of "the approximate cylindrical shape still has three-dimensional geometric features and is adjustable in size" while ensuring that the approximate cylindrical shape does not deform, a linear component 4 is also required.
[0052] Specifically, the linear assembly 4 includes a slide tube 401 vertically slidingly matched with the first sleeve 101 of the frame assembly 1, and a second servo electric cylinder 402;
[0053] The cylinder body and piston rod of the second servo electric cylinder 402 are respectively fixed to the first sleeve 101 and the slide tube 401, and the top of the slide tube 401 is hinged to the bottom of the telescopic arm 201. Then, when all the slide tubes 401 move up and down, all the retractable and extendable components 2 can be controlled to move synchronously.
[0054] However, the introduction of the slide tube 401 causes the movement of the telescopic arm 201 to lose a degree of freedom, because when the telescopic arm 201 moves up and down, the first plate 202 pulled by it moves obliquely. If the telescopic arm 201 is designed as a single rigid part, there will inevitably be mechanical interference; therefore, it is necessary to optimize the design of the telescopic arm 201: it includes a first arm 2011 and a second arm 2012 hinged to its head, the bottom of the first arm 2011 is hinged to the slide tube 401, and the top of the second arm 2012 is hinged to the first plate 202. In this way, the balance of degrees of freedom is achieved due to the existence of the second arm 2012, and no mechanical interference will occur.
[0055] In one embodiment, the major diameter A, the minor diameter B, the minor diameter C and the taper D are formed by squeezing the flexible sleeve 3 through the expansion and contraction assembly 2 to form the flow path and have the variable diameter structure. Based on the above, when all the expansion and contraction assemblies 2 form a polygonal approximate cylindrical shape, each side thereof is substantially formed by the second plate body 203 and the telescopic plate 204. Based on this mechanism feature, the flexible sleeve 3 can be designed with certain special features:
[0056] Protruding ribs 302 and guide grooves 301 are integrally formed at the positions where the second plate body 203 squeezes the outside and inside of the flexible sleeve 3. The guide grooves 301 realize the flow direction combing and optimization of the fluid medium without generating eddy currents. The protruding ribs 302 strengthen the external strength of the flexible sleeve 3 while ensuring that the guide grooves 301 have corresponding molding space.
[0057] When the second plate 203 squeezes the protruding rib 302 in different states, the aperture of the guide groove 301 is controlled to deform in the same manner. Specifically, if the second plate 203 moves closer or farther away from each other, the aperture of the guide groove 301 will become smaller or larger accordingly.
[0058] Furthermore, the outer portion of the protruding rib 302 is uniformly formed with rounded concave teeth 303, and the second plate 203 is stuck in the concave teeth 303. If the spacing between the concave teeth 303 is specially designed, the stepless motion mode of the second plate 203 can be controlled to be a stepped motion mode, and different combing modes can be provided for the guide grooves 301 with corresponding apertures, thereby achieving higher control performance.
[0059] Second, the adaptive flange adjustment method for pressure pipes:
[0060] This method is based on the flange device described above as a hardware carrier. Figure 2 , 11As shown in FIG. 12 , the flexible sleeve 3 of the flange device has a major diameter A, a minor diameter B, a minor diameter C and a taper D. In order to simplify the description, the flexible sleeve 3 of the flange device will be directly Figure 2 The basics are briefly described as A, B, C and D. At the same time, "pressure pipeline" will be directly referred to as "pipeline". The control method includes:
[0061] Step S1, establish a traffic model:
[0062] It is based on the relationship between gas flow and gas path diameter, the condition that the pipeline does not vibrate, and the minimum threshold condition of the output gas flow; first define the following variables:
[0063] Q in (t): air flow Q at the input end at A at time step t in ; Directly given by the air flow sensor of the pressure pipeline connected to A;
[0064] v in (t): airflow velocity v at the input end at A at time step t in ; Directly given by the wind speed sensor of the pressure pipe connected to A;
[0065] P in (t): Pressure P at the input end of A at time step t in ; Directly given by the pressure gauge sensor of the pressure pipe connected to A;
[0066] d B (t), d C (t): Diameter d of the gas path of B and C at time step t B ;
[0067] l D (t): length parameter l of D at time step t D , which affects the taper D;
[0068] Q out (t): air flow Q at output terminal C at time step t out ;
[0069] P out (t): Pressure P at output port C at time step t out ;
[0070] a: The vibration threshold of the pipeline connected to the output end at C needs to be determined by the staff according to the actual working characteristics of the pipeline system.
[0071] b: The minimum threshold of the output air flow rate required by the pipeline connected to the output end at C needs to be determined by the staff according to the actual working requirements of the pipeline system.
[0072] Then, the traffic model is:
[0073] ;
[0074] Where, the first term is based on Poiseuille's law; ΔP(t) is the pressure difference, η is the fluid viscosity, and L is the length (A to C);
[0075] The second term g is a parameter used to describe D, B, C, and input pressure P. in (t) and flow rate Q in (t) How to influence (determine) Q out (t);
[0076] Among them, the tremor function f in the first term of the constraint term represents the output gas flow Q out (t) and pressure P out (t) The impact on the pipe vibration at the C end; the second term of the constraint term represents the output gas flow rate Q out (t) Basic operational requirements;
[0077] The tremor function f is:
[0078] ;
[0079] Among them, k tremor is the tremor coefficient, P avg is the average pressure in the pipe;
[0080] The conditions for tremor to occur are expressed as:
[0081] ;
[0082] Among them, C crit is related to the tremor coefficient k tremor The critical value of
[0083] In summary, step S1, according to the input condition (Q out (t),P out (t)) and output requirements (not more than a, not less than b), set an optimization problem:
[0084] 1) Target: According to the gas flow Q at the input end at the current time step t in (t), speed v in (t) and pressure P in (t) The pipeline at the output end does not vibrate and outputs at a relatively normal flow rate that can meet the relevant operational requirements;
[0085] 2) Condition: The sizes of B, C and D can be adjusted.
[0086] Step S2, solving the optimization problem:
[0087] According to the above optimization problem, the momentum gradient algorithm is introduced to solve the function g in the form of gradient descent, and the adjustment amount d of the minor diameter B, minor diameter C and taper D is obtained. B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 ; The steps include:
[0088] Step S200, define the objective function L as the weighted sum J of the output gas flow and pipeline vibration:
[0089] ;
[0090] Among them, the objective function L introduces Lagrange multipliers λ1 and λ2 to deal with the upper and lower bounds of the output air flow for the previously mentioned constraints; that is, to ensure that Q out Not less than b and not more than a; w1 and w2 in the constraint term are weight coefficients, both of which are interval values between [0,1];
[0091] Step S201, perform momentum gradient descent:
[0092] Let θ = [d B ,d C ,l D ] is the parameter vector we want to optimize (the diameter of B, C and the length of D). Then the update formula of the momentum gradient descent algorithm is:
[0093] ;
[0094] ;
[0095] Among them, ν t is the velocity (momentum) at time step t, ν t+1 is the velocity (momentum) at time step t+1; μ is the momentum coefficient, σ is the learning rate, ∇ θL (θ t ) is the value of the gradient of the Lagrangian function L with respect to the parameter θ at time step t.
[0096] Step S202, calculate the gradient ∇ θL (θ):
[0097] Need to L about d B d C and l D Calculate partial derivatives respectively. Apply momentum gradient descent algorithm to update parameter d B d C and lD , and calculate the parameter d at time step t B d C and l D Momentum , and , and finally iterates to achieve the adjustment amount d of the minor diameter B, minor diameter C and taper D respectively B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 The solution.
[0098] Step S3, applying the PID controller algorithm: adjusting the adjustment amount d B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 The PID controller is used to control the first servo electric cylinder 205 and the second servo electric cylinder 402 to achieve adaptive adjustment of the flange device at the current time step.
[0099] Thirdly, adaptive flange adjustment system for pressure pipes:
[0100] The adjustment system includes a processor and a memory connected to the processor, wherein program instructions are stored in the memory. When the program instructions are executed by the processor, the processor executes the adjustment method as described above and controls the flange device as described above.
[0101] Compared with the prior art, the present invention has the following beneficial effects:
[0102] 1. Adaptive adjustment mechanism: The flange device of the present invention has an adaptive adjustment function, which can be adjusted in real time according to the airflow, size and pressure of the input end. It not only ensures that the pressure pipeline connected to the output end can meet the basic flow output requirements under any variable conditions, but also effectively avoids the vibration phenomenon, improves the stability of the overall pressure pipeline system, prolongs the service life, and reduces the probability of danger.
[0103] 2. Single-pass seamless feature: On the basis of achieving the above functions, the flange of the present invention is also a single-pass seamless design, ensuring that each part forms an integral gas path, thereby significantly reducing the risk of gas leakage. This design improves the safety and efficiency of the system and ensures the sealing of the gas during transmission.
[0104] 3. Special design: The present invention utilizes relevant structures to realize accurate combing and optimization of fluid flow. In particular, the stepless motion mode of the second plate is transformed into a step motion mode, making the control of fluid flow more accurate and reliable. Moreover, the structural design such as the protruding ribs on the flexible sleeve not only optimizes the fluid flow, but also enhances the external strength of the sleeve, enabling it to better withstand the extrusion force and the impact of the internal fluid, thereby improving the mechanical strength and durability of the entire device.
[0105] 4. Improved energy efficiency and environmental protection: The optimized fluid dynamics design and reduced gas leakage risk of the present invention work together to reduce energy loss during gas transmission, thereby improving energy efficiency. This not only reduces energy consumption and operating costs, but also helps to achieve a greener and more environmentally friendly operation mode.
[0106] 5. Intelligent control: The method disclosed in the present invention introduces the concept of momentum gradient descent and combines it with a PID controller to realize intelligent data retrieval, fluid analysis and momentum adjustment, so that the flange device disclosed in the present invention can adapt to and be applied to pressure pipeline systems under different variable conditions, thereby improving operation and adjustment efficiency and increasing the service life of the pressure pipeline.
[0107] 6. Momentum mechanism: The method disclosed in the present invention introduces the concept of momentum gradient descent, which can accelerate convergence by adjusting the current gradient direction by using the previous gradient information. This method enables the optimization process to jump out faster when encountering a local minimum or a flat area, and continue to search for the global minimum, thereby improving the convergence speed of the algorithm. In addition, the traditional gradient descent method may fall into a local optimal solution and be unable to jump out. The momentum gradient descent algorithm of the present invention has the "inertia" of this historical momentum, so that it can break out of the local optimal point in actual application and continue to search for the global optimal solution. Rapid adjustment and application of the flange is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0108] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0109] Figure 1 It is a three-dimensional schematic diagram of the present invention;
[0110] Figure 2 It is a schematic diagram of the variable diameter structure of the flow path inside the flange;
[0111] Figure 3 It is a three-dimensional schematic diagram of the frame assembly and the linear assembly of the present invention;
[0112] Figure 4 The three-dimensional schematic diagram of the frame assembly and the linear assembly of the present invention; the expanded assembly in this figure only shows a set of
[0113] Figure 5 It is a three-dimensional schematic diagram of the specific structure of a single group of retractable and expandable components of the present invention;
[0114] Figure 6 1 is a three-dimensional schematic diagram of the reverse stroke self-locking assembly of the present invention; in order to show the internal structure, the relevant wall structure is cross-sectioned in this figure;
[0115] Figure 7 is a three-dimensional schematic diagram of the flexible sleeve of the present invention; in order to illustrate the squeezing effect of the expansion and contraction components, only half of the expansion and contraction components are shown in this figure;
[0116] Figure 8 is a schematic top view of the flexible sleeve of the present invention;
[0117] Fig. 9 For the present invention Figure 8 Schematic diagram of the enlarged perspective of the E area;
[0118] Fig.10 is a three-dimensional schematic diagram of the flexible sleeve of the present invention;
[0119] Fig.11 A half-section schematic diagram of the flexible sleeve of the present invention;
[0120] Fig.12 It is a schematic diagram of an overall half section of the present invention;
[0121] Fig.13 The figure is a logical schematic diagram of the method flow of the present invention.
[0122] Description of the drawings: 1. Frame assembly; 101. First sleeve; 102. Dovetail frame; 103. Second sleeve; 2. Retractable assembly; 201. Telescopic arm; 2011. First arm body; 2012. Second arm body; 202. First plate body; 203. Second plate body; 204. Telescopic plate; 2041. Slide plate; 2042. Panel; 205. First servo electric cylinder; 206. Reverse stroke self-locking assembly; 2061. Bushing; 2062 , pin shaft; 2063, turntable; 2064, ratchet; 2065, ratchet; 2066, elastic paddle; 207, linkage assembly; 2071, slide; 2072, slider; 3, flexible sleeve; 301, guide groove; 302, protruding rib; 303, concave tooth; 304, telescopic part; 4, linear assembly; 401, slide tube; 402, second servo electric cylinder; 5, first connecting plate; 6, second connecting plate; 601, storage groove. DETAILED DESCRIPTION
[0123] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below;
[0124] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0125] Embodiment 1: This embodiment is intended to provide an adaptive flange device for a pressure pipe, such as Figure 2 As shown, the input end (A) and the output end (C) are connected to two pressure pipes respectively, and the flow path inside the flange device has a variable diameter structure. The shape of the flow path includes a large diameter A located on one side of the input end and a small diameter C located on one side of the output end. The variable diameter structure includes a small diameter B that is arranged between the large diameter A and the small diameter C and is the same size as the small diameter C. There is a taper D between the small diameter B and the large diameter A. The improvement of the flange device that this embodiment hopes to provide is:
[0126] like Figure 1 to Figure 12 As shown, the major diameter A, minor diameter B, minor diameter C and taper D are formed by squeezing the flexible sleeve 3 through the expansion and contraction component 2 to form a flow path with a variable diameter structure; and according to the medium flow, size and / or pressure at the current input end, the pressure pipeline at the output end does not vibrate and is under the condition of normal flow output, the minor diameter B and minor diameter C of the flexible sleeve 3, and the size of the taper D are adjustable, and the flow path is an integral seamless structure while its sealing degree remains unchanged.
[0127] Specifically, the flexible sleeve 3 can be deformed under the action of the expansion and contraction assembly 2, thereby changing the diameter of the flow path. This design allows the flow path to be dynamically adjusted according to actual needs to adapt to different flow and pressure conditions. The taper D is designed to provide a smooth transition area when the flow path diameter changes to reduce turbulence and energy loss of the fluid at the diameter change point. At the same time, the overall seamless structure design ensures the sealing of the flow path and prevents fluid leakage.
[0128] It is understandable that if the above technical requirements can be achieved, the flange device can automatically adjust the diameter of the flow path according to the medium flow, size or pressure at the input end to meet the condition that the output end does not vibrate and outputs at a normal flow rate. Moreover, through the synergistic effect of the flexible sleeve 3 and the expansion and contraction component 2, the device can flexibly adjust the flow path structure to adapt to different working environments and needs. The design of the taper D reduces the energy loss of the fluid at the diameter change point and improves the efficiency of fluid transmission.
[0129] In this embodiment, in order to introduce it more intuitively, the gas will be introduced in detail as gas. At the same time, the "gas path" will be referred to as the "gas path" in the following text: In summary, the technical scheme ensures that parts A, B, C and D form a seamless overall gas path channel, which significantly reduces the risk of gas leakage. Compared with the traditional multi-gas path channel design, the seamless connection design in the scheme of this embodiment makes it more difficult for gas to escape during the transmission process. This design not only improves the safety of the system, but also ensures the efficiency of gas transmission and avoids energy waste and environmental pollution caused by gas leakage.
[0130] In this example, see Figure 2~3 : In order to meet the support requirements of the telescopic components 2, a frame component 1 is introduced, and a plurality of telescopic components 2 are mounted in a circular array on the frame component 1, so that all the telescopic components 2 form a polygonal approximate cylindrical shape;
[0131] The expansion and contraction component 2 not only squeezes the flexible sleeve 3 in the frame component 1 to adjust the axial length, but also squeezes the flexible sleeve 3 in the frame component 1 to expand and contract to adjust the size of the minor diameter B, minor diameter C and taper D of the flexible sleeve 3;
[0132] Specifically, the frame assembly 1 includes a first sleeve 101 and a second sleeve 103 fixed therein, and the second sleeve 103 is located in the inner middle of the first sleeve 101;
[0133] In order to facilitate the introduction of the matching and connecting relationship of the structural parts in the following text, we set the axial direction of the first sleeve 101 to be perpendicular to the horizontal plane: a dovetail frame 102 with a slide groove is arranged in the form of a ring array on the inner upper part of the first sleeve 101, so that the expansion and contraction component 2 can slide in the frame component 1 by relying on the dovetail frame; and the second sleeve 103 and the first sleeve 101 cooperate to form an annular groove, the bottom of the flexible sleeve 3 is embedded in this annular groove, and its upper part extends from the first sleeve 101, and is kept flush with the top surface of the expansion and contraction component 2;
[0134] Specifically, to meet the normal flange docking requirements, a first connection plate 5 is fixed at the bottom of the first sleeve 101, and a second connection plate 6 is matched at the top of the flexible sleeve 3. Both connection plates are hollow in design and are responsible for connecting different pressure pipes to achieve the functions of the input end and the output end. Several threaded holes can be opened on the outside of the first connection plate 5 and the second connection plate 6 to dock different pressure pipes through a bolt connection mode;
[0135] It is understandable that the design of the frame assembly 1 provides a stable support platform for the expansion and contraction assembly 2 and ensures that it can perform precise expansion and contraction operations around the flexible sleeve 3. The slide groove design of the dovetail frame 102 enables the expansion and contraction assembly 2 to slide flexibly within the frame assembly 1, thereby achieving precise extrusion and adjustment of the flexible sleeve 3. The flexible sleeve 3 is embedded in the annular groove between the second sleeve 103 and the first sleeve 101, which ensures that it can remain stable when squeezed by the expansion and contraction assembly 2. At the same time, the upper part of the flexible sleeve 3 is flush with the top surface of the expansion and contraction assembly 2, which ensures the uniformity and effectiveness of the extrusion process. The design of the first connecting plate 5 and the second connecting plate 6 meets the standard requirements of flange docking, so that the device can be easily connected to different pressure pipes.
[0136] In this embodiment, if the second connection plate 6 is connected to the external pressure pipe system, the small diameter C of the flexible sleeve 3 will inevitably be stretched when the size changes, forming a bell-shaped structure, which is contrary to the original intention of this embodiment. Fig.11 : An annular receiving groove 601 is provided in the second connecting plate 6, and a telescopic portion 304 extends from the top of the flexible sleeve 3, and the telescopic portion 304 is limitedly slidably matched in the receiving groove 601; when the retractable component 2 squeezes the flexible sleeve 3, Fig.12 In the structure shown in the F area, when the expansion and contraction assembly 2 squeezes the flexible sleeve 3, the telescopic part 304 has a rounded structure, which does not affect the forming of the small diameter C. At the same time, the lifting space of the expansion and contraction assembly 2 is reserved; when the small diameter C needs to be expanded or contracted, the telescopic part 304 is limited and slidably matched in the storage groove 601, which does not affect the normal change of the small diameter C.
[0137] It can be understood that, by introducing the design of the receiving groove 601 and the telescopic part 304, this embodiment solves the stretching problem that may occur when the small diameter C of the flexible sleeve 3 changes. The receiving groove 601 provides sufficient sliding space for the telescopic part 304, so that it can move freely when the flexible sleeve 3 is squeezed, thereby avoiding stretching deformation. The rounded corner structure design of the telescopic part 304 is also based on the principle of mechanics to reduce stress concentration during the extrusion process, ensure uniform deformation of the flexible sleeve 3, and then ensure the molding quality of the small diameter C. At the same time, the rounded corner structure design of the telescopic part 304 helps to reduce stress concentration and improve the molding quality of the small diameter C. Moreover, by optimizing the connection relationship between the flexible sleeve 3 and the second connecting plate 6, the stability and reliability of the entire system are further enhanced.
[0138] It is understandable that in practical applications, the seamless overall gas path design of this embodiment can significantly improve the gas transmission efficiency due to the reduction of switching and diversion links between channels. This means that under the same external conditions, the design of this embodiment can ensure that the gas is transmitted at a faster speed and a larger flow rate, thereby improving the operating efficiency of the entire system. Therefore, the design of this embodiment is particularly suitable for application scenarios that have strict requirements on gas transmission speed and efficiency.
[0139] In this example, see Figures 3-5 7: In combination with the above, the major diameter A, minor diameter B, minor diameter C and taper D are formed by squeezing the flexible sleeve 3 through the expansion and contraction assembly 2 to form an air path with a variable diameter structure. All the expansion and contraction assemblies 2 form a polygonal approximate cylindrical shape, which squeezes the flexible sleeve 3 to form an air path with a variable diameter structure. Therefore, how to make all the expansion and contraction assemblies 2 close to or away from each other and ensure that the approximate cylindrical shape still has three-dimensional geometric features and is adjustable in size is the main function of the expansion and contraction assembly 2.
[0140] Therefore, each retractable assembly 2 includes a first plate body 202 and a second plate body 203;
[0141] Taking the axis of the approximate cylindrical shape as a reference, the first plate 202 and the second plate 203 fit each other, and the second plate 203 is located inside and occupies half of the first plate 202; and the second plate 203 in the remaining expansion assembly 2 occupies the other end of the first plate 202. In this way, the approximate cylindrical shape is formed by a circle, and the surface of the second plate 203 contacts the flexible sleeve 3, so that the minor diameter B and the minor diameter C of the flexible sleeve 3 are formed;
[0142] Furthermore, since the taper D has not yet been formed, the bottoms of the first plate body 202 and the second plate body 203 are both hinged with a telescopic plate 204 that can be telescoped up and down and arranged obliquely, the top of the telescopic plate 204 is hinged to the first plate body 202 or the second plate body 203, the bottom of the telescopic plate 204 matched with the first plate body 202 is hinged to the dovetail frame 102 of the first sleeve 101, and the bottom of the telescopic plate 204 matched with the second plate body 203 is slidably matched with the top of the first sleeve 101;
[0143] In this way, the surface of the telescopic plate 204 also contacts the flexible sleeve 3, so that the taper D of the flexible sleeve 3 is formed; at the same time, when the telescopic plate 204 slides up and down through the first servo electric cylinder 205, the taper D can be adjusted.
[0144] It can be understood that the flexible sleeve 3 is precisely extruded and formed by the mutual fit and sliding of the first plate 202 and the second plate 203, and the telescopic and tilted arrangement of the telescopic plate 204. This design not only ensures that the variable diameter structure of the gas path can be flexibly adjusted, but also ensures the stability and sealing of the entire system. Moreover, by adjusting the position and tilt angle of the telescopic plate 204, the size and shape of the taper D can be flexibly changed to meet different flow and pressure requirements. At the same time, the precise control of the first servo electric cylinder 205 ensures the precise movement of the telescopic plate 204, thereby ensuring the precise forming of the gas path variable diameter structure.
[0145] In this example, see Figures 4 and 5 : The introduction of the telescopic plate 204 only provides support for the first plate body 202 and the second plate body 203 (i.e., the hinge mentioned above), and it cannot control the second plate body 203 to slide on the surface of the first plate body 202, that is, it cannot further make the second plate body 203 of each telescopic assembly 2 move closer to or farther away from each other synchronously, so as to achieve the above “ensuring that the approximately cylindrical shape still has three-dimensional geometric features and is adjustable in size”;
[0146] Therefore, for each retractable assembly 2, a retractable arm 201 and a linkage assembly 207 that can be raised and lowered are also required. The upper part of the retractable arm 201 is hinged to the outer surface of the first plate 202, the middle part of the linkage assembly 207 is connected to the middle part of the first plate 202, and the two sides of the linkage assembly 207 are slidably matched with the two second plates 203, that is, the second plate 203 in the current retractable assembly 2 and the second plate 203 in the adjacent retractable assembly 2; when the retractable arm 201 is raised and lowered, it pulls and drives the first plate 202 to perform linear displacement; and because the lower part of the first plate 202 has a retractable plate 204 that functions as a hinge, the reference point of the linear displacement lies in the sliding matching relationship between the retractable plate 204 and the dovetail frame 102. At this time, because the linkage assembly 207 limits the second plate 203, the actions of the first plate 202 and the second plate 203 at this time are:
[0147] 1) The first plate 202 moves closer or farther along the central axis of the approximately cylindrical shape, with only one redundant degree of freedom at the bottom, which is offset by the telescopic plate 204 sliding on the dovetail frame 102;
[0148] 2) The second plate 203: Under the linkage of the linkage assembly 207 and the extrusion of the first plate 202, the second plate 203 also moves closer or farther along the central axis of the approximately cylindrical shape. The bottom of the second plate 203 has no extra degrees of freedom and is supported by the bottom of the telescopic plate 204 hinged to the first sleeve 101;
[0149] 3) Due to the relationship of “two second plates 203 + one first plate 202”, the approximately cylindrical shape still has three-dimensional geometric features and is adjustable in size;
[0150] Therefore, the second plate 203 moves closer to or farther from the central axis of the approximately cylindrical shape, and the size of the minor diameter B and the minor diameter C of the flexible sleeve 3 are adjusted during the process of squeezing the flexible sleeve 3. The principle is:
[0151] Because the upper part of the telescopic arm 201 is hinged to the outer surface of the first plate 202. When the telescopic arm 201 is adjusted to rise and fall, it will involve and drive the first plate 202 to perform linear displacement. Since the lower part of the first plate 202 is connected to the telescopic plate 204, the telescopic plate 204 slides with the dovetail frame 102 at the bottom, thus providing a reference point for linear displacement. In addition, because the middle part of the linkage assembly 207 is connected to the middle part of the first plate 202, and its two sides slide with the two second plates 203, that is, the second plate 203 in the current telescopic assembly 2 and the second plate 203 in the adjacent telescopic assembly 2. In this way, when the first plate 202 is linearly displaced, the linkage assembly 207 will drive the two second plates 203 to perform linear displacement synchronously. Due to this linkage mechanism, when the telescopic arm 201 is raised and lowered, the first plate 202 and the second plate 203 will linearly approach or move away along the approximately cylindrical central axis. This design ensures that the approximately cylindrical shape can still maintain its three-dimensional geometric characteristics during the adjustment process and is adjustable in size.
[0152] Specific:
[0153] 1) Telescopic arm 201: It drives the first plate 202 to move linearly through lifting and lowering adjustment, and is the key driving force for realizing the movement of the entire telescopic assembly 2.
[0154] 2) Linkage assembly 207: ensures that the two second plates 203 can move linearly synchronously, thereby maintaining the approximately cylindrical geometric shape unchanged. The linkage assembly 207 includes a long strip slide 2071, with slide grooves at both ends of the slide 2071, and a slider 2072 slidingly cooperates in the slide groove; the two sliders 2072 are fixed on the second plate 203, and the slide 2071 is fixed on the first plate 202; therefore, when the first plate 202 moves, based on the action of the slide 2071, the second plate 203 is pulled to achieve the above-mentioned action.
[0155] 3) The first plate 202 and the second plate 203 : under the joint action of the telescopic arm 201 and the linkage assembly 207 , they can be linearly moved closer or farther away along the approximately cylindrical central axis, thereby adjusting the size of the minor diameter B and the minor diameter C of the flexible sleeve 3 .
[0156] In this embodiment, when the second plate 203 and the first plate 202 move closer or farther away along the central axis of the approximately cylindrical shape, the telescopic plates 204 supported by their respective bottoms are slidable. Therefore, when performing the above-mentioned actions, the telescopic plates 204 will inevitably slide uncontrollably due to the influence of gravity or reaction force, but the first servo electric cylinder 205 can output a linear reverse stroke to offset it; however, the above-mentioned mode can only offset the linear force, and if it is a rotational force, the first servo electric cylinder 205 cannot be adapted accordingly. Therefore, the telescopic plate 204 needs to be improved accordingly. Therefore, please refer to Figures 5 and 6 : The telescopic plate 204 includes a panel 2042 and a slide plate 2041 sliding therein. With the midpoint of the flexible sleeve 3 as a reference, the bottoms of the first plate body 202 and the second plate body 203 are both hinged with a telescopic plate 204 that can be telescoped up and down and is arranged obliquely. The bottom of the panel 2042 of the telescopic plate 204 matched with the first plate body is slidably matched with the dovetail frame 102 of the first sleeve 101, and the bottom of the telescopic plate 204 matched with the second plate body 203 is hinged to the top of the first sleeve 101; the cylinder body and the piston rod of the first servo electric cylinder 205 are hingedly connected to the panel 2042 and the slide plate 2041 respectively; the top of the slide plate 2041 is hinged to the bottom of the first plate body 202 or the bottom of the second plate body 203 in the form of reverse stroke self-locking through a reverse stroke self-locking component 206;
[0157] It is understood that this design ensures that any force transmitted from the first plate 202 or the second plate 203 that attempts to make the slide plate 2041 move in the opposite direction of the current movement will not be received by the panel 2042. This effectively prevents the uncontrolled sliding of the slide plate 2041 caused by the rotational force. Therefore, this improved design of the telescopic plate 204 not only improves the stability and controllability of the system, but also ensures the accuracy and consistency in the extrusion molding process of the flexible sleeve 3. Through this innovative mechanical design, this embodiment successfully solves the problem of uncontrolled sliding that may occur when adjusting the approximately cylindrical structure, and further improves the performance and reliability of the entire system.
[0158] It is understandable that, in practical applications, the above functions enable the flange device of this embodiment to have an adaptive personalized adjustment function, which can be adjusted in real time according to the airflow, size and pressure of the input end (such as the technical solution disclosed in Example 3). This design ensures that the pressure pipeline connected to the output end can meet the basic flow output requirements under any variable conditions, while effectively avoiding the occurrence of vibration. By improving the stability of the overall pressure pipeline system, not only the service life of the system is extended, but also the probability of danger is significantly reduced, thereby improving the reliability of the entire system.
[0159] Specifically, the reverse stroke self-locking assembly 206 is mainly composed of a sleeve 2061, a pin 2062, a rotating disk 2063, a ratchet 2065, and an elastic paddle 2066. The sleeve 2061 is fixedly mounted on the slide 2041, and the pin 2062 is fixedly mounted on the second plate 203 or the first plate 202. The pin 2062 can rotate in the sleeve 2061, so that when the plate performs a linear motion or generates a slight rotation, the pin 2062 can rotate in the sleeve 2061 accordingly.
[0160] The rotating disk 2063 is fixed on the pin 2062 and rotates with the pin. The ratchet 2065 is hinged on the rotating disk 2063 and elastically stores force through the elastic paddle 2066. This design allows the ratchet 2065 to flexibly engage or disengage with the ratchet wheel 2064. The ratchet wheel 2064 is fixed in the shaft sleeve 2061, and its engagement relationship with the ratchet 2065 is the key to achieving reverse stroke self-locking.
[0161] It should be noted that in this solution, the opening directions of the ratchet teeth 2065 and the ratchet wheel 2064 need to meet specific conditions: when the second plate body 203 and the first plate body 202 are linearly approaching or moving away from each other along the approximately cylindrical central axis, if a rotation force is generated in the opposite direction of the telescopic plate 204, the ratchet teeth 2065 will clamp the ratchet wheel 2064, thereby achieving self-locking and preventing the slide plate 2041 from sliding due to the reaction force. On the contrary, if such a reverse rotation force is not generated, the ratchet teeth 2065 will only mesh with the ratchet wheel 2064 normally, and will not affect the linear motion of the plate body.
[0162] It is understandable that in the original technical solution, the first plate 202 and the telescopic plate 204 are pressed against each other, which is responsible for changing the flexible sleeve 3 from a flexible part to a rigid part, so as to achieve normal air flow and adapt to the impact. The reverse stroke self-locking component 206 further strengthens the strength of the first plate 202 and the telescopic plate 204 on this basis, and thus strengthens the strength of the flexible sleeve 3 in disguised form.
[0163] In this embodiment, the relationship of "two second plates 203 + one first plate 202" realizes "moving closer or farther away along the central axis of the approximate cylindrical shape", but it is only realized by relying on a retractable telescopic arm 201. In order to realize this movement of all the retractable components 2 synchronously, that is, to satisfy the relationship of "the approximate cylindrical shape still has three-dimensional geometric features and is adjustable in size", while ensuring that the approximate cylindrical shape does not deform, please refer to Figure 3 :It is also necessary to introduce a linear assembly 4. The linear assembly 4 is mainly composed of two parts: a slide tube 401 and a second servo electric cylinder 402. The slide tube 401 is designed to slide vertically with the first sleeve 101 of the frame assembly 1. Such a structure enables the slide tube 401 to move up and down in the first sleeve 101 while maintaining stability and accuracy.
[0164] The cylinder body of the second servo electric cylinder 402 is fixed on the first sleeve 101, and its piston rod is fixedly connected to the slide tube 401. This arrangement allows the second servo electric cylinder 402 to accurately drive the slide tube 401 to move up and down by controlling the extension and contraction of the piston rod.
[0165] The top of the slide tube 401 is hinged to the bottom of the telescopic arm 201. This connection ensures that when the slide tube 401 moves up and down, it can drive the telescopic arm 201 to perform corresponding lifting and lowering actions. Since each telescopic assembly 2 is equipped with a telescopic arm 201, when all the slide tubes 401 move up and down synchronously, all the telescopic assemblies 2 can be controlled to perform synchronous linear motion.
[0166] It is understandable that in this way, the linear component 4 not only realizes the synchronous control of all the expansion and contraction components 2, but also ensures the stability and non-deformation of the approximately cylindrical structure during the adjustment process. This plays a key role in ensuring the synchronous forming of the minor diameter B, the minor diameter C and the taper D without deformation.
[0167] It is understandable that in this way, in actual applications, compared with traditional pressure relief valves and flow adjustment devices, the flange device of this embodiment cleverly integrates multiple functions into a seamless and regular overall gas path. This design not only simplifies the structure of the system, but also reduces the complexity of maintenance and reduces the failure rate of the system. Through the integrated design, the entire system is more compact, efficient, and easy to install, debug and maintain. And because the technical solution effectively reduces gas leakage and improves system stability, it can significantly reduce energy loss when transporting gas through pipes. This design is of great significance for pressure pipeline systems that need to run for a long time, and can significantly reduce energy consumption and operating costs. At the same time, improving energy efficiency also helps to reduce the impact on the environment and achieve a greener and more sustainable operation mode.
[0168] It can be further understood that this seamless overall air path design ensures the continuity of airflow transmission in the pipeline. Compared with the traditional multi-air path channel design, this solution avoids the need to switch or divert airflow between different channels. This design significantly reduces the resistance and energy loss of airflow during the flow process, thereby improving the efficiency and stability of airflow transmission. Moreover, when the airflow is switched or diverted, traditional multi-air path channels often produce turbulence and eddies due to changes in channel shape and direction. This not only increases the energy consumption of the system, but also causes wear on the inner wall of the pipeline and shortens its service life. The seamless overall air path in the present technical solution can effectively reduce these unnecessary flow disturbances, maintain the stability of the airflow, and thereby reduce the operating cost and maintenance requirements of the system.
[0169] In this embodiment, the introduction of the slide tube 401 causes the movement of the telescopic arm 201 to lose one degree of freedom, because when the telescopic arm 201 moves up and down, the first plate 202 pulled by it moves obliquely. If the telescopic arm 201 is designed as a single rigid part, there will inevitably be mechanical interference. Therefore, it is necessary to optimize the design of the telescopic arm 201. Please refer to Figure 5 The optimized telescopic arm 201 is composed of two parts: a first arm body 2011 and a second arm body 2012. The bottom of the first arm body 2011 is hinged to the slide tube 401, so that the telescopic arm 201 can move with the up and down movement of the slide tube 401. At the same time, the top of the second arm body 2012 is hinged to the first plate body 202. Such a design enables the second arm body 2012 to rotate accordingly when the first arm body 2011 moves to adapt to the movement trajectory of the first plate body 202.
[0170] Due to the existence of the second arm 2012, when the telescopic arm 201 moves up and down, the second arm 2012 can rotate to adapt to the tilting movement of the first plate 202, thereby avoiding the phenomenon of mechanical interference. This design not only retains the traction function of the telescopic arm 201, but also increases its degree of freedom, making the entire system more flexible and smooth when moving.
[0171] In this embodiment, the flexible sleeve 3 can be made of a flexible rubber material with strong corrosion resistance, high temperature resistance and impact resistance. For example, fluororubber, silicone rubber or EPDM rubber commonly used in high-end corrosion protection fields such as chemical, petrochemical, aerospace, etc., or other types of industrial flexible materials. At the same time, for different application scenarios, the inside of the flexible sleeve 3 can also be equipped with some common protective layers prepared by existing technologies such as anti-corrosion layer, anti-oxidation layer, and temperature-resistant layer.
[0172] In this embodiment, a controller is further provided on the outside of the device, which is used to connect and control all electrical components of the device as a whole to be driven according to a pre-set program as preset values and drive modes; it should be pointed out that the above-mentioned drive mode corresponds to the corresponding start and stop time intervals, speed, power and other output parameters between the relevant electrical components below, that is, it meets the requirements of the relevant electrical components described below to drive the relevant mechanical devices to operate according to the functions described therein.
[0173] Preferably, the controller is a PLC controller. The PLC controller is also configured with a wireless transmitting module and a wireless receiving module. The wireless transmitting module sends a command signal for working or pausing and transmits it to the wireless receiving module via a medium. When necessary, the staff can input commands to the wireless transceiver module through a background wireless remote control device to remotely control the controller, and then remotely control all electrical components of the device to drive according to the relevant driving mode. At the same time, the wireless transceiver module can also transmit the relevant coefficients or other information detected by the system of the relevant sensor elements or servo drive elements in the device to the background staff.
[0174] Embodiment 2: The difference between this embodiment and embodiment 1 is that, please refer to Figures 7 to 11 : Because the major diameter A, minor diameter B, minor diameter C and taper D are formed into a flow path and have a variable diameter structure by squeezing the flexible sleeve 3 through the expansion and contraction components 2, and based on the above, when all the expansion and contraction components 2 are surrounded by a polygonal approximate cylindrical shape, each side thereof is actually formed by the second plate body 203 and the telescopic plate 204; based on this mechanism feature, the flexible sleeve 3 can be designed with certain special features:
[0175] Protruding ribs 302 are integrally formed at the outer and inner positions of the flexible sleeve 3 and in the areas in contact with the second plate 203. These protruding ribs 302 not only enhance the outer strength of the flexible sleeve 3, enabling it to better withstand the extrusion force from the second plate 203, but also provide necessary molding space for the internal guide groove 301.
[0176] The guide grooves 301 are another important design inside the flexible sleeve 3. They are carefully arranged inside the sleeve to sort out and optimize the flow direction of the fluid medium. This means that when the fluid passes through the flexible sleeve 3, its flow will be smoother and more efficient, thereby reducing the possibility of energy loss and turbulence.
[0177] It is understandable that when the second plate 203 squeezes the protruding rib 302 in different states, the aperture of the guide groove 301 will be controlled to deform in the same manner. Specifically, if the second plate 203 is close to each other, the protruding rib 302 will be squeezed, thereby reducing the aperture of the guide groove 301; conversely, if the second plate 203 is far away from each other, the aperture of the guide groove 301 will be correspondingly enlarged. This design enables the flexible sleeve 3 to dynamically adapt to different fluid flow and pressure requirements, thereby further improving the flexibility and efficiency of the system.
[0178] It is understandable that if Fig. 9 As shown, the protruding rib 302 and the structural points near it are designed in the gap between the two second plates 203, which indeed plays a key role. When the second plates 203 move closer to or farther away from each other, they squeeze or release the flexible sleeve 3, thereby adjusting its size. Furthermore, by distributing the excess structure to the gap, it is ensured that the inside of the flexible sleeve 3 remains as smooth as possible. This avoids wrinkles or unevenness during the adjustment process, thereby ensuring the smooth flow of the fluid in the flexible sleeve 3. And because the material of the flexible sleeve 3 has a certain elasticity and flexibility, it can dynamically change its shape and size under the squeezing of the second plate 203 without generating excessive stress or deformation. This dynamic adaptability enables the flange device to adapt to different working conditions and fluid requirements.
[0179] It should be noted that the guide groove 301 is arranged in the flexible sleeve 3 in a uniform annular form along the axial direction of the flexible sleeve 3. This uniform annular structure ensures that the fluid can maintain a relatively stable flow state when flowing through the guide groove, avoiding eddies and turbulence caused by sudden changes in flow velocity or flow direction. Moreover, the guide groove 301 adopts a semicircular curvature structure design, which helps to guide the fluid to turn smoothly and reduce the impact and disturbance of the fluid at the turn. The semicircular curvature structure makes the flow of the fluid in the guide groove smoother, thereby reducing the possibility of generating eddies and turbulence.
[0180] At the same time, the aperture of the guide groove 301 can be dynamically adjusted by squeezing the second plate 203. This design enables the guide groove to be adjusted according to different fluid flow and pressure requirements to maintain the optimal fluid flow state. When the fluid flow increases, the aperture can be correspondingly enlarged to accommodate a larger flow, and vice versa. This dynamic adjustment capability helps to reduce the risk of eddy currents and turbulences in the guide groove.
[0181] In this embodiment, further Fig. 9 As shown, the outer portion of the protruding rib 302 is uniformly formed with rounded concave teeth 303 , and the second plate body 203 is stuck in the concave teeth 303 .
[0182] It is understandable that if the spacing between the concave teeth 303 is specifically designed, the second plate 203 can be controlled to stay at a specific position through the carefully designed spacing of the concave teeth 303, thereby achieving step-by-step movement. This design limits the freedom of the second plate 203, so that it can only be adjusted at a predetermined position. When the second plate 203 stays at different positions of the concave teeth 303, the flexible sleeve 3 will be squeezed or released, thereby changing the aperture of the guide groove 301. This adjustment can optimize the flow state of the fluid and improve the accuracy and efficiency of fluid control.
[0183] Therefore, in this mode, by converting the stepless motion mode into the stepped motion mode, the position of the second plate 203 can be more accurately controlled, thereby accurately adjusting the aperture of the guide groove 301 and the flow state of the fluid. In addition, the stepped motion mode limits the random movement of the second plate 203, making the entire system more stable and reliable. At the same time, by accurately adjusting the aperture of the guide groove 301, the flow state of the fluid can be optimized, the generation of eddies and turbulence can be reduced, and the transmission efficiency of the fluid can be improved.
[0184] The principle is that the position of the second plate 203 is precisely controlled by the spacing design of the concave teeth 303, so as to precisely adjust the aperture of the guide groove 301 and the flow state of the fluid. This precise control mechanism is the key to improving the accuracy and stability of the system. And by precisely adjusting the aperture of the guide groove 301, the flow state of the fluid can be optimized, making it flow more smoothly and efficiently. This optimized fluid dynamics design helps to improve the transmission efficiency of the fluid and reduce energy loss.
[0185] Example 3: Please refer to Fig.13 Based on the flange device disclosed in the first embodiment, this embodiment further discloses a method for intelligent control thereof; at the same time, in order to simplify the description of the structure of the flange device, the structure of the flange device will be directly described as follows: Figure 2 The basics are briefly described as A, B, C and D. At the same time, "pressure pipeline" will be directly referred to as "pipeline". The control method includes:
[0186] Step S1, establishing a flow model: the flow model is established based on the relationship between the gas flow rate and the gas path diameter, the condition that the pipeline does not vibrate, and the minimum threshold condition of the output gas flow rate;
[0187] In this step, first define the following variables:
[0188] Q in (t): air flow Q at the input end at A at time step t in ; Directly given by the air flow sensor of the pressure pipeline connected to A;
[0189] v in (t): airflow velocity v at the input end at A at time step t in ; Directly given by the wind speed sensor of the pressure pipe connected to A;
[0190] P in (t): Pressure P at the input end of A at time step t in ; Directly given by the pressure gauge sensor of the pressure pipe connected to A;
[0191] d B (t), d C (t): Diameter d of the gas path of B and C at time step t B ;
[0192] l D (t): length parameter l of D at time step t D , which affects the taper D;
[0193] Q out (t): air flow Q at output terminal C at time step t out ;
[0194] P out (t): Pressure P at output port C at time step t out ;
[0195] a: The vibration threshold of the pipeline connected to the output end at C needs to be determined by the staff according to the actual working characteristics of the pipeline system.
[0196] b: The minimum threshold of the output air flow rate required by the pipeline connected to the output end at C needs to be determined by the staff according to the actual working requirements of the pipeline system.
[0197] Then, the traffic model is:
[0198] ;
[0199] The first term is based on Poiseuille's law, which is used to establish the relationship between flow rate and pipe diameter; ΔP(t) is the pressure difference, η is the fluid viscosity, and L is the length (A to C);
[0200] The second term g is a parameter used to describe D, B, C, and input pressure P. in (t) and flow rate Q in (t) How to influence (determine) Q out (t);
[0201] Among them, the tremor function f in the first term of the constraint term represents the output gas flow Q out (t) and pressure P out (t) The impact on the pipe vibration at the C end; the second term of the constraint term represents the output gas flow rate Q out (t) Basic operational requirements;
[0202] Specifically, the method for establishing the tremor function f is as follows: Considering that tremor is usually caused by the interaction between the fluid and the pipeline structure, especially when the fluid flow rate or pressure reaches a certain critical value, it will cause the resonance of the pipeline, thus causing tremor. Therefore, assume that the occurrence of tremor is related to the output gas flow rate Q out and the average pressure in the pipe P avg The product of is proportional to, and a tremor coefficient k is introduced tremor This coefficient is related to the inherent characteristics of the pipeline (such as material or wall thickness, etc.). It is necessary for the staff to perform finite element simulation on the actual pipeline system or assign values based on the conventional knowledge in this field (for example, by changing the gas flow and pressure and observing whether the pipeline vibrates, so as to determine the values of these parameters). It is required that when this product exceeds the critical value C crit When , the pipe will start to vibrate. Therefore, the vibration function f is:
[0203] ;
[0204] The conditions for tremor to occur are expressed as:
[0205] ;
[0206] In summary, step S1, according to the input condition (Q out (t),P out (t)) and output requirements (not more than a, not less than b), set an optimization problem:
[0207] 1) Target: According to the gas flow Q at the input end at the current time step t in (t), speed v in (t) and pressure P in(t) The pipeline at the output end does not vibrate and outputs at a relatively normal flow rate that can meet the relevant operational requirements;
[0208] 2) Condition: The sizes of B, C and D can be adjusted.
[0209] Step S2, solving the optimization problem:
[0210] According to the above optimization problem, this embodiment introduces the momentum gradient algorithm to solve the function g in the form of gradient descent, and obtains the adjustment amount d of the minor diameter B, the minor diameter C and the taper D respectively. B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 ; The steps include:
[0211] Step S200, define the objective function L as the weighted sum J of the output gas flow and pipeline vibration:
[0212] ;
[0213] Among them, the objective function L introduces Lagrange multipliers λ1 and λ2 to deal with the upper and lower bounds of the output air flow for the previously mentioned constraints; that is, to ensure that Q out Not less than b and not more than a;
[0214] Among them, w1 and w2 in the constraint term are weight coefficients, both of which are interval values between [0,1], which are used to balance the importance of the two objectives. If in the actual pipeline system, the priority of the output air flow is greater than the pipeline vibration, such as the scenario of increasing production efficiency, then the value of w1 is increased; if the priority of pipeline vibration is greater than the output air flow, such as the scenario of safe production, then the value of w2 is increased; if you want to pursue a balance between the two, you can assign the same value of 0.5 to both.
[0215] Step S201, perform momentum gradient descent:
[0216] Let θ = [d B ,d C ,l D ] is the parameter vector we want to optimize (the diameter of B, C and the length of D). Then the update formula of the momentum gradient descent algorithm is:
[0217] ;
[0218] ;
[0219] Among them, ν t is the velocity (or momentum, which needs to be initialized first) at time step t, ν t+1is the velocity (momentum) at time step t+1; μ is the momentum coefficient (usually close to 1, which can be assigned according to the conventional assignment method of the momentum gradient descent algorithm), σ is the learning rate (which can be assigned according to the conventional assignment method of the momentum gradient descent algorithm), ∇ θL (θ t ) is the value of the gradient of the Lagrangian function L with respect to the parameter θ at time step t.
[0220] Step S202, calculate the gradient ∇ θL (θ): Need to calculate L with respect to d B ,d C and l D Calculate partial derivatives respectively. This can be achieved by the following steps:
[0221] Step S2020, iterate the pipeline tremor function f:
[0222] What is known so far:
[0223] ;
[0224] The output gas flow rate Q out Depends on C , l D , P in and Q in . Let P avg is constant or controllable at the current time step t and does not directly depend on d B ,d C and l D . So the tremor function can be written as:
[0225] ;
[0226] Step S2021, iterate the output gas flow function Q out (t):
[0227] Based on Poiseuille's law, we know that d B The change of will change the pressure distribution in the pipeline. In order to perform gradient descent optimization, it is necessary to set a C and l D A differentiable function of :
[0228] ;
[0229] Among them, α, β, γ and δ are weight coefficients obtained by least squares fitting based on historical data.
[0230] Step S2022, solve:
[0231] Due to d BDoes not directly affect Q out ,so ; But considering d B It can be indirectly affected by other variables (pressure), so an indirect effect term is set ; Therefore, for d C and l D , you can directly get out The partial derivative is obtained from the expression of:
[0232] ;
[0233] ;
[0234] ;
[0235] After obtaining the partial derivative, the momentum gradient descent algorithm can be applied to update the parameter d B ,d C and l D The update method is:
[0236] ;
[0237] ;
[0238] in, , and They are the parameters d B ,d C and l D Momentum at time step t. By iterating these update formulas, the parameters can be gradually adjusted to optimize the objective function L and make it converge, thereby obtaining the "diameter adjustment value of B and C, and the taper adjustment value (that is, the length adjustment value of D)" that meets the conditions.
[0239] That is, for step S2, the specific method of use is to implement the adjustment amount d of the minor diameter B, the minor diameter C and the taper D respectively through the following loop iteration: B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 The solution:
[0240] Step 1, initialization parameters, including:
[0241]
[0242] It also includes momentum ν0=0, as well as learning rate η and momentum coefficient μ;
[0243] Step 2: At each time step t, calculate the output gas flow rate Q under the current parameters out and the tremor function value f(Qout ,P avg );
[0244] Step 3: Using the method in step S2022, calculate the gradient ∇ of the Lagrangian function L θL (θ);
[0245] Step 4: Update the parameter θ using the method provided in step S201 t+1 and momentum ν t+1 ;
[0246] Step 5: Repeat the above steps 2 to 4 until the objective function L converges or reaches the preset number of iterations; the adjustment amount d given in step 3 of the round that makes the objective function L converge is B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 As the final solution.
[0247] It should be pointed out that the core of the above steps lies in the momentum update in step 4, because the momentum gradient descent algorithm can accelerate convergence by adjusting the current gradient direction by using the previous gradient information. This method enables the optimization process to jump out faster when encountering a local minimum or flat area, and continue to search for the global minimum, thereby improving the convergence speed of the objective function L.
[0248] Compared with the traditional gradient descent algorithm, when the contour lines of the optimization problem show a pathological curvature (such as a narrow canyon or a flat plateau), the objective function L may produce violent oscillations near the minimum value, resulting in a slower convergence speed. The momentum gradient descent algorithm of this embodiment introduces a momentum term so that the parameter update depends not only on the current gradient, but also on the previous gradient information, thereby reducing this oscillation and making the optimization process smoother. At the same time, the momentum gradient descent algorithm has a certain resistance to sudden changes in the gradient direction. Due to the cumulative effect of the momentum term, the abnormal change of a single gradient will not have a large impact on the parameter update, thereby improving the stability of the objective function L.
[0249] In summary, the method provided by steps S1 to S2 has a corresponding embedded C language program as follows; because it uses an embedded development language as a carrier, it can be directly read and implemented by the PLC controller in the first embodiment, or a control board can be developed to burn the following program and then execute it:
[0250] #include<stdio.h>
[0251] #include<math.h>
[0252] / / Parameter and structure definition
[0253] typedef struct {
[0254] double dB, dC, lD; / / parameter value
[0255] double vB, vC, vD; / / Momentum value
[0256] } Parameters;
[0257] / / Function declaration
[0258] double f(double Qout, double Pavg); / / Pipeline tremor function
[0259] double Qout(double lD, double dC, double Pin, double Qin); / / Output gas flow function
[0260] double L(double Qout, double Pavg, double dB, double dC, double lD); / / Objective function
[0261] void gradient_descent(Parameters *params, double Pin, double Qin,double Pavg, int iterations); / / Momentum gradient descent algorithm
[0262] int main() {
[0263] / / Initialize parameters, input values and number of iterations
[0264] Parameters params = { / * initial parameter value * / };
[0265] double Pin = / * Input pressure value* / ;
[0266] double Qin = / * Input gas flow value* / ;
[0267] double Pavg = / * average pressure value* / ;
[0268] int iterations = / * number of iterations * / ;
[0269] / / Execute the momentum gradient descent algorithm
[0270] gradient_descent(¶ms, Pin, Qin, Pavg, iterations);
[0271] double f(double Qout, double Pavg) {
[0272] double k_tremor = ...; / / Tremor coefficient
[0273] return k_tremor * Qout * Pavg;
[0274] }
[0275] double Qout(double lD, double dC, double Pin, double Qin) {
[0276] / / Coefficient
[0277] double alpha = ...;
[0278] double beta =...;
[0279] double gamma = ...;
[0280] double delta =...;
[0281] return alpha * lD + beta * dC + gamma * Pin + delta * Qin;
[0282] }
[0283] double L(double Qout, double Pavg, double dB, double dC, double lD) {
[0284] / / Weighting coefficient of tremor
[0285] double tremor_weight = ...;
[0286] / / Output gas flow target value and weighting coefficient
[0287] double Qout_target = ...; / / Target output gas flow
[0288] double Qout_weight = 0.5;
[0289] double tremor_loss = tremor_weight * pow(f(Qout, Pavg), 2);
[0290] double Qout_loss = Qout_weight * pow(Qout - Qout_target, 2);
[0291] return tremor_loss + Qout_loss;
[0292] }
[0293] void gradient_descent(Parameters *params, double Pin, double Qin,double Pavg, int iterations) {
[0294] double learning_rate =...; / / Learning rate
[0295] double momentum_factor =...; / / Momentum factor
[0296] for (int i = 0; i < iterations; i++) {
[0297] double Qout = Qout(params->lD, params->dC, Pin, Qin);
[0298] double loss = L(Qout, Pavg, params->dB, params->dC, params->lD);
[0299] / / Calculate the gradient
[0300] double grad_dB =...;
[0301] double grad_dC =...;
[0302] double grad_lD =...;
[0303] / / Update momentum and parameters
[0304] params->vB = momentum_factor * params->vB - learning_rate *grad_dB;
[0305] params->vC = momentum_factor * params->vC - learning_rate *grad_dC;
[0306] params->vD = momentum_factor * params->vD - learning_rate *grad_lD;
[0307] params->dB += params->vB;
[0308] params->dC += params->vC;
[0309] params->lD += params->vD;
[0310] / / Output results
[0311] printf("Diameter B adjustment: %f\n", params.dB);
[0312] printf("Diameter C adjustment: %f\n", params.dC);
[0313] printf("Taper D adjustment value: %f\n", params.lD);
[0314] return 0;
[0315] }
[0316] The f function calculates the value of pipeline vibration. It accepts the output gas flow rate Qout and the average pressure Pavg in the pipeline as input, and uses a vibration coefficient k_tremor to calculate the vibration value.
[0317] The Qout function calculates the output gas flow rate based on the given pipeline parameters (lD and dC) and input conditions (Pin and Qin). The relationship between the output gas flow rate and these variables is determined based on the coefficients (alpha, beta, gamma, delta). The L function calculates the value of the objective function. It takes into account the pipeline chatter and the deviation of the output gas flow rate from the target value and assigns different weights to the two. The objective function is the weighted sum of the two. The gradient_descent function implements the momentum gradient descent algorithm. It accepts a Parameters structure pointer (containing the current parameter and momentum values), input conditions (Pin and Qin), average pressure Pavg, and the number of iterations. In each iteration, it first calculates the current output gas flow rate Qout and the objective function value loss. Then, it calculates the partial derivatives (gradients) of the objective function with respect to the parameters dB, dC, and lD. Next, it uses these gradients and momentum terms to update the momentum and parameter values. This process is repeated for the specified number of iterations and finally outputs the results.
[0318] It is understandable that the above method and procedure only provide the adjustment amount d B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 As the final solution, if it is used as guidance information for hardware, it is also necessary to control the power elements in the first embodiment, that is, the first servo electric cylinder 205 and the second servo electric cylinder 402. Therefore, the following step S3 needs to be introduced.
[0319] Step S3, applying the PID controller algorithm: adjusting the adjustment amount d B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 The PID controller is applied to control the first servo electric cylinder 205 and the second servo electric cylinder 402 to achieve adaptive adjustment of the flange device at the current time step.
[0320] First introduce the basic form of PID controller:
[0321] ;
[0322] Where u(t) is the output of the controller, i.e., the control signal to be applied to the servo cylinder. e(t) is the error term between the expected output and the actual output; d t K is the time increment of the integral term. In the continuous-time PID control algorithm, the integral term is the integration (accumulation) of the error signal at all past moments. p , K i and K d are the gains of the proportional, integral and derivative controllers respectively.
[0323] For the size adjustment of B and C by the first servo electric cylinder 402 (the two adjustment amounts can be weighted summed), and the size adjustment of D by the second servo electric cylinder 205, the respective PID controllers and their error terms e(t) are defined as the adjustment amount given in step S2 minus the current amount. For example, for the size adjustment of D by the second servo electric cylinder 205:
[0324] ;
[0325] Furthermore, the embedded C language program of step S3 is as follows:
[0326] #include<stdio.h>
[0327] / / PID controller structure
[0328] typedef struct {
[0329] double Kp; / / proportional gain
[0330] double Ki; / / integral gain
[0331] double Kd; / / differential gain
[0332] double previous_error; / / last error
[0333] double integral; / / integral of error
[0334] }PIDController;
[0335] / / Initialize the parameters of the PID controller
[0336] void PID_Init(PIDController *pid, double Kp, double Ki, double Kd) {
[0337] pid->Kp = Kp;
[0338] pid->Ki = Ki;
[0339] pid->Kd = Kd;
[0340] pid->previous_error = 0;
[0341] pid->integral = 0;
[0342] }
[0343] / / PID controller update function
[0344] double PID_Update(PIDController *pid, double setpoint, double actual_position) {
[0345] double error = setpoint - actual_position; / / Calculate error
[0346] pid->integral += error; / / Update error integral
[0347] double derivative = error - pid->previous_error; / / Calculate the differential of the error
[0348] pid->previous_error = error; / / Save the current error for the next iteration
[0349] / / Calculate the output of the PID controller
[0350] double output = pid->Kp * error + pid->Ki * pid->integral + pid->Kd * derivative;
[0351] return output;
[0352] }
[0353] int main() {
[0354] / / Initialize PID controller parameters
[0355] PIDController pidBD, pidC;
[0356] PID_Init(&pidBC, 1.0, 0.1, 0.01); / / PID parameters of servo cylinders corresponding to B and C
[0357] PID_Init(&pidD, 1.0, 0.1, 0.01); / / PID parameters of the servo cylinder corresponding to D
[0358] / / Target position and current position
[0359] double targetBD = 100.0, currentBC = ...;
[0360] double targetC = 150.0, currentD = ...;
[0361] / / Update the PID controller and get the output signal
[0362] double outputBD = PID_Update(&pidB, targetB, currentB);
[0363] double outputC = PID_Update(&pidD, targetD, currentD);
[0364] / / Send the output of the PID controller to the servo cylinder (depends on the hardware interface)
[0365] SendSignalToServoB(outputBD);
[0366] SendSignalToServoC(outputC);
[0367] / / Hardware interface
[0368] void SendSignalToServoB(double signal) {
[0369] / / Send control signal to servo cylinder BC
[0370] }
[0371] void SendSignalToServoC(double signal) {
[0372] / / Send control signal to servo cylinder D
[0373] }
[0374] In order to execute the above procedure, the PLC controller should send the above and corresponding control signals u(t) to the first servo electric cylinder 205 and the second servo electric cylinder 402 through an interface (such as PWM, analog output or serial communication).
[0375] Based on the technical solution provided in this embodiment, this embodiment can determine the adjustment amount d based on the characteristics of the current pressure pipeline. B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1A PID controller is applied to the flange device provided in Example 1, so that the flange device can be applied to the key nodes of the pressure pipeline system, and can adapt to the airflow flow, size and pressure of the input end for adaptive and personalized adjustment. Therefore, the pressure pipeline connected to the output end of the flange device will not vibrate under any variable conditions while meeting the basic flow output task, thereby improving the service life of the overall pressure pipeline system and reducing the probability of danger.
[0376] For those skilled in the art, it can be further appreciated that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0377] At the same time, those skilled in the art can understand that all or part of the processes in all the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0378] The above embodiments only express the implementation methods of the relevant practical applications of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. An adaptive flange device for a pressure pipe, wherein the flow path inside the flange device has a variable diameter structure, including a large diameter A located at one side of the input end and a small diameter C located at one side of the output end, wherein the variable diameter structure includes a small diameter B arranged between the large diameter A and the small diameter C and having the same size as the small diameter C, wherein there is a taper D between the small diameter B and the large diameter A, and wherein: The major diameter A, the minor diameter B, the minor diameter C and the taper D are formed by squeezing a flexible sleeve (3) through a contraction and expansion component (2) to form the flow path and have the variable diameter structure; According to the current medium flow, size and / or pressure at the input end, the size of the minor diameter B, the minor diameter C and the taper D are adaptively controlled, the pressure pipeline at the output end does not vibrate and outputs at a normal flow rate, and the flow path is an integral seamless structure and its sealing degree remains unchanged; A plurality of groups of the retractable and extendable components (2) are mounted in an annular manner on the frame component (1), so that all the retractable and extendable components (2) form a polygonal approximately cylindrical shape; the retractable and extendable components (2) are retracted and extended in the frame component (1) to adjust the size of the minor diameter B, the minor diameter C and the taper D of the flexible sleeve (3); The frame assembly (1) comprises a first sleeve (101) and a second sleeve (103) fixed therein, the second sleeve (103) being located in the middle of the first sleeve (101), a dovetail frame (102) being arranged inside the first sleeve (101), the expansion and contraction assembly (2) slidingly sliding in the frame assembly (1) by means of the dovetail frame (102); the bottom of the flexible sleeve (3) being embedded in the second sleeve (103); Each of the retractable and expandable components (2) comprises a first plate body (202) and a second plate body (203), wherein a surface of the second plate body (203) contacts the flexible sleeve (3) to achieve the molding of the minor diameter B and the minor diameter C of the flexible sleeve (3); The bottoms of the first plate body (202) and the second plate body (203) are both hingedly connected with a telescopic plate (204); Taking the axis of the approximately cylindrical shape as a reference, the first plate body (202) and the second plate body (203) fit each other and the second plate body (203) is located inward and occupies half of the first plate body (202); the second plate body (203) in the remaining retractable assembly (2) occupies the other end of the first plate body (202); The bottom of each of the first plate body (202) and the second plate body (203) is hingedly connected with a telescopic plate (204) that can be telescoped up and down and is arranged obliquely; the bottom of the telescopic plate (204) that matches the first plate body (202) is slidably matched with the dovetail frame (102) of the first sleeve (101); and the bottom of the telescopic plate (204) that matches the second plate body (203) is hingedly connected to the top of the first sleeve (101); The telescopic plate (204) comprises a panel (2042) and a slide plate (2041) sliding therein; Taking the midpoint of the flexible sleeve (3) as a reference; the cylinder body and the piston rod of the first servo electric cylinder (205) are hingedly connected to the panel (2042) and the slide plate (2041) respectively; The surface of the telescopic plate (204) located inside contacts the flexible sleeve (3), thereby forming the taper D of the flexible sleeve (3); when the telescopic plate (204) slides up and down through the first servo electric cylinder (205), the taper D is adjustable; The retractable assembly (2) comprises a retractable arm (201) that can be lifted and lowered, the upper portion of the retractable arm (201) being hinged to the outer surface of the first plate (202), the middle portion of the linkage assembly (207) being connected to the middle portion of the first plate (202), and the two sides of the linkage assembly (207) being slidably matched to the two second plates (203); It also includes a linear assembly (4), the linear assembly (4) including a slide tube (401) vertically slidably engaged with the first sleeve (101) of the frame assembly (1), and a second servo electric cylinder (402); The cylinder body and the piston rod of the second servo electric cylinder (402) are respectively fixed to the first sleeve (101) and the slide tube (401), and the top of the slide tube (401) is hinged to the bottom of the retractable assembly (2).
2. The flange device according to claim 1, characterized in that: A guide groove (301) is integrally formed at the position where the expansion and contraction component (2) squeezes the inside of the flexible sleeve (3), and the force of the guide groove (301) changes as the squeezing direction of the expansion and contraction component (2) changes.
3. An adaptive flange adjustment method for a pressure pipeline, characterized in that: The adjustment method is implemented by using the flange device as claimed in claim 1 or 2, and performing the following steps at each time step t: S1, establishing a flow model: the flow model is established based on the relationship between the flow rate of the medium and the diameter of the flow path, the condition that the pressure pipeline does not vibrate, and the minimum threshold condition of the output air flow rate; S2, "According to the medium flow rate, velocity and pressure at the input end at the current time step t, the pressure pipeline at the output end does not vibrate and outputs at normal flow rate" is regarded as an optimization problem, solved in the form of gradient descent, and the adjustment amount d of the minor diameter B, the minor diameter C and the taper D is obtained. B,t+1 , adjustment amount d C,t+1 and adjustment amount l D,t+1 ; S3, the adjustment amount d B,t+1 The adjustment amount d C,t+1 and the adjustment amount l D,t+1 A PID controller is used to control the first servo electric cylinder (205) and the second servo electric cylinder (402) to achieve adaptive adjustment of the flange device at the current time step.
4. Adaptive flange adjustment system for pressure pipes, characterized by: The adjustment system includes a processor and a memory connected to the processor, wherein program instructions are stored in the memory. When the program instructions are executed by the processor, the processor executes the adjustment method as described in claim 3 and controls the flange device as described in claim 1 or 2.
