An electromagnetic pulse detection method and system for membrane shell end cover
Through the combination of the ant colony algorithm model and the finite element model, the distribution of electromagnetic pulse data information inside the membrane shell is calculated, which solves the problem of traditional detection methods being affected by conductive sediments and achieves higher detection accuracy.
Patent Information
- Application Number
- CN202410947608.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The traditional electromagnetic pulse data information detection method inside the membrane shell is greatly affected by conductive sediments, resulting in a decrease in detection accuracy, and it is difficult to accurately calculate the distribution of electromagnetic pulse data inside the membrane shell.
Using the ant colony algorithm model combined with the finite element model, through the training and iterative process of multiple sets of electromagnetic pulse data information, the distribution of electromagnetic pulse data information inside the membrane shell is calculated, and the fitness function and constraint conditions are used to evaluate the uniformity and coverage area of the magnetic field. , reduce the impact on conductive deposits.
It improves the calculation accuracy of the distribution of electromagnetic pulse data information inside the membrane shell, reduces the impact on conductive sediments, and improves the accuracy of detection.
Smart Images

Figure CN118477485B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of membrane shells, and more specifically, relates to an electromagnetic pulse detection method and system for a membrane shell end cover. Background Art
[0002] The membrane shell is a structure used to contain and protect the membrane element for water treatment. It is mainly used in membrane separation technologies such as reverse osmosis, nanofiltration, and ultrafiltration. The membrane shell mainly includes: a shell, an end cap, a membrane element, and a flow controller. Among them, the shell is usually made of high-strength plastic (such as PVC, FRP, stainless steel, etc.). Its main function is to provide sufficient strength to withstand the pressure during water treatment and protect the internal membrane element from the influence of the external environment. There is an end cap at each end of the membrane shell. Usually, the first end cap is provided with a water inlet and a water outlet, and the second end cap is provided with a water outlet. The water inlet is the entrance for introducing raw water into the membrane shell, and the concentrated water outlet is used to discharge water that fails to pass through the membrane element. This part of water contains a higher concentration of impurities and salts, which is usually called concentrated water or wastewater. The water outlet is used to collect the clean water after filtering through the membrane element. Most of the pollutants and minerals have been removed from the clean water, which is also called permeate water. The central tube in the membrane element is the core part of the membrane shell, which is used to filter the raw water to obtain filtered permeate water.
[0003] In order to effectively detect the electromagnetic pulse data information inside the membrane shell, the electromagnetic pulse generator will be installed inside the membrane shell. However, over time, the following factors will affect the strength and direction of the magnetic field, including: material aging, reduced magnetism of magnetic materials, structural deformation and other factors. However, in addition to these objective reasons, sediment coverage is also a key influencing factor. This is because during the water treatment process, the membrane shell and internal components may accumulate scale, sediment or other dirt. The accumulation of these substances may physically hinder the propagation of the magnetic field, especially conductive sediments will absorb or distort the magnetic field, and accumulation to a certain extent will affect the distribution and intensity of the magnetic field. For example, iron scale, due to its magnetic properties, may form a "distortion" or "concentration" of the magnetic field near the scale layer, which causes the actual magnetic field strength to be inconsistent with expectations. Generally speaking, if the scale coverage area is large, the magnetic field strength may need to be increased to overcome the shielding effect of the scale layer on the magnetic field. Due to the different magnetic field strengths during the descaling process, the effects vary greatly. Once the magnetic field strength is inaccurate, the original scale inhibition will become scaling.
[0004] However, the conventional method for detecting electromagnetic pulse data information inside the membrane shell is mainly to directly detect by installing an electromagnetic pulser, which results in that the detection accuracy of the electromagnetic pulse data information inside the membrane shell is greatly affected by conductive deposits. Summary of the invention
[0005] In order to solve the deficiencies in the prior art, the purpose of the present invention is to solve the above-mentioned defects and further propose an electromagnetic pulse detection method and system for a membrane shell end cover.
[0006] The present invention adopts the following technical solution.
[0007] The first aspect of the present invention discloses an electromagnetic pulse detection method for a membrane shell end cover, the method comprising:
[0008] Acquire multiple sets of electromagnetic pulse data information, and train an ant colony algorithm model based on the electromagnetic pulse data information;
[0009] Establishing a finite element model of the membrane shell, and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model;
[0010] The fitness function and the set constraints are called to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell;
[0011] Among them, each group of electromagnetic pulse data information at least includes the frequency, intensity, duration of the electromagnetic pulse, the flow rate of the water outlet of the membrane shell, and the water purification efficiency. Each ant position in the ant colony algorithm model represents the electromagnetic pulse data information of a point to be measured inside the membrane shell, and all ant positions represent the distribution of multiple groups of electromagnetic pulse data information inside the entire membrane shell.
[0012] Furthermore, the acquiring of multiple sets of electromagnetic pulse data information and training of an ant colony algorithm model based on the electromagnetic pulse data information includes:
[0013] Based on the ant position distribution in the ant colony algorithm model, determining the expression of the multiple sets of electromagnetic pulse data information in the ant colony algorithm model;
[0014] The electromagnetic pulse data information is expressed in the ant colony algorithm model as follows:
[0015] x i t = [ x i 1 t ,…, x i j t ,…, x in t ] ;
[0016] In the formula, For Ants In Dimension time location, is the number of types of electromagnetic pulse data information, For Ants In time location.
[0017] Furthermore, the step of acquiring multiple sets of electromagnetic pulse data information and training the ant colony algorithm model based on the electromagnetic pulse data information further includes:
[0018] According to the distribution of the plurality of sets of electromagnetic pulse data information in the entire membrane shell and the trained ant colony algorithm model, determining the update equations of the positions and velocities of the ants in the ant colony algorithm model;
[0019] Among them, the update equation of the position and speed of the ant is:
[0020] ;
[0021] ;
[0022] In the formula, Ant In Dimension time With time speed, Ant In Dimension time With time Location, time is the number of iterations, is the inertia weight factor, which is used to control the impact of the ant’s current speed on the speed of the next iteration. are the individual weight factor and the global weight factor, respectively, which control the influence of the individual optimal position and the global optimal position of the ant on the ant speed. is a random function, a random number between [0, 1], For Ants In Dimension The individual best position of For Dimension The global best position of .
[0023] Furthermore, the process of establishing a finite element model of the membrane shell and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model includes:
[0024] In the iterative process, based on the established finite element model, the Lagrange interpolation polynomial is called to calculate the abnormal value corresponding to each ant position in the ant colony algorithm model;
[0025] The abnormal value is the weighted average of the magnetic field strengths of other ants except the corresponding ant, and the calculation formula of the abnormal value is:
[0026] ;
[0027] ;
[0028] In the formula, Respectively represent ants ,Ant ,Ant The x-axis spatial coordinate, For Ants The magnetic field strength, Respectively represent ants In time The corresponding outliers on the x-axis, y-axis, and z-axis, is the number of ants.
[0029] Furthermore, the process of establishing a finite element model of the membrane shell and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model further includes:
[0030] Based on the abnormal value corresponding to each ant position in the ant colony algorithm model, obtaining the coupling correlation degree between two adjacent iteration processes of the abnormal values corresponding to all ant positions in the ant colony algorithm model;
[0031] Determining whether the coupling correlation exceeds a set correlation threshold, and ending the iteration process when the coupling correlation exceeds the set correlation threshold;
[0032] Wherein, the expression of the coupling correlation degree is:
[0033] ;
[0034] F t =[f x 1 t ,…,f x i t ,…,f x N t ] ;
[0035] Z t = [ Z 1 (t),…, Z i (t),…, Z N (t)] ;
[0036] In the formula, is the coupling correlation, is the symbol of standard deviation, is the covariance sign, is the fitness function.
[0037] Furthermore, the calling of the fitness function and the set constraints to calculate the distribution of the electromagnetic pulse data information inside the entire membrane shell includes:
[0038] Calling the fitness function to evaluate the optimization target of the trained ant colony algorithm model to obtain an evaluation result, wherein the evaluation result includes the uniformity of the magnetic field inside the membrane shell and the size of the magnetic field coverage area;
[0039] Wherein, the fitness function is:
[0040] ;
[0041] In the formula, For Ants The magnetic field strength, are weight factors, which are used to adjust the magnetic field uniformity and magnetic field strength inside the membrane shell. is the standard deviation of the magnetic field strength inside the membrane shell, which is used to measure the uniformity of the magnetic field inside the membrane shell. is the average magnetic field strength of all ants.
[0042] Furthermore, the calling of the fitness function and the set constraints to calculate the distribution of the electromagnetic pulse data information inside the entire membrane shell also includes:
[0043] Based on the set constraints, determine the magnetic field strength limit inside the membrane shell and the range of the magnetic field coverage area;
[0044] Wherein, the magnetic field strength is limited to are the maximum and minimum permissible values of the magnetic field strength, respectively. The range of the magnetic field coverage area is , is the volume inside the membrane shell, The threshold to ensure effective magnetic field coverage.
[0045] The second aspect of the present invention discloses an electromagnetic pulse detection system for a membrane shell end cover, the system comprising:
[0046] A model training module, used to obtain multiple sets of electromagnetic pulse data information, and train the ant colony algorithm model based on the electromagnetic pulse data information;
[0047] An iteration module, used for establishing a finite element model of the membrane shell, and feeding back the established finite element model to the iteration process of the trained ant colony algorithm model;
[0048] A calculation module is used to call the fitness function and the set constraints to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell;
[0049] Among them, each group of electromagnetic pulse data information at least includes the frequency, intensity, duration of the electromagnetic pulse, the flow rate of the water outlet of the membrane shell, and the water purification efficiency. Each ant position in the ant colony algorithm model represents the electromagnetic pulse data information of a point to be measured inside the membrane shell, and all ant positions represent the distribution of multiple groups of electromagnetic pulse data information inside the entire membrane shell.
[0050] The third aspect of the present invention discloses a terminal, including a processor and a storage medium; the characteristics are:
[0051] The storage medium is used to store instructions;
[0052] The processor is used to operate according to the instructions to execute the steps of the method described in the first aspect.
[0053] The fourth aspect of the present invention discloses a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0054] The beneficial effects of the present invention are that, compared with the prior art, the present invention has the following advantages:
[0055] The ant colony algorithm model is trained through multiple sets of electromagnetic pulse data information, and a finite element model of the membrane shell is established. The established finite element model is then fed back to the iterative process of the trained ant colony algorithm model, and the fitness function is called to calculate the distribution of the electromagnetic pulse data information inside the entire membrane shell according to the set constraints. This method can more accurately calculate the distribution of electromagnetic pulse data information inside the entire membrane shell by combining the ant colony algorithm model with the fitness function. Compared with the direct detection method, it is less affected by conductive sediments and has higher detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flow chart of an electromagnetic pulse detection method for a membrane shell end cap. DETAILED DESCRIPTION
[0057] The present application is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present application.
[0058] This section first introduces the structure of the membrane shell, which is used to contain and protect water treatment membrane elements. It is mainly used in membrane separation technologies such as reverse osmosis, nanofiltration, and ultrafiltration. The design of the membrane shell is to ensure that the membrane element can operate efficiently under ideal pressure and flow conditions.
[0059] The membrane shell mainly includes: outer shell, end cover, membrane element and flow controller.
[0060] The outer shell is usually made of high-strength plastic (such as PVC, FRP, stainless steel, etc.). Its main function is to provide sufficient strength to withstand the pressure during water treatment and protect the internal membrane elements from the influence of the external environment.
[0061] There is an end cap at each end of the membrane shell. Usually, the first end cap is provided with a water inlet, and the second end cap is provided with a water outlet and a concentrate outlet. The water inlet is the entrance for introducing raw water into the membrane shell; the concentrate outlet is used to discharge the water that fails to pass through the membrane element. This part of water contains a higher concentration of impurities and salts, usually called concentrated water or wastewater; the water outlet is used to collect the clean water after filtering through the membrane element, in which most of the pollutants and minerals have been removed, also called permeate water.
[0062] The central tube in the membrane element is the core part of the membrane shell, which is used to filter the raw water to obtain filtered permeate water. Depending on the design of the membrane shell, it can accommodate one to eight membrane elements, and the most common in the market is the six-core package.
[0063] For a six-core membrane shell, the membrane element can be six separate cylindrical membranes, each membrane having its own central tube, which are arranged side by side and symmetrically inside the membrane shell and finally converge together to the water outlet at the second end cap.
[0064] It is understandable that a multi-core membrane shell can use space more efficiently and reduce the system footprint compared to using multiple single-core membrane shells separately. Therefore, the more cores there are, the larger the filtration area and the greater the processing capacity of the membrane shell. This is because more membrane elements mean a larger filtration area.
[0065] Flow controllers are used to adjust the flow of feed water and concentrate, thereby controlling the efficiency and performance of the membrane treatment process.
[0066] In addition, the membrane shell may also include a sealing ring, a clamping device, a supporting assembly, etc. Since these devices are only used to cooperate with other components and their functions are not difficult to understand literally, they will not be described in detail.
[0067] In an embodiment of the present invention, electromagnetic pulse technology can be used to prevent scale from adhering to the cylindrical membrane, thereby maintaining the performance of the membrane element and extending its service life. The principle can be summarized as the hydrogen bond breakage deformation theory: Under normal circumstances, water molecules cannot exist alone, but exist in water molecule clusters composed of several water molecules. However, this type of water molecule cluster has a low solubility for scale salts, so it is easy for scale salts to crystallize and form scale. Under the action of the electromagnetic field, large water molecule clusters in the solution are broken up into small water molecule clusters or double water molecules, thereby improving the activation, solubility and penetration of water, achieving the effect of scale prevention and descaling. Among them, scale is a mixture with insoluble salts such as calcium carbonate and magnesium carbonate as the main components, among which calcium carbonate has the highest content.
[0068] The coil of the electromagnetic pulse generator is designed to be evenly surrounded by the central tube, which ensures that the water flowing in the central tube can be evenly exposed to the electromagnetic field. This layout helps to maximize the effect of the electromagnetic pulse on water treatment. The coil should be at an appropriate distance from the central tube to prevent physical contact or thermal damage, while also ensuring that the electromagnetic field can fully penetrate into the water inside the central tube.
[0069] like Figure 1 As shown, in one embodiment, the present invention provides an electromagnetic pulse detection method for a membrane shell end cover, comprising the following steps:
[0070] Step S110, obtaining multiple sets of electromagnetic pulse data information, and training the ant colony algorithm model based on the electromagnetic pulse data information.
[0071] Among them, each set of electromagnetic pulse data information includes at least the frequency, intensity, duration of the electromagnetic pulse, the flow rate of the membrane shell water outlet and the water purification efficiency. Each ant position in the ant colony algorithm model represents the electromagnetic pulse data information of a test point inside the membrane shell, and all ant positions represent the distribution of multiple sets of electromagnetic pulse data information inside the entire membrane shell.
[0072] In one embodiment, the present invention provides an electromagnetic pulse detection method for a membrane shell end cover, which obtains multiple sets of electromagnetic pulse data information and trains an ant colony algorithm model based on the electromagnetic pulse data information, specifically comprising the following steps:
[0073] Step S112, based on the position distribution of ants in the ant colony algorithm model, determining expressions of multiple sets of electromagnetic pulse data information in the ant colony algorithm model.
[0074] Among them, the expression of electromagnetic pulse data information in the ant colony algorithm model is:
[0075] x i t = [ x i 1 t ,…, x i j t ,…, x in t ] .
[0076] In the formula, For Ants In Dimension time location, is the number of types of electromagnetic pulse data information, For Ants In time location.
[0077] Step S114, determining the update equations of the positions and velocities of the ants in the ant colony algorithm model according to the distribution of the multiple sets of electromagnetic pulse data information in the entire membrane shell and the trained ant colony algorithm model.
[0078] Among them, the update equations of the ant's position and speed are:
[0079] .
[0080] .
[0081] In the formula, Ant In Dimension time With time speed, Ant In Dimension time With time Location, time is the number of iterations, is the inertia weight factor, which is used to control the impact of the ant’s current speed on the speed of the next iteration. are the individual weight factor and the global weight factor, respectively, which control the influence of the individual optimal position and the global optimal position of the ant on the ant speed. is a random function, a random number between [0, 1], For Ants In Dimension The individual best position of For Dimension The global best position of .
[0082] Step S120, establishing a finite element model of the membrane shell, and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model.
[0083] In one embodiment, the present invention provides an electromagnetic pulse detection method for a membrane shell end cover, which establishes a finite element model of the membrane shell and feeds the established finite element model back to the iterative process of the trained ant colony algorithm model, specifically comprising the following steps:
[0084] Step S122, in the iterative process, based on the established finite element model, the Lagrange interpolation polynomial is called to calculate the abnormal value corresponding to each ant position in the ant colony algorithm model;
[0085] Among them, the outlier value is the weighted average of the magnetic field strength of other ants except the corresponding ant, and the calculation formula of the outlier value is:
[0086] ;
[0087] ;
[0088] In the formula, Respectively represent ants ,Ant ,Ant The x-axis spatial coordinate, For Ants The magnetic field strength, Respectively represent ants In time The corresponding outliers on the x-axis, y-axis, and z-axis, is the number of ants.
[0089] Step S124, based on the abnormal value corresponding to each ant position in the ant colony algorithm model, obtain the coupling correlation degree between two adjacent iteration processes of the abnormal values corresponding to all ant positions in the ant colony algorithm model.
[0090] Step S126, determining whether the coupling correlation exceeds a set correlation threshold, and ending the iteration process when the coupling correlation exceeds the set correlation threshold.
[0091] Among them, the expression of coupling correlation is:
[0092] ,
[0093] F t =[f x 1 t ,…,f x i t ,…,f x N t ] ,
[0094] Z t = [ Z 1 (t),…, Z i (t),…, Z N (t)] .
[0095] In the formula, is the coupling correlation, is the symbol of standard deviation, is the covariance sign, is the fitness function.
[0096] Step S130, calling the fitness function and the set constraint conditions to calculate the distribution of the electromagnetic pulse data information inside the entire membrane shell.
[0097] In one embodiment, the present invention provides an electromagnetic pulse detection method for a membrane shell end cover, which calls a fitness function and set constraints to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell, specifically including the following steps:
[0098] Step S132, calling the fitness function to evaluate the optimization target of the trained ant colony algorithm model to obtain an evaluation result, which includes the uniformity of the magnetic field inside the membrane shell and the size of the magnetic field coverage area.
[0099] Among them, the fitness function is:
[0100] .
[0101] In the formula, For Ants The magnetic field strength, are weight factors, which are used to adjust the magnetic field uniformity and magnetic field strength inside the membrane shell. is the standard deviation of the magnetic field strength inside the membrane shell, which is used to measure the uniformity of the magnetic field inside the membrane shell. is the average magnetic field strength of all ants.
[0102] Step S134, based on the set constraints, determine the magnetic field strength limit inside the membrane shell and the range of the magnetic field coverage area.
[0103] The magnetic field strength limit is are the maximum and minimum allowable values of the magnetic field strength, respectively. The range of the magnetic field coverage area is , is the volume inside the membrane shell, The threshold to ensure effective magnetic field coverage.
[0104] The above-mentioned electromagnetic pulse detection method for the membrane shell end cover trains the ant colony algorithm model through multiple sets of electromagnetic pulse data information, and establishes a finite element model of the membrane shell. The established finite element model is then fed back to the iterative process of the trained ant colony algorithm model, and then the fitness function is called to calculate the distribution of the electromagnetic pulse data information inside the entire membrane shell according to the set constraints. This method can more accurately calculate the distribution of electromagnetic pulse data information inside the entire membrane shell by combining the ant colony algorithm model with the fitness function. Compared with the direct detection method, it is less affected by conductive sediments and has higher detection accuracy.
[0105] In a specific embodiment, the present invention provides an electromagnetic pulse detection method for a membrane shell end cover. The electromagnetic pulse and scale formation affect each other. The effect of the electromagnetic pulse on scale formation can be understood in the following way:
[0106] The first is the effect of magnetic field on ion movement: magnetic field can change the movement trajectory of charged ions in water, such as calcium, iron, and magnesium ions. When these ions move in the magnetic field, they will be affected by the Lorentz force, and their path and speed may change.
[0107] Lorentz force The calculation formula is: .
[0108] In the formula, is the charge of the charged ant, It's the speed of an ant. is the magnetic field strength and the arrow indicates the direction.
[0109] The second is the effect of the deposition process of charged ions: the altered ion trajectories can reduce their chances of deposition on the membrane surface, so the magnetic field helps to reduce scale formation. Assuming the deposition rate The average path length of the ions Inversely proportional, then:
[0110]
[0111] In the formula, It is understood that the greater the magnetic field strength, the stronger the Lorentz force, the more obvious the deflection effect on ions, and thus the more effective it is in reducing scale formation.
[0112] In addition, when using electromagnetic pulse technology to remove scale, certain frequencies are more suitable for removing specific types of scale. For example, calcium scale prevention is usually in a specific low-frequency range, such as 30 Hz to 60 Hz, and the magnetic field strength is recommended to use a medium-intensity magnetic field, such as 50 to 200 Gauss. The electromagnetic field is more effective in reducing the formation of calcium scale. This frequency range can effectively interfere with the aggregation process of calcium ions and reduce their deposition on the surface of pipes or membranes. Iron scale prevention is usually in a slightly higher frequency range, such as 100 Hz to 200 Hz, and the magnetic field strength is recommended to use a higher intensity magnetic field, such as 300 to 1000 Gauss. These frequencies are more suitable for affecting the charge state and deposition behavior of iron ions.
[0113] In this embodiment, the present invention provides an electromagnetic pulse detection method for a membrane shell end cover, comprising the following steps:
[0114] Step 1: Obtain multiple sets of electromagnetic pulse data information to train the optimization algorithm model.
[0115] Specifically, each set of electromagnetic pulse data information includes at least: the frequency, intensity, duration, flow rate of the water outlet, and water purification efficiency of the electromagnetic pulse. It can be shown as follows:
[0116] x i t = [ x i 1 t ,…, x i j t ,…, x in t ] .
[0117] In the formula, For Ants In Dimension time location, The number of types of electromagnetic pulse data information. Also means ant In time location.
[0118] The optimization algorithm model selected is the Particle Swarm Opitimation (PSO). In the ant colony algorithm, the position of each ant can represent the electromagnetic pulse data information of each test point. The electromagnetic pulse data information of all ants basically determines the distribution of the electromagnetic pulse inside the entire membrane shell.
[0119] The update equations of the position and speed of the ant colony algorithm can be shown as follows:
[0120] ,
[0121] .
[0122] In the formula, Ant In Dimension time With time speed, Ant In Dimension time With time Location, time It should be understood as the number of iterations. is the inertia weight factor, which is used to control the impact of the ant’s current speed on the speed of the next iteration. are the individual weight factor and the global weight factor, which respectively control the influence of the individual best position and the global best position of the ant on its speed. is a random function, a random number between [0, 1], It's an ant In Dimension The individual best position of Is the dimension The global best position of .
[0123] Step 2: Establish a finite element model of the membrane shell.
[0124] Step 3, the results of the finite element model are fed back to the iteration process of the optimization algorithm model, and the magnetic field distribution inside the membrane shell is calculated by combining the fitness function with the preset constraints.
[0125] Specifically, the fitness function is used to evaluate the optimization goal of the optimization algorithm model, which is set to minimize the magnetic field inhomogeneity and maximize the effective coverage area of the magnetic field at the same time. This is because maximizing the uniformity and intensity of the magnetic field in key areas (such as the membrane surface) can optimize the anti-fouling effect. It can be shown as follows:
[0126] .
[0127] In the formula, For Ants The magnetic field strength, are weighting factors used to adjust the relative importance of optimizing uniformity and magnetic field strength, is the standard deviation of the magnetic field strength inside the membrane shell, which measures the uniformity of the magnetic field. is the average strength of the magnetic field of all ants.
[0128] In this embodiment, the constraints may include magnetic field strength limit and magnetic field coverage, where the magnetic field strength limit is , are the maximum and minimum permissible values of the magnetic field strength. The magnetic field coverage range is , is the volume inside the membrane shell, is the threshold to ensure effective magnetic field coverage.
[0129] In this embodiment, the iteration process specifically includes steps 3.1 to 3.3.
[0130] Step 3.1, in each iteration process, the outlier value corresponding to the ant's position is calculated based on the finite element model.
[0131] Specifically, the abnormal value corresponding to the position of the ant can be the weighted average of the magnetic field strengths of other ants. In time The corresponding outliers The Lagrange interpolation polynomial can be used, as shown below:
[0132] ,
[0133] .
[0134] In the formula, Respectively represent ants ,Ant ,Ant The x-axis spatial coordinate, For Ants The magnetic field strength, Respectively represent ants In time The corresponding outliers on the x-axis, y-axis, and z-axis, is the number of ants. Considering the symmetry, the above formula only gives The calculation formula should be understood as follows: The calculation method is similar and will not be repeated here.
[0135] Step 3.2, calculate the coupling correlation of the outliers of all ants in the two iterations.
[0136] Specifically, coupling correlation As shown below:
[0137] ,
[0138] F t =[f x 1 t ,…,f x i t ,…,f x N t ] ,
[0139] Z t = [ Z 1 (t),…, Z i (t),…, Z N (t)] .
[0140] In the formula, is the symbol of standard deviation, is the covariance sign, is the fitness function.
[0141] Step 3.3, determine whether the coupling correlation is greater than a preset correlation threshold, if so, the iteration ends.
[0142] Specifically, if If the correlation is greater than the preset threshold, the iteration should stop at The final output of step 3, that is, the position of each ant should be .
[0143] In addition, the membrane shell end cap is also equipped with a magnetic field strength sensor, a pulse sensor and an integrated control system. The coil inside the electromagnetic pulse generator is integrated into the membrane shell to ensure that it can generate an electromagnetic field sufficient to cover the entire membrane element. The magnetic field strength sensor is used to measure the magnetic field strength generated by the magnetic field pulse generator, and the pulse sensor is used to measure the flow rate of the liquid flowing through the inlet or outlet of the membrane shell.
[0144] The electromagnetic pulse detection system for the membrane shell end cover provided by the present invention is described below. The electromagnetic pulse detection system for the membrane shell end cover described below and the electromagnetic pulse detection method for the membrane shell end cover described above can be referred to each other.
[0145] In one embodiment, the present invention provides an electromagnetic pulse detection system for a membrane shell end cover, comprising a model training module, an iteration module, and a calculation module.
[0146] The model training module is used to obtain multiple sets of electromagnetic pulse data information and train the ant colony algorithm model based on the electromagnetic pulse data information.
[0147] The iteration module is used to establish the finite element model of the membrane shell and feed the established finite element model back to the iterative process of the trained ant colony algorithm model.
[0148] The calculation module is used to call the fitness function and the set constraints to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell.
[0149] Among them, each set of electromagnetic pulse data information includes at least the frequency, intensity, duration of the electromagnetic pulse, the flow rate of the membrane shell water outlet and the water purification efficiency. Each ant position in the ant colony algorithm model represents the electromagnetic pulse data information of a test point inside the membrane shell, and all ant positions represent the distribution of multiple sets of electromagnetic pulse data information inside the entire membrane shell.
[0150] In this embodiment, the electromagnetic pulse detection system for the membrane shell end cover provided by the present invention, the model training module is specifically used for:
[0151] Based on the position distribution of ants in the ant colony algorithm model, the expressions of multiple sets of electromagnetic pulse data information in the ant colony algorithm model are determined.
[0152] Among them, the expression of electromagnetic pulse data information in the ant colony algorithm model is:
[0153] x i t = [ x i 1 t ,…, x i j t ,…, x in t ] .
[0154] In the formula, For Ants In Dimension time location, is the number of types of electromagnetic pulse data information, For Ants In time location.
[0155] In this embodiment, the electromagnetic pulse detection system for the membrane shell end cover provided by the present invention, the model training module is specifically used for:
[0156] According to the distribution of multiple sets of electromagnetic pulse data information inside the entire membrane shell and the trained ant colony algorithm model, the update equations of the positions and velocities of the ants in the ant colony algorithm model are determined.
[0157] Among them, the update equations of the ant's position and speed are:
[0158] .
[0159] .
[0160] In the formula, Ant In Dimension time With time speed, Ant In Dimension time With time Location, time is the number of iterations, is the inertia weight factor, which is used to control the impact of the ant’s current speed on the speed of the next iteration. are the individual weight factor and the global weight factor, respectively, which control the influence of the individual optimal position and the global optimal position of the ant on the ant speed. is a random function, a random number between [0, 1], For Ants In Dimension The individual best position of For Dimension The global best position of .
[0161] In this embodiment, the electromagnetic pulse detection system for the membrane shell end cover provided by the present invention, the iteration module is specifically used for:
[0162] In the iterative process, based on the established finite element model, the Lagrange interpolation polynomial is called to calculate the outlier value corresponding to each ant position in the ant colony algorithm model;
[0163] Among them, the outlier value is the weighted average of the magnetic field strength of other ants except the corresponding ant, and the calculation formula of the outlier value is:
[0164] ,
[0165] .
[0166] In the formula, Respectively represent ants ,Ant ,Ant The x-axis spatial coordinate, For Ants The magnetic field strength, Respectively represent ants In time The corresponding outliers on the x-axis, y-axis, and z-axis, is the number of ants.
[0167] In this embodiment, the electromagnetic pulse detection system for the membrane shell end cover provided by the present invention, the iteration module is specifically used for:
[0168] Based on the outlier value corresponding to each ant position in the ant colony algorithm model, the coupling correlation between the outliers corresponding to all ant positions in the ant colony algorithm model and two adjacent iteration processes is obtained.
[0169] It is determined whether the coupling correlation exceeds a set correlation threshold, and when the coupling correlation exceeds the set correlation threshold, the iteration process is terminated.
[0170] Among them, the expression of coupling correlation is:
[0171] ,
[0172] F t =[f x 1 t ,…,f x i t ,…,f x N t ] ,
[0173] Z t = [ Z 1 (t),…, Z i (t),…, Z N (t)] .
[0174] In the formula, is the coupling correlation, is the symbol of standard deviation, is the covariance sign, is the fitness function.
[0175] In this embodiment, the electromagnetic pulse detection system for the membrane shell end cover provided by the present invention, the calculation module is specifically used for:
[0176] The fitness function is called to evaluate the optimization target of the trained ant colony algorithm model to obtain the evaluation result, which includes the uniformity of the magnetic field inside the membrane shell and the size of the magnetic field coverage area.
[0177] Among them, the fitness function is:
[0178] .
[0179] In the formula, For Ants The magnetic field strength, are weight factors, which are used to adjust the magnetic field uniformity and magnetic field strength inside the membrane shell. is the standard deviation of the magnetic field strength inside the membrane shell, which is used to measure the uniformity of the magnetic field inside the membrane shell. is the average magnetic field strength of all ants.
[0180] In this embodiment, the electromagnetic pulse detection system for the membrane shell end cover provided by the present invention, the calculation module is specifically used for:
[0181] Based on the set constraints, the magnetic field strength limit inside the membrane shell and the range of the magnetic field coverage area are determined.
[0182] The magnetic field strength limit is are the maximum and minimum allowable values of the magnetic field strength, respectively. The range of the magnetic field coverage area is , is the volume inside the membrane shell, The threshold to ensure effective magnetic field coverage.
[0183] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. An electromagnetic pulse detection method for a membrane shell end cover, characterized in that: The method comprises: Acquire multiple sets of electromagnetic pulse data information, and train an ant colony algorithm model based on the electromagnetic pulse data information; Establishing a finite element model of the membrane shell, and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model; The fitness function and the set constraints are called to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell; Each set of electromagnetic pulse data information includes at least the frequency, intensity, duration of the electromagnetic pulse, the flow rate of the water outlet of the membrane shell, and the water purification efficiency. Each ant position in the ant colony algorithm model represents the electromagnetic pulse data information of a point to be measured inside the membrane shell, and all ant positions represent the distribution of multiple sets of electromagnetic pulse data information inside the entire membrane shell. The step of establishing a finite element model of the membrane shell and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model includes: In the iterative process, based on the established finite element model, the Lagrange interpolation polynomial is called to calculate the abnormal value corresponding to each ant position in the ant colony algorithm model; The abnormal value is the weighted average of the magnetic field strengths of other ants other than the corresponding ant, and the calculation formula of the abnormal value is: In the formula, x i ,x j ,x k Respectively represent the x-axis spatial coordinates of ant i, ant j, and ant k, B k is the magnetic field strength of ant k, Z ix (t),Z iy (t),Z iz (t) represents the abnormal value of x-axis, y-axis and z-axis corresponding to ant i at time t, and N is the number of ants; The process of establishing a finite element model of the membrane shell and feeding the established finite element model back to the iterative process of the trained ant colony algorithm model also includes: Based on the abnormal value corresponding to each ant position in the ant colony algorithm model, obtaining the coupling correlation degree between two adjacent iteration processes of the abnormal values corresponding to all ant positions in the ant colony algorithm model; Determining whether the coupling correlation exceeds a set correlation threshold, and ending the iteration process when the coupling correlation exceeds the set correlation threshold; Wherein, the expression of the coupling correlation degree is: F(t)=[f(x1(t)),…,f(x i (t)),…,f(x N (t))]; Z(t)=[Z1(t),…,Z i (t),…,Z N (t)]; Where Y(t) is the coupling correlation, σ is the sign of the standard deviation, cov is the sign of the covariance, and f is the fitness function; The fitness function is called according to the set constraint conditions to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell, including: Calling the fitness function to evaluate the optimization target of the trained ant colony algorithm model to obtain an evaluation result, wherein the evaluation result includes the uniformity of the magnetic field inside the membrane shell and the size of the magnetic field coverage area; Wherein, the fitness function is: In the formula, B i is the magnetic field strength of ant i, α and β are weight factors, which are used to adjust the magnetic field uniformity and magnetic field strength inside the membrane shell, respectively, and σ B is the standard deviation of the magnetic field strength inside the membrane shell, which is used to measure the uniformity of the magnetic field inside the membrane shell. is the average magnetic field strength of all ants; The calling of the fitness function and the set constraints to calculate the distribution of the electromagnetic pulse data information inside the entire membrane shell also includes: Based on the set constraints, determine the magnetic field strength limit inside the membrane shell and the range of the magnetic field coverage area; Wherein, the magnetic field strength is limited to B min ≤B i ≤B max , B min ,B max are the maximum and minimum permissible values of the magnetic field strength, respectively. The range of the magnetic field coverage area is V is the volume inside the membrane shell, and C is the threshold to ensure effective magnetic field coverage.
2. The electromagnetic pulse detection method for membrane shell end cover according to claim 1, characterized in that: The acquiring of multiple sets of electromagnetic pulse data information and training of an ant colony algorithm model based on the electromagnetic pulse data information includes: Based on the ant position distribution in the ant colony algorithm model, determining the expression of the multiple sets of electromagnetic pulse data information in the ant colony algorithm model; The electromagnetic pulse data information is expressed in the ant colony algorithm model as follows: x i (t)=[x i1 (t),…,x ij (t),…,x in (t)]; In the formula, x ij (t) is the position of ant i at time t in dimension j, n is the number of types of electromagnetic pulse data information, x i (t) is the position of ant i at time t.
3. The electromagnetic pulse detection method for membrane shell end cover according to claim 2 is characterized in that: The step of acquiring multiple sets of electromagnetic pulse data information and training the ant colony algorithm model based on the electromagnetic pulse data information further includes: According to the distribution of the plurality of sets of electromagnetic pulse data information in the entire membrane shell and the trained ant colony algorithm model, determining the update equations of the positions and velocities of the ants in the ant colony algorithm model; Among them, the update equation of the position and speed of the ant is: v ij (t+1)=w×v ij (t)+c1×rand1()×(pbest ij -x ij (t))+c2× rand2()×(gbest j -x ij (t)); x ij (t+1)=x ij (t)+v ij (t+1); In the formula, v ij (t),v ij (t+1) are the speeds of ant i at time t and time t+1 in dimension j, x ij (t),x ij (t+1) are the positions of ant i at time t and time t+1 in dimension j, respectively. Time t is the number of iterations. w is the inertia weight factor, which is used to control the influence of the current speed of the ant on the speed of the next iteration. c1 and c2 are the individual weight factor and the global weight factor, respectively, which control the influence of the individual best position and the global best position of the ant on the ant speed. rand1() and rand2() are random functions, which are random numbers between [0, 1]. pbest ij is the best individual position of ant i in dimension j, gbest j is the global best position of dimension j, i.e. gbest j =max{pbest ij }.
4. An electromagnetic pulse detection system for a membrane shell end cover, used to perform the method described in any one of claims 1 to 3, characterized in that: The system comprises: A model training module, used to obtain multiple sets of electromagnetic pulse data information, and train the ant colony algorithm model based on the electromagnetic pulse data information; An iteration module, used for establishing a finite element model of the membrane shell, and feeding back the established finite element model to the iteration process of the trained ant colony algorithm model; A calculation module is used to call the fitness function and the set constraints to calculate the distribution of electromagnetic pulse data information inside the entire membrane shell; Among them, each group of electromagnetic pulse data information at least includes the frequency, intensity, duration of the electromagnetic pulse, the flow rate of the water outlet of the membrane shell, and the water purification efficiency. Each ant position in the ant colony algorithm model represents the electromagnetic pulse data information of a point to be measured inside the membrane shell, and all ant positions represent the distribution of multiple groups of electromagnetic pulse data information inside the entire membrane shell.
5. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
System and method for testing influences of electromagnetic field on separation performance of reverse osmosis membrane
CN102500240A
Electromagnetic pulse calculation method and system based on self-consistent iteration
CN116341431A
