Sludge yield calculation method and device, computer equipment and storage medium

By obtaining the operating parameters of the clarifier and the raw water quality parameters, and combining chemical calculations to determine the precipitable ions in the raw water, the problem of neglecting the precipitation behavior of calcium and magnesium ions in the existing sludge production calculation is solved. This enables accurate calculation and real-time monitoring of sludge production, and improves the operating efficiency and stability of the clarifier.

CN121617487APending Publication Date: 2026-03-06PIPE NETWORK MANAGEMENT BRANCH OF BEIJING WATERWORKS GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511739234.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

Existing methods for calculating sludge production ignore the precipitation behavior of calcium and magnesium ions, resulting in large errors in low pH environments. Furthermore, the lack of real-time monitoring and precise control affects the operational stability and treatment efficiency of clarifiers.

Method used

By acquiring the operating parameters of the clarifier and the water quality parameters of the raw water, especially the pH, ion concentration, and reagent ion concentration, and combining chemical calculations to determine the precipitable ions in the raw water, the sludge production can be accurately calculated, and the cumulative discharge quality during sludge discharge can be monitored in real time to achieve intelligent sludge discharge.

Benefits of technology

It improves the accuracy and real-time response capability of sludge production calculation, enhances the operating efficiency and stability of clarifiers, and reduces reliance on manual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121617487A_ABST
    Figure CN121617487A_ABST
Patent Text Reader

Abstract

The invention relates to a sludge yield calculation method and device, computer equipment and a storage medium. Comprising the following steps: after putting a target agent into raw water, acquiring operation parameters of a target clarification tank and water quality parameters of the raw water at the current moment; obtaining the ion concentration of a plurality of raw water ions and the adding concentration of a plurality of medicament ions, and respectively determining the precipitation pH value of the plurality of raw water ions according to the water quality pH value and the ion concentration of the plurality of raw water ions; and determining a plurality of precipitable raw water ions from the plurality of raw water ions according to the water quality pH value and the precipitation pH value corresponding to the plurality of raw water ions, and determining the sludge yield at the current moment according to the operation parameters, the ion concentration of the plurality of precipitable raw water ions and the addition concentration of the plurality of medicament ions. On the basis, precipitable raw water ions can be accurately screened out, and calculation of the sludge yield is more targeted and accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a method, apparatus, computer equipment, and storage medium for calculating sludge production. Background Technology

[0002] In current clarifier operations, the co-doping of multiple chemicals, such as iron and aluminum salts, has become common practice. Against this backdrop, sludge production estimates typically rely solely on the solids produced by chemical hydrolysis, assuming that all calcium and magnesium ions in the raw water are converted into solid precipitates, neglecting the dependence of different ion precipitation behaviors on water chemistry conditions. In reality, the precipitation process of calcium and magnesium ions is strongly dependent on real-time operating parameters such as pH and temperature. Especially in low pH environments, they mainly exist in a dissolved state and are difficult to precipitate. Therefore, existing methods, whether completely ignoring or fully accounting for the precipitation contribution of calcium and magnesium ions, introduce significant errors, severely limiting the accuracy of sludge production calculations. Summary of the Invention

[0003] In view of this, the present disclosure provides a method, apparatus, computer equipment, and storage medium for calculating sludge production, in order to solve the problems existing in the related art.

[0004] A first aspect of this disclosure provides a method for calculating sludge production, comprising: after adding a target reagent to raw water, obtaining the operating parameters of a target clarifier and the water quality parameters of the raw water at the current moment, wherein the water quality parameters include water pH, multiple raw water ions, and multiple reagent ions; obtaining the ion concentrations of the multiple raw water ions and the dosage concentrations of the multiple reagent ions, and determining the precipitation pH of the multiple raw water ions based on the water pH and the ion concentrations of the multiple raw water ions; determining multiple precipitable raw water ions from the multiple raw water ions based on the water pH and the precipitation pH corresponding to the multiple raw water ions, and determining the sludge production at the current moment based on the operating parameters, the ion concentrations of the multiple precipitable raw water ions, and the dosage concentrations of the multiple reagent ions.

[0005] A second aspect of this disclosure provides a sludge production calculation device, applied to the sludge production calculation method of the first aspect. The device includes: an acquisition module, configured to acquire, after adding a target reagent to raw water, the operating parameters of a target clarifier and the water quality parameters of the raw water at the current moment, wherein the water quality parameters include water pH, multiple raw water ions, and multiple reagent ions; a first determination module, configured to acquire the ion concentrations of multiple raw water ions and the addition concentrations of multiple reagent ions, and determine the precipitation pH of multiple raw water ions based on the water pH and the ion concentrations of the multiple raw water ions; and a second determination module, configured to determine multiple precipitable raw water ions from the multiple raw water ions based on the water pH and the precipitation pH corresponding to the multiple raw water ions, and determine the sludge production at the current moment based on the operating parameters, the ion concentrations of the multiple precipitable raw water ions, and the addition concentrations of the multiple reagent ions.

[0006] A third aspect of this disclosure provides a computer device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-described method for calculating sludge production.

[0007] A fourth aspect of this disclosure provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the steps of the above-described method for calculating sludge production.

[0008] According to a fifth aspect of this disclosure, a computer program product is provided, which, when executed by a processor, implements the steps of the above-described method for calculating sludge production.

[0009] The above-mentioned at least one technical solution adopted in the embodiments of this disclosure can achieve the following beneficial effects: after adding the target agent to the raw water, the operating parameters of the target clarifier and the water quality parameters of the raw water at the current moment are obtained, wherein the water quality parameters include water pH, multiple raw water ions and multiple agent ions; the ion concentrations of multiple raw water ions and the dosage concentrations of multiple agent ions are obtained, and the precipitation pH of multiple raw water ions is determined according to the water pH and the ion concentrations of multiple raw water ions; multiple precipitable raw water ions are determined from the multiple raw water ions according to the water pH and the precipitation pH corresponding to the multiple raw water ions, and the sludge production at the current moment is determined according to the operating parameters, the ion concentrations of multiple precipitable raw water ions and the dosage concentrations of multiple agent ions. Based on this, by obtaining the current operating parameters of the clarifier and the water quality parameters of the raw water, especially the detailed parameters of water pH, raw water ion concentration and reagent ion concentration, a solid foundation is laid for subsequent analysis. Then, based on the water pH and the raw water ion concentration, the precipitation pH of the raw water ions is determined, which can accurately screen out the precipitable raw water ions. This avoids the crude mode of treating all ions indiscriminately in traditional treatment, making the calculation of sludge production more targeted and accurate. Attached Figure Description

[0010] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0011] Figure 1 A flowchart illustrating a method for determining sludge discharge volume according to an embodiment of this disclosure; Figure 2 A schematic diagram of the logarithm of iron ion concentration versus pH value provided in an embodiment of this disclosure; Figure 3 A schematic diagram of the concentration logarithm of aluminum ions versus pH value provided in an embodiment of this disclosure; Figure 4 A schematic diagram illustrating the total sludge production between two sludge discharges, provided as an embodiment of this disclosure; Figure 5 A schematic diagram illustrating the total sludge discharge output between two sludge discharges, provided as an embodiment of this disclosure; Figure 6 A schematic diagram of the structure of a sludge production calculation device provided in an embodiment of this disclosure; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure; Figure 8 This is a schematic diagram of the structure of a computer system provided in an embodiment of the present disclosure; Figure 9 A schematic diagram of a computer program product provided according to an embodiment of this disclosure. Detailed Implementation

[0012] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0013] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0014] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc., used in this disclosure are only used to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0015] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0016] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0017] In the traditional water treatment field that uses surface water as a source, coagulation and sedimentation processes are widely used. The operation of coagulation and sedimentation processes usually requires the use of coagulants such as aluminum salts and iron salts, that is, adding coagulants to the raw water. The added coagulants will undergo a hydrolysis reaction with the raw water to form solid flocs. These flocs will adhere to impurities in the raw water and eventually form solid suspended matter, i.e., sludge.

[0018] In practical applications, sludge production typically consists of two parts: the mass of solids produced by the reaction of coagulants with raw water, referred to as the coagulant solids production, and the solid impurities inherent in the raw water itself, referred to as the raw water solids content. The coagulant solids production can be theoretically calculated based on the precipitation-dissolution equilibrium in a chemically heterogeneous system, while the raw water solids content can be measured and calculated using water quality monitoring instruments such as turbidity and total suspended solids (TSS). Based on this, the sludge production corresponding to the raw water at different times can be accurately obtained, thereby ensuring the efficient and stable operation of the coagulation and sedimentation process. Here, TSS is a crucial technical indicator in water treatment, environmental monitoring, and many industrial fields.

[0019] In related technologies, the sludge content in raw water can be calculated using the following methods: Technical point 1: A formula for calculating the sludge content in sludge discharge water is provided. or

[0020] Wherein, DS is the dry sludge volume, SS is the suspended solids volume in the raw water, A is the raw water turbidity, B is the removed color, C is the added aluminum salt, F is the added iron salt, and T is the conversion factor between turbidity and suspended solids, which needs to be determined after sampling and testing.

[0021] In addition, a formula for calculating the sludge treatment capacity of a water treatment plant is also provided. Where S is the planned amount of dry sludge solids to be treated, t / d; and Q is the amount of water to be treated.

[0022] Technical point two proposes that the treatment capacity of sludge treatment equipment in water purification plants can be set at four times the annual average concentration of suspended solids in the raw water.

[0023] Technical point three suggests that the amount of dry sludge can be mainly determined by suspended solids in the raw water and by... or The composition of the hydroxides formed, i.e., the total dry sludge volume = suspended solids in the influent + precipitates.

[0024]

[0025] in, Q is the amount of sludge formed from suspended sludge in the raw water, in t / d; Q is the treated water volume, in m³. 3 / d; ss represents the suspended solids in the raw water entering the sedimentation tank, in mg / L.

[0026]

[0027] Where Sc is the amount of sludge produced by the added reagent, t / d; D is the dosage of the reagent, mg / L; W is the ratio of the reagent dosage to the amount of sludge produced by the reagent, i.e., for every 1 mg / L added, (With a mass fraction of 17%), 0.44 mg / L of dry sludge will be produced.

[0028] The planned amount of dry solids S to be treated is .

[0029] Technical point four involves calculating the amount of dry sludge to be processed using the following formula:

[0030] in, The design capacity for treating dry sludge is t / d; C0 is the design turbidity value of the raw water (NTU). The conversion factor between raw water turbidity unit NTU and suspended solids unit mg / L should be determined by actual measurement; D is the dosage of the reagent (mg / L). When several reagents are added, they should be calculated separately and then added together. This is the coefficient for converting the agent into dry mud. When adding several agents, different conversion coefficients should be calculated separately and then summed. Design scale for the water plant This is the water consumption coefficient for the water plant itself.

[0031] The related technologies also provide some engineering examples for actual water plants: Example 1: For Plant A, consider the impact of raw water turbidity, color, and other factors on the amount of dry sludge produced. The regression equation can be derived from the influence of five factors: dosage, HCA dosage, copper sulfate dosage, etc.

[0032] Where Y represents the dry mud weight in mg / L; Turbidity of raw water, NTU; Original water color; for Dosage, mg / L; HCA dosage, mg / L; X5 is Dosage, mg / L; correlation coefficient R = 0.9648.

[0033] For Plant B, considering that the amount of dry sludge is affected by the turbidity and color of the raw water, The three factors affecting the amount of investment can be represented by the following regression equation:

[0034] Where Y represents the dry mud weight in mg / L; Turbidity of raw water, NTU; Original water color; For Fe 3+ Dosage, mg / L; correlation coefficient R=0.82, the predicted dry mud amount using the regression equation is no more than 18.75 mg / L (95% probability).

[0035] For Plant C, considering that the amount of dry sludge is affected by the turbidity and color of the raw water, The regression equation for the influence of five factors—feed amount, HCA feed amount, CaO feed amount, etc.—can be:

[0036] Where Y represents the dry mud weight in mg / L; Turbidity of raw water, NTU; Original water color; For Fe 3+ Dosage, mg / L; HCA dosage, mg / L; for Dosage, mg / L; correlation coefficient R = 0.9842.

[0037] As mentioned above, in related technologies, the solids production generated by chemical coagulation is usually calculated using a fixed coefficient method. This coefficient is generally determined based on the molar mass ratio of the hydroxide solid precipitate to the corresponding metal ion, such as iron ions, to characterize the proportion of dry sludge produced per unit dosage of the chemical. In practical calculations, the dosage of each chemical can be multiplied by its corresponding solids production coefficient to obtain the solids production of a single chemical. If multiple chemicals are added, the solids production values ​​of these chemicals are directly summed to obtain the total sludge solids production.

[0038] Therefore, the above calculation method typically assumes that all chemicals added during coagulation are converted into solid precipitates. However, this method has certain limitations. The core problem is that during the actual reaction process, due to the combined influence of various factors such as temperature and pH, some coagulants may remain dissolved in the treated water and fail to completely form solid precipitates, thus leading to deviations in the calculated solids production. This simplistic calculation method results in a significant error compared to the actual results.

[0039] Specifically, when adding ferric coagulants, factors other than the dosage have a relatively small impact on the coagulation process. Therefore, the error is low when calculating sludge production using methods from related technologies, and it can be approximated that all the agent is converted into solid mass. However, when adding aluminum salt coagulants, factors such as pH and temperature have a significant impact on the coagulation process, in addition to the dosage. This effect is particularly pronounced at lower pH values, such as below 7.0: as the pH decreases, the concentration of dissolved aluminum ions in the reaction tank rises rapidly; and under normal dosage, when the pH drops below 6.4, aluminum ions exist almost entirely in a dissolved state. At this point, a large error will appear between the actual amount of solids produced and the result obtained from traditional calculation formulas.

[0040] Meanwhile, current clarifier operations commonly employ the synergistic addition of multiple agents, such as iron and aluminum salts. In this case, the addition of iron salts significantly lowers the system pH, resulting in an acidic environment with a pH below 7.0 – the most common pH condition in clarifiers. This condition causes significant fluctuations in aluminum salt solubility, leading to a substantial deviation between actual sludge production and theoretical calculations; such errors are no longer negligible.

[0041] On the other hand, existing methods for calculating sludge production fail to adequately consider the impact of calcium and magnesium ions in raw water on its solids content. Some formulas completely ignore the contribution of calcium and magnesium ions to precipitation, while others simply equate calcium ions with iron and aluminum ions, assuming they are all converted into solid precipitates, lacking consideration of the precipitation conditions for different ions. In reality, whether calcium and magnesium ions precipitate strongly depends on conditions such as pH and temperature. In low pH environments, they exist primarily in a dissolved state and are unlikely to precipitate. Therefore, ignoring or fully including calcium and magnesium precipitation introduces significant errors, severely affecting the accuracy of sludge production calculations. Improvements to the calculation methods are urgently needed to enhance the reliability of the results.

[0042] Furthermore, the methods in related technologies are mostly used for pre- or post-event estimations in localized processes such as sludge treatment plants. The calculation results in the total sludge volume over a certain period, without considering the sludge production rate or the ability to perform continuous calculations based on real-time data. This leads to significant calculation lag, making real-time monitoring and control of sludge production impossible. Current sludge discharge operations still rely heavily on manual experience to determine the timing and duration, lacking precise control guidelines. In summary, traditional sludge production calculation formulas contain significant errors, and coupled with a lack of reasonable guidance during the sludge discharge process, clarifiers often struggle to achieve precise sludge discharge, ultimately affecting their treatment efficiency and operational stability.

[0043] To address the aforementioned issues, this disclosure provides a method, apparatus, computer equipment, and storage medium for calculating sludge production. It determines the ion solids production in real time through chemical calculations of the precipitation-dissolution equilibrium of iron and aluminum ions, combined with the dosage of the target reagent and pH value. Based on chemical calculations of the precipitation-dissolution equilibrium of calcium and magnesium ions, it determines whether the precipitation of calcium and magnesium ions participates in the raw water solids production calculation and accurately derives relevant values. Furthermore, combining the operating principle of the sludge treatment tank, it calculates the cumulative sludge production between two sludge discharges by collecting operating parameters, monitors the cumulative sludge mass discharged during sludge discharge in real time, and stops sludge discharge when the cumulative discharge mass equals the cumulative production. Based on this, the accuracy of sludge production calculation can be improved, and sludge production data can be updated in real time in response to changes in the treatment environment. Ultimately, it achieves intelligent sludge discharge guided by specific values, replacing manual experience and improving the efficiency and stability of clarifier operation.

[0044] Table 1 Character Lookup Table of Embodiments of this Disclosure

[0045] Table 1 is a parameter comparison table of the embodiments of this disclosure. The meaning of the characters mentioned below can be referred to the contents of Table 1.

[0046] The sludge production calculation method provided in this disclosure can be executed by a terminal or by a chip applied to the terminal.

[0047] For example, the aforementioned terminals may include one or more of the following: mobile phones, tablets, wearable devices, in-vehicle devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, handheld computers (PDAs), and wearable devices based on augmented reality (AR) and / or virtual reality (VR) technologies. They may also include, but are not limited to, remote control devices, wearable devices, streetlights, home appliances, and other smart terminals. This disclosure does not impose specific limitations on these aspects.

[0048] Figure 1 This is a flowchart illustrating a method for determining sludge discharge volume according to an embodiment of this disclosure. Figure 1 As shown, the method for determining the sludge discharge volume in this embodiment of the present disclosure specifically includes: S101, after adding the target reagent to the raw water, obtain the current operating parameters of the target clarifier and the water quality parameters of the raw water. The water quality parameters include water pH, multiple raw water ions, and multiple reagent ions. The raw water ions may include calcium ions and magnesium ions, etc., and the reagent ions may include iron ions generated by adding coagulants such as iron salts, and iron ions generated by adding coagulants such as aluminum salts.

[0049] In some embodiments, online monitoring instruments deployed on the inlet pipe of the target clarifier can be used to obtain the operating parameters and water quality parameters of the target clarifier at the current moment when no chemicals have been added. The operating parameters, their corresponding descriptions, and acquisition methods are shown in Table 1, and the water quality parameters, their corresponding descriptions, and acquisition methods are shown in Table 2. It should be understood that Tables 1 and 2 are only examples of some parameters; other parameters may be included in actual applications, but no specific limitations are made here.

[0050] Table 2 Comparison of Operating Parameters

[0051] Table 3 Comparison of Water Quality Parameters

[0052] Based on this, the embodiments of this disclosure can accurately obtain the operating status of the clarifier and the water quality parameters of the raw water before dosing, thus establishing a pure and reliable initial benchmark for subsequent calculations. It should be understood that the parameters in Tables 2 and 3 are some of the parameters in Table 1. In practical applications, the operating parameters and water quality parameters may include, but are not limited to, the contents of Tables 2 and 3.

[0053] S102, obtain the ion concentrations of multiple raw water ions and the dosage concentrations of multiple reagent ions, and determine the precipitation pH of multiple raw water ions based on the water quality pH and the ion concentrations of multiple raw water ions.

[0054] In some embodiments, the concentration of the reagent ions can be the mass of the effective component of the reagent added to the raw water per unit volume. Here, the concentration (mg / L) = (dosage amount × effective component content) / volume of water to be treated. The ion concentration of the raw water can be measured by relevant instruments, and the precipitation pH of the raw water can be determined based on the ion concentration. The calculation process of the precipitation pH of the raw water is explained below, taking magnesium ions and calcium ions as examples.

[0055] Regarding calcium ions, it is known that they are ubiquitous in raw water and can form complexes and ion pairs with carbonates, hydroxyl groups, etc. Furthermore, calcium ions may precipitate from the raw water when the pH value increases, thus affecting the sludge production of the raw water. Based on this, the precipitate species and precipitation initiation points of calcium ions can be further investigated according to the principle of reaction equilibrium. It should be understood that the water quality acidity / alkalinity in the embodiments of this disclosure refers to the pH value.

[0056] Specifically, during the operation of the target clarification tank, the temperature of the raw water within the tank changes in real time, thus affecting the chemical reactions in the raw water. Within a limited temperature range, the reaction equilibrium constant at non-standard temperatures can be calculated using the van der Hoff equation, as shown in the following formula:

[0057] The formula for calculating the equilibrium constant at non-standard temperatures is as follows:

[0058] Where K1 is the equilibrium constant of the reaction at temperature T1; K2 is the equilibrium constant of the reaction at temperature T2; and R is the universal gas constant. T1 is the standard reaction enthalpy change; T2 is the reference temperature; T2 is the target temperature.

[0059] At 25℃ standard conditions, the reaction constants for calcium ions to form calcium carbonate and calcium hydroxide with carbonates and hydroxyl groups are 10 and 10, respectively. -8.34 and 10 -5.26 By comparing the reaction equilibrium constants of the two species, it can be seen that calcium carbonate is the dominant species under standard conditions, that is, calcium ions preferentially combine with carbonate ions to form calcium carbonate precipitate.

[0060] Here, the precipitation of calcium ions is determined by pH. The calculation formula is:

[0061] Substituting common raw water quality conditions, assuming a first calcium ion concentration of 40 mg / L, a total dissolved solids concentration of 256 mg / L, and an alkalinity of 125 mg / L, calculate the pH value at which calcium ions begin to precipitate and form calcium carbonate at different temperatures. Here, common water quality conditions refer to the water temperature and other conditions typically observed during the treatment process based on practical experience. The results are shown in Table 4. Table 4. Precipitation acidity and alkalinity of calcium ions at different temperatures

[0062] As shown in Table 4, under common raw water quality conditions, the pH of calcium carbonate precipitation increases as the temperature decreases. Within the common temperature range, the pH of calcium carbonate precipitation is 8.10~9.11, which is within the common pH conditions for clarifier operation. Therefore, when calculating sludge production, the impact of calcium ion precipitation on sludge production needs to be considered. If the calculation of the solids production of calcium ions affects sludge production, the specific mass of calcium carbonate precipitated by calcium ions needs to be calculated.

[0063] Assume the first ion concentration of calcium ions in the raw water is... If the concentration is 40 mg / L, then the calcium ion production per unit volume of water is... The calculation formula and results are as follows:

[0064] Magnesium ions are known to be ubiquitous in raw water and can form complexes and ion pairs with carbonates and hydroxyl groups. Similar to calcium ions, magnesium ions may react and precipitate when the pH value increases, thus affecting sludge production. In this case, the precipitate species and precipitation initiation point can be further investigated based on the principle of reaction equilibrium. For example, the reaction equilibrium constant at non-standard temperatures can be calculated using the van der Hoff equation. Under standard conditions at 25°C, the reaction constants for magnesium ions to form magnesium carbonate and magnesium hydroxide solid precipitates with carbonates and hydroxyl groups are 10, respectively. -5 and 10 -10.7 By comparing the reaction equilibrium constants of the two species, it can be seen that under standard conditions, magnesium hydroxide is the dominant species, that is, magnesium ions preferentially combine with hydroxide ions to form magnesium hydroxide precipitate.

[0065] Here, the precipitation of magnesium ions is determined by pH. The calculation formula is:

[0066] Substituting common water quality conditions into the raw water, assuming the initial magnesium ion concentration in the raw water is 9 mg / L, the pH value at which magnesium ions begin to precipitate and form magnesium hydroxide at different temperatures was calculated. The results are shown in Table 5. Table 5. Precipitation acidity and alkalinity of magnesium ions at different temperatures.

[0067] As shown in Table 5, under common raw water quality conditions, the pH value at which magnesium hydroxide begins to precipitate decreases with decreasing temperature. Within the common temperature range, the pH value at which magnesium hydroxide begins to precipitate is 10.34-10.36. Precipitation only begins at higher pH values, thus affecting sludge production. The calculation method in this embodiment takes into account possible extreme cases; therefore, magnesium ions are considered.

[0068] However, when calculating the impact of magnesium ion precipitation on sludge production, it is necessary to specifically calculate the mass of magnesium hydroxide produced by magnesium ion precipitation. If, as mentioned earlier, the magnesium ion concentration in the raw water is assumed to be 9 mg / L, then the amount of magnesium ion solids produced per unit volume of water is... The calculation formula and results are as follows:

[0069] Here, comparing the hydrolysis reaction conditions of calcium and magnesium ions, it can be seen that when calcium carbonate and magnesium hydroxide are the dominant species in the hydrolysis reaction, under common water quality conditions, the precipitation pH of calcium carbonate increases with decreasing temperature, while the precipitation pH of magnesium hydroxide decreases with decreasing temperature. Simultaneously, because the precipitation pH of calcium carbonate is lower than that of magnesium hydroxide, calcium carbonate preferentially precipitates when the water pH increases.

[0070] S103, based on the acidity / alkalinity of the water and the precipitation acidity / alkalinity corresponding to multiple raw water ions, determines multiple precipitable raw water ions from multiple raw water ions, and determines the sludge production at the current moment based on the operating parameters, the ion concentration of multiple precipitable raw water ions and the dosage concentration of multiple reagent ions.

[0071] Here, since the pH of the water in the target clarification tank is typically in the neutral pH range, the precipitation pH of iron and aluminum ions is lower than that of calcium and magnesium ions in this range. Therefore, it can be determined that when the raw water ions react to form a solid, the reagent ions will also react to form a solid. Based on this, this embodiment focuses on analyzing the raw water ions, comparing the pH of the water quality with the precipitation pH of each raw water ion. When the precipitation pH of the raw water ions is lower than the pH of the water quality, the raw water ions are determined to be precipitable ions.

[0072] As can be seen, the core of the calculation method in this embodiment lies in calculating the precipitation pH of raw water ions and comparing the calculated precipitation pH with the water quality pH to determine the precipitable raw water ions, that is, ions that can precipitate solids in the current environment. In this way, the precipitable raw water ions related to sludge production can be accurately identified by combining the raw water quality pH, which greatly improves the pertinence and accuracy of sludge production calculation and avoids interference from invalid ions.

[0073] Based on this, by obtaining the current operating parameters of the clarifier and the water quality parameters of the raw water, especially the detailed data on water pH, raw water ions, and reagent ions, a solid foundation is laid for subsequent analysis. The precipitation pH of the raw water ions is determined based on the water pH and the ion concentration of the raw water ions. This allows for precise screening of precipitable raw water ions, avoiding the broad approach of treating all ions indiscriminately in traditional treatment methods, and making the calculation of sludge production more targeted and accurate.

[0074] In some embodiments, the raw water ions include calcium ions and magnesium ions, wherein the precipitation pH of calcium ions is lower than that of magnesium ions. The method further includes: when the water pH is greater than the precipitation pH of magnesium ions, determining that both calcium ions and magnesium ions are precipitable raw water ions; and determining the sludge yield based on operating parameters, the corresponding ion concentrations of calcium ions and magnesium ions, and the dosage concentrations of multiple reagent ions. When the water pH is less than the precipitation pH of magnesium ions but greater than the precipitation pH of calcium ions, determining that calcium ions are precipitable raw water ions; and determining the sludge yield based on operating parameters, the corresponding ion concentration of calcium ions, and the dosage concentrations of multiple reagent ions.

[0075] Specifically, the reagent ions can include iron ions (Fe) and aluminum ions (Al), and the raw water ions can include calcium ions (Ca) and magnesium ions (Mg). Based on this, the ion solids production corresponding to different ions can be determined separately, and then the ion solids production corresponding to different ions can be accumulated to obtain the sludge production at the current moment.

[0076] Typically, the target clarification tank corresponds to a water pH in the neutral range. Within this range, the precipitation pH for iron and aluminum ions is lower than that for calcium and magnesium ions, and the precipitation pH for magnesium ions is higher than that for calcium ions. Therefore, it can be determined that when the water pH is higher than the precipitation pH for magnesium ions, iron, aluminum, and calcium ions in the raw water will all precipitate. When the water pH is between the precipitation pH for magnesium and calcium ions, iron, aluminum, and calcium ions will all precipitate, but magnesium ions will not. When the water pH is lower than the precipitation pH for calcium ions, only iron and aluminum ions will precipitate.

[0077] In some embodiments, the calculation principle for the ionic solids production of ferric ions is based on the hydrolysis reaction of trivalent iron ions in water. The specific reaction principle of the hydrolysis reaction is described below. Specifically, ferric ions are trivalent metal ions, and the hydroxyl complexes or hydrolysis products of trivalent metal ions will have a certain influence on the solubility of trivalent iron ions. Therefore, without considering the influence of other ions, the hydrolysis equation of trivalent iron ions in pure water under standard conditions can be written as follows:

[0078]

[0079]

[0080]

[0081]

[0082] Where lg represents the logarithmic form of the equilibrium constant. This represents the equilibrium constant for the first step of the corresponding reaction. This represents the equilibrium constant for the second step of the corresponding reaction. This represents the solubility product constant.

[0083] The complex was prepared using dissolved Fe(III) species and H. + and Fe(OH) 3(S) The formal designation, where Fe(III) species refers to species containing ferric ions (Fe... 3+ The various chemical forms of ) are summarized into Equations 1 through 4, as follows: Equation 1:

[0084] Equation 2:

[0085] Equation 3:

[0086] Equation 4:

[0087] Figure 2 This is a schematic diagram illustrating the logarithm of iron ion concentration versus pH value, provided as an embodiment of this disclosure. Figure 2 As shown, Figure 2 The graphs are plotted based on multiple curves obtained from equations one through four. Specifically, the calculation process is explained using equation one as an example. Equation one describes the species Fe(OH)₂. 2+ In solution, it reacts with Fe(OH) 3(S) The pH-related behavior at equilibrium is calculated as follows:

[0088] Taking the logarithm, we get:

[0089]

[0090] Since pOH = 14 - pH, where pOH is an indicator of hydroxide ions in a solution and corresponds to pH in chemistry, we can obtain:

[0091] Based on this, the equation obtained from Equation 1 can be plotted as a straight line on a coordinate system with pH as the x-axis and logarithmic concentration as the y-axis. Equations 2 through 4 can be calculated in the same way to obtain three more straight line equations, as follows:

[0092]

[0093]

[0094] At the same time, by equation The equation of the fifth line can be calculated; equation five is... Based on this, the five straight lines obtained from equations one through five can be plotted on a single graph, resulting in... Figure 2 .

[0095] In some embodiments, if the pH value of the raw water and the amount of iron ions added in the target reagent are known, the concentration of iron ions can be determined. Based on this, the amount of iron ions produced under these conditions can be calculated by following these steps. That is, the calculation of the amount of iron ion precipitation follows the material balance principle, and the precipitate mass is equal to the total added mass minus the dissolved mass.

[0096] Specifically, assuming the water pH is 7.5 and the iron ion concentration is 4.2 mg / L, according to... Figure 2 The hydrolysis equilibrium relationship shown indicates that at pH=7.5, the dissolved Fe... 3+ The concentration was extremely low, only 3.48 × 10⁻⁶. -6 Although this dissolved amount (mg / L) is much lower than the dosage and can be ignored in approximate calculations, the following formula fully considers the effect of the dissolved state to ensure the accuracy of the calculation, especially when the pH value is close to the critical condition for iron ion precipitation. Here, the formula for calculating the ion solids produced by iron ions per unit water volume, i.e., the mass of precipitated ferric hydroxide, is:

[0097] Wherein, PFe represents the density of the iron salt, in g / ml, with a value of 1.4.

[0098] In some embodiments, the calculation principle for aluminum ions is based on the hydrolysis reaction of trivalent aluminum ions in water. The specific reaction principle of the hydrolysis reaction is described below. Specifically, aluminum ions are trivalent metal ions, and the hydroxyl complexes or hydrolysis products of trivalent metal ions will have a certain impact on the solubility of trivalent aluminum ions. Therefore, without considering the influence of other ions, the hydrolysis equation of trivalent aluminum ions in pure water under standard conditions can be written as follows: The equilibrium relationship of aluminum ions in pure water under standard conditions. The specific equation is as follows:

[0099]

[0100]

[0101]

[0102]

[0103]

[0104]

[0105] According to Fe(OH) 3(S) The equations of the seven lines were derived using the same method:

[0106]

[0107]

[0108]

[0109]

[0110]

[0111]

[0112] Figure 3 This is a schematic diagram illustrating the logarithm of aluminum ion concentration versus pH value, provided as an embodiment of this disclosure. Figure 3 As shown, the straight lines corresponding to the seven equations related to aluminum ions are plotted on the same graph, resulting in... Figure 3 .

[0113] Similarly, if the pH and the amount of aluminum ions in the target reagent are known, the amount of aluminum ions produced under the current water quality conditions can be calculated. The calculation method is similar to that for iron ions, using the amount of aluminum ions in the target reagent combined with... Figure 3 By calculating the solubility of aluminum ions in water, the corresponding solid ion production can be calculated. Here, the formula for calculating the solid ion production of aluminum ions per unit volume of water, i.e., the mass of precipitated aluminum hydroxide, is:

[0114] Wherein, PAl represents the density of aluminum salt, in g / ml, with a value of 1.2.

[0115] like Figure 2 and Figure 3 As shown, the straight lines represent the corresponding species and Fe(OH)₂. 3(s) With Al(OH) 3(s)Logarithmic concentrations at different pH values ​​at equilibrium Figure 2 and Figure 3 Any concentration above the linear position of a species will cause supersaturation of iron and aluminum ions for that species, resulting in solid precipitation. Figure 2 and Figure 3 Draw a perpendicular line at any pH value. The x-coordinate of the intersection point of the perpendicular line and each straight line represents the maximum solubility of the hydrolytic ligands of iron and aluminum ions at that pH value. Sum the concentrations of all intersection points to obtain the maximum concentration of iron and aluminum ions that can dissolve at that pH value. The formulas for calculating the solubility of iron ions (A) and aluminum ions (B) are as follows:

[0116]

[0117] In some embodiments, when the added iron and aluminum ions concentrations exceed the equilibrium solubility A of iron ions and B of aluminum ions in the environment, Fe(OH) can be generated. 3(s) And Al(OH) 3(s) Solid sedimentation refers to the total amount of solid sediment produced during the operation of the target clarifier by the addition of the target reagent. Here, the calculation method of this embodiment of the ion solids production method incorporates pH value as a factor influencing the calculation of the ion solids production rate. This allows for more accurate calculation of sludge production based on specific theoretical grounds, making the calculation of sludge production more reliable.

[0118] In some embodiments, the operating parameters include influent flow rate and influent turbidity. Determining the sludge production at the current moment based on the operating parameters, the ion concentrations of multiple precipitable raw water ions, and the dosage concentrations of multiple reagent ions includes: determining the raw water solids content based on the influent flow rate and influent turbidity; and determining the sludge production based on the raw water solids content based on the operating parameters, the ion concentrations of multiple precipitable raw water ions, and the dosage concentrations of multiple reagent ions.

[0119] Specifically, this embodiment of the invention designs a sludge production calculation formula based on water quality parameters and operating parameters, as shown in Tables 1 and 2. The water pH can be denoted as pHf, the precipitation pH of calcium ions as pHCa, and the precipitation pH of magnesium ions as pHMg. The main calculation parameters include temperature Tf (°C), TDS (mg / L), and the ideal calcium ion reaction constant KbCa (valued at 10). -8.34 Under ideal conditions, the magnesium ion reaction constant kbMg (with a value of 10) -10.7The enthalpy change of calcium carbonate (HCa) (unit: kcal / mol, value: -2.95), the enthalpy change of magnesium hydroxide (HMg) (unit: kcal / mol, value: 0.65), the second hydrolysis coefficient (Kb) under standard conditions, the gas constant (R), and the enthalpy change of the second hydrolysis reaction (Ho). The meanings of the relevant characters, their corresponding units, and values ​​can be found in Table 1.

[0120] The reaction constants KnCa and knMg for calcium and magnesium ions under non-ideal conditions, as well as the second hydrolysis coefficient Kn under non-ideal conditions, are calculated using the above parameters. This further yields the precipitation pH of calcium and magnesium ions in the raw water under non-ideal conditions. After selecting the above calculation formulas, the real-time ion solids production can be calculated. The main calculation parameters include: influent turbidity Fj, influent flow rate Qj, iron salt density PFe, iron salt dosing pump flow rate QFe, aluminum salt density PA1, aluminum salt dosing pump flow rate QAl, and pHf. Two intermediate variables are defined: the soluble iron content (A) and the soluble aluminum ion content (B). Adding these to the raw water solids production yields the sludge production Ms. The meanings of the relevant characters, their corresponding units, and values ​​can be found in Table 1.

[0121] Based on the above, the calcium ion production per unit water volume can be determined as follows: By combining the influent flow rate Qj, the amount of calcium ions produced in the raw water can be obtained. for:

[0122] Magnesium ion solids production per unit water volume By combining the influent flow rate Qj, the amount of calcium ions produced in the raw water can be obtained. for:

[0123] The ion solids production of iron ions per unit water volume, combined with the influent flow rate Qj, yields the corresponding ion solids production of iron ions in the current raw water. for:

[0124] The ion solids production of aluminum ions per unit water volume, combined with the influent flow rate Qj, yields the corresponding ion solids production of aluminum ions in the current raw water. for:

[0125] The solids content of raw water can be the sediment caused by turbidity in the raw water. Specifically, the solids content of raw water can be:

[0126] Based on this, since pHMg must be greater than pHCa, there are three possible relationships among pHMg, pHCa, and pHf as follows: (1) pHf > pHMg. In this case, both calcium ions and magnesium ions will react to form solids. At this time, the formula for calculating the real-time sludge production is as follows: The calculation formula is as follows:

[0127] (2) pHCa < pHf < pHMg. In this case, magnesium ions will not react, that is, no solids will be formed, but calcium ions will react to form solids. At this time, the formula for calculating the real-time sludge production is as follows: The calculation formula is as follows:

[0128] (3) pHf < pHCa. In this case, the influence of calcium ions and magnesium ions on the sludge production does not need to be considered. At this time, the formula for calculating the real-time sludge production is as follows: The calculation formula is as follows:

[0129] From the above three calculation formulas, it can be calculated that the real-time sludge production of the clarifier consists of the real-time solid production of the medicament and the solid production of the raw water. It should be noted that when calculating the solid production of the target medicament in the formula, it is defaulted that the added medicaments only include iron and aluminum coagulants (calcium and magnesium are originally in the sludge). If there are other coagulation medicaments in the actual operation, the sludge production calculated by the above calculation formulas may not match. By continuously calculating the real-time sludge production, the cumulative sludge production can be obtained. By comparing with the cumulative sludge discharge amount, the guidance for sludge discharge can be realized.

[0130] In the above, A and B in the formula are the dissolved amounts A of iron ions and the dissolved amount B of aluminum ions respectively. Among them, A represents the maximum dissolved amount of iron ions that can be dissolved in water at a certain determined pH value, and B represents the maximum dissolved amount of aluminum ions that can be dissolved in water at a certain determined pH value.

[0131] In some embodiments, the method further includes: determining the sludge production corresponding to multiple different moments within the target time period; adding up the sludge production corresponding to multiple different moments to obtain the total sludge production corresponding to the current moment.

[0132] Figure 4 This is a schematic diagram of the total sludge production between two sludge discharges provided by an embodiment of the present disclosure. As Figure 4As shown, the target time period can be the time between two valve openings for sludge discharge, i.e., the period from 5:00 to 11:00, where 5:00 represents the time tq of the previous valve opening for sludge discharge, and 11:00 represents the time th of the current valve opening for sludge discharge. Within the target time period, the sludge production at different times can be determined, i.e., the sludge production Ms1 at the first time, Ms2 at the second time, Ms3 at the third time, ..., Msn at the nth time. n , where n represents the identifier of the last time point among different time points. Based on this, the cumulative sludge volume within the target time period can be determined. .

[0133] In some embodiments, when the current time falls between 5:00 and 11:00, the total sludge volume at the current time can also be determined. This means that the sludge production at multiple times prior to the current time within the target time period can be summed to obtain the total sludge production at the current time. For example, the total sludge production at the second time can be Ms2 + Ms1.

[0134] Figure 5 This is a schematic diagram illustrating the total sludge discharge output between two sludge discharge operations, provided as an embodiment of this disclosure. Figure 5 As shown, the sludge discharge time for this operation is from the opening of the valve at 11:00 to the closing of the valve at 11:08. 11:00 is the valve opening time (th), and 11:08 is the valve closing time (tm). Operating parameters can include the sludge concentration Cp and the flow rate Qp in the sludge discharge pipe. The formula for calculating the real-time sludge discharge mass Ps (g / s) is as follows:

[0135] Based on this, assuming the current time is the valve closing time, the cumulative sludge discharge volume at each time point within the target time period can be calculated, that is, the cumulative value of Ps corresponding to each time point before the current time can be obtained, thus obtaining the cumulative sludge discharge volume Pz for the current sludge discharge:

[0136] Where Ps1 is the sludge discharge volume at the first moment, Ps2 is the sludge discharge volume at the second moment, Ps3 is the sludge discharge volume at the third moment, and Ps... n Let be the amount of sludge discharged at time n. The specific time interval between two adjacent time points can be set according to the actual situation and is not specifically limited here.

[0137] Based on this, by comparing the cumulative sludge production Mz between 5:00 and 11:00 with the cumulative sludge discharge mass Pz between 11:00 and 11:08 in real time, precise control can be achieved for the next sludge discharge, i.e., the discharge at 17:00. That is, during the next sludge discharge process, if Pz ≥ Mz is detected, the sludge discharge valve can be immediately closed, terminating the next sludge discharge operation.

[0138] Specifically, Pz represents the real-time cumulative amount of sludge discharged during the period the valve remains open after the start of this sludge discharge. Its calculation begins with each valve opening action and accumulates from zero until the end of this sludge discharge. Mz, on the other hand, represents the total cumulative amount of sludge produced in the clarifier between the end of the previous sludge discharge and the start of this current sludge discharge. Its statistical period lies between the start times of two adjacent sludge discharges. The logic for closing the sludge discharge valve is as follows: The continuously increasing Pz value is monitored in real-time at a second-level frequency and compared with the fixed value Mz determined at the start of this sludge discharge, i.e., the total amount from the previous sludge production cycle. Once the condition Pz ≥ Mz is met, it is determined that the amount of sludge discharged has reached or exceeded the amount of sludge produced in the same period, and a valve closing signal is triggered to complete this sludge discharge.

[0139] Based on this, the calculation method proposed in this disclosure significantly improves the calculation accuracy of sludge production and sludge discharge time during the clarifier sludge discharge process. By introducing a dynamic calculation model based on chemical equilibrium theory and integrating a real-time data acquisition system, precise quantification and intelligent sludge discharge control of the sludge generation process are achieved. The specific technical effects are reflected in the following three aspects: First, this disclosure significantly improves the accuracy of sludge production calculation by establishing hydrolysis reaction models for iron and aluminum ions in the reagent and calcium and magnesium ions in the raw water. Unlike the rough estimations in related technologies that assume complete reagent precipitation, this disclosure incorporates water pH as a key variable into the sludge production calculation, accurately reflecting the impact of pH changes on coagulant solubility and sedimentation efficiency. Simultaneously, a dynamic sedimentation judgment mechanism for calcium and magnesium ions based on real-time water chemistry conditions is introduced, overcoming the errors caused by ignoring or fully calculating the precipitation of these ions in related technologies, resulting in calculation results that more closely approximate actual sludge production.

[0140] Secondly, this embodiment utilizes online monitoring equipment to achieve real-time calculation and updating of sludge production. By acquiring influent flow rate, water quality parameters, and chemical dosage data in real time, the sludge production (Ms) at different times can be continuously calculated at a frequency of minutes, and the cumulative sludge production (Mz) within a period can be obtained. This dynamic calculation mode completely changes the lag of traditional ex-post estimation, and can respond promptly to fluctuations in water quality and process conditions, thereby ensuring the timeliness and accuracy of production calculation.

[0141] Ultimately, this embodiment of the invention constructs a decision-making core for intelligent sludge discharge control by comparing the real-time calculated cumulative sludge production (Mz) with the real-time monitored cumulative sludge mass (Pz) during the sludge discharge process. When the system determines that Pz ≥ Mz, it automatically triggers a valve-closing command. This mechanism replaces the traditional method of relying on manual experience to judge the timing and duration of sludge discharge with precise data calculation, achieving precise automated control of the sludge discharge process. This not only reduces the subjectivity and uncertainty of human operation but also significantly improves the operational stability and treatment efficiency of the clarifier.

[0142] Based on this, the embodiments of this disclosure can obtain the current operating parameters of the clarifier and the water quality parameters of the raw water, especially the water quality pH, the ion concentration of the raw water ions and the concentration of reagent ions, which lays a solid foundation for subsequent analysis. Then, based on the water quality pH and the ion concentration of the raw water ions, the precipitation pH of the raw water ions can be determined, which can accurately screen out the precipitable raw water ions. This avoids the extensive mode of treating all ions in the traditional treatment, and makes the calculation of sludge production more targeted and accurate.

[0143] The foregoing primarily describes the solutions provided by the embodiments of this disclosure from the perspective of the server. It is understood that, in order to implement the above functions, the server includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0144] This disclosure embodiment can divide the server into functional units according to the above method example. For example, it can divide each function into separate functional modules, or it can integrate two or more functions into one management module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this disclosure embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0145] In the case of dividing each functional module according to its corresponding function, an exemplary embodiment of this disclosure provides a sludge production calculation device, which can be a server or a chip applied to a server. Figure 6 This is a schematic diagram of a sludge production calculation device provided in one embodiment of the present disclosure. Figure 6As shown, the sludge production calculation device 600 includes: The acquisition module 601 is used to acquire the operating parameters of the target clarifier and the water quality parameters of the raw water at the current time after the target agent is added to the raw water. The water quality parameters include water pH, multiple raw water ions and multiple agent ions. The first determining module 602 is used to obtain the ion concentration of multiple raw water ions and the addition concentration of multiple reagent ions, and to determine the precipitation acidity and alkalinity of multiple raw water ions according to the water quality acidity and alkalinity and the ion concentration of multiple raw water ions respectively. The second determining module 603 is used to determine multiple precipitable raw water ions from the multiple raw water ions based on the water quality pH and the precipitation pH corresponding to the multiple raw water ions, and to determine the sludge production at the current moment based on the operating parameters, the ion concentration of the multiple precipitable raw water ions and the addition concentration of the multiple reagent ions.

[0146] In one optional approach, determining a plurality of precipitable raw water ions from the plurality of raw water ions based on the water quality pH and the precipitation pH corresponding to the plurality of raw water ions includes: When the precipitation pH of the original water ions is less than the pH of the water quality, the original water ions are determined to be the precipitable original water ions.

[0147] In one optional embodiment, the plurality of raw water ions include calcium ions and magnesium ions, wherein the precipitation pH of calcium ions is less than that of magnesium ions, and the method further includes: when the water pH is greater than that of magnesium ions, determining that both calcium ions and magnesium ions are precipitable raw water ions; and determining the sludge production based on the operating parameters, the ion concentration corresponding to the calcium ions, the ion concentration corresponding to the magnesium ions, and the dosage concentration of the plurality of reagent ions.

[0148] In one alternative approach, when the pH of the water is less than the precipitation pH of magnesium ions but greater than the precipitation pH of calcium ions, the calcium ions are determined to be the precipitable raw water ions; the sludge production is determined based on the operating parameters, the ion concentration corresponding to the calcium ions, and the dosage concentration of multiple reagent ions.

[0149] In one optional manner, the operating parameters include influent flow rate and influent turbidity. Determining the sludge production at the current moment based on the operating parameters, the ion concentrations of the plurality of precipitable raw water ions, and the dosage concentrations of the plurality of reagent ions includes: determining the raw water solids content based on the influent flow rate and influent turbidity; and determining the raw water solids content based on the operating parameters, the ion concentrations of the plurality of precipitable raw water ions, and the dosage concentrations of the plurality of reagent ions.

[0150] In one alternative approach, the method further includes: determining the sludge production corresponding to multiple different times within a target time period; and summing the sludge production corresponding to the multiple different times to obtain the total sludge production corresponding to the current time.

[0151] This disclosure also provides an electronic device, including: at least one processor; a memory for storing at least one processor-executable instruction; wherein the at least one processor is used to execute the instruction to implement the steps of the method disclosed in this disclosure.

[0152] Figure 7 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure. Figure 7 As shown, the electronic device 700 includes at least one processor 701 and a memory 702 coupled to the processor 701. The processor 701 can perform the corresponding steps in the methods disclosed in the embodiments of this disclosure.

[0153] The processor 701 described above can also be called a Central Processing Unit (CPU), which can be an integrated circuit chip with signal processing capabilities. Each step in the method disclosed in this embodiment can be implemented by the integrated logic circuitry in the processor 701's hardware or by software instructions. The processor 701 can be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this embodiment can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in the memory 702, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The processor 701 reads information from the memory 702 and, in conjunction with its hardware, completes the steps of the method described above.

[0154] Furthermore, various operations / processes according to this disclosure, implemented via software and / or firmware, can be transmitted from a storage medium or network to a computer system with a dedicated hardware architecture, for example, Figure 8 The computer system 800 shown is equipped with the programs that constitute the software. When various programs are installed, the computer system is able to perform various functions, including those mentioned above. Figure 8 This is a schematic diagram of the structure of a computer system provided in an embodiment of the present disclosure.

[0155] Computer system 800 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0156] like Figure 8As shown, the computer system 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. The RAM 803 may also store various programs and data required for the operation of the computer system 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0157] Multiple components in the computer system 800 are connected to the I / O interface 805, including: an input unit 806, an output unit 807, a storage unit 808, and a communication unit 809. The input unit 806 can be any type of device capable of inputting information into the computer system 800. The input unit 806 can receive input numerical or character information and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 807 can be any type of device capable of presenting information and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. The storage unit 808 may include, but is not limited to, a hard disk and an optical disk. The communication unit 809 allows the computer system 800 to exchange information / data with other devices via a network such as the Internet, and may include, but is not limited to, a modem, network card, infrared communication device, wireless communication transceiver, and / or chipset, such as Bluetooth™ device, WiFi device, WiMax device, cellular communication device, and / or the like.

[0158] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above. For example, in some embodiments, the methods disclosed in this disclosure can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on an electronic device via ROM 802 and / or communication unit 809. In some embodiments, the computing unit 801 can be configured to perform the methods disclosed in this disclosure by any other suitable means (e.g., by means of firmware).

[0159] This disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform the methods disclosed in this disclosure.

[0160] The computer-readable storage medium in this disclosure can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The aforementioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specifically, the aforementioned computer-readable storage medium may include electrical connections based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0161] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0162] Figure 9 This is a schematic diagram of a computer program product provided according to an embodiment of the present disclosure. Figure 9 As shown, the computer program product 900 includes a computer program 901, which, when executed by a processor, implements the methods disclosed in the embodiments of this disclosure.

[0163] In embodiments of this disclosure, computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer.

[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0165] The modules, components, or units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules, components, or units do not necessarily constitute a limitation on the module, component, or unit itself.

[0166] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that can be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0167] The above description is merely an illustration of some embodiments of this disclosure and the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0168] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.

Claims

1. A method of calculating sludge yield, characterized by, The method comprises the following steps: After a target medicament is put into raw water, operation parameters of a target clarifier at a current time and water quality parameters of the raw water are obtained, wherein the water quality parameters comprise water quality pH value, a plurality of raw water ions and a plurality of medicament ions; Ion concentrations of the plurality of raw water ions and dosing concentrations of the plurality of medicament ions are obtained, and the precipitation pH values of the plurality of raw water ions are respectively determined according to the water quality pH value and the ion concentrations of the plurality of raw water ions; According to the water quality pH value and the precipitation pH values of the plurality of raw water ions, a plurality of precipitable raw water ions are determined from the plurality of raw water ions, and sludge production at the current time is determined according to the operation parameters, the ion concentrations of the plurality of precipitable raw water ions and the dosing concentrations of the plurality of medicament ions.

2. The method of claim 1, wherein, The method comprises the following steps: When the precipitation pH value of the raw water ion is less than the water quality pH value, the raw water ion is determined as the precipitable raw water ion.

3. The method of claim 1, wherein, The plurality of raw water ions comprise calcium ions and magnesium ions, the precipitation pH value of the calcium ions is less than the precipitation pH value of the magnesium ions, and the method comprises the following steps: When the water quality pH value is greater than the precipitation pH value of the magnesium ions, the calcium ions and the magnesium ions are both determined as the precipitable raw water ions; The sludge production is determined according to the operation parameters, the ion concentration of the calcium ions, the ion concentration of the magnesium ions and the dosing concentrations of the plurality of medicament ions.

4. The method of claim 3, wherein, The method comprises the following steps: When the water quality pH value is less than the precipitation pH value of the magnesium ions and greater than the precipitation pH value of the calcium ions, the calcium ions are determined as the precipitable raw water ion; The sludge production is determined according to the operation parameters, the ion concentration of the calcium ions and the dosing concentrations of the plurality of medicament ions.

5. The method of claim 1, wherein, The operation parameters comprise water inflow and water inflow turbidity, and the sludge production at the current time is determined according to the operation parameters, the ion concentrations of the plurality of precipitable raw water ions and the dosing concentrations of the plurality of medicament ions, which comprises the following steps: The raw water solid content is determined according to the water inflow and water inflow turbidity; The sludge production is determined according to the operation parameters, the ion concentrations of the plurality of precipitable raw water ions, the dosing concentrations of the plurality of medicament ions and the raw water solid content.

6. The method of claim 1, wherein, The method further comprises the following steps: The sludge production corresponding to a plurality of different times in a target period is determined; The sludge productions corresponding to the plurality of different times are accumulated to obtain total sludge production corresponding to a current time.

7. A sludge production calculation device characterized by comprising: The method comprises the following steps: An acquisition module is configured to obtain operation parameters of a target clarifier at a current time and water quality parameters of raw water after a target medicament is put into the raw water, wherein the water quality parameters comprise water quality pH value, a plurality of raw water ions and a plurality of medicament ions; A first determination module is configured to obtain ion concentrations of the plurality of raw water ions and dosing concentrations of the plurality of medicament ions, and determine precipitation pH values of the plurality of raw water ions according to the water quality pH value and the ion concentrations of the plurality of raw water ions; A second determination module is configured to determine a plurality of precipitable raw water ions from the plurality of raw water ions according to the water quality pH value and the precipitation pH values of the plurality of raw water ions, and determine sludge production at the current time according to the operation parameters, the ion concentrations of the plurality of precipitable raw water ions and the dosing concentrations of the plurality of medicament ions. A second determining module is configured to determine precipitable raw water ions from the raw water ions according to the water quality pH value and the precipitation pH values corresponding to the raw water ions, and determine the sludge production at the current time according to the operation parameter, the ion concentrations of the precipitable raw water ions, and the dosing concentrations of the medicament ions.

8. A computer device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program comprises instructions that, when executed by the processor, cause the processor to perform the method of any one of claims 1-7. The processor executes the computer program to implement the steps of the method of any one of claims 1-6.

9. A computer readable storage medium having stored thereon computer programs / instructions, characterized in that, The computer program / instruction is executed by the processor to implement the steps of the method of any one of claims 1-6.

10. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by the processor to implement the steps of the method of any one of claims 1-6. The computer program / instruction is executed by the processor to implement the steps of the method of any one of claims 1-6.