CN111145840B - Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium - Google Patents

Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium Download PDF

Info

Publication number
CN111145840B
CN111145840B CN201911139200.4A CN201911139200A CN111145840B CN 111145840 B CN111145840 B CN 111145840B CN 201911139200 A CN201911139200 A CN 201911139200A CN 111145840 B CN111145840 B CN 111145840B
Authority
CN
China
Prior art keywords
unit
gaseous
target
automatically
gaseous pollutant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911139200.4A
Other languages
Chinese (zh)
Other versions
CN111145840A (en
Inventor
张鑫
李亚楠
刘文芸
孙朝霞
张金永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TIANJIN TONGYANG TECHNOLOGY DEVELOPMENT CO LTD
Original Assignee
TIANJIN TONGYANG TECHNOLOGY DEVELOPMENT CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TIANJIN TONGYANG TECHNOLOGY DEVELOPMENT CO LTD filed Critical TIANJIN TONGYANG TECHNOLOGY DEVELOPMENT CO LTD
Priority to CN201911139200.4A priority Critical patent/CN111145840B/en
Publication of CN111145840A publication Critical patent/CN111145840A/en
Application granted granted Critical
Publication of CN111145840B publication Critical patent/CN111145840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/20Identification of molecular entities, parts thereof or of chemical compositions
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/40Searching chemical structures or physicochemical data
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/90Programming languages; Computing architectures; Database systems; Data warehousing

Landscapes

  • Computing Systems (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Other Investigation Or Analysis Of Materials By Electrical Means (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for automatically unifying units of gaseous pollutants, wherein the method comprises the following steps: automatically acquiring a target unit, and automatically determining a target gaseous pollutant set inconsistent with the target unit from the original gaseous pollutant set according to the target unit; automatically acquiring chemical elements of all components forming the gaseous pollutants, and the number of the elements; automatically searching the element data table for the stored chemical elements consistent with the constituent chemical elements, and determining the relative atomic mass; automatically determining the relative molecular mass according to the relative atomic mass and the element number of each chemical element; automatically determining a conversion coefficient according to a target formula, relative molecular mass, an original unit and a target unit; and automatically converting the original units of the gaseous pollutants into target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set. The embodiment of the invention improves the efficiency of unit conversion, and further improves the unit unified efficiency.

Description

Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device, equipment and a storage medium for automatically unifying units of gaseous pollutants.
Background
In different application scenarios, in order to facilitate analysis or display of data, units used by the data need to be unified, and if the units are not unified, unit conversion operation needs to be performed to achieve unit unification. For example, in an environmental monitoring system, the units used for acquiring data at each monitoring point may be different, some monitoring points may use volume units, and other monitoring points may use mass units, but for the same monitoring platform, the units used for acquiring data need to be consistent to facilitate analysis statistics, and therefore, unit conversion is required. And for example, when the monitoring data is displayed, different display units are required to achieve the purpose of being convenient for users to use. In data statistics, analysis or query, the standard gas concentration unit is usually used for display, but in data calibration, the standard gas concentration unit is required to be used for display, so that the deviation of the standard gas from the measured data can be compared. That is, during data calibration and statistical data reporting, the units used by the data to be displayed by the same gaseous pollutant are different, and unit conversion is required to be performed, so as to realize unit unification.
In the prior art, unit conversion is usually performed in the following manner to achieve unit unification, specifically: and setting a conversion coefficient between an original unit and a target unit of each gaseous pollutant, and storing associated information, wherein the associated information comprises gaseous pollutant names, the original units, the target units and the conversion coefficients. When unit conversion is performed, a conversion coefficient is determined from the stored associated information according to the gaseous pollutant name, the original unit and the target unit. And converting the original units of the gaseous pollutants into target units according to the conversion coefficient so as to realize unit unification.
However, it has been found that at least the following problems exist in the prior art: since the gaseous pollutants are of various types, it is not feasible to store the associated information of each type of gaseous pollutants, which makes the data storage amount too large. Meanwhile, only new associated information needs to be added, the source code or the configuration information needs to be modified, and in the modification process, new problems may be generated, such as maintenance problems of unnecessary information and other problems of the system, and the modification operation is realized in a manual intervention mode. The above problem also reduces the efficiency of unit conversion, thereby affecting the efficiency of realizing unit unification.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for automatically unifying units of gaseous pollutants, which are used for improving the efficiency of unit conversion, reducing the maintenance workload and avoiding manual intervention, thereby improving the unified efficiency of the units.
In a first aspect, an embodiment of the present invention provides a method for automatically unifying units of gaseous pollutants, where the method includes:
automatically acquiring a target unit, and automatically determining a target gaseous pollutant set inconsistent with the target unit from an original gaseous pollutant set according to the target unit, wherein the target gaseous pollutant set comprises at least one gaseous pollutant;
automatically acquiring each component chemical element forming the gaseous pollutants and the number of elements corresponding to each component chemical element for each gaseous pollutant;
for each chemical element, automatically searching a stored chemical element consistent with the chemical element from a prestored element data table, and determining the relative atomic mass of the chemical element according to the relative atomic mass of the stored chemical element;
automatically determining the relative molecular mass of the gaseous pollutants according to the relative atomic mass of each of the constituent chemical elements and the number of the elements of each of the constituent chemical elements;
automatically determining a conversion factor between the original unit and the target unit according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit of the gaseous pollutant and the target unit;
and automatically converting the original units of the gaseous pollutants into the target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set.
Further, before automatically acquiring a target unit and automatically determining a target gaseous pollutant set inconsistent with the target unit from an original gaseous pollutant set according to the target unit, the method further includes:
automatically acquiring each stored chemical element and the relative atomic mass corresponding to each stored chemical element;
automatically storing each of the stored chemical elements and the relative atomic mass associations corresponding to each of the stored chemical elements to an element data table.
Further, the automatically acquiring, for each of the gaseous pollutants, each constituent chemical element that constitutes the gaseous pollutant and the number of elements corresponding to each constituent chemical element includes:
and automatically analyzing the chemical formula of the gaseous pollutant aiming at each gaseous pollutant to obtain each component chemical element forming the gaseous pollutant and the number of elements corresponding to each component chemical element.
Further, the automatically analyzing the chemical formula of the gaseous pollutant for each gaseous pollutant to obtain each constituent chemical element constituting the gaseous pollutant and the number of elements corresponding to each constituent chemical element includes:
and for each gaseous pollutant, automatically analyzing the chemical formula of the gaseous pollutant according to a chemical formula composition rule to obtain each composition chemical element for forming the gaseous pollutant and the number of elements corresponding to each composition chemical element.
Further, the target formula is:
Figure BDA0002280567390000031
wherein M represents the relative molecular mass of the gaseous contaminant; a represents the volume concentration of the gaseous contaminant; t represents the gas temperature of the gaseous pollutant; ba represents the gas pressure of the gaseous contaminant; x represents the mass concentration of the gaseous contaminant;
the automatically determining a conversion factor between the original units and the target units from a target formula, a relative molecular mass of the gaseous contaminant, the original units of the gaseous contaminant, and the target units, comprising:
if the original unit of the gaseous pollutant is a unit corresponding to A and the target unit is a unit corresponding to X, automatically comparing the original unit with the target unitIs determined as
Figure BDA0002280567390000041
If the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A, automatically determining a conversion coefficient between the original unit and the target unit as
Figure BDA0002280567390000042
Further, T ═ 0 ℃; ba 101325 Pa.
Further, the automatically determining the relative molecular mass of the gaseous pollutant according to the relative atomic mass of each of the constituent chemical elements and the number of elements of each of the constituent chemical elements includes:
automatically calculating the product of the relative atomic mass of each chemical element and the number of the chemical elements to obtain the product result of the chemical elements;
and automatically calculating the sum of the product results of all the chemical elements to obtain a summation result, and taking the summation result as the relative molecular mass of the gaseous pollutant.
In a second aspect, an embodiment of the present invention further provides an apparatus for automatically unifying units of gaseous pollutants, including:
the system comprises a target gaseous pollutant set determining module, a data processing module and a data processing module, wherein the target gaseous pollutant set determining module is used for automatically acquiring a target unit and automatically determining a target gaseous pollutant set inconsistent with the target unit from an original gaseous pollutant set according to the target unit, and the target gaseous pollutant set comprises at least one gaseous pollutant;
the composition information acquisition module is used for automatically acquiring each composition chemical element for forming the gaseous pollutants and the number of elements corresponding to each composition chemical element for each gaseous pollutant;
a relative atomic mass determination module, configured to, for each of the constituent chemical elements, automatically search a pre-stored element data table for a stored chemical element that is consistent with the constituent chemical element, and determine a relative atomic mass of the constituent chemical element according to the relative atomic mass of the stored chemical element;
the relative molecular mass determination module is used for automatically determining the relative molecular mass of the gaseous pollutant according to the relative atomic mass of each chemical element and the number of the chemical elements;
a conversion coefficient determination module for automatically determining a conversion coefficient between the original unit and the target unit according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit of the gaseous pollutant and the target unit;
and the unit automatic unifying module is used for automatically converting the original units of the gaseous pollutants into the target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method as described in the first aspect of embodiments of the invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method according to the first aspect of the present invention.
According to the embodiment of the invention, different gaseous pollutants are composed of the constituent chemical elements, the number of the constituent chemical elements related to the constituent gaseous pollutants is limited at present, and compared with the number of the types of the gaseous pollutants, the number of the constituent chemical elements is greatly reduced, so that a storage mode of storing the constituent chemical elements and the relative atomic mass corresponding to the constituent chemical elements in a correlated manner replaces the storage mode of storing the correlated information in the prior art, and the data storage capacity is greatly reduced. Moreover, because the number of the chemical elements is fixed, even if new gaseous pollutants appear, the unit conversion between the original unit and the target unit which can be suitable for each gaseous pollutant can be developed at one time without modifying the source code or modifying the configuration information, so that the defect that new problems are caused by modifying the source code or modifying the configuration information does not exist, and correspondingly, the maintenance workload is reduced. In addition, because the source code or the configuration information does not need to be modified, automatic conversion among units is realized without manual intervention in the operation of executing unit conversion. And further, the efficiency of unit conversion is improved, and on the basis, the unit unified efficiency is also improved.
Drawings
FIG. 1 is a flow chart of a method for unit automation of unification of gaseous pollutants in an embodiment of the present invention;
FIG. 2 is a flow chart of another method for unit automation of unification of gaseous pollutants in an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a unit automatic unification device of gaseous pollutants in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and not restrictive thereof, and that various features described in the embodiments may be combined to form multiple alternatives. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The gaseous pollutant concentration can be expressed by two methods, one is volume concentration expression and the other is mass concentration expression, based on which the unit conversion between the original unit of the gaseous pollutant and the target unit is usually related to the unit conversion between the volume unit and the mass unit, the original unit can be understood as the unit before conversion, and the target unit can be understood as the unit after conversion, for the convenience of understanding, firstly, the related basic concepts are explained, specifically:
first, volume concentration. The volume concentration may represent the volume of a gaseous substance in a unit volume of air, which is a few parts per million, i.e., the volume of the gaseous substance contained in one million volumes of air. Typical volume concentration units include ppm (parts per million), ppb (parts per billion), and the like. Wherein, 1ppm is 1000 ppb.
And secondly, mass concentration. Mass concentration may represent the mass number, or mass-to-volume concentration, of gaseous species contained per cubic meter of air. The usual mass concentration units include mg/m3And μ g/m3And the like. Wherein, 1mg/m3=1000μg/m3
And thirdly, chemical elements. A chemical element may represent a generic name for a class of atoms having the same nuclear charge number (number of protons in the nucleus). The chemical elements may include metallic elements, non-metallic elements, and transition elements. The embodiment of the invention relates to a composition chemical element and a storage chemical element, wherein the composition chemical element and the storage chemical element are names of the chemical element corresponding to different levels, namely the chemical element can be called as the storage chemical element in a storage stage. In the stage of determining the conversion coefficient, the chemical elements may be referred to as constituent chemical elements, but both are substantially the same and both represent chemical elements.
Fourth, relative atomic mass. The relative atomic mass refers to the ratio of the average atomic mass of an atom to 1/12 of a C-12 atomic mass of the atom, based on 1/12 which is the C-12 atomic mass, as the relative atomic mass of the atom.
And fifthly, relative molecular mass. Relative molecular mass refers to the sum of the atomic weights of all the atoms that make up a molecule.
And sixthly, standard condition. Standard Temperature and Pressure (STP) is 101325Pa at 0 deg.C (i.e., 273K).
The volume concentration unit and the mass concentration of the gaseous substanceThe conversion between units is:
Figure BDA0002280567390000071
wherein M represents the relative molecular mass of the gaseous species; a represents the volume concentration of the gaseous substance; t represents the gas temperature of the gaseous substance; ba represents the gas pressure of the gaseous species; x represents the mass concentration of the gaseous substance.
The gaseous species described above includes gaseous contaminants. The conversion formula can be understood as a target formula.
From the above conversion equation, the unit conversion between volume unit and mass unit of the gaseous pollutant is related to the relative molecular weight of the gaseous pollutant.
The method comprises the steps of obtaining the relative molecular mass of each gaseous pollutant by adopting a traditional technology mode, determining a conversion coefficient between an original unit and a target unit of the gaseous pollutant according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit of the gaseous pollutant and the target unit of the gaseous pollutant and storing associated information in an associated mode according to the target formula, the relative molecular mass of the gaseous pollutant, the original unit of the gaseous pollutant and the target unit of the gaseous pollutant, wherein the associated information comprises the name, the original unit, the target unit and the conversion coefficient of the gaseous pollutant. The above shows that, for each target formula, under the condition of the same original unit and target unit, in order to subsequently obtain the conversion coefficient of each kind of gaseous pollutants, it is necessary to store the associated information of each kind of gaseous pollutants. It can be understood that the number of the associated information to be stored will be the same as the number of the gaseous pollutants, i.e. if the number of the gaseous pollutants is N, the number of the associated information to be stored will also be N theoretically. It will also be appreciated that, due to the wide variety of gaseous pollutants, it is not feasible to store information associated with each type of gaseous pollutant, which makes the amount of data stored excessively large. Meanwhile, only new associated information needs to be added, the source code or the configuration information needs to be modified, and the source code or the configuration information needs to be modifiedIn the process, new problems may be generated, such as maintenance problems that generate unnecessary information and other problems that cause the system. Wherein the above modifying operation can be understood to be implemented by means of manual intervention. The maintenance problem of unnecessary information can be understood as a problem in which the same code is repeatedly developed. As shown in table 1, a storage data table of the related information in the conventional art is given. The gaseous pollutant species in Table 1 may include NO, NO2、SO2、O3、NH3And H2S and the like. The defects that the data storage capacity is large and new problems are caused by modifying source codes or modifying configuration information in the traditional technology can generate adverse effects on the efficiency of unit conversion, namely, the efficiency of unit conversion is reduced, and the unified efficiency of units is further influenced.
TABLE 1
Gaseous pollutants Original unit Target unit Conversion coefficient
NO ppm mg/m3 1.34
NO2 ppm mg/m3 2.05
SO2 ppm mg/m3 2.86
O3 ppm mg/m3 2.14
NH3 ppm mg/m3 0.76
H2S ppm mg/m3 1.52
...... ...... ...... ......
It is understood that, in order to solve the defects of the conventional technology that the data storage amount is large and new problems may be caused by modifying the source code or modifying the configuration information, how to determine the relative molecular mass of the gaseous pollutant may be considered, a manner of storing each stored chemical element and the relative atomic mass corresponding to each stored chemical element in association with an element data table may be considered, and the following description will be made in conjunction with specific embodiments.
Fig. 1 is a flowchart of a method for automatically unifying units of gaseous pollutants according to an embodiment of the present invention, where the method is applicable to a case where the efficiency of unit conversion is improved, the maintenance workload is reduced, and manual intervention is not required, so as to improve the unit unification efficiency. As shown in fig. 1, the method specifically includes the following steps:
and 110, automatically acquiring a target unit, and automatically determining a target gaseous pollutant set inconsistent with the target unit from the original gaseous pollutant set according to the target unit, wherein the target gaseous pollutant set comprises at least one gaseous pollutant.
In the embodiment of the invention, in order to unify the units of the gaseous pollutants in the original gaseous pollutant set, the units of the gaseous pollutants in the original gaseous pollutant set are all target units, so that the subsequent analysis and processing of the gaseous pollutant data are facilitated. If the original unit of gaseous pollutants is not the target unit, it is required to perform a unit conversion operation. The unit conversion described above can be understood as conversion from a unit corresponding to a current numerical value to a numerical value in another unit. The unit corresponding to the current value is understood to be an original unit, and the other unit is understood to be a target unit. Exemplary, e.g., gaseous contaminants are SO2Target unit is mg/m3. Under standard conditions, SO is obtained2Is 1000ppm, i.e. the current value is 1000, the original unit is ppm.
The target unit can be automatically obtained, and each gaseous pollutant inconsistent with the target unit can be automatically determined from the original gaseous pollutant set according to the target unit to obtain the target gaseous pollutant set. I.e., the original unit of each gaseous pollutant in the set of target gaseous pollutants is not the target unit. The set of target gaseous pollutants may include at least one gaseous pollutant. The gaseous pollutant in which the target gaseous pollutant is concentrated can be understood as a gaseous pollutant for which unit conversion is required because its original unit is not the target unit.
And step 120, automatically acquiring each component chemical element forming the gaseous pollutants and the number of elements corresponding to each component chemical element for each gaseous pollutant.
In an embodiment of the present invention, for each gaseous pollutant, composition information of the gaseous pollutant may be automatically obtained, and the composition information may include each constituent chemical element constituting the gaseous pollutant and the number of elements corresponding to each constituent chemical element. Each constituent chemical element corresponds to the number of elements one to one. Exemplary, e.g., gaseous contaminants are SO2To obtain the component gaseous pollutant SO2The constituent chemical elements of (1) are S and O, the number of elements corresponding to the constituent chemical element S is 1, and the number of elements corresponding to the constituent chemical element O is 2. The chemical formula of the gaseous pollutant can be obtained, and the chemical formula of the gaseous pollutant can comprise composition information, namely each composition chemical element for forming the gaseous pollutant and the number of elements corresponding to each composition chemical element, so that the composition information of the gaseous pollutant can be obtained by analyzing the chemical formula of the gaseous pollutant. In other words, the composition information may constitute a chemical formula of the gaseous pollutant, that is, each constituent chemical element constituting the gaseous pollutant and the number of elements corresponding to each constituent chemical element may constitute the chemical formula of the gaseous pollutant. Exemplary, e.g., gaseous contaminants are SO2Analyzing the chemical formula of the gaseous pollutant to obtain the constituent chemical elements S and O which form the gaseous pollutant, wherein the number of the elements corresponding to the constituent chemical element S is 1, and the number of the elements corresponding to the constituent chemical element O is 2, namely one constituent chemical element S and two constituent chemical elements O can form the gaseous pollutant SO2
And step 130, automatically searching the stored chemical elements consistent with the composition chemical elements from a prestored element data table aiming at each composition chemical element, and determining the relative atomic mass of the composition chemical elements according to the relative atomic mass of the stored chemical elements.
In the embodiment of the present invention, as can be seen from the above description, in order to solve the defect that the data storage amount is large in the conventional technology, which may cause new problems due to the modification of the source code or the modification of the configuration information, and how to determine the relative molecular mass of the gaseous pollutant, the following method can be considered to solve the above defect, specifically: the method can automatically store each stored chemical element and the relative atomic mass corresponding to each stored chemical element in an element data table in a correlated manner, namely, each stored chemical element and the relative atomic mass corresponding to each stored chemical element are stored in the element data table in a correlated manner, so that after each component chemical element of the gaseous pollutant is obtained subsequently, the stored chemical element consistent with the component chemical element can be automatically searched from the element data table for each component chemical element, the relative atomic mass of the component chemical element is determined according to the relative atomic mass of the stored chemical element, and then the relative molecular mass of the gaseous pollutant can be determined according to the relative atomic mass of each component chemical element and the number of elements of each component chemical element.
The reason why the storage mode can solve the defects is as follows: the storage method provided by the embodiment of the invention considers that the number of the currently known constituent chemical elements is 118, wherein the number of the constituent chemical elements related to the constituent gaseous pollutants is only 22, including H, He, B, C, N, O, F, Ne, Si, P, S, Cl, Ar, As, Se, Br, Kr, Te, I, Xe, At and Rn, because different gaseous pollutants are composed of the constituent chemical elements. Compared with the number of the types of the gaseous pollutants, the number of the gaseous pollutants is greatly reduced, so that if a storage mode for storing the composition chemical elements and the relative atomic mass correlated storage corresponding to the composition chemical elements replaces a storage mode for storing correlated information in the prior art, the data storage amount is greatly reduced, and because the number of the composition chemical elements is fixed, even if new gaseous pollutants occur, the unit conversion between the original unit and the target unit which can be suitable for each gaseous pollutant can be developed once without modifying source codes or modifying configuration information, so that the defect that new problems possibly caused by modifying the source codes or modifying the configuration information does not exist, and correspondingly, the maintenance workload is reduced. Further, since it is not necessary to modify the source code or modify the configuration information, it can be considered that automatic conversion between units can be realized without manual intervention in the operation of performing unit conversion. As shown in table 2, an element data table provided by an embodiment of the present invention is provided. In combination with table 1 described above, it can be seen that the storage manner provided by the embodiment of the present invention will greatly reduce the data storage amount.
TABLE 2
Storing chemical elements Relative atomic mass
H 1
He 4
...... ......
At 210
Rn 222
The storage mode can greatly reduce the data storage amount and avoid the risk of new problems possibly caused by modifying the source code or modifying the configuration information, so that the efficiency of unit conversion can be improved, the maintenance workload is reduced, manual intervention is not needed, and the unit unified efficiency can be improved on the basis. It will be appreciated that although the above storage approach may achieve improved efficiency of unit conversion, reduced maintenance and no need for human intervention, and, based thereon, improved unit uniformity, it is a prerequisite that the storage approach is feasible to ensure that the relative molecular mass of the gaseous pollutants can be determined. The above storage means may be operable to determine the relative molecular mass of the gaseous contaminant because the relative molecular mass of the gaseous contaminant may be determined by the relative atomic mass of each constituent chemical element that makes up the gaseous contaminant and the number of elements of each constituent chemical element, and the above storage means may be operable to determine the relative atomic mass of each constituent chemical element that makes up the gaseous contaminant. Based on the above, the storage method provided by the embodiment of the invention is feasible, and can improve the unit conversion efficiency, reduce the maintenance workload and avoid manual intervention on the basis of determining the relative molecular mass of the gaseous pollutants, and improve the unit unified efficiency on the basis.
Based on the above, after obtaining each constituent chemical element that constitutes a gaseous pollutant, for each constituent chemical element, a stored chemical element that is consistent with the constituent chemical element may be automatically searched from an element data table stored in advance, a relative atomic mass of the stored chemical element may be determined according to the stored chemical element, and the relative atomic mass of the stored chemical element may be taken as the relative atomic mass of the constituent chemical element. In this way, the relative atomic masses of the constituent chemical elements can be obtained. As described above, each of the stored chemical elements and the relative atomic mass corresponding to each of the stored chemical elements may be stored in association in the element data table. Each stored chemical element and the relative atomic mass association of that stored chemical element may be stored to an element data table. It will be appreciated that since subsequent determination of the relative molecular mass of the gaseous contaminant requires obtaining the relative atomic mass of each of the constituent chemical elements that make up the gaseous contaminant, the above description indicates that each of the constituent chemical elements automatically locates, from a pre-stored element data table, the stored chemical element that is consistent with the constituent chemical element. In other words, if there is one constituent chemical element and the stored chemical element that is consistent with the constituent chemical element cannot be found from the pre-stored element data table, the subsequent determination of the relative molecular mass of the gaseous contaminant will not be achieved.
It should be noted that the constituent chemical elements and the storage chemical elements are names of the chemical elements corresponding to different levels, that is, in the storage stage, the chemical elements may be referred to as storage chemical elements. In the stage of determining the conversion coefficient, the chemical elements may be referred to as constituent chemical elements, but both are substantially the same and both represent chemical elements. It should also be noted that the element data table may be stored in a database.
And 140, automatically determining the relative molecular mass of the gaseous pollutants according to the relative atomic mass of each chemical element and the number of the chemical elements.
In the embodiment of the invention, after the relative atomic mass of each constituent chemical element and the number of elements of each constituent chemical element are obtained, the relative molecular mass of the gaseous pollutant can be automatically determined according to the relative atomic mass of each constituent chemical element and the number of elements of each constituent chemical element. Specifically, the relative atomic mass of each constituent chemical element may be automatically multiplied by the number of the constituent chemical element to obtain a product result of the constituent chemical element, the sum of the product results of the constituent chemical elements may be automatically calculated to obtain a sum result, and the sum result may be used as the relative molecular mass of the gaseous pollutant.
Exemplary, e.g., gaseous contaminants are SO2To form gaseous pollutants SO2The chemical elements comprise S and O, wherein the relative atomic mass of the chemical elements S is 32, and the number of the chemical elements S is 1; the relative atomic mass of the constituent chemical element O is 16, the number of constituent chemical elements O is 2, and the relative molecular mass M (SO) of the gaseous pollutant2) Comprises the following steps: m (SO)2)=32+16×2=64。
And 150, automatically determining a conversion coefficient between the original unit and the target unit according to the target formula, the relative molecular mass of the gaseous pollutant, and the original unit and the target unit of the gaseous pollutant.
In the practice of the inventionIn the example, the target unit may be understood as a post-conversion unit, the original unit may be understood as a pre-conversion unit, and the conversion factor may be understood as a factor converting a gaseous pollutant from a value in the original unit to a value in the target unit. Illustratively, the original unit is volume concentration ppm and the target unit is mass concentration mg/m3The conversion coefficient is the value of the gaseous pollutant at the volume concentration ppm converted to the value at mg/m3The coefficient of the following numerical value.
After obtaining the relative molecular mass of the gaseous pollutant, the conversion coefficient between the original unit and the target unit of the gaseous pollutant can be automatically determined by combining the target formula, the target unit and the original unit of the gaseous pollutant. The relative molecular mass of the gaseous pollutant can be automatically input into a target formula, and the target formula is correspondingly deformed to obtain the conversion coefficient between the original unit and the target unit. Wherein the target formula may be as described above
Figure BDA0002280567390000131
Based on this, if the original unit of the gaseous pollutant is a unit corresponding to a and the target unit is a unit corresponding to X, the conversion coefficient between the original unit and the target unit can be automatically determined as
Figure BDA0002280567390000132
If the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A, the conversion coefficient between the original unit and the target unit can be automatically determined as
Figure BDA0002280567390000133
Based on the above, the conversion coefficient of each gaseous pollutant in the target gaseous pollutant set can be automatically obtained.
It should be noted that, as described above, since unit conversion is usually performed on the same order of magnitude, that is, on the volume concentration ppm and the mass concentration mg/m which are on the same order of magnitude3Unit conversion between, or, ppb by volume, and, mass concentration, which are of the same orderμg/m3Unit conversion is performed between them, and therefore, the original unit and the target unit can be considered to be on the same order of magnitude. After the conversion coefficient between the original unit and the target unit is automatically obtained, the value corresponding to the target unit can be automatically determined according to the conversion coefficient and the value corresponding to the original unit, namely, the value of the gaseous pollutants in the original unit is converted into the value in the target unit. If the original unit and the target unit are not in the same order of magnitude, the conversion relation between different volume concentration units has a fixed coefficient, and the conversion relation between different mass concentration units also has a fixed coefficient, so that the units which do not belong to the same order of magnitude can be converted into the same order of magnitude according to the fixed coefficient. Exemplary, such as ppm by volume concentration and mg/m by mass concentration3On the same order of magnitude, the original unit is ppb, and the target unit is mg/m3. Since 1000ppb is 1ppm, the corresponding value of the gaseous contaminant at ppb can be automatically multiplied by 10-3The original unit can be converted from ppb to ppm, and the original unit and the target unit are in the same order of magnitude.
And 160, automatically converting the original units of the gaseous pollutants to target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set.
In an embodiment of the present invention, for each gaseous pollutant in the target gaseous pollutant set, the unit of the gaseous pollutant can be automatically converted from the original unit to the target unit according to the conversion coefficient of the gaseous pollutant. Based on the method, the unit of each gaseous pollutant in the target gaseous pollutant set can be converted into the target unit, namely, the unit of each gaseous pollutant in the target gaseous pollutant set is the target unit, so that the unit of each gaseous pollutant in the original gaseous pollutant set is the target unit, namely, the automatic unification of the unit of the original gaseous pollutant set is realized.
The units of the original gaseous pollutant set are automatically unified, and convenience can be provided for analyzing and processing subsequent gaseous pollutant data.
According to the technical scheme of the embodiment, different gaseous pollutants are composed of the chemical elements, the number of the chemical elements related to the gaseous pollutants is limited at present, and compared with the number of the gaseous pollutants, the number of the chemical elements is greatly reduced, so that a storage mode of storing the chemical elements and the relative atomic mass correlated storage corresponding to the chemical elements is adopted to replace a storage mode of storing correlated information in the prior art, and the data storage capacity is greatly reduced. Moreover, because the number of the chemical elements is fixed, even if new gaseous pollutants appear, the unit conversion between the original unit and the target unit which can be suitable for each gaseous pollutant can be developed at one time without modifying the source code or modifying the configuration information, so that the defect that new problems are caused by modifying the source code or modifying the configuration information does not exist, and correspondingly, the maintenance workload is reduced. In addition, because the source code or the configuration information does not need to be modified, automatic conversion among units is realized without manual intervention in the operation of executing unit conversion. And further, the efficiency of unit conversion is improved, and on the basis, the unit unified efficiency is also improved.
Optionally, on the basis of the above technical solution, automatically obtaining a target unit, and automatically determining, according to the target unit, a target gaseous pollutant set inconsistent with the target unit from the original gaseous pollutant set, specifically, the method may further include: each stored chemical element is automatically obtained, along with a relative atomic mass corresponding to each stored chemical element. Automatically storing each stored chemical element, and the relative atomic mass associations corresponding to each stored chemical element, to an element data table.
In an embodiment of the present invention, in order to reduce data storage and to avoid the risk of new problems that may be caused by modifying source code or modifying configuration information, each stored chemical element and the relative atomic mass corresponding to each stored chemical element may be automatically obtained. For each stored chemical element, the stored chemical element, and the relative atomic mass association corresponding to the stored chemical element, may be automatically stored to an element data table. Based on this, each stored chemical element, and the relative atomic mass associations corresponding to each stored chemical element, can be automatically stored to the element data table. That is, the element data table stores in association each stored chemical element and the relative atomic mass corresponding to each stored chemical element. Further, the element data table may be stored in a database.
It should be noted that, in the storage chemical element described herein, the constituent chemical elements described above are names of the chemical elements corresponding to different levels, that is, in the storage stage, the chemical elements may be referred to as storage chemical elements. In the stage of determining the conversion coefficient, the chemical elements may be referred to as constituent chemical elements, but both are substantially the same and both represent chemical elements.
The storage mode of storing the composition chemical elements and the relative atomic mass corresponding to the composition chemical elements in a correlated manner is adopted, so that the data storage capacity can be greatly reduced, the risk of new problems possibly caused by source code modification or configuration information modification can be avoided, the efficiency of unit conversion is improved, the maintenance workload is reduced, manual intervention is not needed, and the unit unified efficiency is improved.
Optionally, on the basis of the above technical solution, for each gaseous pollutant, automatically acquiring each constituent chemical element that constitutes the gaseous pollutant, and the number of elements corresponding to each constituent chemical element may specifically include: and automatically analyzing the chemical formula of the gaseous pollutants aiming at each gaseous pollutant to obtain each component chemical element forming the gaseous pollutants and the number of elements corresponding to each component chemical element.
In the embodiment of the present invention, for each gaseous pollutant, after obtaining the gaseous pollutant, the chemical formula of the gaseous pollutant may be automatically analyzed to obtain each constituent chemical element constituting the gaseous pollutant and the number of elements corresponding to each constituent chemical element.
For example, if the gaseous pollutant is NO, the chemical formula of the gaseous pollutant is automatically analyzed to obtain that the constituent chemical elements constituting the gaseous pollutant are N and O, where the number of the elements corresponding to the constituent chemical element N is 1, and the number of the elements corresponding to the constituent chemical element O is 1, that is, one constituent chemical element N and one constituent chemical element O may constitute the gaseous pollutant NO.
Optionally, on the basis of the above technical solution, the chemical formula of the gaseous pollutant is automatically analyzed for each gaseous pollutant, so as to obtain each constituent chemical element constituting the gaseous pollutant, and the number of elements corresponding to each constituent chemical element, which may specifically include: and analyzing the chemical formula of the gaseous pollutant automatically according to the chemical formula composition rule aiming at each gaseous pollutant to obtain each composition chemical element for forming the gaseous pollutant and the number of elements corresponding to each composition chemical element.
In the embodiment of the present invention, the chemical formula composition rule may indicate an arrangement manner of each constituent chemical element and the number of elements corresponding to each constituent chemical element. Each chemical formula may be considered to be formed by constituent units in a first arrangement order, each constituent unit may include constituent chemical elements and the number of elements corresponding to the constituent chemical elements, and the constituent chemical elements and the number of elements corresponding to the constituent chemical elements in each constituent unit will be arranged in a second arrangement order, typically with each constituent chemical element being followed by the number of elements corresponding to the constituent chemical element. Since the constituent chemical elements are understood to be letters and the number of elements is a number, the second arrangement order is that each letter is followed by the number corresponding to that letter. Based on this, if a chemical formula includes R constituent units, the chemical formula composition rule may be the number of elements constituting chemical element 1, the number of elements constituting chemical element 2, … …, the number of elements constituting chemical element R-1, the number of elements constituting chemical element R, and the number of elements constituting chemical element R.
After the chemical formula of the gaseous pollutant is obtained, the chemical formula of the gaseous pollutant can be automatically analyzed according to the chemical formula composition rule, so that each component chemical element for forming the gaseous pollutant and the number of elements corresponding to each component chemical element are obtained. That is to sayAnd automatically and sequentially identifying the composition chemical elements and the number of elements corresponding to the composition chemical elements in the chemical formula of the gaseous pollutant according to the arrangement sequence of the composition units in the chemical formula to obtain the composition chemical elements and the number of elements corresponding to the composition chemical elements. Exemplary, e.g., gaseous pollutants, are of the formula SO2. Automatically and sequentially identifying the chemical formula SO of the gaseous pollutants according to the arrangement sequence of all the composition units in the chemical formula2The number of the constituent chemical elements included in (1) and the number of the elements corresponding to the constituent chemical elements, that is, SO is sequentially recognized2Comprising the constituent chemical element S, the number of elements constituting the chemical element S being 1, the constituent chemical element O and the number of elements constituting the chemical element O being 2, on the basis of which the constituent gaseous pollutants SO can be determined2The constituent chemical elements of (1) are S and O, wherein the number of elements corresponding to the constituent chemical element S is 1, and the number of elements corresponding to the constituent chemical element O is 2.
Optionally, on the basis of the above technical solution, the target formula may be:
Figure BDA0002280567390000171
wherein M represents the relative molecular mass of the gaseous contaminant; a represents the volume concentration of the gaseous contaminant; t represents the gas temperature of the gaseous pollutant; ba represents the gas pressure of the gaseous contaminant; x represents the mass concentration of the gaseous contaminant.
Automatically determining a conversion coefficient between an original unit and a target unit according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit and the target unit of the gaseous pollutant, and specifically, the method may include: if the original unit of the gaseous pollutant is a unit corresponding to A and the target unit is a unit corresponding to X, automatically determining the conversion coefficient between the original unit and the target unit as
Figure BDA0002280567390000172
If the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A, automatically combining the original unit with the target unitThe conversion coefficient between is determined as
Figure BDA0002280567390000173
In an embodiment of the invention, the target formula may be a formula relating volume concentration units to mass concentration units. That is, the target formula may be:
Figure BDA0002280567390000174
where M may represent the relative molecular mass of the gaseous contaminant, A may represent the volumetric concentration of the gaseous contaminant, T may represent the gas temperature of the gaseous contaminant, Ba may represent the gas pressure of the gaseous contaminant, and X may represent the mass concentration of the gaseous contaminant. The unit of X may be mg/m3Or μ g/m3The unit of A may be ppm or ppb, the unit of T may be ℃ and the unit of Ba may be Pa or MPa.
If the original unit of the gaseous pollutant is a unit corresponding to A and the target unit is a unit corresponding to X, the conversion coefficient between the original unit and the target unit can be automatically determined to be
Figure BDA0002280567390000181
If the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A, the conversion coefficient between the original unit and the target unit can be automatically determined to be X according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit and the target unit of the gaseous pollutant
Figure BDA0002280567390000182
Optionally, on the basis of the technical scheme, the temperature T is 0 ℃; ba 101325 Pa.
In the embodiment of the present invention, if T is 0 ℃ and Ba is 101325Pa, then
Figure BDA0002280567390000183
I.e. can be represented in the standard conditionThe target formula between the volume concentration unit and the mass concentration unit of the gas substance. Accordingly, if the original unit of the gaseous pollutant is the unit corresponding to A and the target unit is the unit corresponding to X, the conversion coefficient between the original unit and the target unit can be automatically determined as
Figure BDA0002280567390000184
If the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A, the conversion coefficient between the original unit and the target unit can be automatically determined to be X according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit and the target unit of the gaseous pollutant
Figure BDA0002280567390000185
Optionally, on the basis of the above technical solution, automatically determining the relative molecular mass of the gaseous pollutant according to the relative atomic mass of each constituent chemical element and the number of elements of each constituent chemical element, specifically may include: and aiming at each chemical element, automatically calculating the product of the relative atomic mass of the chemical elements and the number of the chemical elements to obtain the product result of the chemical elements. And automatically calculating the sum of the product results of the chemical elements to obtain a summation result, and taking the summation result as the relative molecular mass of the gaseous pollutant.
In the embodiment of the present invention, after obtaining each constituent chemical element constituting the gaseous pollutant and the number of elements corresponding to each constituent chemical element, the relative molecular mass of the gaseous pollutant can be automatically determined according to each constituent chemical element constituting the gaseous pollutant and the number of elements corresponding to each constituent chemical element, specifically: aiming at each component chemical element, the product of the relative atomic mass of the component chemical element and the number of the elements of the component chemical element can be automatically calculated to obtain the product result of the component chemical element. Based on this, the product result of each constituent chemical element can be obtained. And automatically calculating the sum of the product results of the chemical elements to obtain a summation result, and taking the summation result as the relative molecular mass of the gaseous pollutant.
Illustratively, if the gaseous pollutant is CO, the constituent chemical elements that constitute the gaseous pollutant CO include C and O, wherein the relative atomic mass of the constituent chemical element C is 12, and the number of the constituent chemical elements C is 1; the relative atomic mass of the constituent chemical element O is 16, the number of constituent chemical elements O is 1, and the relative molecular mass m (co) of the gaseous pollutant is: m (co) 12+16 28.
It should be noted that the technical solution provided by the embodiment of the present invention can be implemented based on a NET framework, specifically: the method for determining the conversion coefficient between units according to the embodiment of the present invention can be implemented by calling a conversion method. Among other things, conversion methods may be used to achieve a determination of a conversion factor between an original unit and a target unit of a gaseous pollutant. The input parameters of the conversion process may include gaseous pollutants and raw units of gaseous pollutants, and the output parameters of the conversion process may include target units of gaseous pollutants. After determining the gaseous pollutants, the original units of the gaseous pollutants, and the target units of the gaseous pollutants, the conversion method may be invoked to perform the conversion method, and an output result may be returned, which may be a conversion coefficient between the original units and the target units. It should be noted that the expression form of the gaseous pollutant may be a chemical formula of the gaseous pollutant, and may also be other marks, which may be specifically set according to actual situations, and is not specifically limited herein. In addition, the data type of the input parameter may be a character string, and the data type of the output result may be a floating point number.
In order to enable the conversion method provided by the embodiment of the invention to be widely used for different application programs, to be compatible with different programming languages and to share information conveniently, the conversion method can be packaged into a Dynamic Link Library (DLL) and issued in a Dynamic Library Link Library manner. Among them, dynamically linked libraries are a way to implement the concept of shared method libraries whose extensions are ". dll", ". ocx" or ". drv" dynamically linked libraries provide a method that allows a process to invoke methods that do not belong to its executable code. The executable code of the method is located in a dynamic link library file that includes at least one method that has been compiled, linked and stored separately from the process in which they are used. In addition, dynamically linked libraries also facilitate sharing of data and resources.
Fig. 2 is a flowchart of another method for automatically unifying units of gaseous pollutants according to an embodiment of the present invention, which may be implemented by an apparatus for automatically unifying units of gaseous pollutants, where the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in a device, such as a computer, typically. As shown in fig. 2, the method specifically includes the following steps:
step 210, automatically obtaining each stored chemical element and the relative atomic mass corresponding to each stored chemical element.
Step 220, automatically storing each stored chemical element and the relative atomic mass association corresponding to each stored chemical element to an element data table.
And step 230, automatically acquiring a target unit, and automatically determining a target gaseous pollutant set inconsistent with the target unit from the original gaseous pollutant set according to the target unit, wherein the target gaseous pollutant set comprises at least one gaseous pollutant.
And 240, analyzing the chemical formula of the gaseous pollutant according to the chemical formula composition rule automatically aiming at each gaseous pollutant to obtain each composition chemical element for forming the gaseous pollutant and the number of elements corresponding to each composition chemical element.
And step 250, automatically determining the relative atomic mass of each stored chemical element according to each stored chemical element, and taking the relative atomic mass of each stored chemical element as the relative atomic mass of each constituent chemical element.
And step 260, automatically calculating the product of the relative atomic mass of the chemical elements and the number of the chemical elements to obtain the product result of the chemical elements.
And 270, automatically calculating the sum of the product results of all the chemical elements to obtain a summation result, and taking the summation result as the relative molecular mass of the gaseous pollutants.
Step 280, automatically determining a conversion coefficient between the original unit and the target unit according to the target formula, the relative molecular mass of the gaseous pollutant, the original unit and the target unit of the gaseous pollutant.
And 290, automatically converting the original units of the gaseous pollutants to target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set.
According to the technical scheme of the embodiment, different gaseous pollutants are composed of the chemical elements, the number of the chemical elements related to the gaseous pollutants is limited at present, and compared with the number of the gaseous pollutants, the number of the chemical elements is greatly reduced, so that a storage mode of storing the chemical elements and the relative atomic mass correlated storage corresponding to the chemical elements is adopted to replace a storage mode of storing correlated information in the prior art, and the data storage capacity is greatly reduced. Moreover, because the number of the chemical elements is fixed, even if new gaseous pollutants appear, the unit conversion between the original unit and the target unit which can be suitable for each gaseous pollutant can be developed at one time without modifying the source code or modifying the configuration information, so that the defect that new problems are caused by modifying the source code or modifying the configuration information does not exist, and correspondingly, the maintenance workload is reduced. In addition, because the source code or the configuration information does not need to be modified, automatic conversion among units is realized without manual intervention in the operation of executing unit conversion. And further, the efficiency of unit conversion is improved, and on the basis, the unit unified efficiency is also improved.
Fig. 3 is a schematic structural diagram of a unit automatic unification device for gaseous pollutants according to an embodiment of the present invention, which may be suitable for implementing a situation of improving unit conversion efficiency, reducing maintenance workload, and improving unit unification efficiency without manual intervention, and the device may be implemented in a software and/or hardware manner, and may be configured in an apparatus, such as a computer. As shown in fig. 3, the apparatus specifically includes:
and a target gaseous pollutant set determining module 310, configured to automatically acquire the target unit, and automatically determine, according to the target unit, a target gaseous pollutant set inconsistent with the target unit from the original gaseous pollutant set, where the target gaseous pollutant set includes at least one gaseous pollutant.
The composition information obtaining module 320 is configured to, for each gaseous pollutant, automatically obtain each composition chemical element that constitutes the gaseous pollutant and the number of elements corresponding to each composition chemical element.
And a relative atomic mass determination module 330, configured to, for each constituent chemical element, automatically search a pre-stored element data table for a stored chemical element that is consistent with the constituent chemical element, and determine a relative atomic mass of the constituent chemical element according to the relative atomic mass of the stored chemical element.
And the relative molecular mass determination module 340 is configured to automatically determine the relative molecular mass of the gaseous pollutant according to the relative atomic mass of each constituent chemical element and the number of elements of each constituent chemical element.
A conversion factor determining module 350 for automatically determining a conversion factor between the original unit and the target unit according to the target formula, the relative molecular mass of the gaseous pollutant, the original unit and the target unit of the gaseous pollutant.
And a unit automatic unifying module 360, configured to automatically convert the original unit of each gaseous pollutant to a target unit according to each conversion coefficient, so as to automatically unify the units of the original gaseous pollutant set.
According to the technical scheme of the embodiment, different gaseous pollutants are composed of the chemical elements, the number of the chemical elements related to the gaseous pollutants is limited at present, and compared with the number of the gaseous pollutants, the number of the chemical elements is greatly reduced, so that a storage mode of storing the chemical elements and the relative atomic mass correlated storage corresponding to the chemical elements is adopted to replace a storage mode of storing correlated information in the prior art, and the data storage capacity is greatly reduced. Moreover, because the number of the chemical elements is fixed, even if new gaseous pollutants appear, the unit conversion between the original unit and the target unit which can be suitable for each gaseous pollutant can be developed at one time without modifying the source code or modifying the configuration information, so that the defect that new problems are caused by modifying the source code or modifying the configuration information does not exist, and correspondingly, the maintenance workload is reduced. In addition, because the source code or the configuration information does not need to be modified, automatic conversion among units is realized without manual intervention in the operation of executing unit conversion. And further, the efficiency of unit conversion is improved, and on the basis, the unit unified efficiency is also improved.
Optionally, on the basis of the above technical solution, the apparatus may further include:
and the storage information acquisition module is used for automatically acquiring each storage chemical element and the relative atomic mass corresponding to each storage chemical element.
And the association storage module is used for automatically associating and storing each storage chemical element and the relative atomic mass corresponding to each storage chemical element to the element data table.
Optionally, the composition information obtaining module 320 may specifically include:
and the composition information acquisition submodule is used for automatically analyzing the chemical formula of the gaseous pollutants aiming at each gaseous pollutant to obtain each composition chemical element for forming the gaseous pollutants and the number of elements corresponding to each composition chemical element.
Optionally, the forming of the information obtaining sub-module may specifically include:
and the composition information acquisition unit is used for automatically analyzing the chemical formula of the gaseous pollutant according to the chemical formula composition rule aiming at each gaseous pollutant to obtain each composition chemical element for forming the gaseous pollutant and the number of elements corresponding to each composition chemical element.
Optionally, on the basis of the above technical solution, the target formula may be:
Figure BDA0002280567390000231
wherein M represents the relative molecular mass of the gaseous contaminant; a represents the volume concentration of the gaseous contaminant; t represents the gas temperature of the gaseous pollutant; ba represents the gas pressure of the gaseous contaminant; x represents the mass concentration of the gaseous contaminant.
The conversion coefficient determining module 350 may specifically include:
a first conversion coefficient determination sub-module for automatically determining a conversion coefficient between the original unit and the target unit as a conversion coefficient if the original unit of the gaseous pollutant is a unit corresponding to A and the target unit is a unit corresponding to X
Figure BDA0002280567390000232
A second conversion coefficient determination submodule for automatically determining a conversion coefficient between the original unit and the target unit as a unit if the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A
Figure BDA0002280567390000233
Optionally, on the basis of the technical scheme, the temperature T is 0 ℃; ba 101325 Pa.
Optionally, on the basis of the above technical solution, the relative molecular mass determining module 330 may specifically include:
and the product result obtaining submodule is used for automatically calculating the product of the relative atomic mass of the constituent chemical elements and the number of the elements of the constituent chemical elements aiming at each constituent chemical element to obtain the product result of the constituent chemical elements.
And the relative molecular mass determination submodule is used for automatically calculating the sum of the product results of the chemical elements to obtain a summation result, and taking the summation result as the relative molecular mass of the gaseous pollutant.
The unit automatic unification device for the gaseous pollutants configured in the equipment, provided by the embodiment of the invention, can execute the unit automatic unification method for the gaseous pollutants applied to the equipment, provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. The device shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention. As shown in fig. 4, the apparatus provided by the embodiment of the present invention includes a processor 31, a memory 32, an input device 33, and an output device 34; the number of the processors 31 in the device may be one or more, and one processor 31 is taken as an example in fig. 4; the processor 31, the memory 32, the input device 33 and the output device 34 in the apparatus may be connected by a bus or other means, which is exemplified in fig. 4.
The memory 32 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the unit automatic unification method of gaseous pollutants in the embodiments of the present invention (for example, the target gaseous pollutant set determination module 310, the composition information acquisition module 320, the relative atomic mass determination module 330, the relative molecular mass determination module 340, the conversion coefficient determination module 350, and the unit automatic unification module 360 in the unit automatic unification device of gaseous pollutants). The processor 31 executes software programs, instructions and modules stored in the memory 32 to perform various functional applications and data processing, such as implementing the unit automation unified method for gaseous pollutants applied to equipment provided by the embodiments of the present invention.
The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 32 may further include memory located remotely from the processor 31, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 33 may be used to receive numeric or character information input by a user to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 34 may include a display device such as a display screen.
Of course, it will be understood by those skilled in the art that the processor may also implement the solution of the method for automatically unifying the gaseous pollutants of a unit applied to the equipment provided by any of the embodiments of the present invention. The hardware structure and the function of the device can be explained with reference to the contents of the embodiment.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for automatically unifying units of gaseous pollutants as provided by embodiments of the present invention, where the method includes:
and automatically acquiring a target unit, and automatically determining a target gaseous pollutant set inconsistent with the target unit from the original gaseous pollutant set according to the target unit, wherein the target gaseous pollutant set comprises at least one gaseous pollutant.
And automatically acquiring each component chemical element forming the gaseous pollutants and the number of elements corresponding to each component chemical element aiming at each gaseous pollutant.
And automatically searching the stored chemical elements consistent with the composition chemical elements from a prestored element data table aiming at each composition chemical element, and determining the relative atomic mass of the composition chemical elements according to the relative atomic mass of the stored chemical elements.
And automatically determining the relative molecular mass of the gaseous pollutants according to the relative atomic mass of each component chemical element and the number of the elements of each component chemical element.
And automatically determining the conversion coefficient between the original unit and the target unit according to the target formula, the relative molecular mass of the gaseous pollutant, the original unit and the target unit of the gaseous pollutant.
And automatically converting the original units of the gaseous pollutants into target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio frequency, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, such as C, Python, and the like, or combinations thereof. The program code may be executed on a computer or server.
Of course, the embodiments of the present invention provide a computer-readable storage medium, whose computer-executable instructions are not limited to the method operations described above, but can also perform operations related to a method for automatically unifying gaseous pollutants of a device provided in any of the embodiments of the present invention. The description of the storage medium is explained with reference to the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A method for automatically unifying units of gaseous pollutants, comprising:
automatically acquiring a target unit, and automatically determining a target gaseous pollutant set inconsistent with the target unit from an original gaseous pollutant set according to the target unit, wherein the target gaseous pollutant set comprises at least one gaseous pollutant;
automatically acquiring each component chemical element forming the gaseous pollutants and the number of elements corresponding to each component chemical element for each gaseous pollutant;
for each chemical element, automatically searching a stored chemical element consistent with the chemical element from a prestored element data table, and automatically determining the relative atomic mass of the chemical element according to the relative atomic mass of the stored chemical element;
automatically determining the relative molecular mass of the gaseous pollutants according to the relative atomic mass of each of the constituent chemical elements and the number of the elements of each of the constituent chemical elements;
automatically determining a conversion factor between the original unit and the target unit according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit of the gaseous pollutant and the target unit;
automatically converting the original units of the gaseous pollutants into the target units according to the conversion coefficients so as to automatically unify the units of the original gaseous pollutant set;
the target formula is:
Figure FDA0002883469310000011
wherein M represents the relative molecular mass of the gaseous contaminant; a represents the volume concentration of the gaseous contaminant; t represents the gas temperature of the gaseous pollutant; ba represents the gas pressure of the gaseous contaminant; x represents the mass concentration of the gaseous contaminant;
the automatically determining a conversion factor between the original units and the target units from a target formula, a relative molecular mass of the gaseous contaminant, the original units of the gaseous contaminant, and the target units, comprising:
if the original unit of the gaseous pollutant is a unit corresponding to A and the target unit is a unit corresponding to X, automatically determining a conversion coefficient between the original unit and the target unit as
Figure FDA0002883469310000021
If the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A, automatically determining a conversion coefficient between the original unit and the target unit as
Figure FDA0002883469310000022
2. The method of claim 1, wherein prior to automatically obtaining a target unit and automatically determining from the target unit a target set of gaseous pollutants inconsistent with the target unit from the original set of gaseous pollutants, further comprising:
automatically acquiring each stored chemical element and the relative atomic mass corresponding to each stored chemical element;
automatically storing each of the stored chemical elements and the relative atomic mass associations corresponding to each of the stored chemical elements to an element data table.
3. The method according to claim 1 or 2, wherein the automatically acquiring, for each of the gaseous pollutants, each constituent chemical element that constitutes the gaseous pollutant, and the number of elements corresponding to each of the constituent chemical elements comprises:
and automatically analyzing the chemical formula of the gaseous pollutant aiming at each gaseous pollutant to obtain each component chemical element forming the gaseous pollutant and the number of elements corresponding to each component chemical element.
4. The method of claim 3, wherein automatically resolving the chemical formula of the gaseous pollutant for each of the gaseous pollutants to obtain each constituent chemical element that constitutes the gaseous pollutant, and the number of elements corresponding to each constituent chemical element comprises:
and analyzing the chemical formula of the gaseous pollutant automatically according to the chemical formula composition rule aiming at each gaseous pollutant to obtain each composition chemical element for forming the gaseous pollutant and the number of elements corresponding to each composition chemical element.
5. The method of claim 1, wherein T ═ 0 ℃; ba 101325 Pa.
6. The method of claim 1 or 2, wherein automatically determining the relative molecular mass of the gaseous pollutant from the relative atomic mass of each of the constituent chemical elements and the elemental count of each of the constituent chemical elements comprises:
automatically calculating the product of the relative atomic mass of each chemical element and the number of the chemical elements to obtain the product result of the chemical elements;
and automatically calculating the sum of the product results of all the chemical elements to obtain a summation result, and taking the summation result as the relative molecular mass of the gaseous pollutant.
7. An automatic unit unification device for gaseous pollutants, comprising:
the system comprises a target gaseous pollutant set determining module, a data processing module and a data processing module, wherein the target gaseous pollutant set determining module is used for automatically acquiring a target unit and automatically determining a target gaseous pollutant set inconsistent with the target unit from an original gaseous pollutant set according to the target unit, and the target gaseous pollutant set comprises at least one gaseous pollutant;
the composition information acquisition module is used for automatically acquiring each composition chemical element for forming the gaseous pollutants and the number of elements corresponding to each composition chemical element for each gaseous pollutant;
a relative atomic mass determination module, configured to, for each of the constituent chemical elements, automatically search a pre-stored element data table for a stored chemical element that is consistent with the constituent chemical element, and determine a relative atomic mass of the constituent chemical element according to the relative atomic mass of the stored chemical element;
the relative molecular mass determination module is used for automatically determining the relative molecular mass of the gaseous pollutant according to the relative atomic mass of each chemical element and the number of the chemical elements;
a conversion coefficient determination module for automatically determining a conversion coefficient between the original unit and the target unit according to a target formula, the relative molecular mass of the gaseous pollutant, the original unit of the gaseous pollutant and the target unit;
the unit automatic unification module is used for automatically converting the original units of the gaseous pollutants into the target units according to the conversion coefficients so as to enable the units of the original gaseous pollutant set to be automatically unified;
the target formula is:
Figure FDA0002883469310000031
wherein M represents the relative molecular mass of the gaseous contaminant; a represents the volume concentration of the gaseous contaminant; t represents the gas temperature of the gaseous pollutant; ba watchIndicating the gas pressure of the gaseous contaminant; x represents the mass concentration of the gaseous contaminant;
the conversion coefficient determination module includes:
a first conversion coefficient determination sub-module for automatically determining a conversion coefficient between the original unit and the target unit as a conversion coefficient if the original unit of the gaseous pollutant is a unit corresponding to A and the target unit is a unit corresponding to X
Figure FDA0002883469310000041
A second conversion coefficient determination sub-module for automatically determining a conversion coefficient between the original unit and the target unit as a unit corresponding to A if the original unit of the gaseous pollutant is a unit corresponding to X and the target unit is a unit corresponding to A
Figure FDA0002883469310000042
8. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201911139200.4A 2019-11-20 2019-11-20 Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium Active CN111145840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911139200.4A CN111145840B (en) 2019-11-20 2019-11-20 Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911139200.4A CN111145840B (en) 2019-11-20 2019-11-20 Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium

Publications (2)

Publication Number Publication Date
CN111145840A CN111145840A (en) 2020-05-12
CN111145840B true CN111145840B (en) 2021-05-11

Family

ID=70517183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911139200.4A Active CN111145840B (en) 2019-11-20 2019-11-20 Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium

Country Status (1)

Country Link
CN (1) CN111145840B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479083A (en) * 2010-11-26 2012-05-30 英业达股份有限公司 Value computing system and method by combining unit conversion
CN107239436A (en) * 2017-05-31 2017-10-10 腾讯科技(深圳)有限公司 A kind of data transfer device and device
CN107884322A (en) * 2017-10-30 2018-04-06 重庆广睿达科技有限公司 The dynamic calibration method and monitor that a kind of chemical constituent for eliminating particulate matter influences
CN108181432A (en) * 2017-12-28 2018-06-19 清华大学 Pollutant of vehicle exhaust full constituent emission test method
CN109799549A (en) * 2019-04-01 2019-05-24 中国气象局沈阳大气环境研究所 Gaseous pollutant concentration column conversion method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11127487B2 (en) * 2018-04-12 2021-09-21 Arizona Board Of Regents On Behalf Of Arizona State University Systems and methods for cyber-enabled structure elucidation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479083A (en) * 2010-11-26 2012-05-30 英业达股份有限公司 Value computing system and method by combining unit conversion
CN107239436A (en) * 2017-05-31 2017-10-10 腾讯科技(深圳)有限公司 A kind of data transfer device and device
CN107884322A (en) * 2017-10-30 2018-04-06 重庆广睿达科技有限公司 The dynamic calibration method and monitor that a kind of chemical constituent for eliminating particulate matter influences
CN108181432A (en) * 2017-12-28 2018-06-19 清华大学 Pollutant of vehicle exhaust full constituent emission test method
CN109799549A (en) * 2019-04-01 2019-05-24 中国气象局沈阳大气环境研究所 Gaseous pollutant concentration column conversion method and device

Also Published As

Publication number Publication date
CN111145840A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
Udeagha et al. Revisiting trade and environment nexus in South Africa: fresh evidence from new measure
CN113110825B (en) Method and device for converting interfaces of small programs
US20190278572A1 (en) Representing software with an abstract code graph
GB2536084A (en) A system and method for accessibility assessment of a web application
CN108959095B (en) Method for verifying XML document based on XML Schema
CN114035805A (en) Code conversion method, apparatus, medium, and device for pre-compiler
CN109767024B (en) Method and device for predicting quantity of components, electronic equipment and storage medium
CN113504900A (en) Programming language conversion method and device
CN113051163A (en) Unit testing method, unit testing device, electronic equipment and storage medium
CN111145840B (en) Method, device and equipment for automatically unifying units of gaseous pollutants and storage medium
CN110941655B (en) Data format conversion method and device
US20160110191A1 (en) Staged points-to analysis for large code bases
CN114217848A (en) Dependency relationship processing method and device, electronic equipment and computer storage medium
JP2018073054A (en) Object analyzing device, object analyzing method, and program
CN117215944A (en) Automatic evaluation method for large model code generation capacity and related products
JP2008269515A (en) Method for dynamically generating image layout by parameter
US20090328020A1 (en) Interface optimization in a closed system
CN114138659A (en) Test case processing method and system
CN114611500A (en) Expression processing method and device, electronic equipment and computer readable storage medium
US20090222471A1 (en) Database exploration for building wireless component applications
CN115686621B (en) Rule engine rule script generation method and device
CN112100086B (en) Software automation test method, device, equipment and computer readable storage medium
US20230350792A1 (en) System, method, and computer program for development driven test automation
Kawuma et al. Identification of promoted eclipse unstable interfaces using clone detection technique
CN114416531A (en) Test data generation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant