Modelica-based mechanism-data hybrid urban sewage treatment simulation model construction method

By constructing a Modelica-based mechanism-data hybrid simulation model in urban sewage treatment systems, combined with the MATLAB optimization toolbox, the shortcomings of traditional models in parameter estimation and dynamic change reflection are solved, and higher accuracy and lower cost simulation analysis are achieved.

CN120449402AActive Publication Date: 2025-08-08ZHEJIANG UNIV +1

Patent Information

Application Number
CN202510374497.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-08-08
Estimated Expiration
2045-03-27

AI Technical Summary

Technical Problem

Traditional urban sewage treatment models are difficult to accurately estimate parameters, the model accuracy is limited, and it is difficult to fully reflect the dynamic changes in the actual sewage treatment process, making it difficult to solve modeling complexity and nonlinear features.

Method used

Based on Modelica, the initial sedimentation tank, nitration tank, denitrification tank, second sedimentation tank, 2-flow-splier and 2-flow-confluent model was constructed. Combined with the MATLAB optimization toolbox, parameter identification and correction were carried out through the optimization module to build a simulation model of the urban sewage treatment system.

Benefits of technology

It improves the accuracy and reusability of the urban sewage treatment simulation model, shortens the R&D cycle, reduces the R&D cost, and can easily analyze the comprehensive performance of the urban sewage treatment system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120449402A_ABST
    Figure CN120449402A_ABST
Patent Text Reader

Abstract

The invention discloses a construction method of a Modelica-based mechanism-data hybrid urban sewage treatment simulation model. The construction method comprises the following steps: constructing six unit equipment models of a primary sedimentation tank, a nitrification tank, a denitrification tank, a secondary sedimentation tank, a two-flow-diverter and a two-flow-confluence device; constructing an urban sewage treatment system simulation model according to actual working conditions, and outputting water quality and flow; determining model mechanism parameters needing to be adjusted in the system simulation model as input; constructing an optimization module, and outputting an optimal parameter by taking the simulation result and the actual data deviation as evaluation indexes; the optimization module and the system simulation model are combined for calculation to conduct parameter identification and correction, and therefore the urban sewage treatment system simulation model is constructed. Modelica is used as a basis for modeling, the technical problems that a traditional modeling method is not comprehensive, causality is considered, and modification and reuse are not easy are solved, and then the accuracy and reusability of the urban sewage treatment simulation model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of simulation modeling of urban sewage treatment equipment, and in particular to a method for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica. Background Art

[0002] Municipal sewage treatment plants (MSTPs) play a crucial role in treating domestic and industrial wastewater within the urban water cycle, removing pollutants. These plants typically incorporate complex physical, chemical, and biological treatment units, such as primary sedimentation tanks, aeration tanks, and secondary sedimentation tanks, all working together to purify the wastewater. During the sewage treatment process, wastewater flow, water quality, and process parameters vary over time, exhibiting a high degree of complexity and nonlinearity.

[0003] With global water scarcity becoming increasingly severe, urban wastewater treatment has become a critical component in ensuring sustainable water resource utilization and improving the urban environment. Technologies that predict wastewater treatment outcomes through modeling are attracting significant attention. The complexity and nonlinear nature of urban wastewater systems make modeling them a particularly challenging task. Traditional wastewater treatment mechanism models often suffer from difficulties in accurately estimating parameters, limited model accuracy, and a failure to fully reflect the dynamics of the actual wastewater treatment process. Summary of the Invention

[0004] In view of the shortcomings of the existing technology, the embodiments of the present application provide a method for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica.

[0005] According to a first aspect of an embodiment of the present application, a method for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica is provided, comprising: Based on the sedimentation principle in primary municipal sewage treatment, a primary sedimentation tank model was constructed using Modelica, and inputs and outputs were determined. The primary sedimentation tank model was used to calculate the water quality of the primary sedimentation effluent from municipal sewage treatment. Based on the nitrification reaction mechanism of the biological denitrification process, a nitrification tank model was constructed based on Modelica, and the input and output were determined. The nitrification tank model was used to calculate the water quality of the nitrification reaction effluent from urban sewage treatment. Based on the denitrification biological reaction mechanism under anoxic environment, a denitrification tank model is constructed based on Modelica, and the input and output are determined. The denitrification tank model is used to calculate the water quality of the denitrification reaction effluent of urban sewage treatment; According to the one-dimensional flux model theory of the secondary sedimentation tank, a secondary sedimentation tank model was constructed based on Modelica, and the input and output were determined. The secondary sedimentation tank model was used to calculate the water quality of the secondary sedimentation effluent of the municipal sewage treatment. According to the law of conservation of mass, a two-stream-diverter model is constructed based on Modelica, and the input and output are determined. The two-stream-diverter model is used to calculate the diverter flow rate of urban sewage treatment; According to the law of conservation of mass, a two-stream-combiner model is constructed based on Modelica, and inputs and outputs are determined. The two-stream-combiner model is used to calculate the combiner flow rate of urban sewage treatment. According to the physical topology, actual operation process and working conditions of the municipal sewage treatment, the primary sedimentation tank model, the nitrification tank model, the denitrification tank model, the secondary sedimentation tank model, the two-stream-divider model and the two-stream-combiner model are called to construct a municipal sewage treatment system simulation model; According to the working principle of urban sewage treatment, based on actual operating conditions, the model mechanism parameters that need to be adjusted in the urban sewage treatment system simulation model are determined. The input of the urban sewage treatment system simulation model is the model mechanism parameters, and the output is the treated water quality parameters and flow rate; According to the working principle of the optimization algorithm, an optimization module is constructed based on the MATLAB optimization toolbox. The deviation between the output results of the urban sewage treatment system simulation model and the actual sewage treatment plant data is used as the evaluation index. The input of the optimization module is the model mechanism parameters, and the output is the minimum value of the evaluation index and the corresponding model mechanism parameters. The optimization module and the urban sewage treatment system simulation model are combined for calculation, the mechanism parameters of the sewage treatment system simulation model are corrected by parameter identification, and an actual urban sewage treatment system simulation model is constructed according to actual operating conditions.

[0006] According to a second aspect of an embodiment of the present application, there is provided a device for constructing a Modelica-based mechanism-data hybrid urban sewage treatment simulation model, comprising: A first construction and determination module is used to construct a nitrification tank model based on Modelica according to the sedimentation principle in the primary treatment of municipal sewage, and to determine inputs and outputs. The nitrification tank model is used to calculate the water quality of the nitrification reaction effluent from the municipal sewage treatment; The second construction determination module is used to construct a nitrification tank model based on Modelica according to the nitrification reaction mechanism of the biological denitrification process and determine the input and output. The nitrification tank model is used to calculate the water quality of the nitrification reaction effluent from the municipal sewage treatment; The third construction determination module is used to construct a denitrification tank model based on Modelica according to the denitrification biological reaction mechanism under anoxic environment, and determine the input and output. The denitrification tank model is used to calculate the water quality of the denitrification reaction effluent of the municipal sewage treatment; A fourth construction and determination module is used to construct a secondary sedimentation tank model based on Modelica according to the one-dimensional flux model theory of the secondary sedimentation tank, and to determine the input and output. The secondary sedimentation tank model is used to calculate the water quality of the secondary sedimentation effluent from the municipal sewage treatment; a fifth construction and determination module, configured to construct a two-stream-diverter model based on Modelica according to the law of conservation of mass, and to determine inputs and outputs, wherein the two-stream-diverter model is used to calculate the diverter flow rate of urban sewage treatment; a sixth construction and determination module, configured to construct a two-stream-combiner model based on Modelica according to the law of conservation of mass, and to determine inputs and outputs, wherein the two-stream-combiner model is used to calculate the combiner flow rate of urban sewage treatment; a seventh construction determination module, for constructing a simulation model of the urban sewage treatment system by calling the primary sedimentation tank model, the nitrification tank model, the denitrification tank model, the secondary sedimentation tank model, the two-stream splitter model, and the two-stream combiner model according to the physical topology, actual operation process, and working conditions of the urban sewage treatment system; an eighth construction and determination module, configured to determine, based on the working principle of municipal sewage treatment and actual operating conditions, model mechanism parameters that need to be adjusted in a municipal sewage treatment system simulation model, wherein the municipal sewage treatment system simulation model inputs the model mechanism parameters and outputs the treated water quality parameters and flow rate; a ninth construction and determination module, configured to construct an optimization module based on the MATLAB optimization toolbox according to the working principle of the optimization algorithm, using the deviation between the output result of the urban sewage treatment system simulation model and the actual sewage treatment plant data as an evaluation index, the input of the optimization module being the model mechanism parameters, and the output being the minimum value of the evaluation index and the corresponding model mechanism parameters; A construction module is used to combine the optimization module and the urban sewage treatment system simulation model for calculation, perform parameter identification and correction on the model mechanism parameters, and construct an actual urban sewage treatment system simulation model according to actual operating conditions.

[0007] According to a third aspect of the embodiments of the present application, there is provided an electronic device, including: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect.

[0008] The technical solutions provided by the embodiments of the present application may have the following beneficial effects: As can be seen from the above embodiments, this application constructs a primary sedimentation tank model, a nitrification tank model, a denitrification tank model, a secondary sedimentation tank model, a 2-stream-diverter model and a 2-stream-combiner model based on Modelica according to the working principle of each unit equipment, and determines the input and output of the model; according to the physical topology, actual operation process and working conditions of urban sewage treatment, the primary sedimentation tank model, nitrification tank model, denitrification tank model, secondary sedimentation tank model, 2-stream-diverter model and 2-stream-combiner model are called, and the import and export parameters are set to construct a simulation model of the urban sewage treatment system; according to the working principle of urban sewage treatment, the parts in the simulation model of the urban sewage treatment system that need to be adjusted based on the actual operating conditions are determined. The model mechanism parameters of the municipal sewage treatment system simulation model are input as the model mechanism parameters, and the output is the treated water quality parameters and flow rate. Based on the working principle of the optimization algorithm, an optimization module is constructed based on the MATLAB optimization toolbox, using the deviation between the output of the municipal sewage treatment system simulation model and the actual sewage treatment plant data as the evaluation index. The input of the optimization module is the model mechanism parameters, and the output is the minimum value of the evaluation index and the corresponding model mechanism parameters. The optimization module is combined with the municipal sewage treatment system simulation model for calculation, and the model mechanism parameters are parameterized and corrected. The municipal sewage treatment system simulation model is optimized according to actual operating conditions. Modeling based on Modelica overcomes the technical problems of traditional modeling methods, such as incompleteness, consideration of causality, and difficulty in modification and reuse, thereby improving the accuracy and reusability of the municipal sewage treatment system simulation model. Applying Modelica to the modeling and simulation of municipal sewage treatment systems, combined with the MATLAB-based optimization module, can conveniently analyze the comprehensive performance of municipal sewage treatment systems, shorten the R&D cycle, and reduce R&D costs.

[0009] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0011] Figure 1 The present invention is a flowchart of a method for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica according to an exemplary embodiment.

[0012] Figure 2 It is a schematic diagram of a simulation model of urban sewage treatment according to an exemplary embodiment.

[0013] Figure 3 is a schematic diagram of an optimization module according to an exemplary embodiment.

[0014] Figure 4 It is a block diagram of a device for constructing a Modelica-based mechanism-data hybrid urban sewage treatment simulation model according to an exemplary embodiment. DETAILED DESCRIPTION

[0015] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0016] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0017] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0018] Figure 1 is a flowchart of a method for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica according to an exemplary embodiment. Figure 1 As shown, the method is applied in a terminal and may include the following steps: In the specific implementation of S1: Based on the sedimentation principle in primary municipal sewage treatment, a primary sedimentation tank model is constructed based on Modelica, and inputs and outputs are determined. The primary sedimentation tank model is used to calculate the water quality of the primary sedimentation effluent from the municipal sewage treatment. This step may include the following sub-steps: S11: Calculate the hydraulic retention time of the primary sedimentation tank based on the size of the primary sedimentation tank and the inlet flow rate; Specifically, the hydraulic retention time of the primary sedimentation tank is obtained according to the size and inlet flow of the primary sedimentation tank provided by the manufacturer, and the calculation formula of the hydraulic retention time.

[0019] Where, is the hydraulic retention time of the primary sedimentation tank under different working conditions, in hours. is the volume of the primary sedimentation tank in cubic meters, The water flow rate into the primary sedimentation tank is in cubic meters per day.

[0020] S12: Based on the hydraulic retention time of the primary sedimentation tank, the known total chemical oxygen demand and the known insoluble chemical oxygen demand, obtain the water quality component removal ratio at different hydraulic retention times; Specifically, the chemical oxygen demand removal rate can be obtained based on the calculated hydraulic retention time of the primary sedimentation tank and the dynamic model of the primary sedimentation tank; based on the calculated chemical oxygen demand removal rate, combined with the known total chemical oxygen demand and the known insoluble chemical oxygen demand, the water quality component removal ratio at different hydraulic retention times can be obtained.

[0021] Where, is the chemical oxygen demand removal rate, is the hydraulic retention time calculated in step S11, is the water component removal ratio, is the total chemical oxygen demand, It is the insoluble chemical oxygen demand.

[0022] S13: According to the removal ratio of water quality components at different hydraulic retention times of the primary sedimentation tank and the law of mass conservation, the water quality components, mud components and effluent flow rate of the primary sedimentation tank effluent are obtained; Specifically, Where: is the concentration of a soluble component when it enters the primary sedimentation tank, is the concentration of a soluble component when it flows out of the primary sedimentation tank, is the calculated water component removal ratio, is the concentration of a certain granular component when it enters the primary sedimentation tank, is the concentration of a certain granular component when it flows out of the primary sedimentation tank from the outlet, is the concentration of a certain granular component when it flows out of the primary sedimentation tank from the sludge outlet, is the volume of the primary sedimentation tank, is the inlet flow rate of the primary sedimentation tank, is the outlet flow of the primary sedimentation tank, It is the discharge flow of the primary sedimentation tank outlet.

[0023] S14: Determine the input and output based on the physical topology and the functional relationship in the model. The input of the primary sedimentation tank model is the water quality parameters, inlet flow rate and sludge flow rate of the primary sedimentation tank inlet water, and the output is the water quality components, sludge components and effluent flow rate of the primary sedimentation tank effluent.

[0024] The above steps construct a primary sedimentation tank model, which is used to calculate the water quality of primary sedimentation effluent from urban sewage treatment. It can describe the sedimentation characteristic curve of primary sewage treatment under different working scenarios, and increase the usability and versatility of the primary sedimentation tank model.

[0025] In the specific implementation of S2: Based on the nitrification reaction mechanism of the biological denitrification process, a nitrification tank model is constructed based on Modelica, and inputs and outputs are determined. The nitrification tank model is used to calculate the water quality of the nitrification reaction effluent from urban sewage treatment. This step may include the following sub-steps: S21: Based on the activated sludge 2d model, the functional relationship between the biological phosphorus removal and biological denitrification reaction in the nitrification tank is obtained; Specifically, the activated sludge 2d model (ASM2d) uses a matrix format to describe the changing patterns and interrelationships of various components in the nitrification reaction of the activated sludge system. Row numbers are represented by j and column numbers are represented by i. This matrix format can describe the effects of all possible transformation processes on all components and the performance conversion rate of each component. Based on the information provided in the table, the reaction rate of a component is calculated as: Where: is the stoichiometric coefficient of column i and row j; is the reaction process rate of row i.

[0026] S22: Obtaining a relationship between the inlet flow rate and water quality components of the nitrification tank and the outlet flow rate and water quality components of the nitrification tank based on the law of conservation of mass and the functional relationship between the biological phosphorus removal and biological denitrification reactions in the nitrification reaction; Specifically, the basic relationship for total mass balance in a given system is: Intake - Outtake + Reaction = Cumulative. Within the nitrification tank, the actual effluent flow rate equals the influent flow rate, and the effluent concentration equals the concentration in the denitrification tank. The calculation formulas for soluble and particulate components are as follows: Where: is the concentration of a soluble component when it enters the nitrification tank, is the concentration of a soluble component when it flows out of the nitrification tank, is the concentration of a certain particle component when it enters the nitrification tank, is the concentration of a certain granular component when it flows out of the nitrification tank, is the reaction rate of a component, is the volume of the nitrification tank, is the water flow rate of the nitrification tank, is the outlet flow of the nitrification tank.

[0027] S23: Determine input and output according to the physical topology and the functional relationship in the model, wherein the input of the nitrification tank is the inlet flow rate and water quality components, and the output is the outlet flow rate and water quality components of the nitrification tank.

[0028] The above steps construct a nitrification tank model, which is used to calculate the effluent quality of the denitrification tank in urban sewage treatment. It can describe the nitrification reaction mechanism and water quality change characteristic curve of the biological denitrification process under different working scenarios, thereby increasing the usability and versatility of the nitrification tank model.

[0029] In the specific implementation of S3: Based on the denitrification biological reaction mechanism in an anoxic environment, a denitrification tank model is constructed based on Modelica, and the input and output are determined. The denitrification tank model is used to calculate the water quality of the denitrification reaction effluent from urban sewage treatment. This step may include the following sub-steps: S31: Based on the activated sludge 2d model, the functional relationship between biological phosphorus removal and biological nitrogen removal by denitrification reaction in the denitrification tank is obtained; Specifically, the activated sludge 2d model (ASM2d) uses a matrix format to describe the changing patterns and interrelationships of various components in the denitrification reaction of the activated sludge system. Row numbers are represented by j and column numbers are represented by i. This matrix format can describe the effects of all possible transformation processes on all components and the performance conversion rate of each component. Based on the information provided in the table, the reaction rate of a component is calculated as follows: Where: is the stoichiometric coefficient of column i and row j; is the reaction process rate of row i.

[0030] S32: Obtaining a relationship between the denitrification tank inlet flow rate and water quality components and the denitrification tank outlet flow rate and water quality components based on the law of conservation of mass and the functional relationship between the denitrification reaction biological phosphorus removal and biological denitrification reaction; Specifically, the basic relationship for the total mass balance of a given system is: Intake - Outtake + Reaction = Cumulative. The inflow and outtake terms are transport terms determined by the physical characteristics of the simulated system. Within the denitrification tank, the actual effluent flow rate equals the inflow flow rate, and the effluent concentration equals the concentration in the denitrification tank. The calculation formulas for soluble and particulate components are as follows: Where: is the concentration of a soluble component when it enters the denitrification tank, is the concentration of a soluble component when it flows out of the denitrification tank, is the concentration of a certain particle component when it enters the denitrification tank, is the concentration of a certain granular component when it flows out of the denitrification tank, is the reaction rate of a component, is the volume of the denitrification tank, is the inlet flow rate of the denitrification tank, is the outlet flow of the denitrification tank.

[0031] S33: Determine input and output according to the physical topology and the functional relationship in the model, wherein the input of the denitrification tank is the inlet flow rate and water quality components of the denitrification tank, and the output is the outlet flow rate and water quality components of the denitrification tank.

[0032] The above steps construct a denitrification tank model, which is used to calculate the effluent quality of the denitrification tank for urban sewage treatment. It can describe the denitrification biological reaction mechanism and water quality change characteristic curve under anoxic environment in different working scenarios, thereby increasing the usability and versatility of the denitrification tank model.

[0033] In the specific implementation of S4: Based on the theory of the one-dimensional flux model of the secondary sedimentation tank, a secondary sedimentation tank model is constructed based on Modelica, and the input and output are determined. The secondary sedimentation tank model is used to calculate the water quality of the secondary sedimentation effluent from the municipal sewage treatment. This step may include the following sub-steps: S41: According to the one-dimensional flux model theory of the secondary sedimentation tank, the secondary sedimentation tank is divided into five layers: top layer, clarification layer, influent layer, concentration layer and bottom layer. The substances entering and flowing out of each layer will constitute the material balance of each layer; Specifically, in the secondary sedimentation tank, the total sludge flux By expansion flux and sedimentation flux It consists of two parts. V is the vertical expansion velocity, is the sludge settling rate, and X is the sludge concentration.

[0034] According to the law of conservation of mass: cumulative amount = inlet amount - outlet amount + reaction amount, inside the reactor, the actual outlet flow rate is equal to the inlet flow rate, and the outlet concentration is equal to the concentration in the reactor. Taking the inlet layer as an example, the calculation formulas for the soluble components and sludge concentration in the stratified model are as follows: Where: is the concentration of a soluble component when it enters the reactor, is the concentration of a soluble component when it flows out of the reactor, is the concentration of sludge when it enters the reactor, is the concentration of sludge when it flows out of the reactor, is the cross-sectional area of the water inlet layer, For the water inlet layer height, is the water flow rate into the reactor, is the effluent flow rate of the secondary sedimentation tank, is the sludge flow rate of the reactor, is the sludge return flow rate.

[0035] S42: Based on the Takacs double exponential settling velocity model, the dynamic inflow and steady-state settling process of the secondary sedimentation tank were simulated using a first-order partial differential equation, and the settling velocity of the particulate components in different layers of the secondary sedimentation tank was calculated; Specifically, the settling velocity of the granular component in the secondary sedimentation tank is calculated based on the Takacs double exponential settling velocity model as follows: In the formula The settling velocity of solid particles in the jth layer, is the maximum settling velocity, is the sedimentation constant in the interference settling zone, is the sedimentation constant in the flocculation settling zone, is the suspended solids concentration in the jth layer, is the minimum achievable suspended solids concentration, is the proportion of the non-settling part in the is the influent suspended matter concentration.

[0036] S43: According to the law of conservation of mass, the water soluble components and sludge fluxes of different layers in the secondary sedimentation tank are obtained; Specifically, according to the law of conservation of mass: cumulative amount = inlet amount - outlet amount + reaction amount, inside the reactor, the actual effluent flow rate is equal to the inlet flow rate, and the effluent concentration is equal to the concentration in the reactor. Taking the inlet layer as an example, the calculation formulas for soluble components and sludge concentration in the stratified model are as follows: Where: is the concentration of a soluble component when it enters the secondary sedimentation tank, is the concentration of a soluble component when it flows out of the secondary sedimentation tank, is the concentration of sludge when it enters the secondary sedimentation tank, is the concentration of sludge when it flows out of the secondary sedimentation tank, is the cross-sectional area of the water inlet layer, For the water inlet layer height, is the inlet flow rate of the secondary sedimentation tank, is the effluent flow rate of the secondary sedimentation tank, is the mud discharge flow of the secondary sedimentation tank, It is the sludge return flow rate of the secondary sedimentation tank.

[0037] S44: Determine input and output based on the physical topology and the functional relationship in the model. The input of the secondary sedimentation tank model is the secondary sedimentation tank inlet flow and water quality components, and the output is the secondary sedimentation tank outlet flow and water quality components.

[0038] The above steps construct a secondary sedimentation tank model, which is used to calculate the effluent water quality of the secondary sedimentation tank for urban sewage treatment. It can describe the sedimentation mechanism and water quality change characteristic curve of the secondary sedimentation tank under different working scenarios, thereby increasing the ease of use and versatility of the secondary sedimentation tank model.

[0039] In a specific implementation of S5: Based on the law of conservation of mass, a two-stream-diverter model is constructed based on Modelica, and the input and output are determined. The two-stream-diverter model is used to calculate the diverter flow rate of urban sewage treatment. This step may include the following sub-steps: S51: Based on the design parameters provided by the manufacturer and the law of conservation of mass, the relationship between the flow rate at outlet 1 and the flow rate at outlet 2 of the 2-stream splitter is obtained; Specifically, assuming a single-phase working fluid in the model, counterflow is not allowed, and a single stream of fluid is instantly and evenly split within the separation model. The change in components within the splitter follows the law of conservation of mass, and the concentration of the soluble components at the outlet of the splitter is equal to the concentration in the reactor. Therefore, the calculation formulas for the soluble components and particulate components at the outlet are as follows: Where: is the concentration of a soluble component when it enters the 2-stream splitter, is the concentration of a soluble component when it flows out of the 2-stream splitter outlet 1, is the concentration of a soluble component when it flows out of the 2-stream splitter outlet 2, is the concentration of sludge entering the 2-stream splitter, is the concentration of sludge flowing out of stream 2-diverter outlet 1, is the concentration of sludge flowing out of stream 2-diverter outlet 2, is the water flow rate of the 2-stream splitter, is the 2-flow-1 flow rate at the splitter outlet, 2-flow - flow rate at splitter outlet 2.

[0040] S52: Determine the input and output based on the physical topology and the functional relationship in the model. The input of the 2-stream-diverter model is the 2-stream-diverter inlet flow and water quality components, and the output is the 2-stream-diverter outlet 1 flow, outlet 1 water quality components, outlet 2 flow, and outlet 2 water quality components.

[0041] The above steps construct a two-stream-diverter model, which is used to calculate the effluent flow and water quality of the two-stream-diverter for urban sewage treatment. It can describe the diversion principle and flow change characteristic curve of the two-stream-diverter under different working scenarios, and increase the usability and versatility of the two-stream-diverter model.

[0042] In a specific implementation of S6: Based on the law of conservation of mass, a two-stream-combiner model is constructed based on Modelica, and inputs and outputs are determined. The two-stream-combiner model is used to calculate the combiner flow rate of urban sewage treatment. This step may include the following sub-steps: S61: Obtain the 2-stream-combiner outlet flow rate based on the design parameters provided by the manufacturer and the law of conservation of mass; Specifically, assuming a single-phase working fluid in the model, counterflow is not allowed, and the single fluid is instantly mixed and uniform in the mixing model. The change of components in the combiner follows the law of conservation of mass. The concentration of the soluble components in the outlet of the combiner is equal to the concentration in the reactor. Therefore, the calculation formulas for the soluble components and particulate components at the outlet are as follows: Where: is the concentration of a soluble component when it enters the 2-stream combiner inlet 1, is the concentration of a soluble component when it enters the inlet 2 of the 2-stream combiner, is the concentration of a soluble component when it flows out of the 2-stream combiner, is the concentration of sludge entering the 2-stream combiner inlet 1, is the concentration of sludge entering the 2-stream combiner inlet 2, is the concentration of sludge when it flows out of the 2-stream combiner, is the water flow rate at the inlet 1 of the 2-stream combiner, is the water flow rate at the inlet 2 of the 2-stream combiner, 2-stream-combiner flow rate.

[0043] S62: Determine the input and output based on the physical topology and the functional relationship in the model. The input of the 2-stream-combiner model is the 2-stream-combiner inlet 1 flow, inlet 1 water quality components, inlet 2 flow and inlet 2 water quality components, and the output is the 2-stream-combiner outlet flow and water quality components.

[0044] The above steps construct a two-stream-combiner model, which is used to calculate the effluent flow and water quality of the two-stream-combiner for urban sewage treatment. It can describe the mixing principle and flow change characteristic curve of the two-stream-combiner under different working scenarios, thereby increasing the usability and versatility of the two-stream-combiner model.

[0045] In the specific implementation of S7: Based on the physical topology, actual operation process and working conditions of the municipal sewage treatment, the primary sedimentation tank model, nitrification tank model, denitrification tank model, secondary sedimentation tank model, two-stream-divider model and two-stream-combiner model are called to build a municipal sewage treatment system simulation model. This step may include the following sub-steps: S71: Determine the number of equipment models included in the sewage treatment plant system simulation model and the direction of internal and external return flows based on the physical topology and actual operation process of the municipal sewage treatment plant, and construct a municipal sewage treatment system simulation model; Specifically, Figure 2 This is a schematic diagram of a municipal sewage treatment simulation model, illustrating the actual operation of the municipal sewage treatment process. The diagram shows that the sewage treatment process includes one primary sedimentation tank model, one nitrification tank model, one denitrification tank model, two secondary sedimentation tank models, three two-stream splitters, and two two-stream combiners. The sewage treatment plant simulation model also includes an external return flow from the secondary sedimentation tank to the nitrification tank. Based on this information, the primary sedimentation tank model, nitrification tank model, denitrification tank model, secondary sedimentation tank model, two-stream splitter model, and two-stream combiner model are called to construct a municipal sewage treatment system simulation model.

[0046] S72: According to the working conditions of urban sewage treatment, the process operation parameters in the sewage treatment plant system simulation model are determined, including the raw wastewater quality parameters and flow rate, the size and inlet and outlet flow of each unit equipment, the aeration volume, the internal reflow rate and the external reflow rate, and the ambient temperature and atmospheric pressure.

[0047] Specifically, the process operating parameters in the sewage treatment plant system simulation model, such as the raw wastewater quality parameters and flow rate, the size and inlet and outlet flow of each unit equipment, the aeration volume, the internal reflow rate and the external reflow rate, will have a great impact on the sewage treatment effect. Entering the specific values provided by the actual sewage treatment plant into the sewage treatment system simulation model will help improve the accuracy of the model simulation results; changes in ambient temperature and atmospheric pressure will affect the growth, reproduction and attenuation of microorganisms in the activated sludge process of sewage treatment, thereby affecting the sewage treatment results.

[0048] The above steps construct a simulation model of the urban sewage treatment system, which is used to calculate the effluent results of the actual urban sewage treatment system and can describe the effluent characteristic curve of the urban sewage treatment system under different working conditions.

[0049] In the specific implementation of S8: Based on the working principle of urban sewage treatment and actual operating conditions, the model mechanism parameters that need to be adjusted in the urban sewage treatment system simulation model are determined. The urban sewage treatment system simulation model inputs are the model mechanism parameters, and the output is the treated water quality parameters and flow rate. This step may include the following sub-steps: S81: According to the working principle and actual operating conditions of urban sewage treatment, the maximum growth rate of heterotrophic bacteria based on the substrate, the lysis rate constant of heterotrophic bacteria, and the saturation / inhibition coefficient of heterotrophic bacteria oxygen are determined as the model mechanism parameters that need to be adjusted in the simulation model of the urban sewage treatment system. It can also include the maximum growth rate of nitrifying bacteria, the attenuation rate of nitrifying bacteria, the maximum growth rate of polyphosphate bacteria and the lysis rate constant of polyphosphate bacteria.

[0050] Specifically, the aforementioned model mechanism parameters are all kinetic parameters in the activated sludge model No. 2D. The activated sludge model No. 2D includes a variety of kinetic parameters for hydrolysis reactions, heterotrophic bacteria, phosphate accumulation bacteria, nitrifying bacteria, and precipitation reactions, as well as their typical values at 10°C and 20°C. However, because the actual reaction environment is more complex than in typical conditions, various mechanism parameters will vary. Therefore, a sensitivity analysis method is required to determine the model mechanism parameters that need to be adjusted in the municipal sewage treatment system simulation model.

[0051] In the specific implementation of S9: Based on the working principle of the optimization algorithm, an optimization module is constructed using the MATLAB optimization toolbox. The deviation between the output of the municipal sewage treatment system simulation model and the actual sewage treatment plant data is used as the evaluation index. The input of the optimization module is the model mechanism parameter, and the output is the minimum value of the evaluation index and the corresponding model mechanism parameter. The optimization module is used for data-driven calculation of the municipal sewage treatment system simulation model. This step may include the following sub-steps: S91: According to the working principle of urban sewage treatment and the evaluation index, the problem is determined to be a multi-objective optimization problem; Specifically, according to the working principle of urban sewage treatment, the deviation between the chemical oxygen demand, total nitrogen and total phosphorus output results of the urban sewage treatment system simulation model and the chemical oxygen demand, total nitrogen and total phosphorus output data of the actual sewage treatment plant is determined as the evaluation index. Therefore, this problem is a multi-objective optimization problem with three objectives.

[0052] S92: According to the MATLAB optimization toolbox, a multi-objective genetic algorithm is selected to construct an optimization module for data-driven calculation of the urban sewage treatment system simulation model, wherein the goal of the optimization module is to obtain the minimum value of the evaluation index.

[0053] Specifically, according to the MATLAB optimization toolbox, a multi-objective genetic algorithm is selected to construct an optimization module, the model mechanism parameters are set as input, the minimum value of the evaluation index and the corresponding model mechanism parameters are set as outputs of the corresponding optimization module, and the optimization module setting is completed.

[0054] The above steps construct an optimization module, which is used for data-driven calculation of the urban sewage treatment system simulation model under different scenarios, thereby increasing the usability and versatility of the optimization module.

[0055] In the specific implementation of S10: the optimization module and the urban sewage treatment system simulation model are combined for calculation, parameter identification and correction are performed on the model mechanism parameters, and the actual urban sewage treatment system model is optimized according to the actual operating conditions; Specifically, if Figure 3 As shown, the optimization module and the urban sewage treatment system simulation model are combined for calculation, and the optimal value of the fitness function of the optimization module is calculated according to the output result of the urban sewage treatment system simulation model. The optimization module will output the model mechanism parameters under the minimum value of the evaluation index, that is, the parameter identification and correction of the mechanism parameters of the sewage treatment system simulation model is completed.

[0056] As can be seen from the above embodiments, this application constructs a primary sedimentation tank model, a nitrification tank model, a denitrification tank model, a secondary sedimentation tank model, a 2-stream-diverter model and a 2-stream-combiner model based on Modelica according to the working principle of each unit equipment, and determines the input and output of the model; according to the physical topology, actual operation process and working conditions of urban sewage treatment, the primary sedimentation tank model, nitrification tank model, denitrification tank model, secondary sedimentation tank model, 2-stream-diverter model and 2-stream-combiner model are called, and the import and export parameters are set to construct a simulation model of the urban sewage treatment system; according to the working principle of urban sewage treatment, the parts in the simulation model of the urban sewage treatment system that need to be adjusted based on the actual operating conditions are determined. The model mechanism parameters of the municipal sewage treatment system simulation model are input as the model mechanism parameters, and the output is the treated water quality parameters and flow rate. Based on the working principle of the optimization algorithm, an optimization module is constructed based on the MATLAB optimization toolbox, using the deviation between the output of the municipal sewage treatment system simulation model and the actual sewage treatment plant data as the evaluation index. The input of the optimization module is the model mechanism parameters, and the output is the minimum value of the evaluation index and the corresponding model mechanism parameters. The optimization module is combined with the municipal sewage treatment system simulation model for calculation, and the model mechanism parameters are parameterized and corrected. The municipal sewage treatment system simulation model is optimized according to actual operating conditions. Modeling based on Modelica overcomes the technical problems of traditional modeling methods, such as incompleteness, consideration of causality, and difficulty in modification and reuse, thereby improving the accuracy and reusability of the municipal sewage treatment system simulation model. Applying Modelica to the modeling and simulation of municipal sewage treatment systems, combined with the MATLAB-based optimization module, can conveniently analyze the comprehensive performance of municipal sewage treatment systems, shorten the R&D cycle, and reduce R&D costs.

[0057] Corresponding to the aforementioned embodiment of the method for constructing a mechanism-data hybrid urban sewage simulation model based on Modelica, the present application also provides an embodiment of an apparatus for constructing a mechanism-data hybrid urban sewage simulation model based on Modelica.

[0058] Figure 4 This is a block diagram of a device for constructing a Modelica-based mechanism-data hybrid urban sewage simulation model according to an exemplary embodiment. Figure 4 , the device comprises: The first construction determination module 1 is used to construct a nitrification tank model based on Modelica according to the sedimentation principle in the primary treatment of urban sewage, and determine the input and output. The nitrification tank model is used to calculate the nitrification reaction effluent of the urban sewage treatment; The second construction determination module 2 is used to construct a nitrification tank model based on Modelica according to the nitrification reaction mechanism of the biological denitrification process, and determine the input and output. The nitrification tank model is used to calculate the nitrification reaction effluent of the municipal sewage treatment; The third construction determination module 3 is used to construct a denitrification tank model based on Modelica according to the denitrification biological reaction mechanism under anoxic environment, and determine the input and output. The denitrification tank model is used to calculate the denitrification reaction effluent of urban sewage treatment; The fourth construction and determination module 4 is used to construct a secondary sedimentation tank model based on Modelica according to the one-dimensional flux model theory of the secondary sedimentation tank, and determine the input and output. The secondary sedimentation tank model is used to calculate the secondary sedimentation effluent of the municipal sewage treatment; A fifth construction determination module 5 is configured to construct a two-stream-diverter model based on Modelica according to the law of conservation of mass, and to determine inputs and outputs, wherein the two-stream-diverter model is used to calculate the diverter flow rate of urban sewage treatment; A sixth construction and determination module 6 is configured to construct a two-stream-combiner model based on Modelica according to the law of conservation of mass, and to determine inputs and outputs, wherein the two-stream-combiner model is used to calculate the combiner flow rate of urban sewage treatment; The seventh construction determination module 7 is used to call the primary sedimentation tank model, the nitrification tank model, the denitrification tank model, the secondary sedimentation tank model, the two-stream-divider model and the two-stream-combiner model according to the physical topology, actual operation process and working conditions of the urban sewage treatment system to build a simulation model of the urban sewage treatment system; an eighth construction and determination module 8, configured to determine, based on the working principle of municipal sewage treatment and actual operating conditions, model mechanism parameters that need to be adjusted in a municipal sewage treatment system simulation model, wherein the municipal sewage treatment system simulation model inputs the model mechanism parameters and outputs the treated water quality parameters and flow rate; A ninth construction and determination module 9 is configured to construct an optimization module based on the MATLAB optimization toolbox according to the working principle of the optimization algorithm, with the deviation between the output result of the urban sewage treatment system simulation model and the actual sewage treatment plant data as the evaluation index. The input of the optimization module is the model mechanism parameter, and the output is the minimum value of the evaluation index and the corresponding model mechanism parameter; The construction module 10 is used to combine the optimization module with the urban sewage treatment system simulation model for calculation, perform parameter identification and correction on the model mechanism parameters, and construct an actual urban sewage treatment system model according to actual operating conditions.

[0059] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0060] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0061] Accordingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method for constructing a mechanism-data hybrid urban sewage simulation model based on Modelica.

[0062] Accordingly, the present application also provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the above-mentioned method for constructing a mechanism-data hybrid urban sewage simulation model based on Modelica.

[0063] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the contents disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered merely as exemplary, and the true scope and spirit of the present application are indicated by the claims.

[0064] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica, characterized in that: include: Based on the sedimentation principle in primary municipal sewage treatment, a primary sedimentation tank model was constructed using Modelica, and inputs and outputs were determined. The primary sedimentation tank model was used to calculate the water quality of the primary sedimentation effluent from municipal sewage treatment. Based on the nitrification reaction mechanism of the biological denitrification process, a nitrification tank model was constructed based on Modelica, and the input and output were determined. The nitrification tank model was used to calculate the water quality of the nitrification reaction effluent from urban sewage treatment. Based on the denitrification biological reaction mechanism under anoxic environment, a denitrification tank model is constructed based on Modelica, and the input and output are determined. The denitrification tank model is used to calculate the water quality of the denitrification reaction effluent of urban sewage treatment; According to the one-dimensional flux model theory of secondary sedimentation tank, a secondary sedimentation tank model is constructed based on Modelica, and the input and output are determined. The secondary sedimentation tank model is used to calculate the water quality of secondary sedimentation effluent from municipal sewage treatment; According to the law of conservation of mass, a two-stream-diverter model is constructed based on Modelica, and the input and output are determined. The two-stream-diverter model is used to calculate the diverter flow rate of urban sewage treatment; According to the law of conservation of mass, a two-stream-combiner model is constructed based on Modelica, and inputs and outputs are determined. The two-stream-combiner model is used to calculate the combiner flow rate of urban sewage treatment. According to the physical topology, actual operation process and working conditions of the municipal sewage treatment, the primary sedimentation tank model, the nitrification tank model, the denitrification tank model, the secondary sedimentation tank model, the two-stream-divider model and the two-stream-combiner model are called to construct a municipal sewage treatment system simulation model; According to the working principle of urban sewage treatment, based on actual operating conditions, the model mechanism parameters that need to be adjusted in the urban sewage treatment system simulation model are determined, and the input of the urban sewage treatment system simulation model is the model mechanism parameters, and the output is the treated water quality parameters and flow rate; According to the working principle of the optimization algorithm, an optimization module is constructed based on the MATLAB optimization toolbox. The deviation between the output result of the urban sewage treatment system simulation model and the actual data is used as the evaluation index to determine the input and output of the optimization module. The input of the optimization module is the model mechanism parameter, and the output is the evaluation index. The optimization module and the urban sewage treatment system simulation model are combined for calculation, the model mechanism parameters are corrected by parameter identification, and an actual urban sewage treatment system simulation model is constructed according to actual operating conditions.

2. The method according to claim 1, characterized in that Based on the sedimentation principle in primary municipal sewage treatment, a primary sedimentation tank model was constructed using Modelica, and the input and output were determined, including: According to the sedimentation principle in the primary treatment of urban sewage, the hydraulic retention time of the primary sedimentation tank is calculated by knowing the size of the primary sedimentation tank and the inlet flow rate; According to the hydraulic retention time of the primary sedimentation tank, the known total chemical oxygen demand and the known insoluble chemical oxygen demand, the removal ratio of water components at different hydraulic retention times is obtained; According to the removal ratio of water components at different hydraulic retention times and the law of mass conservation, the water quality components, mud components and effluent flow rate of the primary sedimentation tank effluent are obtained; According to the physical topology and the sedimentation theory, the input and output are determined. The input of the primary sedimentation tank model is the water quality parameters, inlet flow rate and sludge flow rate of the primary sedimentation tank inlet water, and the output is the water quality components, sludge components and effluent flow rate of the primary sedimentation tank effluent.

3. The method according to claim 1, characterized in that Based on the nitrification reaction mechanism of the biological denitrification process, a nitrification tank model was constructed using Modelica, and the input and output were determined, including: According to the activated sludge 2d model, the functional relationship between the biological phosphorus removal and biological nitrogen removal reactions in the nitrification tank was obtained. According to the law of conservation of mass and the functional relationship between the biological phosphorus removal and biological denitrification reaction of the nitrification reaction, the relationship between the inlet flow rate and water quality components of the nitrification tank and the outlet flow rate and water quality components of the nitrification tank is obtained; According to the physical topology and the functional relationship in the model, the input and output are determined. The input of the nitrification tank is the inlet flow and water quality components, and the output is the outlet flow and water quality components of the nitrification tank.

4. The method according to claim 1, wherein Based on the biological reaction mechanism of denitrification in anoxic environment, a denitrification tank model was constructed based on Modelica, and the input and output were determined, including: According to the activated sludge 2d model, the functional relationship between biological phosphorus removal and biological nitrogen removal in the denitrification tank was obtained. According to the law of conservation of mass and the functional relationship between the biological phosphorus removal and biological nitrogen removal reactions in the denitrification reaction, the relationship between the inlet flow rate and water quality components of the denitrification tank and the outlet flow rate and water quality components of the denitrification tank is obtained; According to the physical topology and the functional relationship in the model, the input and output are determined. The input of the denitrification tank is the inlet flow rate and water quality components of the denitrification tank, and the output is the outlet flow rate and water quality components of the denitrification tank.

5. The method according to claim 1, wherein Based on the one-dimensional flux model theory of the secondary sedimentation tank, a secondary sedimentation tank model was constructed using Modelica, and the inputs and outputs were determined, including: According to the one-dimensional flux model theory of secondary sedimentation tank, the secondary sedimentation tank is divided into five layers: top layer, clarification layer, influent layer, concentration layer and bottom layer. The substances entering and flowing out of each layer will constitute the material balance of each layer. According to the Takacs double exponential settling velocity model, the dynamic inflow and steady-state settling process of the secondary sedimentation tank were simulated by using the first-order partial differential equation, and the settling velocity of the granular components in different layers of the secondary sedimentation tank was calculated. According to the law of conservation of mass, the water soluble components and sludge fluxes in different layers of the secondary sedimentation tank were obtained; The input and output are determined according to the physical topology and the functional relationship in the model. The input of the secondary sedimentation tank model is the secondary sedimentation tank inlet flow and water quality components, and the output is the secondary sedimentation tank outlet flow and water quality components.

6. The method according to claim 1, characterized in that According to the law of conservation of mass, a two-stream splitter model is constructed based on Modelica, and the input and output are determined, including: According to the design parameters provided by the manufacturer, the relationship between the flow rate at outlet 1 and the flow rate at outlet 2 of the 2-flow splitter is obtained; The input and output are determined according to the physical topology and the functional relationship in the model. The input of the 2-stream-diverter model is the 2-stream-diverter inlet flow rate and water quality components, and the output is the 2-stream-diverter outlet 1 flow rate, outlet 1 water quality components, outlet 2 flow rate and outlet 2 water quality components.

7. The method according to claim 1, characterized in that According to the law of conservation of mass, a two-stream combiner model is constructed based on Modelica, and the input and output are determined, including: According to the design parameters provided by the manufacturer and the law of conservation of mass, the outlet flow rate of the 2-stream combiner is obtained; The input and output are determined according to the physical topology and the functional relationship in the model. The input of the 2-stream-combiner model is the 2-stream-combiner inlet 1 flow rate, inlet 1 water quality components, inlet 2 flow rate and inlet 2 water quality components, and the output is the 2-stream-combiner outlet flow rate and water quality components.

8. The method according to claim 1, characterized in that According to the physical topology, actual operation process and working conditions of urban sewage treatment, the primary sedimentation tank model, nitrification tank model, denitrification tank model, secondary sedimentation tank model, two-stream-divider model and two-stream-combiner model are called to construct a simulation model of the urban sewage treatment system, including: According to the physical topology and actual operation process of the urban sewage treatment, the number of equipment models included in the sewage treatment plant system simulation model and the direction information of the internal and external return flow are determined, and the urban sewage treatment system simulation model is constructed. The urban sewage treatment system simulation model is used to describe the biological phosphorus removal and biological nitrogen removal process of urban sewage through the urban sewage treatment system; According to the working conditions of urban sewage treatment, the process operation parameters in the sewage treatment plant system simulation model are determined, including aeration volume, internal reflow rate and external reflow rate.

9. A device for constructing a mechanism-data hybrid urban sewage treatment simulation model based on Modelica, characterized in that: include: A first construction and determination module is used to construct a nitrification tank model based on Modelica according to the sedimentation principle in the primary treatment of municipal sewage, and to determine inputs and outputs. The nitrification tank model is used to calculate the water quality of the nitrification reaction effluent from the municipal sewage treatment; The second construction determination module is used to construct a nitrification tank model based on Modelica according to the nitrification reaction mechanism of the biological denitrification process and determine the input and output. The nitrification tank model is used to calculate the water quality of the nitrification reaction effluent from the municipal sewage treatment; The third construction determination module is used to construct a denitrification tank model based on Modelica according to the denitrification biological reaction mechanism under anoxic environment, and determine the input and output. The denitrification tank model is used to calculate the water quality of the denitrification reaction effluent of the municipal sewage treatment; A fourth construction and determination module is used to construct a secondary sedimentation tank model based on Modelica according to the one-dimensional flux model theory of the secondary sedimentation tank, and to determine the input and output. The secondary sedimentation tank model is used to calculate the water quality of the secondary sedimentation effluent from the municipal sewage treatment; a fifth construction and determination module, configured to construct a two-stream-diverter model based on Modelica according to the law of conservation of mass, and to determine inputs and outputs, wherein the two-stream-diverter model is used to calculate the diverter flow rate of urban sewage treatment; a sixth construction and determination module, configured to construct a two-stream-combiner model based on Modelica according to the law of conservation of mass, and to determine inputs and outputs, wherein the two-stream-combiner model is used to calculate the combiner flow rate of urban sewage treatment; a seventh construction determination module, for constructing a simulation model of the urban sewage treatment system by calling the primary sedimentation tank model, the nitrification tank model, the denitrification tank model, the secondary sedimentation tank model, the two-stream splitter model, and the two-stream combiner model according to the physical topology, actual operation process, and working conditions of the urban sewage treatment system; an eighth construction and determination module, configured to determine, based on the working principle of municipal sewage treatment and actual operating conditions, model mechanism parameters that need to be adjusted in a municipal sewage treatment system simulation model, wherein the municipal sewage treatment system simulation model inputs the model mechanism parameters and outputs the treated water quality parameters and flow rate; a ninth construction and determination module, configured to construct an optimization module based on the MATLAB optimization toolbox according to the working principle of the optimization algorithm, using the deviation between the output result of the urban sewage treatment system simulation model and the actual sewage treatment plant data as an evaluation index, the input of the optimization module being the model mechanism parameters, and the output being the minimum value of the evaluation index and the corresponding model mechanism parameters; A construction module is used to combine the optimization module and the urban sewage treatment system simulation model for calculation, perform parameter identification and correction on the model mechanism parameters, and construct an actual urban sewage treatment system simulation model according to actual operating conditions.

10. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Optimum design method for secondary sedimentation tank of sewage treatment work

    CN103605859A

  • Soft measurement modeling method of A2O municipal sewage treatment process based on constraint theory

    CN103810309A

  • Method and device for constructing virtual prototype model base of immersed pump based on Modelica

    CN111125896A

  • Anaerobic ammoxidation synergistic nitrogen removal process device of municipal sewage main and side streams and application method thereof

    US20200354247A1

Cited By

  • Urban sewage treatment plant peak pressure test evaluation and optimization method system based on sewage treatment model

    CN121768510A