Method, device, electronic device and storage medium for determining tank structure

The particle swarm optimization algorithm is used to optimize the layer thickness and bottom radius of the hydrogen storage tank, which solves the problem of high complexity of hydrogen storage tank design in the existing technology and achieves a more efficient design process and better structural performance.

CN116522542BActive Publication Date: 2024-10-11CHINA THREE GORGES CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310526696.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-08
Publication Date
2024-10-11
Estimated Expiration
2043-05-08

AI Technical Summary

Technical Problem

The existing hydrogen storage tank structural design relies on numerical simulation methods, which results in high computational complexity, long calculation time, and long design cycle, making it impossible to meet design requirements quickly and efficiently.

Method used

The particle swarm optimization algorithm is used to establish an objective function that represents the volume and mass ratio of the hydrogen storage tank based on the bottom radius of the tank and the total mass of the side materials. The particle position and velocity are updated through the particle swarm algorithm to solve the optimal solution of the objective function. To optimize the layer thickness and bottom radius of the hydrogen storage tank.

Benefits of technology

It improves the efficiency and accuracy of hydrogen storage tank structural design, shortens the design cycle, and can find the optimal solution for the tank structure under preset conditions to meet the economic benefits and performance requirements of the hydrogen storage tank.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116522542B_ABST
    Figure CN116522542B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for determining a tank structure, wherein the tank structure includes a plurality of layer plates of different thicknesses, and the method includes: establishing an objective function characterizing the ratio of the volume to the mass of the hydrogen storage tank based on the bottom radius of the tank and the total mass of the side materials of the tank; setting the initial position, initial moving speed and constraint conditions of each particle in a particle group in different dimensions, and updating the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; based on the objective function, taking the maximum value of the ratio of the volume to the mass of the tank corresponding to the position of each particle after the update as the target ratio; when the target ratio meets the preset conditions, determining the target particle position corresponding to the target ratio as the optimal solution set of the objective function. The technical solution provided by the present invention can improve the efficiency of the design of the hydrogen storage tank structure to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hydrogen storage technology, and in particular to a method, device, electronic equipment and storage medium for determining a tank structure. Background Art

[0002] With the continuous development of hydrogen energy technology, hydrogen is being used more and more widely in the fields of industry and energy. As a key component in the hydrogen industrial production process, the performance of hydrogen storage tanks directly affects the safety, reliability and economy of hydrogen energy applications. Among them, cylindrical hydrogen storage tanks have the advantages of high space utilization, low manufacturing cost, convenient transportation, and good maintainability. They are a more common structural form of hydrogen storage tanks. In the prior art, the structural design optimization of hydrogen storage tanks mainly relies on numerical simulation methods. However, the numerical simulation method has a high computational complexity and requires a long calculation time, resulting in a long design cycle for the hydrogen storage tank structure. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for determining a tank structure, which can improve the efficiency of the hydrogen storage tank structure design to a certain extent.

[0004] On the one hand, the present invention provides a method for determining a tank structure, wherein the tank structure includes a plurality of layer plates of different thicknesses, and the method includes: establishing an objective function characterizing the ratio of the volume to the mass of a hydrogen storage tank based on the bottom radius of the tank and the total mass of the side materials of the tank; the total mass of the side materials is the sum of the masses of the layer plates in the tank structure; setting the initial position, initial moving speed and constraint conditions of each particle in a particle group in different dimensions, and updating the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; the dimensions include the initial thickness of each layer plate of the tank and the initial bottom radius of the tank; the preset parameters include: the number of particles in the particle group, the number of iterations, the inertia weight, the learning factor and the iteration step range; based on the objective function, taking the maximum value of the ratio of the volume to the mass of the tank corresponding to the updated position of each particle as the target ratio; when the target ratio meets the preset conditions, determining the target particle position corresponding to the target ratio as the optimal solution set of the objective function; the target particle position is used to characterize the target thickness of each layer plate of the tank and the target bottom radius of the tank.

[0005] In one embodiment, based on the radius of the tank body and the total mass of the side of the tank body, an objective function characterizing the ratio of the volume to the mass of the hydrogen storage tank is established, including: generating a volume function characterizing the volume of the tank body based on the radius of the tank body and the height of the tank body; generating a mass function characterizing the total mass of the side material of the tank body based on the density of the side material of the tank body, the height of the tank body and the thickness of each layer; and dividing the volume function and the mass function to obtain the objective function.

[0006] In one embodiment, the learning factor includes an individual learning factor and a group learning factor, sets the initial position, initial moving speed and constraints of each particle in the particle swarm in different dimensions, and updates the position and moving speed of each particle based on the constraints and preset parameters of the particles in different dimensions, including: setting the initial position and initial moving speed of each particle in the particle swarm in different dimensions, and the value range of the particles in different dimensions; the number of dimensions is the number of layers of the tank body and the number of radii of the tank body; based on the inertia weight, the individual learning factor and the group learning factor, and the value range of the particles in different dimensions, updating each particle in the particle swarm to the target position.

[0007] In one embodiment, the value range of the particle includes the maximum tensile stress of each layer; based on the inertia weight, the individual learning factor and the group learning factor, and the value range of the particle in different dimensions, each particle in the particle swarm is updated to the target position, including: inputting the particle vector corresponding to the position of each particle in the particle swarm into the maximum tensile stress calculation model to obtain the maximum tensile stress series of each particle in the particle swarm; the maximum tensile stress series includes the maximum tensile stress of each layer; based on the vector corresponding to the position of each particle in the particle swarm, determining the target tensile stress series of the tank under the condition of being fully stored with hydrogen; the target tensile stress series includes the target tensile stress of each layer under the condition of being fully stored with hydrogen; comparing the values ​​in the maximum tensile stress series with the values ​​in the target tensile stress series one by one, and when the maximum tensile stresses are both greater than or equal to the target tensile stresses, updating each particle in the particle swarm to the target position.

[0008] In one embodiment, before the step of updating each particle in the particle swarm to a target position based on the inertia weight, the individual learning factor and the group learning factor, and the value ranges of the particles in different dimensions, the method further includes: setting a first inertia weight for characterizing the maximum value of the inertia weight, and setting a second inertia weight for characterizing the minimum value of the inertia weight; determining the inertia weight based on the first inertia weight, the second inertia weight and the number of iterations, and the current number of iterations.

[0009] In one embodiment, based on the objective function, the minimum value of the ratio of the volume to the mass of the tank body corresponding to the position of each particle after the update is used as the target ratio, including: respectively calculating the ratio of the volume to the mass of the tank body corresponding to the position of each particle after the update; if the ratio of the volume to the mass corresponding to the position of the particle after the update is greater than the ratio of the volume to the mass corresponding to the position of the particle before the update, the ratio of the volume to the mass corresponding to the position of the particle after the update is used as the individual ratio of the particle; if the maximum value of the ratio of the volume to the mass corresponding to the position of each particle after the update is greater than the individual ratio of each particle before the update, the maximum value of the ratio of the volume to the mass corresponding to the position of each particle after the update is used as the target ratio.

[0010] In one embodiment, when the target ratio satisfies a preset condition, the target particle position corresponding to the target ratio is determined as the optimal solution set of the objective function, including: when the difference between the target ratio and the target ratio in the previous iteration process is less than or equal to the preset difference, the position of the particle corresponding to the target ratio is determined as the optimal solution set of the objective function; or, when the number of iterative updates of the target ratio reaches the number of iterations, the position of the particle corresponding to the target ratio is determined as the optimal solution set of the objective function.

[0011] On the other hand, the present invention also provides a device for determining the structure of a tank body, the device for determining the structure of a tank body comprising: an objective function construction unit, for establishing an objective function characterizing the volume-to-mass ratio of a hydrogen storage tank based on the bottom radius of the tank body and the total mass of the side materials of the tank body; the total mass of the side materials being the sum of the masses of the various layers in the tank body structure; a position updating unit, for setting the initial position, initial moving speed and constraint conditions of each particle in a particle group in different dimensions, and updating the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; the dimensions comprising the initial position of each layer of the tank body; thickness and the initial bottom radius of the tank; the preset parameters include: the number of particles in the particle swarm, the number of iterations, the inertia weight, the learning factor and the iteration step range; a target ratio calculation unit, used to take the maximum value of the ratio of the volume to the mass of the tank corresponding to the position of each particle after the update as the target ratio based on the objective function; a tank structure determination unit, used to determine the target particle position corresponding to the target ratio as the optimal solution set of the objective function when the target ratio meets the preset conditions; the target particle position is used to characterize the target thickness of each layer of the tank and the target bottom radius of the tank.

[0012] Another aspect of the present invention provides an electronic device, the electronic device comprising a processor and a memory, the memory being used to store a computer program, and the computer program, when executed by the processor, implements the above-mentioned method for determining the tank structure.

[0013] Another aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above-mentioned method for determining the tank structure is implemented.

[0014] According to the characteristics of the cylindrical hydrogen storage tank, based on the bottom radius of the tank body and the total mass of the side material of the tank body, an objective function characterizing the volume-to-mass ratio of the hydrogen storage tank is established, and then the initial position and initial moving speed of each particle in the particle swarm with different layer thicknesses and bottom radius are set, and the particle swarm optimization algorithm is used to solve the optimal solution of the objective function. After multiple iterations, if the obtained target ratio meets the preset conditions, the target particle position corresponding to the target ratio is determined as the optimal solution set of the objective function, thereby improving the efficiency of the hydrogen storage tank structure design to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:

[0016] Figure 1 A schematic diagram showing the steps of a method for determining a tank structure in one embodiment of the present disclosure is shown;

[0017] Figure 2 A schematic diagram of a device for determining a tank structure in one embodiment of the present disclosure is shown;

[0018] Figure 3 A schematic structural diagram of an electronic device in one embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] As energy crisis and environmental pollution become increasingly serious, hydrogen energy, as a clean and efficient renewable energy, has gradually attracted widespread attention from countries around the world. As a key component in the hydrogen industrial production process, the performance of hydrogen storage tanks directly affects the safety, reliability and economy of hydrogen energy applications. Among them, cylindrical hydrogen storage tanks have the advantages of high space utilization, low manufacturing cost, convenient transportation, and good maintainability. They are a more common structural form of hydrogen storage tanks. In order to improve the performance of cylindrical hydrogen storage tanks, it is necessary to optimize their structure.

[0021] At present, the structural design optimization of hydrogen storage tanks mainly relies on numerical simulation methods, which have disadvantages such as high calculation complexity, long calculation time, and large calculation error, resulting in a long design cycle and failure to meet design requirements quickly and efficiently.

[0022] The improved particle swarm algorithm is a global optimization algorithm. By dynamically adjusting the acceleration factor, it can avoid the algorithm from converging to the local optimal solution too early. It has the advantages of strong global search capability and fast convergence speed. By inputting the particle positions in the improved particle swarm algorithm as variables into mature structural design software, it can effectively improve the efficiency and accuracy of hydrogen storage tank structural design and better meet the needs of hydrogen storage tank structural design.

[0023] See also Figure 1 An embodiment of the present disclosure provides a method for determining a tank structure, which may include the following steps.

[0024] S110: Based on the bottom radius of the tank body and the total mass of the side materials of the tank body, an objective function characterizing the volume-mass ratio of the hydrogen storage tank is established; the total mass of the side materials is the sum of the masses of each layer in the tank body structure.

[0025] In this embodiment, the cylindrical hydrogen storage tank has the advantages of high space utilization, low manufacturing cost, convenient transportation, good maintainability, etc., and is a more common structural form in hydrogen storage tanks. The cylindrical hydrogen storage tank is composed of multiple layers of the same height but different thicknesses from top to bottom. Since hydrogen is stored in the hydrogen storage tank, the tensile stresses on each layer are also different. Therefore, it is necessary to use the tensile stress of each layer as a constraint condition, so that the tank body has greater economic benefits when the ratio of the volume of the tank body to the mass of the tank body is maximized. That is, the hydrogen storage tank can store more hydrogen with less material consumption.

[0026] In this embodiment, the design variables and objective function of the hydrogen storage tank body design problem need to be determined first. The design variables are the thickness of each layer and the bottom radius R of the tank body. According to the specific height of the hydrogen storage tank body, the tank body can be divided into N layers of layers, and the design variables are d1, d2, ..., d i ,…,dN , where d i Represents the thickness of the i-th layer. The objective function is to maximize the ratio of the volume V to the mass M of the hydrogen storage tank, that is, MAX(V / M), where V is the volume of the tank and M is the total mass of the side of the tank. The ratio of V / M can be expressed by Formula 1.

[0027]

[0028] Where R is the radius of the tank, ρ is the density of the tank side material, and d i It represents the i-th layer from bottom to top, and N is the number of tank layers.

[0029] Step S120: setting the initial position, initial moving speed and constraint conditions of each particle in the particle swarm in different dimensions, and updating the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; the dimensions include the initial thickness of each layer of the tank body and the initial bottom radius of the tank body; the preset parameters include: the number of particles in the particle swarm, the number of iterations, the inertia weight, the learning factor and the iteration step range.

[0030] In this embodiment, the particle swarm optimization (PSO) is used to simulate birds in a flock by designing a massless particle. The particle has two properties: speed and position. The speed represents the speed of movement, and the position represents the direction of movement. Each particle searches for the optimal solution in the search space separately, and records it as the current individual extreme value, and shares the individual extreme value with other particles in the entire particle swarm. The best individual extreme value is found as the current global optimal solution of the entire particle swarm. All particles in the particle swarm adjust their speed and position according to the current individual extreme value they find and the current global optimal solution shared by the entire particle swarm.

[0031] In this embodiment, the particle swarm algorithm needs to initialize a group of particles first. Specifically, for example, the parameters involved in the particle swarm algorithm need to be set first, including the particle swarm size N, particle dimension D, number of iterations K, inertia weight ω, individual learning factor c1 and group learning factor c2. Then it is necessary to set the initial position and speed of each particle in the particle swarm, that is, to set the tank bottom radius and thickness of each layer of each particle in different particle dimensions. Among them, the initial position of each particle can be expressed as a D-dimensional vector (Formula 2), and the moving speed of each particle can also be expressed as a D-dimensional vector (Formula 3). Among them, D is equal to the number of layers plus 1.

[0032] X i =(x i1 , x i2, ..., x i(D-1) , x iR ), i = 1, 2, ..., N (Formula 2)

[0033] V i =(v i1 , v i2 , ..., v i(D-1) , v iR ), i = 1, 2, ..., N (Formula 3)

[0034] In this embodiment, the size of the particle group can be set to 30, that is, N=30.

[0035] S130: Based on the objective function, the maximum value of the ratio of the volume to the mass of the tank corresponding to the positions of the particles after the update is taken as the target ratio.

[0036] In this embodiment, during the movement of each particle, the ratio of the volume and mass of the tank corresponding to the current position of each particle is calculated, that is, the value of the objective function obtained based on the numerical value in the vector corresponding to the position. If the maximum value of the ratio of the volume and mass of the tank corresponding to the current position of each particle is greater than the maximum value of the ratio of the volume and mass of the tank corresponding to the particle's historical movement, the maximum value of the ratio of the volume and mass of the tank corresponding to the current position of each particle is used as the target ratio. If the maximum value of the ratio of the volume and mass of the tank corresponding to the current position of each particle is less than or equal to the maximum value of the DC energy consumption corresponding to the particle's historical movement position, the maximum value of the ratio of the volume and mass of the tank corresponding to the particle's historical movement position is still used as the target ratio.

[0037] S140: When the target ratio satisfies a preset condition, the target particle position corresponding to the target ratio is determined as the optimal solution set of the objective function; the target particle position is used to characterize the target thickness of each layer of the tank body and the target bottom radius of the tank body.

[0038] In this embodiment, when the target ratio meets the preset conditions during the movement of each particle, the target ratio is used as the optimal solution of the objective function, and the target bottom radius of the tank body and the target thickness of each layer in the tank body corresponding to the objective function are used as the optimal solution set of the objective function. Thus, the hydrogen storage tank can be produced based on the target bottom radius and the target thickness of each layer.

[0039] In this embodiment, after constructing an objective function that characterizes the ratio of the volume to the mass of the hydrogen storage tank, a particle swarm algorithm is used to solve the optimal solution of the objective function. First, set the particle swarm parameters such as the particle swarm scale, particle dimension, number of iterations, inertia weight, learning factor, and iteration step range. Then randomly initialize the initial position and initial velocity of each particle in the particle swarm, and use the initial position of each particle as the individual historical optimal position, and use the ratio of the volume to the mass of the hydrogen storage tank corresponding to the initial position of each particle as the individual historical optimal fitness value. And, use the maximum value of the ratio of the volume to the mass of the hydrogen storage tank corresponding to the initial position of each particle as the historical optimal fitness value of the group, and use the particle position corresponding to the historical optimal fitness value of the group as the historical optimal position of the group.

[0040] Then, based on the initial velocity of each particle and the preset particle swarm parameters, each particle is updated to a new position, and the individual historical optimal position, group historical optimal position, individual historical optimal fitness value, and group historical optimal fitness value of each updated particle are calculated. Repeat the iterative process of the above steps until the maximum number of iterations reaches the preset threshold, or the difference between the group historical optimal fitness values ​​between two iterations is less than or equal to the preset threshold. In this case, the optimal solution set of the objective function and the optimal solution corresponding to the optimal solution set are output. At this point, the tank structure of the hydrogen storage tank can be generated based on the optimal solution set of the objective function.

[0041] In one embodiment, based on the radius of the tank body and the total mass of the side of the tank body, an objective function characterizing the ratio of the volume to the mass of the hydrogen storage tank is established, which may include: generating a volume function characterizing the volume of the tank body based on the radius of the tank body and the height of the tank body; generating a mass function characterizing the total mass of the side material of the tank body based on the density of the side material of the tank body, the height of the tank body and the thickness of each layer; and dividing the volume function and the mass function to obtain the objective function.

[0042] In this embodiment, in order to maximize the economic benefits of the hydrogen storage tank, the volume of the hydrogen storage tank can be designed to be large enough while keeping the mass of the hydrogen storage tank small enough, so that the hydrogen storage tank can store a large amount of hydrogen.

[0043] In this embodiment, the volume function can be expressed by Formula 4:

[0044] V=πR 2 H (Formula 4)

[0045] Wherein, R represents the bottom radius of the tank, V represents the volume of the tank, and H represents the height of the tank. The mass function can be obtained by multiplying the volume and density of each layer to obtain the mass of each layer, and then summing the mass of each layer to obtain the mass function representing the total mass of the side material of the tank, which can be expressed by Formula 5:

[0046]

[0047] Among them, M represents the total mass of the side material of the tank, H represents the height of the tank, N represents the number of layers of the tank, and d i represents the thickness of the layer plate of the i-th layer of the tank body, and ρ represents the density of the tank body material. It should be noted that in this embodiment, the heights of the layers of the same tank body are equal.

[0048] In one embodiment, the learning factor includes an individual learning factor and a group learning factor, sets the initial position, initial moving speed and constraints of each particle in the particle swarm in different dimensions, and updates the position and moving speed of each particle based on the constraints and preset parameters of the particles in different dimensions. It may include: setting the initial position and initial moving speed of each particle in the particle swarm in different dimensions, and the value range of the particles in different dimensions; the number of dimensions is the number of layers of the tank body and the number of radii of the tank body; based on the inertia weight, the individual learning factor and the group learning factor, and the value range of the particles in different dimensions, updating each particle in the particle swarm to the target position.

[0049] In this embodiment, during the movement of particles, each movement process must be within a certain reasonable range. If the movement speed of particles in a certain dimension is too slow, it may take multiple iterations to reach the optimal position. If the movement speed of particles in a certain dimension is too fast, it may cause the particle to directly cross the optimal position during the movement, resulting in a large error in the optimal result. Therefore, the movement speed of particles can be adjusted by setting individual learning factors, group learning factors and inertia weights, so that the movement speed of particles is within a reasonable range.

[0050] In this embodiment, the optimal position of the i-th particle historically searched (Formula 6) is recorded as:

[0051] P id,pbest =(p i1 , p i2 , ..., p iD ) (Formula 6) Where, P id,pbest represents the optimal position of the i-th particle in the history search. The optimal position corresponding to the target ratio searched by the group (Formula 7) is recorded as:

[0052] P d,gbest =(p 1,gbest , p 2,gbest , ..., p D,gbest ) (Formula 7)

[0053] Among them, P d,gbestRepresents the optimal position searched by the group historically.

[0054] Then, according to the particle's own historical position P id,pbest and the optimal position of the group P d,gbest , update the speed and position of each particle. When the i-th particle of the k-th generation evolves to the k+1 generation, the speed is updated as shown in formula 8, and the position is updated as shown in formula 9:

[0055]

[0056]

[0057] Among them, ω represents the inertia weight, c1 represents the individual learning factor, c2 represents the group learning factor, the ranges of c1 and c2 are adjusted between 1 and 2, and r1 and r2 are random numbers between (0, 1).

[0058] In this embodiment, the constraint condition includes the maximum value R of the bottom radius R of the hydrogen storage tank. max and the minimum value R min , and the maximum thickness of each layer d max With the minimum value d min Among them, R min ≤R≤R max , d min ≤d i ≤d max .

[0059] In one embodiment, the value range of the particle includes the maximum tensile stress of each layer; based on the inertia weight, the individual learning factor and the group learning factor, and the value range of the particle in different dimensions, updating each particle in the particle swarm to the target position can include: inputting the particle vector corresponding to the position of each particle in the particle swarm into the maximum tensile stress calculation model to obtain the maximum tensile stress series of each particle in the particle swarm; the maximum tensile stress series includes the maximum tensile stress of each layer; based on the vector corresponding to the position of each particle in the particle swarm, determining the target tensile stress series of the tank under the condition of being fully stored with hydrogen; the target tensile stress series includes the target tensile stress of each layer under the condition of being fully stored with hydrogen; comparing the values ​​in the maximum tensile stress series with the values ​​in the target tensile stress series one by one, and when the maximum tensile stresses are both greater than or equal to the target tensile stresses, updating each particle in the particle swarm to the target position.

[0060] In this embodiment, when the hydrogen storage tank is filled with hydrogen, the side of the hydrogen storage tank will be subjected to the pressure of hydrogen. For a cylindrical hydrogen storage tank, due to the different heights of different layers, when hydrogen is stored in the hydrogen storage tank, the pressure of hydrogen on the inner wall is also different. However, the maximum tensile stress of each layer is related to the structure of the cylindrical hydrogen storage tank, including the bottom radius and the thickness of the layer. Therefore, in the process of solving the maximum value of the objective function, it is necessary to ensure that when the hydrogen storage tank is filled with hydrogen, the gas storage pressure σ i Less than or equal to the maximum tensile stress σ of the layer i_max .

[0061] In this embodiment, the position of each particle can be input as a variable into mature structural design software such as Abaqus and Ansys. The mature structural design software calculates the maximum tensile stress σ of each layer of each particle according to the input variables. i_max Among them, Abaqus, Ansys, etc. can use the tank radius and the thickness of each layer as input variables to perform parametric modeling on the hydrogen storage tank to obtain the maximum tensile stress value of each layer and the maximum tensile stress series (Formula 10):

[0062] σ max =[σ 1_max , σ 2_max , ..., σ i_max , ..., σ (D-1)_max ] (Formula 10).

[0063] Then, calculate the gas storage pressure σ on each layer when the hydrogen storage tank is full of hydrogen i , and obtain the target tensile stress series σ (Formula 11):

[0064] σ=[σ1,σ2,...,σ i , ..., σ (D-1) ] (Formula 11).

[0065] Then, the values ​​in the maximum tensile stress series are compared with the values ​​in the target tensile stress series one by one. If there is a i_max <σ i , indicating that the particle cannot meet the constraint conditions at this position and the position of the particle cannot be updated.

[0066] In one embodiment, before the step of updating each particle in the particle group to the target position based on the inertia weight, the individual learning factor and the group learning factor, and the value range of the particles in different dimensions, the method for determining the tank structure may also include: setting a first inertia weight for characterizing the maximum value of the inertia weight, and setting a second inertia weight for characterizing the minimum value of the inertia weight; determining the inertia weight based on the first inertia weight, the second inertia weight and the number of iterations, and the current number of iterations.

[0067] In this embodiment, the traditional particle swarm algorithm is prone to fall into local optimal solutions, slow convergence speed and other problems. Therefore, the particle swarm algorithm needs to be improved. In the traditional particle swarm algorithm, the inertia weight is fixed. By introducing an adaptive inertia weight, it can be dynamically adjusted according to the position and speed of the particle, thereby improving the convergence speed and global search ability of the algorithm. That is, the adaptive inertia weight can be adjusted according to the distance between the historical optimal position and the global position of the particle. The larger the distance, the smaller the weight factor, thereby increasing the exploration ability of the particle.

[0068] In this embodiment, the inertia weight is constrained by setting the maximum and minimum values ​​of the inertia weight, as shown in Formula 12:

[0069]

[0070] Among them, ω max represents the first inertia weight, ω min represents the second inertia weight, k represents the current number of iterations, and K represents the maximum number of iterations set.

[0071] In one embodiment, based on the objective function, taking the minimum value of the ratio of the volume to the mass of the tank corresponding to the position of each particle after the update as the target ratio, can include: respectively calculating the ratio of the volume to the mass of the tank corresponding to the position of each particle after the update; if the ratio of the volume to the mass corresponding to the position of the particle after the update is greater than the ratio of the volume to the mass corresponding to the position of the particle before the update, taking the ratio of the volume to the mass corresponding to the position of the particle after the update as the individual ratio of the particle; if the maximum value of the ratio of the volume to the mass corresponding to the position of each particle after the update is greater than the individual ratio of each particle before the update, taking the maximum value of the ratio of the volume to the mass corresponding to the position of each particle after the update as the target ratio.

[0072] In this embodiment, first, the historical optimal position of the historical optimal volume-to-mass ratio of the i-th particle position after k generations of iterations can be recorded as Then the historical optimal position of the overall historical optimal volume-to-mass ratio of the particle swarm is recorded as Then, after each particle in the particle group is updated to the corresponding position, the position of the k+1 generation particle is obtained. If the volume-to-mass ratio corresponding to the position of the k+1 generation particle is greater than The volume-to-mass ratio corresponding to this position will update the optimal position of the particle to Otherwise, it is not updated. In addition, it is also necessary to calculate whether the maximum value of the volume-to-mass ratio of the particles in the k+1 generation particle group is greater than This position corresponds to the volume-to-mass ratio. If the maximum volume-to-mass ratio of the particles in the k+1 generation swarm is greater than The volume-to-mass ratio corresponding to this position is updated to the optimal position of the particle swarm volume-to-mass ratio. Otherwise, it is not updated. It should be noted that before the first generation of particles is updated, the initial position and initial moving speed of the particles can be randomly generated.

[0073] In one embodiment, when the target ratio satisfies a preset condition, the target particle positions corresponding to the target ratio are determined as the optimal solution set of the objective function, which may include: when the difference between the target ratio and the target ratio in the previous iteration process is less than or equal to a preset difference, the positions of the particles corresponding to the target ratio are determined as the optimal solution set of the objective function; or, when the number of iterative updates of the target ratio reaches the number of iterations, the positions of the particles corresponding to the target ratio are determined as the optimal solution set of the objective function.

[0074] In this embodiment, if the particle swarm has satisfied the preset end condition during the iteration process, the optimal result of the swarm can be output and the optimization process ends; otherwise, the above iteration process is continued until the end condition is satisfied.

[0075] In this embodiment, the iteration condition of the particle swarm optimization algorithm can be that when the difference between the optimal solution of the k+1 generation of particles and the optimal solution of the k generation of particles is less than or equal to a preset threshold, it can be considered that the target ratio obtained by numerical calculations on different dimensions based on the particle swarm algorithm has converged, and in the subsequent iterations, the optimal solution value will not change significantly. Therefore, it can be considered that the current particle swarm algorithm has found the optimal solution of the objective function. In addition, when the number of iterations of the particle swarm algorithm reaches the preset number of iterations, there is still a large difference between the optimal solution value of the previous iteration process, it can be considered that the particle swarm algorithm is difficult to reach the convergence condition in the current iteration, and the iterative operation process can be stopped.

[0076] See also Figure 2An embodiment of the present disclosure further provides a tank structure determination device, which may include: an objective function construction unit, a position update unit, a target ratio calculation unit, and a tank structure determination unit.

[0077] The objective function construction unit is used to establish an objective function that characterizes the volume-to-mass ratio of the hydrogen storage tank based on the bottom radius of the tank body and the total mass of the side materials of the tank body; the total mass of the side materials is the sum of the masses of each layer in the tank structure.

[0078] The position updating unit is used to set the initial position, initial moving speed and constraint conditions of each particle in the particle swarm in different dimensions, and update the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; the dimensions include the initial thickness of each layer of the tank body and the initial bottom radius of the tank body; the preset parameters include: the number of particles in the particle swarm, the number of iterations, the inertia weight, the learning factor and the iteration step range.

[0079] The target ratio calculation unit is used to take the maximum value of the ratio of the volume to the mass of the tank body corresponding to the position of each particle after update as the target ratio based on the target function.

[0080] The tank structure determination unit is used to determine the target particle position corresponding to the target ratio as the optimal solution set of the objective function when the target ratio meets the preset conditions; the target particle position is used to characterize the target thickness of each layer of the tank and the target bottom radius of the tank.

[0081] The specific functions and effects achieved by the device for determining the structure of the tank body can be explained with reference to other embodiments of this specification, and will not be repeated here. The various modules in the device for determining the structure of the tank body can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0082] See also Figure 3 An embodiment of the present disclosure further provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned method for determining the tank structure is implemented.

[0083] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0084] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.

[0085] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0086] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above-mentioned method for determining the tank structure is implemented.

[0087] Those of ordinary skill in the art can understand that all or part of the processes in the implementation method 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 implementation methods of the methods described. Among them, any reference to memory, storage, database or other media used in the various implementations provided in this specification may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0088] It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] The descriptions of the various embodiments of this specification are made in a progressive manner. Different embodiments focus on describing the parts that are different from other embodiments. After reading this specification, a person skilled in the art can know that the various embodiments in this specification, as well as the various technical features disclosed in the embodiments, can be combined in more ways. To make the description concise, not all possible combinations of the various technical features in the embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0091] The multiple embodiments in this specification emphasize the parts that are different from other embodiments, and the various embodiments can be explained in comparison with each other. Any combination of the multiple embodiments in this specification by technicians in the relevant field based on general technical knowledge is included in the disclosure scope of this specification.

[0092] The above description is only an implementation method of this case and is not intended to limit the scope of protection of the claims of this case. For those skilled in the art, this case may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this case should be included in the scope of the claims of this case.

Claims

1. A method for determining a tank structure, characterized in that: The tank structure includes a plurality of layers of different thicknesses, and the method includes: Based on the bottom radius of the tank and the total mass of the side materials of the tank, an objective function characterizing the volume-mass ratio of the hydrogen storage tank is established; the total mass of the side materials is the sum of the masses of each layer in the tank structure; Setting the initial position, initial moving speed and constraint conditions of each particle in the particle swarm in different dimensions, and updating the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; the dimensions include the initial thickness of each layer of the tank body and the initial bottom radius of the tank body; the preset parameters include: the number of particles in the particle swarm, the number of iterations, the inertia weight, the learning factor and the iteration step range; Based on the objective function, taking the maximum value of the ratio of the volume to the mass of the tank corresponding to the position of each particle after update as the target ratio; When the target ratio meets the preset conditions, the target particle position corresponding to the target ratio is determined as the optimal solution set of the objective function; the target particle position is used to characterize the target thickness of each layer of the tank body and the target bottom radius of the tank body.

2. The method according to claim 1, characterized in that Based on the radius of the tank and the total mass of the tank side, an objective function characterizing the ratio of the volume to mass of the hydrogen storage tank is established, including: A volume function representing the volume of the tank is generated based on the radius of the tank and the height of the tank; Based on the density of the side material of the tank, the height of the tank and the thickness of each layer, a mass function representing the total mass of the side material of the tank is generated; The volume function is divided by the mass function to obtain the objective function.

3. The method according to claim 1, characterized in that The learning factors include individual learning factors and group learning factors, which set the initial position, initial moving speed and constraints of each particle in the particle swarm in different dimensions, and update the position and moving speed of each particle based on the constraints and preset parameters of the particles in different dimensions, including: Set the initial position and initial moving speed of each particle in the particle swarm in different dimensions, as well as the value range of the particles in different dimensions; the number of dimensions is the sum of the number of layers of the tank and the number of radii of the tank; Based on the inertia weight, the individual learning factor and the group learning factor, and the value ranges of particles in different dimensions, each particle in the particle group is updated to a target position.

4. The method according to claim 3, characterized in that The value range of the particle includes the maximum tensile stress of each layer; based on the inertia weight, the individual learning factor and the group learning factor, and the value range of the particle in different dimensions, each particle in the particle group is updated to the target position, including: Inputting the particle vector corresponding to the position of each particle in the particle group into the maximum tensile stress calculation model to obtain the maximum tensile stress series of each particle in the particle group; the maximum tensile stress series includes the maximum tensile stress of each layer; Determine the target tensile stress sequence of the tank under the condition of full hydrogen storage based on the vector corresponding to the position of each particle in the particle group; the target tensile stress sequence includes the target tensile stress of each layer under the condition of full hydrogen storage; The values ​​in the maximum tensile stress series are compared with the values ​​in the target tensile stress series one by one, and when the maximum tensile stresses are greater than or equal to the target tensile stresses, each particle in the particle group is updated to the target position.

5. The method according to claim 3, characterized in that: Before the step of updating each particle in the particle group to a target position based on the inertia weight, the individual learning factor and the group learning factor, and the value ranges of particles in different dimensions, the method further includes: Setting a first inertia weight for representing a maximum value of the inertia weight, and setting a second inertia weight for representing a minimum value of the inertia weight; The inertia weight is determined based on the first inertia weight, the second inertia weight, the iteration number, and a current iteration number.

6. The method according to claim 1, characterized in that Based on the objective function, the minimum value of the ratio of the volume to the mass of the tank corresponding to the position of each particle after the update is used as the target ratio, including: Calculating the ratio of the volume to the mass of the tank corresponding to the position of each particle after the update; If the volume-to-mass ratios of the particle positions after the update are greater than the volume-to-mass ratios of the particle positions before the update, the volume-to-mass ratios of the particle positions after the update are used as the individual ratios of the particle; If the maximum values ​​of the ratios of the volumes to the masses corresponding to the positions of the particles after the update are all greater than the individual ratios of the particles before the update, the maximum value of the ratios of the volumes to the masses corresponding to the positions of the particles after the update is used as the target ratio.

7. The method according to claim 1, characterized in that When the target ratio satisfies a preset condition, the target particle position corresponding to the target ratio is determined as the optimal solution set of the objective function, including: When the difference between the target ratio and the target ratio in the previous iteration process is less than or equal to a preset difference, the position of the particle corresponding to the target ratio is determined as the optimal solution set of the objective function; Alternatively, when the number of iterative updates of the target ratio reaches the number of iterations, the positions of the particles corresponding to the target ratio are determined as the optimal solution set of the objective function.

8. A device for determining a tank structure, characterized in that: The tank structure includes a plurality of layers of different thicknesses, and the tank structure determination device includes: An objective function building unit is used to establish an objective function characterizing the volume-mass ratio of the hydrogen storage tank based on the bottom radius of the tank body and the total mass of the side materials of the tank body; the total mass of the side materials is the sum of the masses of each layer in the tank structure; A position updating unit, used to set the initial position, initial moving speed and constraint conditions of each particle in the particle swarm in different dimensions, and update the position and moving speed of each particle based on the constraint conditions and preset parameters of the particles in different dimensions; the dimensions include the initial thickness of each layer of the tank body and the initial bottom radius of the tank body; the preset parameters include: the number of particles in the particle swarm, the number of iterations, the inertia weight, the learning factor and the iteration step range; a target ratio calculation unit, configured to take, based on the target function, a minimum value of the ratio of the volume to the mass of the tank corresponding to the position of each particle after update as the target ratio; The tank structure determination unit is used to determine the target particle position corresponding to the target ratio as the optimal solution set of the objective function when the target ratio meets the preset conditions; the target particle position is used to characterize the target thickness of each layer of the tank and the target bottom radius of the tank.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.