Air quality numerical simulation method, system and electronic equipment
By receiving the operating parameters and species configuration parameters input by the user, the physical and chemical process solution module is used to retrieve the target reaction equation execution unit for simulation calculation, which solves the problem of low generation efficiency of numerical model air mass in the prior art, and achieves efficient Numerical simulation of air quality.
Patent Information
- Application Number
- CN202410654137.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-05-24
AI Technical Summary
The existing numerical model generation method of air quality is inefficient, and program code needs to be frequently modified and compiled to meet different air pollution simulation needs, resulting in low simulation efficiency.
Provide a numerical simulation method of air mass. By receiving the operating parameters and species configuration parameters transmitted from the user's interactive interface, the physical and chemical process solution module in the preset air mass numerical model is used to retrieve the target reaction equation execution unit for simulation calculation. Implement decoupling of chemical mechanism options to avoid modification and recompilation of program code.
It improves the efficiency of numerical simulation of air quality, realizes simulation calculation of the air pollution transmission process without modifying the program code, and simplifies the model generation and update process.
Smart Images

Figure CN118643645B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of air pollution prediction, and in particular to an air quality numerical simulation method, system and electronic equipment. Background Art
[0002] In the field of atmospheric environment monitoring technology, air quality numerical models are often used to numerically simulate the evolution process of the generation and disappearance of real atmospheric pollution. This helps relevant administrative departments to make atmospheric pollution control decisions and issue atmospheric pollution forecasts and warnings based on the mathematical simulation results of the air quality numerical model, or helps scientific researchers to conduct scientific research on atmospheric pollution based on the mathematical simulation results of the air quality numerical model.
[0003] The existing method for generating air quality numerical models usually involves mathematically describing the evolution process of real air pollution, and then writing the mathematically described air pollution transmission process equations and chemical reaction equations into program codes according to one's own needs to obtain an executable program that can be run on a computer or supercomputer. The executable program file can be regarded as an executable air quality numerical model.
[0004] However, since the evolution of air pollution is an extremely complex process, the physical and chemical processes involved are of various types, and the number of reaction species and reaction equations involved in various physical and chemical processes are huge. Once the air pollution transmission process equation or chemical reaction equation needs to be modified according to actual needs, it means that the written program code needs to be modified and the re-modified program code needs to be compiled to obtain a new executable program file.
[0005] Such a simulation method of repeatedly writing and recompiling to generate a new air quality numerical model can easily lead to low simulation efficiency of atmospheric pollution simulation. Summary of the invention
[0006] In view of this, embodiments of the present application provide an air quality numerical simulation method, system, and electronic device to improve the efficiency of air quality numerical simulation.
[0007] In a first aspect, the present application provides an air quality numerical simulation method, the method comprising:
[0008] Receive the operating parameters and species configuration parameters transmitted by the user interaction interface; wherein the user interaction interface is the interactive interface of the preset air quality numerical model, and the preset air quality numerical model also includes: a model variable library, a physical and chemical process solving module, and a variable output module; the model variable library stores the species variables required by the reaction equation group of each operating mechanism option, and the operating mechanism option at least includes: a chemical mechanism option, and the chemical mechanism option includes: a gas phase chemical mechanism option and a common chemical mechanism option; wherein the operating parameters at least include: the target operating conditions and target operating mechanism options of the preset air quality numerical model, and the species configuration parameters at least include: reaction species variables, attribute values of reaction species variables, and chemical reaction rates of the common chemical mechanism options;
[0009] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is lower than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each first target reaction equation group execution unit, and each first target reaction equation group execution unit is a reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option;
[0010] The physical and chemical process solving module is used to run each of the first target reaction equation group execution units for simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, and the variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each of the first target reaction equation group execution units.
[0011] In combination with the first aspect, in a second possible embodiment, the method further includes:
[0012] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each second target reaction equation group execution unit, and the second target equation group execution unit is a general term for the reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit of each common chemical mechanism option;
[0013] The physical and chemical process solving module is used to run each of the second target reaction equation group execution units for simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, and the variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each of the second target reaction equation group execution units.
[0014] In combination with the first aspect, in a third possible embodiment, the preset air quality numerical model further includes: a species management module, and the method further includes:
[0015] According to the predefined species attributes in the model variable library, the species management module is used to set a species unique identification ID for each species variable;
[0016] And according to the species configuration parameters, a public species space is opened for each of the species variables, wherein the public species space is a storage space supporting access by the physical and chemical process solving module and the variable output module.
[0017] In combination with the first aspect, in a fourth possible embodiment, the reaction equation group execution unit is a calculation module obtained by pre-writing the reaction equation groups corresponding to each operation mechanism option according to standardized interface writing rules, and the method further includes:
[0018] Determine the data transmission interface of the calculation module corresponding to the target operation mechanism option using the physical and chemical process solving module according to the target operation mechanism option in the operation parameters and the standardized interface writing rules;
[0019] The physical and chemical process solving module is used to call the calculation modules corresponding to each of the target operation mechanism options based on the data transmission interface of the calculation modules corresponding to the target operation mechanism options.
[0020] In combination with the first aspect, in a fifth possible embodiment, the operation mechanism option further includes: a physical mechanism option, and the method further includes:
[0021] Using the physical and chemical process solving module to run each of the first target reaction equation group execution units and each of the third target reaction equation group execution units corresponding to each of the physical mechanism options to perform simulation calculations based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables;
[0022] The variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each of the first target reaction equation group execution units and each of the third target reaction equation group execution units.
[0023] In combination with the second possible embodiment of the first aspect, in a sixth possible embodiment, the operation mechanism option further includes: a physical mechanism option, and the method further includes:
[0024] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each of the second target reaction equation group execution units and each of the third target reaction equation group execution units corresponding to each of the physical mechanism options;
[0025] Utilizing the physical and chemical process solving module, based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, each of the second target reaction equation group execution units and each of the third target reaction equation group execution units are run to perform simulation calculations, and utilizing the variable output module to output simulation calculation results of each air pollutant obtained by simulation calculations of each of the second target reaction equation group execution units and each of the third target reaction equation group execution units.
[0026] In combination with the third possible embodiment of the first aspect, in a seventh possible embodiment, the method further includes:
[0027] Utilizing the variable output module, based on the species unique identification ID and in accordance with the simulation calculation results of each air pollutant obtained by simulation calculation of the physicochemical process solving module, the target species variables in the public species space that are identical to the unique identification ID of each air pollutant are updated.
[0028] In combination with the first aspect, in an eighth possible embodiment, the preset air quality numerical model further includes: a model configuration parameter control module, an input data reading module, and the method further includes:
[0029] The model configuration parameter control module is used to read the operating parameters and species configuration parameters configured by the user, and the input data reading module is used to parse the target operating conditions of the preset air quality numerical model from the operating parameters, wherein the target operating conditions include: the operating time, integration time step, and simulation grid configuration scheme of the preset air quality numerical model.
[0030] In a second aspect, the present application provides an air quality numerical simulation system, the system comprising:
[0031] The model configuration parameter control module is used to receive the operation parameters and species configuration parameters inputted from the user interaction interface; the operation parameters at least include: target operation conditions and target operation mechanism options; the species configuration parameters at least include: reaction species variables, attribute values of reaction species variables, and chemical reaction rates of common chemical mechanism options;
[0032] A model variable library, used to store species variables required by the reaction equations of each operating mechanism option, wherein the operating mechanism option at least includes a chemical mechanism option, and the chemical mechanism option includes: a gas phase chemical mechanism option and a common chemical mechanism option;
[0033] A physical and chemical process solving module, for calling each first target reaction equation group execution unit if the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is lower than a preset chemical reaction rate threshold, and running each first target reaction equation group execution unit for simulation calculation based on the target operation condition, the reaction species variable, and the attribute value of the reaction species variable; each first target reaction equation group execution unit is a reaction equation group execution unit corresponding to the gas phase chemical mechanism option in the target operation mechanism option;
[0034] The variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit.
[0035] In conjunction with the second aspect, in a second possible embodiment, the physical and chemical process solving module is further used to:
[0036] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, call each second target reaction equation group execution unit, the second target equation group execution unit is the general term for the reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit of each common chemical mechanism option;
[0037] Based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, running each of the second target reaction equation group execution units to perform simulation calculations;
[0038] The variable output module is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each second target reaction equation group execution unit.
[0039] In combination with the second aspect, in a third possible embodiment, the system further includes:
[0040] A species management module is used to set a species unique identification ID for each species variable according to the species attributes pre-defined in the model variable library using the species management module; and to open up a public species space for each species variable according to the species configuration parameters, wherein the public species space is a storage space that supports access by the physicochemical process solving module and the variable output module.
[0041] In combination with the second aspect, in a fourth possible embodiment, the reaction equation group execution unit is a calculation module obtained by pre-writing the reaction equation groups corresponding to each operation mechanism option according to standardized interface writing rules, and the physical and chemical process solving module is specifically used for:
[0042] Determine the data transmission interface of the computing module corresponding to the target operation mechanism option according to the target operation mechanism option in the operation parameters and the standardized interface writing rules;
[0043] Based on the data transmission interface of the computing module corresponding to the target operation mechanism option, the computing module corresponding to the target operation mechanism option is called.
[0044] In combination with the second aspect, in a fifth possible embodiment, the operation mechanism option further includes: a physical mechanism option, and the physical and chemical process solving module is further used to:
[0045] Based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, the first target reaction equation group execution units and the third target reaction equation group execution units corresponding to the physical mechanism options are run to perform simulation calculations;
[0046] The variable output module is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit and each third target reaction equation group execution unit.
[0047] In combination with the second possible embodiment of the second aspect, in a sixth possible embodiment, the operation mechanism option further includes: a physical mechanism option, and the physical and chemical process solving module is further used to:
[0048] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, calling each of the second target reaction equation group execution units and each of the third target reaction equation group execution units corresponding to each of the physical mechanism options;
[0049] Based on the target operating condition, the reaction species variable, and the property value of the reaction species variable, running each of the second target reaction equation group execution units and each of the third target reaction equation group execution units to perform simulation calculations;
[0050] The variable output module is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each second target reaction equation group execution unit and each third target reaction equation group execution unit.
[0051] In combination with the third possible implementation manner of the second aspect, in a seventh possible implementation manner, the variable output module is specifically used to:
[0052] Based on the species unique identification ID, according to the simulation calculation results of each air pollutant obtained by simulation calculation of the physical and chemical process solution module, the target species variables in the public species space that are the same as the unique identification ID of each air pollutant are updated.
[0053] In combination with the second aspect, in an eighth possible embodiment, the system further includes:
[0054] Model configuration parameter control module, used to read the operating parameters and species configuration parameters configured by the user;
[0055] An input data reading module is used to parse the target operating conditions of the preset air quality numerical model from the operating parameters, wherein the target operating conditions include: the operating time, integration time step, and simulation grid configuration scheme of the preset air quality numerical model.
[0056] In a third aspect, the present application provides an electronic device, the electronic device comprising:
[0057] a processor; and a memory storing a program,
[0058] The program includes instructions, which, when executed by the processor, enable the processor to perform the air quality numerical simulation method according to the first aspect.
[0059] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the air quality numerical simulation method according to the first aspect.
[0060] Beneficial effects of this application:
[0061] The present application provides an air quality numerical simulation method, system and electronic device, wherein the method receives operating parameters and species configuration parameters transmitted from a user interaction interface, and according to the target operating mechanism options contained in the operating parameters, when the chemical reaction rate in the target operating mechanism options is lower than a preset chemical reaction rate threshold, uses the physical and chemical process solving module in the preset air quality numerical model to call each first target equation group execution unit corresponding to each gas phase chemical mechanism option in the target operating mechanism option, runs each first target equation group execution unit based on the operating parameters and species configuration parameters to perform simulation calculations, and then uses the variable output module to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit.
[0062] The embodiment of the present application is selected to pre-process each chemical mechanism option into its corresponding reaction equation group execution unit, and then determine the chemical mechanism option that the user needs to simulate based on the input operation parameters and species configuration parameters. If the chemical reaction rate of the common chemical mechanism option is lower than the preset chemical reaction rate threshold, each target reaction equation group execution unit will be used to separately execute the corresponding gas phase chemical mechanism option to simulate the air quality value, obtain the simulation calculation results of each air pollutant, and then use the variable output module to output the simulation calculation results. In this way, the decoupling of each gas phase chemical mechanism option is achieved, and further the simulation calculation of the atmospheric pollution transmission process is achieved without modifying or recompiling the completed program code, which greatly improves the efficiency of air quality numerical simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0064] Figure 1 A schematic diagram showing the atmospheric evolution process represented by the air quality numerical model provided in an embodiment of the present application is shown;
[0065] Figure 2 A schematic diagram of a flow chart of the air quality numerical simulation method provided in an embodiment of the present application is shown;
[0066] Figure 3 A schematic diagram of a software logic architecture of a preset air quality numerical model provided in an embodiment of the present application is shown;
[0067] Figure 4 A schematic diagram of a logical structure of a physical and chemical mechanism control module provided in an embodiment of the present application is shown;
[0068] Figure 5 A schematic diagram of a process for coupling or decoupling control of chemical mechanism options provided in an embodiment of the present application is shown;
[0069] Figure 6 A logical structure diagram of an air quality numerical simulation system provided in an embodiment of the present application is shown;
[0070] Figure 7 A schematic diagram of a logical structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0071] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0072] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0073] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0074] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0075] Before describing in detail the air quality numerical simulation method, system, and electronic device provided by the present application, the fields, application scenarios, and technical terms to which the embodiments of the present application belong are described here:
[0076] In the embodiment of the present application, the air quality numerical model is a mathematical model, and can also be an executable program file compiled by programming based on the mathematical model, such as an .exe program file. It can even be an air quality simulation software system. Among them, the air quality numerical model, as a simulation tool for the atmospheric evolution process, is often used for scientific research on atmospheric pollution, making atmospheric pollution control decisions, and forecasting and warning atmospheric pollution.
[0077] For ease of understanding, we can combine Figure 1 The atmospheric evolution process shown in the figure can be used to understand the air quality numerical model. Figure 1It shows multiple evolution processes involved in the formation of PM2.5 in the atmosphere, among which: advection is the advection process, wet scaving process is the wet deposition process, dry deposition process is the dry deposition process, gaseous chemistry is the gas phase chemical reaction process, and aqueous chemistry is the liquid phase chemical reaction process.
[0078] Among them, PM2.5 is divided into multiple components: primary PM2.5 and secondary PM2.5. Among them, primary PM2.5 refers to particles less than or equal to 2.5 microns that are directly emitted and do not participate in chemical reactions in the atmosphere, such as smoke, dust, and black carbon. Secondary PM2.5 refers to particles less than or equal to 2.5 microns that participate in chemical reactions in the atmosphere, such as sulfates, nitrates, ammonium salts, and secondary organic aerosols.
[0079] Based on the PM2.5 formation process, the evolution of PM2.5 can be simulated using the following mathematical description equation:
[0080]
[0081] in: represents the concentration of PM2.5 in grid i in the space, The term representing the change of PM2.5 concentration over time in grid i in space is the term that the air quality numerical model needs to solve in the end; where a grid refers to the coverage of a simulated unit geographic area. For example, if 10,000 square meters is used as a simulated coverage area, then 1 grid = 10,000 square meters.
[0082] It is the basic equation of the advection process. Its specific description and solution algorithm can have different schemes (such as the Walcek scheme (an advection process option), the PPM scheme (another advection process option), etc.). Different schemes are different options for the advection process in the air quality numerical model. Among them, They refer to wind speed in the x, y and z directions respectively. The wind speed unit is m / s. x, y and z are three mutually perpendicular directions in any custom three-dimensional space.
[0083] It is the basic equation of the diffusion process. Its specific description and solution algorithm can have different schemes (such as YSU (a diffusion process option), ACM2 (another diffusion process option), etc.), and different schemes are different options for the diffusion process in the air quality numerical model. Among them, They refer to the diffusion coefficients in the x, y, and z directions respectively.
[0084] Represents the impact of the emission process. To represent the influence of chemical reaction processes, the specific description and solution algorithm can have different schemes or mechanisms (such as CBMZ (a chemical mechanism option), CB06 (another chemical mechanism option), SAPRC07 (another chemical mechanism option), etc.), and different schemes have different chemical mechanism options in the air quality numerical model.
[0085] Represents the dry deposition process. Its specific description and solution algorithm can have different schemes (such as Wesly89 (a dry deposition process option), Zhang 03 (another dry deposition process option), etc.). Different schemes are options for the dry deposition process in the air quality numerical model.
[0086] W ash It represents the wet deposition process, and its specific description and solution algorithm can have different schemes. Different schemes correspond to different options of wet deposition schemes in the air quality numerical model.
[0087] It can be seen that the evolution process of real air pollution can be divided into two processes: physical process and chemical process. The two processes correspond to different calculation mechanisms, that is, the physical process corresponds to the physical mechanism, and the chemical process corresponds to the chemical mechanism. Among them, the physical mechanism refers to the mathematical description of the actual physical process in the atmosphere and the solution method of the mathematical description. For example, the dry deposition mechanism in the physical mechanism refers to the calculation of atmospheric pollutants (including SO 2 、NO 2 , CO, PM2.5, O 3 The process by which pollutants (such as various pollutants) are separated from the atmosphere by physical factors such as gravity, vegetation adsorption and building influence. However, due to the limitations of current scientific cognition, physical processes are difficult to describe very accurately. They are usually described using different similar abstract methods, that is, using different descriptive equations and their solution methods. A description method and its corresponding solution method correspond to a physical mechanism. Different description methods or solution methods will result in different physical mechanisms.
[0088] Chemical mechanism refers to a set of complex mathematical formulas and their solution methods that describe the chemical reaction equations of reactants, products and intermediates of chemical reactions in the atmosphere and their corresponding reaction rates. For example, the SAPRC99 (Statewide Air Pollution Research Center Mechanism, proposed in 1999) mechanism commonly used in the industry contains 74 reactants and 211 reaction equations. Among them, the chemical mechanism is further subdivided into gas phase chemical mechanism, liquid phase chemical mechanism, aerosol chemical mechanism, and heterogeneous chemical mechanism based on different material forms. Among them, the gas phase chemical mechanism refers to the chemical reaction mechanism of gaseous pollutants in the atmosphere; the liquid phase chemical mechanism refers to the chemical reaction mechanism of atmospheric pollutants in liquid media; the aerosol chemical mechanism refers to the chemical reaction mechanism of mutual transformation between gaseous and particulate pollutants; the heterogeneous chemical mechanism refers to the chemical reaction mechanism occurring on the surface of particulate pollutants.
[0089] Among them, each category of chemical reaction mechanism can have different options. This article identifies the options corresponding to the chemical mechanism as the chemical mechanism option, and the options corresponding to the physical mechanism as the physical mechanism option. Due to the complexity of the chemical mechanism of the air quality model, the chemical mechanism of the air quality numerical model includes multiple chemical mechanisms such as gas phase chemical mechanism, liquid phase chemical mechanism, secondary inorganic aerosol chemical mechanism and secondary organic aerosol chemical mechanism. Among them, the gas phase chemical mechanism is the most complex, often containing more than 100 reaction species and hundreds of reaction equations, and these reaction species and equations are interdependent and mutually transformed. Once some of the reactions and species are modified, it may have a significant impact on the entire reaction system.
[0090] However, the existing methods for generating air quality numerical models are complex, cumbersome to operate, and have a high degree of coupling due to the complex physical and chemical mechanisms involved in air quality numerical models. Once it is necessary to simulate various atmospheric evolutions according to actual meteorological forecasts or scientific research needs, it is impossible to efficiently establish an air quality numerical model that meets the needs, which leads to low simulation efficiency of air quality simulation using air quality numerical models.
[0091] In view of this, the present application provides an air quality numerical simulation method, system and electronic device to solve the problem of low efficiency of air quality numerical modeling by existing technical means. Among them, the air quality numerical simulation method can be applied to any electronic device with air quality numerical simulation function, including personal mobile terminals, computer equipment, supercomputers or servers, etc.
[0092] In the first aspect, the present application provides a method for numerical simulation of air quality. Figure 2As shown, the method includes the following steps S11 to S14:
[0093] S11. Receive operating parameters and species configuration parameters transmitted from the user interaction interface.
[0094] Wherein, the user interaction interface is an interaction interface of a preset air quality numerical model, and the preset air quality numerical model also includes: a model variable library, a physical and chemical process solution module, and a variable output module.
[0095] The model variable library stores species variables required by the reaction equations of each operating mechanism option, and the operating mechanism option at least includes: a chemical mechanism option, and the chemical mechanism option includes: a gas phase chemical mechanism option and a public chemical mechanism option.
[0096] Among them, the operating parameters include at least: the target operating conditions and target operating mechanism options of the preset air quality numerical model, and the species configuration parameters include at least: reaction species variables, attribute values of reaction species variables, and chemical reaction rates of the common chemical mechanism options.
[0097] S12. If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is lower than a preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each first target reaction equation group execution unit.
[0098] Among them, each of the first target reaction equation group execution units is a reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option.
[0099] S13. Using the physical and chemical process solving module, based on the target operating conditions, reaction species variables, and the attribute values of the reaction species variables, each first target reaction equation group execution unit is run to perform simulation calculations.
[0100] S14. Using the variable output module, output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit.
[0101] The embodiment of the present application is selected to pre-process each chemical mechanism option into its corresponding reaction equation group execution unit, and then determine the chemical mechanism option that the user needs to simulate based on the input operation parameters and species configuration parameters. If the chemical reaction rate of the common chemical mechanism option is lower than the preset chemical reaction rate threshold, each target reaction equation group execution unit will be used to separately execute the corresponding gas phase chemical mechanism option to simulate the air quality value, obtain the simulation calculation results of each air pollutant, and then use the variable output module to output the simulation calculation results. In this way, the decoupling of each gas phase chemical mechanism option is achieved, and the simulation calculation of the atmospheric pollution transmission process is further achieved without modifying or recompiling the completed program code, which greatly improves the efficiency of air quality numerical simulation.
[0102] The above steps S11 to S14 are described in detail below:
[0103] As an implementation method, the user interaction interface is an interaction interface of a preset air quality numerical model. The interface includes, but is not limited to, components such as an input box and a check box. When executing step S11, the user may directly input operating parameters and species configuration parameters according to his or her own needs on the interaction interface of the preset air quality numerical model, and the user interaction interface directly transfers the information input by the user to the preset air quality numerical model.
[0104] As another implementation, the user can pre-enter the required operating parameters and species configuration parameters in the user interaction interface, and the preset air quality numerical model can generate a configuration file based on the operating parameters and species configuration parameters input by the user, and store the configuration file in a preset storage path. Specifically, the configuration file is a text file that records the operating parameters and configuration options input by the user in a specific format. When executing step S11, the text file can be directly read based on the preset storage path to obtain the operating parameters and species configuration parameters input by the user.
[0105] In some embodiments, the air quality numerical simulation method provided in the present application needs to be implemented based on a preset air quality numerical model. The preset air quality numerical model is a software, which can be an executable program file, similar to an .exe file. Researchers can install the preset air quality numerical model, and researchers can flexibly check the required operating parameters and species configuration parameters on the software interface according to research needs. The preset air quality numerical model automatically performs air quality numerical simulation according to the operating parameters and species configuration parameters input by the user.
[0106] The air quality numerical model in the embodiment of the present application can be constructed using the Fortran programming language. When the executable program file of the air quality numerical model generated by the programming language is used to call each physicochemical mechanism option, it is called according to the interface of each physicochemical mechanism option. The physicochemical mechanism modules programmed based on the Fortran programming language occupy less memory and less processing resources.
[0107] As an implementation method, the preset air quality numerical model logic architecture provided in this application can be as follows: Figure 3 As shown, it includes the following parts: user interaction interface 31, model configuration parameter control module 32-1, input data reading module 32-2, model variable library 33, species management module 34, physical and chemical process solving module 35, and variable output module 36.
[0108] The user interaction interface 31 is used to provide an intuitive and interactive interface so that users can input operating parameters and species configuration parameters according to their own simulation requirements. As an example, when researchers perform numerical simulations on PM2.5 as needed, they can check the physical mechanisms and chemical mechanisms related to PM2.5 changes in the user interaction interface according to actual needs, for example, check the dry deposition mechanism in the physical mechanism and check the gas phase chemical mechanism in the chemical mechanism.
[0109] Furthermore, the user interface can display physical mechanism options associated with the physical mechanism checked by the user and chemical mechanism options associated with the chemical mechanism checked by the user. Taking the gas phase chemical mechanism as an example, after checking the gas phase chemical mechanism, the gas phase chemical options related to the gas phase chemical mechanism can be displayed next to the gas phase chemical mechanism display box: CB06 gas phase chemical mechanism option, CB6r5 gas phase chemical mechanism option, CBMZ gas phase chemical mechanism option... In this way, it can effectively save the user's time in querying relevant mechanism options by themselves, which helps to improve the generation efficiency of air quality numerical models.
[0110] In the embodiment of the present application, the operating parameters are the operating requirement parameters of the target air quality numerical model to be generated, wherein the operating parameters at least include: the target operating conditions of the preset air quality numerical model and the target operating mechanism options. The target operating mechanism options are further subdivided into the physical process and the chemical process based on the above-mentioned evolution process, and further subdivided into the target physical operating mechanism options and the target chemical operating mechanism options.
[0111] The model configuration parameter control module 32-1 is used to obtain operating parameters and species configuration parameters. As an implementation, the operating parameters and species configuration parameters input by the user received by the user interaction interface can be obtained through the data transmission interface between the user interaction interface. As another implementation, the configuration file saved by the user can also be read through a preset storage path, and the configuration file records the operating parameters and species configuration parameters written by the user as needed.
[0112] The input data reading module 32-2 can be used to receive the necessary input variables required by the physical and chemical process solving module input by the user, wherein the necessary input variables include: the initial boundary conditions of the chemical reaction species, the values of the meteorological variables, and the static geographic information, etc. Among them, the static geographic information can be obtained by parsing the operation parameters, that is, it can be obtained by parsing the simulation grid configuration information in the operation parameters. The value of the meteorological variable is generally obtained by the user running the meteorological numerical model. The initial boundary condition of the chemical reaction species can be the initial concentration value of the chemical reaction species, or the minimum reaction concentration value of the chemical reaction, etc.
[0113] Based on this, in some embodiments, the air quality numerical simulation method provided by the present application may also include the following steps:
[0114] Using the model configuration parameter control module 32-1 to read the operating parameters and species configuration parameters configured by the user;
[0115] The input data reading module 32-2 is used to parse the target operating conditions of the preset air quality numerical model from the operating parameters, wherein the target operating conditions include: the operating time, integration time step, and simulation grid configuration scheme of the preset air quality numerical model.
[0116] The running time refers to the time period during which the generated air quality numerical model is used to simulate the actual atmospheric evolution process. For example, if the simulation start time is 0:00 on April 9, 2014, and the simulation time is 24 hours, then the executable program of the air quality numerical model will output the simulation results from 0:00 to 23:00 on April 9, 2014 after the execution is completed.
[0117] The integration time step specifically refers to the minimum time span of all physical and chemical processes that can be described by the air quality numerical model, where the smaller the integration step, the more detailed the air quality numerical model's description of the time changes of actual atmospheric processes will be, that is, the integration step is positively correlated with the accuracy of the air quality numerical model, which means that the corresponding amount of computing resources required will be larger. For example, if the integration step of the air quality numerical model is 5 minutes, then all physical and chemical processes described by the air quality numerical model are calculated based on a 5-minute cycle to calculate their evolution process, similar to the number of frames in a video. Within 5 minutes, it can be assumed that all physical and chemical processes remain unchanged, which corresponds to the " ” in dt.
[0118] The simulation grid configuration scheme is a commonly used term in atmospheric simulation. It is used to describe the regional scope and spatial resolution simulated by the air quality numerical model. It is usually a three-dimensional geographic scope (corresponding to x, y, and z three dimensions). At this time, the air quality numerical model divides the simulated space into volume units for calculation during the calculation process.
[0119] In the embodiment of the present application, the species configuration parameters specifically include the reaction species and attribute values involved in the chemical reaction contained in each type of chemical mechanism option, and the species configuration parameters are used to constrain the operation scheme of the air quality numerical model. Among them, the reaction species involved in the chemical reaction include: reactants, products and intermediates. The attribute values of the reaction species variable include, but are not limited to: the specific values of the molecular weight of the reaction species, the unit of the reaction species, the Henry coefficient of the reaction species, the extinction coefficient of the reaction species, etc. Among them, the molecular weight refers to the sum of the relative molecular masses of the molecules of each chemical substance involved in the reaction. The Henry coefficient refers to: the physical constant of the ability of a compound to distribute in the gas and liquid phases, which is used to characterize the proportional relationship between the equilibrium partial pressure of the solute in the gas phase above the dilute solution and the molar fraction of the solute in the liquid phase at a certain temperature. The extinction coefficient is used to characterize the ability of the solution to absorb light, which is usually related to the concentration of the solution. When the concentration of the solution is high, the color is darker and the absorption of light is also greater, resulting in a decrease in light transmittance.
[0120] The model variable library 33 stores all species variables required for the preset air quality numerical model to perform air quality numerical simulation, and specifically stores relevant information of various species variables, including but not limited to the species' unique identification ID, species' attribute values, species' units, etc.
[0121] As an implementation method, the model variable library 33 stores and manages the IDs involved in various physical mechanisms and chemical mechanisms, which is similar to a variable library that stores all variables related to the physical mechanisms and chemical mechanisms of atmospheric evolution.
[0122] As another embodiment, the model variable library 33 may also store all species related to the atmospheric evolution process, and each species is distinguished and stored by a unique identification ID of the species. In addition, the model variable library may also store the physical and chemical properties of each species, such as molecular weight, Henry coefficient, extinction coefficient, etc.
[0123] As another embodiment, the model variable library 33 also stores an operation control parameter, which is used to control whether a certain mechanism option in the air quality numerical model is output. For example, the IO control parameter can be used to control whether to output SO 2 This species.
[0124] As an implementation method, all reaction species are identified according to the identification rules specified in the model variable library 33, that is, according to the reaction species ID identification generation rules specified in the model variable library 33, a unique identification ID is generated for various reaction species. In addition, the association relationship between each target operation mechanism option and the various reaction species corresponding to itself is fixed. Exemplarily, taking the CB06 chemical reaction mechanism option as an example, the reaction species involved include: ozone O3, nitrogen oxides NOx, formaldehyde HCHO, isoprene VOCs, etc. Therefore, in the model variable library, each target operation mechanism option can be associated and stored with the corresponding reaction species. Exemplarily, each reaction species of the CB06 gas phase chemical mechanism option: ozone O3, nitrogen oxides NOx, formaldehyde HCHO, isoprene VOCs can be associated and stored with the CB06 gas phase mechanism option.
[0125] In some embodiments, the air quality numerical simulation method provided by the present application further includes the following steps:
[0126] According to the predefined species attributes in the model variable library 33, the species management module 34 is used to set a species unique identification ID for each species;
[0127] And according to the species configuration parameters, a public species space is opened for each species, wherein the public species space is a storage space supporting access by the physicochemical process solving module and the variable output module.
[0128] Based on this, the species management module 34 is used to open up storage space for the preset air numerical model to perform air quality numerical simulation, that is, to open up a common species space shared by the model variable library 33, the physical and chemical process solution module 35, and the variable output module 36. The species management module 34 parses the operation parameters and species configuration parameters input by the user, obtains the target operation mechanism option input by the user and the property values of the reaction species and reaction species variables in the species configuration parameters input by the user, and further obtains the unique identification ID of each reaction species associated with the target operation mechanism option from the model variable library, and allocates a common species space for the preset air quality numerical model.
[0129] In the embodiment of the present application, the model variable library 33 can be understood as a variable template, which defines all possible variables required for the air quality numerical model, the reading of the attributes of each variable, the storage rules of each variable, etc. The physical management module 34 can instantiate the variable template into a specific data set according to the species configuration parameters input by the user.
[0130] The public species space is a storage space in the computer memory, which is used to store various data required by the preset air quality numerical model and various data generated by the preset air quality numerical model, so that the variables and attribute values of the public species space can be called at any time in the preset air quality numerical model simulation. All subsequent variable calls involved in the calculation of physical and chemical processes are called with the unique identification ID.
[0131] The physical and chemical process solving module 35 records all the physical mechanism options and chemical mechanism options required for the numerical simulation of air quality. It is used to respond to the operating parameters and species configuration parameters input by the user, call the target operating mechanism option that matches the operating parameters and species configuration parameters, and run the target operating mechanism option to perform the numerical simulation of air quality, and then output the simulation results to the variable output module 36, which outputs the simulation results, or stores the simulation results in the public species space, so that the physical and chemical process solving module 35 can call the process variables simulated in the second call process. Among them, each physical and chemical mechanism option solves the evolution process corresponding to the physical and chemical mechanism by adopting a specific physical and chemical mechanism scheme. Exemplarily, it is assumed that the advection scheme 1 is the Walcek scheme and the advection scheme 2 is the PPM scheme. The gas phase chemical mechanism 1 is the CBMZ mechanism, the gas phase chemical mechanism 2 is the CB05 mechanism, etc. The physical and chemical mechanism option solves the evolution process based on the corresponding scheme.
[0132] As an implementation method, the physical and chemical process solving module is subdivided into: a physical and chemical mechanism control module and a physical and chemical mechanism calculation module. Among them, the physical and chemical mechanism control module can be as follows: Figure 4 As shown, each physical and chemical process driver is recorded, and each physical and chemical process driver is connected to a corresponding physical and chemical mechanism, and each physical and chemical mechanism contains various physical mechanism options and chemical mechanism options. Exemplarily, the physical and chemical mechanism control module records physical and chemical process driver 1 to physical and chemical process driver n. Each physical and chemical process driver is used to drive the physical and chemical mechanism used for air quality numerical model simulation calculations, and its essence is to drive each physical mechanism option and chemical mechanism option corresponding to each physical and chemical mechanism. Exemplarily, for example Figure 4 The physical and chemical process driver 1 in is used to drive physical and chemical mechanisms 1-1 to 1-3. Which physical and chemical mechanism is driven and which mechanism option under the physical and chemical mechanism is driven depends on the target operation mechanism option in the input operation parameters.
[0133] In the embodiment of the present application, all the physical mechanism options and chemical mechanism options required for the numerical simulation of air quality are collectively referred to as target operation mechanism options. Each target operation mechanism option is essentially a set of mathematical reaction equations. The embodiment of the present application compiles the mathematical reaction equations corresponding to each mechanism into each calculation module according to the standardized interface writing rules, and one logical calculation module corresponds to one reaction group execution unit. Based on this, in some embodiments, the reaction equation group execution unit is: the reaction equation group corresponding to each operation mechanism option is pre-written in accordance with the standardized interface writing rules to obtain the calculation module. Based on this, when executing step S12, it can be achieved by the following steps:
[0134] Determine the data transmission interface of the computing module corresponding to the operation mechanism option according to the target operation mechanism option in the operation parameters and the standardized interface writing rules;
[0135] The physical and chemical process solving module is utilized to call the calculation module corresponding to each target operation mechanism option based on the data transmission interface of the calculation module corresponding to the operation mechanism option.
[0136] As an implementation method, developers design and program various mechanism options for the atmospheric evolution process in advance. Specifically, developers mathematically model various physical mechanism options and chemical mechanism options in advance according to the requirements of atmospheric evolution simulation, and construct mathematical descriptions corresponding to various physical mechanism options and chemical mechanism options, that is, construct mathematical reaction equations corresponding to various physical mechanism options and chemical mechanism options.
[0137] Then, the constructed mathematical reaction equation group is described in machine language to obtain the machine language language module corresponding to each mechanism option. Then, according to the standardized interface writing rules, a data transmission interface is allocated to the machine language language module corresponding to each mechanism option, so that the subsequent executable program file can call the machine language language module corresponding to the physical mechanism option and the chemical mechanism option based on the standardized data transmission interface.
[0138] As an implementation method, each physicochemical process driver, physicochemical mechanism, and physicochemical mechanism option can be written according to standardized interface writing rules. Among them, the data transmission interface driven by each physicochemical process, each physical mechanism, and each chemical mechanism data transmission interface all conform to the standardized interface writing rules, that is, each physical mechanism option, each chemical mechanism option, and each physicochemical mechanism driver written according to the unified standardized interface writing rules can directly access data or transfer parameters through the standardized public species data transmission interface. Among them, the role of the standardized public species data input / output interface is to define the data and attribute values in the public species space affected by different physicochemical processes according to the data structure in the public species space. Exemplarily, the inorganic aerosol process only affects the concentration of inorganic aerosol reaction species in the public species space, and the emission process only affects the concentration of primary pollutants.
[0139] Based on this, when the physical and chemical process solving module 35 executes step S12, it can determine the target operation mechanism option to call the corresponding target reaction group execution unit through the standardized interface writing rules. When executing step S13, by running the target reaction group execution unit, it is possible to realize the simulation calculation of the air quality value by running the corresponding target operation mechanism option. In the embodiment of the present application, the data input interface and the data output interface in the data transmission interface can be the same interface or two different interfaces, but they must comply with the standardized interface writing rules.
[0140] Based on this standardized interface writing rule, if developers want to integrate new physical and chemical mechanisms in the future, they only need to follow the following three steps to achieve the universal integration of new physical and chemical mechanisms:
[0141] 1) Write the core computing module of the new physical and chemical mechanism. That is, based on the mathematical description of the new physical and chemical mechanism, write the language module of the new machine language corresponding to the new physical and chemical mechanism.
[0142] 2) According to the standardized interface writing rules, that is, according to the standardized public species data input / output interface writing specifications, write new physical and chemical mechanism data input interface and data output interface to realize the reading, writing and updating of the preset public species space.
[0143] 3) Determine the driver to which the physical and chemical mechanism belongs, set new configuration options for the new physical and chemical mechanism, and modify the driver to which the physical and chemical mechanism belongs, and add the mapping and calling relationship of the new mechanism options to the driver to which the physical and chemical mechanism belongs.
[0144] When executing step S13, the physical and chemical process solving module 35 can obtain the corresponding target physical mechanism equation and / or the reaction equation execution unit of the target chemical mechanism option from the public species space based on the necessary data items parsed by the input data reading module, and then perform numerical simulation calculations of variable changes.
[0145] For example, assuming that the user needs to simulate the change of PM2.5 under the CB06 mechanism option, the user can input the gas phase chemical mechanism, further input the gas phase chemical mechanism option CB06, further input the initial concentration of each reaction species associated with CB06, and the simulation time length. After receiving the gas phase chemical mechanism and CB06 input by the user, the physical and chemical mechanism control module determines the interface of the physical and chemical process driver corresponding to the gas phase chemical mechanism and the CB06 gas phase chemical mechanism option by querying the standardized public species data transmission interface mapping table, and further determines the physical and chemical process driver corresponding to the gas phase chemical mechanism (assuming it is physical and chemical process driver 2), and the physical and chemical mechanism corresponding to the CB06 gas phase chemical mechanism option (assuming it is physical and chemical mechanism 2-2).
[0146] Then, the physical and chemical process driver 2 is used to drive the various target equation group execution units in the physical and chemical mechanism 2-2. Combined with the target operating conditions, reaction species variables and attribute values of reaction species variables input by the input data reading module and the model configuration parameter control module, the various target equation group execution units in the physical and chemical mechanism 2-2 are run, and the corresponding reaction equation groups are executed to simulate the air quality values and obtain the simulation calculation results.
[0147] Then, the variable output module 36 is used to transmit the simulation calculation result to the public species space through the standardized public species data output interface, so that the physical and chemical process calculation module can call it again based on the corresponding data transmission interface. Based on this, in some embodiments, the air quality numerical simulation method provided by the present application can also include the following steps:
[0148] Utilizing the variable output module, based on the species unique identification ID and in accordance with the simulation calculation results of each air pollutant obtained by simulation calculation of the physicochemical process solving module, the target species variables in the public species space that are identical to the unique identification ID of each air pollutant are updated.
[0149] In an embodiment of the present application, the input operating parameters also include output conditions, such as the expiration of the operating duration, or the simulated calculated concentration of a pollutant exceeds a preset concentration threshold (the preset concentration threshold can be flexibly set according to actual needs). The variable output module 36 can determine whether the simulation calculation results meet the operating parameters based on the input operating parameters. If not, the simulation calculation results will continue to be saved in an intermediate reactant list in the public species space so that the physical and chemical process solving module 35 can obtain the intermediate reactant variable value therefrom. If it is satisfied, the simulation calculation results are directly used to update the pollutants in the public species space, specifically updating the target species variables with the same unique identifier, so that the user can know the final air quality numerical simulation results from the update results.
[0150] Among them, the essence of the chemical mechanism in the air quality numerical model is to give the initial reactant concentration, chemical reaction rate and reaction time based on the chemical reaction equations of pollutants in the atmosphere, and then solve a set of chemical reaction ordinary differential equations according to the given conditional quantities to obtain the concentration of the products after a series of chemical reactions.
[0151] Due to the complexity of atmospheric chemistry, the chemical reaction equations of pollutants in the atmosphere usually include dozens or even hundreds of chemical reaction equations, and because the products of some reactions are the reactants of other reaction equations, these chemical reaction equations are interrelated and cannot be calculated separately, but must be solved as a complete set of equations.
[0152] In order to achieve the separate selection and control of different chemical mechanisms, the embodiment of the present application divides the chemical mechanism options into gas phase chemical mechanism options and common chemical mechanism options. Among them, the gas phase chemical mechanism may include: CB06, CBMZ, SAPRC07, etc. The common chemical mechanism options include heterogeneous chemical mechanism options, halogen chemical mechanism options, etc. In the embodiment of the present application, the species configuration parameters may also include the chemical reaction rate of the chemical mechanism option, specifically including the chemical reaction rate of the common chemical mechanism option.
[0153] Based on this, when executing step S12, the target operating mechanism option can be determined according to the input operating parameters, and then the reaction rate of the target chemical mechanism option participating in the actual air quality numerical simulation calculation can be determined according to the chemical reaction rate of the chemical mechanism option in the input species configuration parameters. As an embodiment, whether a certain chemical mechanism option participates in the simulation calculation can also be controlled according to the chemical reaction rate of the input chemical mechanism option. Exemplarily, if a preset chemical reaction rate threshold is set, if the chemical reaction rate of a certain chemical mechanism option is greater than the preset chemical reaction rate threshold, it indicates that the chemical mechanism option needs to participate in the simulation calculation of the air quality numerical simulation. If the chemical reaction rate of a certain chemical mechanism option is less than the preset chemical reaction rate value, it indicates that the chemical mechanism option does not participate in the simulation calculation of the air quality numerical simulation.
[0154] The preset chemical reaction rate can be obtained according to actual experience or experimental settings, and the present application does not strictly limit the value. In order to facilitate the calculation operation, as a preferred embodiment, the preset chemical reaction rate can be set to 0. If the chemical reaction rate of a chemical mechanism option is 0, it indicates that the chemical mechanism option does not participate in the simulation calculation of the air quality numerical simulation.
[0155] Based on this, when executing step S12, when the chemical reaction rate of the common chemical mechanism option is lower than the preset chemical reaction rate value, the physical and chemical process solving module is used to call the reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option, that is, the first target reaction equation group execution unit is called, that is, the reaction equation group execution unit of the common chemical mechanism option is not called, that is, the common chemical mechanism option does not participate in the subsequent air quality numerical simulation calculation. In this way, the gas phase chemical mechanism option and the common chemical mechanism option can be decoupled.
[0156] As an example, the reaction rate of the public chemical mechanism scheme not selected by the user can be set to 0 to control the public chemical mechanism scheme not selected to participate in the physical and chemical process solution. Exemplarily, the chemical reaction rate calculation and control module can control the chemical reaction of the halogen chemical mechanism not to participate in the physical and chemical process solution by setting the chemical reaction rate of the halogen chemical mechanism to 0 according to the configuration parameters if the user selects the heterogeneous chemical mechanism and does not select the halogen chemical mechanism.
[0157] Since all chemical reaction equations are included in the chemical mechanism equation group, after the gas phase chemical mechanism is selected, the common chemical reactions and their options can be turned on or off by controlling the reaction rate without changing the number of chemical reaction equation groups and the chemical solver structure.
[0158] Based on this, as a way to implement it, Figure 5 As shown, the operation and species configuration parameters are obtained through the model configuration parameter control module, and then the input data set is obtained by using the input data reading module, and the input data set includes the operation conditions input by the user, etc. Then the operation and species configuration parameters and the input data set are passed to the physical and chemical process driver in the physical and chemical process solving module, the corresponding chemical mechanism driver is called, and the corresponding chemical mechanism solver is called by the chemical mechanism driver.
[0159] In the process, the standardized public data input interface is combined to obtain the reaction species variables and the attribute values of the reaction species variables involved in the reaction, and the chemical mechanism solver corresponding to the gas-phase chemical mechanism option is used to solve the chemical reaction equation group corresponding to the gas-phase chemical mechanism selection line. After the calculation is completed, the public species space is updated through the standard output interface. In this way, the chemical reaction equation group is fixed by integrating the gas-phase chemical mechanism with other public chemical mechanisms, and further by controlling the chemical reaction rate value, different options of the public chemical reaction mechanism are realized to participate in the numerical simulation of air quality, and there is no need to recompile the model code, so that the chemical mechanism decoupling can be achieved.
[0160] During the process, the chemical mechanism solver performs simulation calculations, and outputs the results of the simulation calculations to the public species space based on the standardized public species data output interface, and determines whether the calculation has been completed. If the calculation has been completed, the species variable values in the public species space are output to other mode modules for other mode modules to call. If the calculation is not completed, the species variables in the public species space continue to be regarded as process species, and are passed to the corresponding chemical mechanism driver through the standardized public data input interface to continue the corresponding simulation calculation.
[0161] Specifically, since the chemical reactions included in the common chemical mechanism are not many, about 10 to 20, the calculation efficiency is not greatly affected. If too many new reactions are added, they can be processed by establishing a new gas-phase chemical mechanism module. As an implementation method, the physical and chemical mechanism control module includes a chemical reaction efficiency calculation and control module. The chemical reaction rate calculation and control module controls the coupling or decoupling between the common chemical mechanism option and the gas-phase chemical mechanism option according to the chemical reaction rate value of the common chemical mechanism option in the species configuration parameters.
[0162] In some embodiments, the operation mechanism option also includes a physical mechanism option, and the air quality numerical simulation method provided by the present application also includes the following steps:
[0163] Using the physical and chemical process solving module to run the first target reaction equation group execution unit and the third target reaction equation group execution unit corresponding to the physical mechanism option to perform simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables;
[0164] The variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit and the third target reaction equation group execution unit.
[0165] Similarly, the physical and chemical process solving module obtains the third target reaction equation group execution unit corresponding to the physical mechanism option, and the implementation process of obtaining the first target reaction equation group execution unit can refer to the relevant introduction of the physical and chemical process solving module 35 obtaining the calculation module, which will not be repeated here.
[0166] When the embodiment of the present application is selected, when the target operation mechanism option input by the user includes a physical mechanism option, the physical and chemical process solving module can be used to automatically obtain the third target reaction equation group execution unit corresponding to the input physical mechanism option, and perform mathematical simulation calculations on the physical process corresponding to the physical mechanism option. Exemplarily, if the physical mechanism input by the user is a dry deposition process, the corresponding physical mechanism options such as Wesly89 and Zhang 03 can be automatically obtained according to the dry deposition process, and then the reaction equation group corresponding to the physical mechanism options such as Wesly89 and Zhang 03 can be called, and mathematical simulation calculations can be automatically performed, and the corresponding simulation results can be output, so that the air quality numerical simulation method provided in the embodiment of the present application has a wider scope of application and the air quality numerical simulation results are more accurate.
[0167] In some embodiments, the air quality numerical simulation method provided by the present application may also include the following steps:
[0168] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call the second target reaction equation group execution unit, and the second target equation group execution unit is a general term for the reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit of the common chemical mechanism option;
[0169] The physical and chemical process solving module is used to run the second target reaction equation group execution unit for simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, and the variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of the second target reaction equation group execution unit.
[0170] In an embodiment of the present application, whether the public chemical mechanism option participates in the air quality numerical simulation calculation can be determined according to the chemical reaction rate of the public chemical mechanism option. If the public chemical mechanism option does not participate in the simulation calculation, and only the gas phase chemical mechanism option participates in the simulation calculation, the reaction equation group execution unit corresponding to the gas phase chemical mechanism option is determined as the first target reaction equation group execution unit. If the public chemical mechanism option participates in the simulation calculation, the reaction equation group execution unit corresponding to the gas phase chemical mechanism option and the reaction equation group execution unit corresponding to the public chemical mechanism option are collectively referred to as the second target reaction equation group execution unit.
[0171] In step S13, the physical and chemical process solving module is used to call the reaction equation group execution unit corresponding to the gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit corresponding to the public chemical mechanism option, and then the target operation conditions, reaction species variables and the attribute values of the reaction species variables in the operation parameters are passed to the second target equation group execution unit, and each reaction equation group execution unit in the second target equation group execution unit performs simulation calculation to obtain the air quality numerical simulation result. In this way, the public chemical mechanism option can be flexibly coupled or decoupled with the gas phase chemical mechanism option according to the chemical reaction rate of the public chemical mechanism option.
[0172] In some embodiments, if the target operating mechanism option input includes a physical mechanism option, and the chemical reaction rate of the common chemical mechanism option in the target operating mechanism option is higher than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call the second target reaction equation group execution unit and the third target reaction equation group execution unit corresponding to the physical mechanism option;
[0173] The physical and chemical process solving module is used to run the second target reaction equation group execution unit and the third target reaction equation group execution unit for simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, and the variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of the second target reaction equation group execution unit and the third target reaction equation group execution unit.
[0174] In the embodiment of the present application, the operation mechanism options equivalent to participating in the air quality simulation calculation include: gas phase chemical mechanism option, common chemical mechanism option and physical mechanism option. The reaction equation group execution units corresponding to the three mechanism options can be called by using the physical and chemical process solving module, and the called reaction equation group execution units can be run to perform air quality numerical simulation calculation to obtain simulation calculation results, and then the simulation calculation results of each air pollutant obtained by the simulation calculation can be output through the variable output module.
[0175] In a second aspect, the present application provides an air quality numerical simulation system, such as Figure 6 As shown, the system 60 includes:
[0176] The model configuration parameter control module 601 is used to receive the operation parameters and species configuration parameters inputted from the user interaction interface; the operation parameters at least include: target operation conditions and target operation mechanism options; the species configuration parameters at least include: reaction species variables, attribute values of reaction species variables, and chemical reaction rates of the common chemical mechanism options;
[0177] Model variable library 602, used to store variables required by reaction equations of various operation mechanism options, wherein the operation mechanism options at least include chemical mechanism options, and the chemical mechanism options include: gas phase chemical mechanism options and common chemical mechanism options;
[0178] The physical and chemical process solving module 603 is used to call each first target reaction equation group execution unit if the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is lower than the preset chemical reaction rate threshold, and run each first target reaction equation group execution unit for simulation calculation based on the target operation condition, the reaction species variable, and the attribute value of the reaction species variable; each first target reaction equation group execution unit is a reaction equation group execution unit corresponding to the gas phase chemical mechanism option in the target operation mechanism option;
[0179] The variable output module 604 is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit.
[0180] In conjunction with the second aspect, in a second possible embodiment, the physical and chemical process solving module 603 is further used to:
[0181] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, call the second target reaction equation group execution unit, the second target equation group execution unit is a general term for the reaction equation group execution unit corresponding to the gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit of the common chemical mechanism option;
[0182] Based on the target operating condition, the reaction species variable, and the property value of the reaction species variable, running the second target reaction equation group execution unit to perform simulation calculation;
[0183] The variable output module 604 is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of the second target reaction equation group execution unit.
[0184] In combination with the second aspect, in a third possible embodiment, the system 60 further includes:
[0185] The species management module 605 is used to set a species unique identification ID for each species according to the species attributes pre-defined in the model variable library; and to open up a public species space for each species according to the species configuration parameters, wherein the public species space is a storage space that supports access by the physical and chemical process solving module and the variable output module.
[0186] In combination with the second aspect, in a fourth possible embodiment, the reaction equation group execution unit is a calculation module obtained by pre-writing the reaction equation groups corresponding to each operation mechanism option according to standardized interface writing rules, and the physical and chemical process solving module 603 is specifically used for:
[0187] Determine the data transmission interface of the computing module corresponding to the operation mechanism option according to the target operation mechanism option in the operation parameters and the standardized interface writing rules;
[0188] Based on the data transmission interface of the computing module corresponding to the operating mechanism option, the computing module corresponding to the target operating mechanism option is called.
[0189] In combination with the second aspect, in a fifth possible embodiment, the operation mechanism option further includes a physical mechanism option, and the physical and chemical process solving module 603 is further used to:
[0190] Based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, the first target reaction equation group execution units and the third target reaction equation group execution units corresponding to the physical mechanism options are run to perform simulation calculations;
[0191] The variable output module 604 is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit and the third target reaction equation group execution unit.
[0192] In combination with the second possible embodiment of the second aspect, in a sixth possible embodiment, the operation mechanism option further includes a physical mechanism option, and the physical and chemical process solving module 603 is further used to:
[0193] If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, calling the second target reaction equation group execution unit and the third target reaction equation group execution unit corresponding to the physical mechanism option;
[0194] Based on the target operating condition, the reaction species variable, and the property value of the reaction species variable, running the second target reaction equation group execution unit and the third target reaction equation group execution unit to perform simulation calculation;
[0195] The variable output module 604 is also used to output simulation calculation results of various air pollutants obtained by simulation calculation of the second target reaction equation group execution unit and the third target reaction equation group execution unit.
[0196] In combination with the third possible embodiment of the second aspect, in a seventh possible embodiment, the variable output module 604 is specifically used to:
[0197] Based on the species unique identification ID, according to the simulation calculation results of each air pollutant obtained by simulation calculation of the physical and chemical process solution module, the target species variables in the public species space that are the same as the unique identification ID of each air pollutant are updated.
[0198] In combination with the second aspect, in an eighth possible embodiment, the system further includes:
[0199] Model configuration parameter control module 606, used to read the operating parameters and species configuration parameters configured by the user;
[0200] The input data reading module 607 is used to parse the target operating conditions of the preset air quality numerical model from the operating parameters, wherein the target operating conditions include: the operating time, integration time step, and simulation grid configuration scheme of the preset air quality numerical model.
[0201] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0202] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device performs a method according to an embodiment of the present application.
[0203] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present application.
[0204] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present application.
[0205] refer to Figure 7 , the structural block diagram of the electronic device 700 that can be used as the server or client of the present application will now be described, which is an example of the hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0206] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0207] A plurality of components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 may be any type of device capable of inputting information to the electronic device 700, and the input unit 706 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 707 may be any type of device capable of presenting information, and may include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 may include but is not limited to a disk, an optical disk. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0208] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the aforementioned air quality numerical simulation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the aforementioned air quality numerical simulation method by any other appropriate means (e.g., by means of firmware).
[0209] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0210] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0211] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0212] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0213] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0214] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
Claims
1. A method for numerical simulation of air quality, characterized in that: The method comprises: Receive the operating parameters and species configuration parameters transmitted by the user interaction interface; wherein the user interaction interface is the interactive interface of the preset air quality numerical model, and the preset air quality numerical model also includes: a model variable library, a physical and chemical process solving module, and a variable output module; the model variable library stores the species variables required by the reaction equation group of each operating mechanism option, and the operating mechanism option at least includes: a chemical mechanism option, and the chemical mechanism option includes: a gas phase chemical mechanism option and a common chemical mechanism option; wherein the operating parameters at least include: the target operating conditions and target operating mechanism options of the preset air quality numerical model, and the species configuration parameters at least include: reaction species variables, attribute values of reaction species variables, and chemical reaction rates of the common chemical mechanism options; If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is lower than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each first target reaction equation group execution unit, and each first target reaction equation group execution unit is a reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option; The physical and chemical process solving module is used to run each of the first target reaction equation group execution units for simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, and the variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each of the first target reaction equation group execution units.
2. The method according to claim 1, characterized in that The method further comprises: If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each second target reaction equation group execution unit, and the second target equation group execution unit is a general term for the reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit of each common chemical mechanism option; The physical and chemical process solving module is used to run each of the second target reaction equation group execution units for simulation calculation based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, and the variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each of the second target reaction equation group execution units.
3. The method according to claim 1, characterized in that The preset air quality numerical model also includes: a species management module, and the method also includes: According to the predefined species attributes in the model variable library, the species management module is used to set a species unique identification ID for each species variable; And according to the species configuration parameters, a public species space is opened for each of the species variables, wherein the public species space is a storage space supporting access by the physical and chemical process solving module and the variable output module.
4. The method according to claim 1, characterized in that: The reaction equation group execution unit is a calculation module obtained by pre-writing the reaction equation groups corresponding to each operation mechanism option according to standardized interface writing rules. The method further includes: Determine the data transmission interface of the calculation module corresponding to the target operation mechanism option using the physical and chemical process solving module according to the target operation mechanism option in the operation parameters and the standardized interface writing rules; The physical and chemical process solving module is used to call the calculation modules corresponding to each of the target operation mechanism options based on the data transmission interface of the calculation modules corresponding to the target operation mechanism options.
5. The method according to claim 1, characterized in that The operation mechanism options also include: physical mechanism options, and the method also includes: Using the physical and chemical process solving module to run each of the first target reaction equation group execution units and each of the third target reaction equation group execution units corresponding to each of the physical mechanism options to perform simulation calculations based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables; The variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each of the first target reaction equation group execution units and each of the third target reaction equation group execution units.
6. The method according to claim 2, characterized in that The operation mechanism options also include: physical mechanism options, and the method also includes: If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, the physical and chemical process solving module is used to call each of the second target reaction equation group execution units and each of the third target reaction equation group execution units corresponding to each of the physical mechanism options; Utilizing the physical and chemical process solving module, based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, each of the second target reaction equation group execution units and each of the third target reaction equation group execution units are run to perform simulation calculations, and utilizing the variable output module to output simulation calculation results of each air pollutant obtained by simulation calculations of each of the second target reaction equation group execution units and each of the third target reaction equation group execution units.
7. The method according to claim 3, characterized in that The method further comprises: Utilizing the variable output module, based on the species unique identification ID and in accordance with the simulation calculation results of each air pollutant obtained by simulation calculation of the physicochemical process solving module, the target species variables in the public species space that are identical to the unique identification ID of each air pollutant are updated.
8. The method according to claim 1, characterized in that: The preset air quality numerical model also includes: a model configuration parameter control module, an input data reading module, and the method also includes: The model configuration parameter control module is used to read the operating parameters and species configuration parameters configured by the user, and the input data reading module is used to parse the target operating conditions of the preset air quality numerical model from the operating parameters, wherein the target operating conditions include: the operating time, integration time step, and simulation grid configuration scheme of the preset air quality numerical model.
9. An air quality numerical simulation system, characterized in that: The system comprises: The model configuration parameter control module is used to receive the operation parameters and species configuration parameters inputted from the user interaction interface; the operation parameters at least include: target operation conditions and target operation mechanism options; the species configuration parameters at least include: reaction species variables, attribute values of reaction species variables, and chemical reaction rates of common chemical mechanism options; A model variable library, used to store species variables required by the reaction equations of each operating mechanism option, wherein the operating mechanism option at least includes a chemical mechanism option, and the chemical mechanism option includes: a gas phase chemical mechanism option and a common chemical mechanism option; A physical and chemical process solving module, for calling each first target reaction equation group execution unit if the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is lower than a preset chemical reaction rate threshold, and running each first target reaction equation group execution unit for simulation calculation based on the target operation condition, the reaction species variable, and the attribute value of the reaction species variable; each first target reaction equation group execution unit is a reaction equation group execution unit corresponding to the gas phase chemical mechanism option in the target operation mechanism option; The variable output module is used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit.
10. The system according to claim 9, characterized in that The physical and chemical process solving module is also used for: If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, call each second target reaction equation group execution unit, the second target equation group execution unit is the general term for the reaction equation group execution unit corresponding to each gas phase chemical mechanism option in the target operation mechanism option and the reaction equation group execution unit of each common chemical mechanism option; Based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, running each of the second target reaction equation group execution units to perform simulation calculations; The variable output module is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each second target reaction equation group execution unit.
11. The system according to claim 9, characterized in that The system further comprises: A species management module is used to set a species unique identification ID for each species variable according to the species attributes pre-defined in the model variable library using the species management module; and to open up a public species space for each species variable according to the species configuration parameters, wherein the public species space is a storage space that supports access by the physicochemical process solving module and the variable output module.
12. The system according to claim 9, characterized in that The reaction equation group execution unit is a calculation module that pre-writes the reaction equation groups corresponding to each operation mechanism option according to standardized interface writing rules. The physical and chemical process solving module is specifically used for: Determine the data transmission interface of the computing module corresponding to the target operation mechanism option according to the target operation mechanism option in the operation parameters and the standardized interface writing rules; Based on the data transmission interface of the computing module corresponding to the target operation mechanism option, the computing module corresponding to the target operation mechanism option is called.
13. The system according to claim 9, characterized in that The operation mechanism option also includes: a physical mechanism option, and the physical and chemical process solving module is also used to: Based on the target operating conditions, the reaction species variables, and the attribute values of the reaction species variables, the first target reaction equation group execution units and the third target reaction equation group execution units corresponding to the physical mechanism options are run to perform simulation calculations; The variable output module is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each first target reaction equation group execution unit and each third target reaction equation group execution unit.
14. The system according to claim 10, characterized in that The operation mechanism option also includes: a physical mechanism option, and the physical and chemical process solving module is also used to: If the chemical reaction rate of the common chemical mechanism option in the target operation mechanism option is higher than the preset chemical reaction rate threshold, calling each of the second target reaction equation group execution units and each of the third target reaction equation group execution units corresponding to each of the physical mechanism options; Based on the target operating condition, the reaction species variable, and the property value of the reaction species variable, running each of the second target reaction equation group execution units and each of the third target reaction equation group execution units to perform simulation calculations; The variable output module is also used to output the simulation calculation results of each air pollutant obtained by the simulation calculation of each second target reaction equation group execution unit and each third target reaction equation group execution unit.
15. The system according to claim 11, characterized in that The variable output module is specifically used for: Based on the species unique identification ID, according to the simulation calculation results of each air pollutant obtained by simulation calculation of the physical and chemical process solution module, the target species variables in the public species space that are the same as the unique identification ID of each air pollutant are updated.
16. The system according to claim 9, characterized in that The system further comprises: Model configuration parameter control module, used to read the operating parameters and species configuration parameters configured by the user; An input data reading module is used to parse out the target operating conditions of the preset air quality numerical model from the operating parameters, wherein the target operating conditions include: the operating time, integration time step, and simulation grid configuration scheme of the preset air quality numerical model.
17. An electronic device, characterized in that: The electronic device comprises: Processor; and Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
System and method for nesting photochemical reaction chamber mode of fine chemical mechanism
CN106909775A
Integrated numerical simulation model of multi-component chemical-reaction flow field of internal and external flow
CN107944150A