Compound analysis method, device, computer equipment and storage medium

By loading the compound structure file and traversing the associated data, determining and fusing the target atoms of cations and anions, the problem of inaccurate resolution of ionic compounds in traditional methods is solved, and the accurate analysis of compounds and correct characterization of chemical structures is achieved.

CN112309508BActive Publication Date: 2024-11-15SUZHOU CHUANGTENG SOFTWARE CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202011201273.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-02
Publication Date
2024-11-15
Estimated Expiration
2040-11-02

AI Technical Summary

Technical Problem

When analyzing the structural files of ionic compounds in traditional methods, the ionic compounds cannot be accurately reduced, resulting in the inability to accurately characterize their chemical structure.

Method used

By loading the structure file of the compound, traverse the correlation data of each atom, determine the target atom in the atoms of the anion based on the correlation data of the cation, and fuse the cation with the anion to generate the correct compound structure.

Benefits of technology

The accurate analysis of ionic compounds is achieved, the error of analyzing cations and anions into various substances is avoided, and the accurate chemical structural formula is provided, laying the foundation for subsequent research.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112309508B_ABST
    Figure CN112309508B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for analyzing a compound, by loading a structure file of the compound, the structure file includes each atom of the compound and associated data, the compound includes anions and cations; traversing the associated data of each atom in the compound, according to the associated data corresponding to the cation, determining the target atom connected to the cation in each atom of the anion, it can be seen that the cation is not a substance that exists alone, but needs to be connected to an atom in the anion as part of the compound, so the target atom is further connected to the cation, and the cation and the anion are fused to obtain the compound. In this way, the compound is correctly analyzed from the structure file of the compound, avoiding the analysis of multiple substances from the structure file of the compound, and providing an accurate chemical structure for the analysis work of subsequent researchers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer-aided technology, and in particular to a method, apparatus, computer device and storage medium for analyzing a compound. Background Art

[0002] With the application and popularization of computer technology, computer-aided design systems have been used in compound design, compound analysis, chemical reactions, etc. New compounds can be obtained through synthesis reactions. Since synthesis reactions are the reaction process and reaction mode in which multiple substances undergo chemical reactions to produce only one chemical product, the compound includes different atoms or ions.

[0003] In order to clarify the performance of new compounds, researchers need to conduct in-depth research on new compounds. However, when analyzing the structure files of ionic compounds in traditional methods, ionic compounds will be analyzed into two or more compounds. It can be seen that there is a technical problem in traditional technology that cannot accurately reduce ionic compounds. Summary of the invention

[0004] Based on this, it is necessary to provide a compound analysis method, device, computer equipment and storage medium that can accurately reduce ionic compounds in response to the above technical problems.

[0005] A method for analyzing a compound, comprising:

[0006] Loading a structure file of a compound, wherein the structure file includes atoms of the compound and associated data, wherein the associated data is used to characterize the association relationship between atoms in the compound, wherein the compound includes anions and cations, wherein the cations are atoms or atomic groups carrying positive charge, and the anions are atoms or atomic groups carrying negative charge;

[0007] Traversing the association data of each atom in the compound, and determining a target atom connected to the cation among the atoms of the anion according to the association data corresponding to the cation;

[0008] The target atom is connected to the cation, and the cation and the anion are fused to obtain the compound.

[0009] In one embodiment, the cation is a metal ion, and the target atom is a negatively charged atom in the anion; connecting the target atom with the cation and fusing the cation and the anion to obtain the compound comprises:

[0010] The metal ion is connected to the negatively charged atom, and the metal ion is added to the structural formula object of the anion to generate the structural formula object of the ionic compound.

[0011] In one embodiment, the method of generating the associated data corresponding to the cation includes:

[0012] Establishing an association relationship between the cation and the target atom, and obtaining the identifier of the cation and the identifier of the target atom;

[0013] According to the identification of the cation and the identification of the target atom, the associated data corresponding to the cation is generated and saved in the structure file of the compound.

[0014] In one embodiment, the establishing the association relationship between the cation and the target atom and obtaining the identifier of the cation and the identifier of the target atom includes:

[0015] In response to the selection operation of the cation, an identifier of the cation is obtained, and an associated auxiliary component is generated at the position of the cation, wherein one end of the associated auxiliary component is connected to the cation;

[0016] In response to the connection operation between the other end of the association auxiliary component and the target atom, an identifier of the target atom is obtained.

[0017] In one embodiment, the associated auxiliary component is a line segment component; generating the associated auxiliary component at the position of the cation, one end of the associated auxiliary component being connected to the cation, comprises:

[0018] Displaying a line segment component at the position of the cation, wherein one end of the line segment component is connected to the cation;

[0019] The step of responding to the connection operation between the other end of the association auxiliary component and the target atom comprises:

[0020] The other end of the line segment component is moved to the position of the target atom, and the target atom is connected to the other end of the line segment component.

[0021] In one embodiment, the establishing the association relationship between the cation and the target atom includes:

[0022] Loading the original structure file of the compound, showing the cation and the anion, and the cation and the anion are separated from each other;

[0023] The cation is connected to the negatively charged atom in the anion by using an ion association tool to generate an association relationship between the cation and the negatively charged atom.

[0024] In one embodiment, before loading the original structure file of the compound, the method further comprises:

[0025] Instantiating a canvas and a toolbar, wherein the canvas is used to edit and display a chemical structure formula, and the toolbar displays the ion association tool;

[0026] The loading of the original structure file of the compound comprises:

[0027] The original structure file of the compound is loaded through the canvas.

[0028] A compound analysis device, comprising:

[0029] A loading module, used to load a structure file of a compound, wherein the structure file includes atoms of the compound and associated data, wherein the associated data is used to characterize the association relationship between atoms in the compound, wherein the compound includes anions and cations, wherein the cations are atoms carrying positive charge, and the anions are atoms carrying negative charge;

[0030] A traversal module, used for traversing the association data of each atom in the compound, and determining a target atom connected to the cation among the atoms of the anion according to the association data;

[0031] A fusion module is used to connect the target atom with the cation and fuse the cation and the anion to obtain the compound.

[0032] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the method steps in any of the above embodiments when executing the computer program.

[0033] A computer-readable storage medium stores a computer program, which implements the method steps in any of the above embodiments when executed by a processor.

[0034] The above-mentioned analysis method, device, computer equipment and storage medium of the compound are as follows: by loading the structure file of the compound, the structure file includes each atom and associated data of the compound, and the compound includes anions and cations; traversing the associated data of each atom in the compound, and determining the target atom connected to the cation among each atom of the anion according to the associated data corresponding to the cation, it can be seen that the cation is not a substance that exists alone, but needs to be connected to an atom in the anion as part of the compound, so the target atom is further connected to the cation, and the cation and the anion are fused to obtain the compound. In this way, the compound is correctly analyzed from the structure file of the compound, avoiding the analysis of multiple substances from the structure file of the compound, and providing an accurate chemical structure for the subsequent analysis work of researchers. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1a is a schematic flow chart of a method for analyzing a compound in an embodiment;

[0036] Figure 1b A schematic diagram of a structure file in an embodiment;

[0037] Figure 2 is a flowchart of steps for generating associated data in one embodiment;

[0038] Figure 3 Schematic diagram of the process of step S210 in one embodiment;

[0039] Figure 4a is a flowchart of steps for generating associated data in one embodiment;

[0040] Figure 4b is a schematic diagram of a line segment component in one embodiment;

[0041] Figure 5a is a schematic diagram of a flow chart of step S210 in another embodiment;

[0042] Figure 5b is a schematic diagram of the structure of a compound in one embodiment;

[0043] Figure 6 is a flowchart of steps for generating associated data in another embodiment;

[0044] Figure 7 is a schematic flow chart of a method for analyzing a compound in an embodiment;

[0045] Figure 8 is a structural block diagram of a compound analysis device in one embodiment;

[0046] Fig. 9FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In one embodiment, Figure 1a As shown, a method for analyzing a compound is provided, comprising the following steps:

[0049] S110. Load the structure file of the compound.

[0050] Among them, a compound is a pure substance composed of two or more different elements. Different compounds have different chemical formula structures, and compounds include covalent compounds and ionic compounds. A structure file is a data table used to store the structural relationship and atomic properties of each atom in a compound. The atomic property can be the element name corresponding to the atom, or the atomic identifier, etc. The structure file includes each atom of the compound and associated data. The associated data is used to characterize the association relationship between the atoms in the compound. The compound includes anions and cations. Cations are atoms or atomic groups that carry positive charges, and anions are atoms or atomic groups that carry negative charges.

[0051] Specifically, the structure file of the compound can be obtained from a local computer, or from a computer device connected to a computer network, and the structure file of the compound can be loaded into the local computer and opened. For example, see Figure 1b The structure file includes the element name of each atom in the compound (oxygen O, carbon C, cesium Cs), and the relationship between atoms in the compound can be identified by data pairs. For example, the associated data (ionicPairs) can be a data pair of the atom ID and the atom ID to which it is connected ({"atom_id":2, "pairIons":[4,5]}), 2 can be the ID of a cation (atom_id), and [4,5] is the ID of the atom associated with the cation. Since the number of atoms connected to any atom in the compound can be multiple, pairIons is represented by an array, that is, the ID set of the atoms that need to be connected.

[0052] S120, traversing the association data of each atom in the compound, and determining the target atom connected to the cation among the atoms of the anion according to the association data corresponding to the cation.

[0053] Among them, the association data corresponding to the cation is used to characterize the connection relationship or association relationship between the cation and other atoms. Specifically, the structural relationship of each atom and the association data between each atom are stored in the structure file of the compound. The association data of each atom in the compound are traversed, and according to the association data corresponding to the cation, it is determined that the cation is not an independently existing substance, and the cation and the anion belong to a compound together. And further, according to the association data corresponding to the cation, it is determined which atom in the anion the cation should be connected to, that is, the target atom connected to the cation is determined among the atoms of the anion.

[0054] S130, connecting the target atom with the cation, and fusing the cation and the anion to obtain a compound.

[0055] Specifically, after determining the target atom connected to the cation among the atoms of the anion, indicating that there is a chemical bond between the target atom and the cation, the target atom is connected to the cation, thereby fusing the cation and the anion to obtain a synthesized compound, thereby parsing the correct compound from the structure file, that is, parsing the cation and the anion as one compound, rather than parsing two pure substances or two compounds from the structure file.

[0056] In the above-mentioned analysis method of the compound, the structure file of the compound is loaded, and the structure file includes each atom and associated data of the compound, and the compound includes anions and cations; the associated data of each atom in the compound is traversed, and the target atom connected to the cation is determined among the atoms of the anion according to the associated data corresponding to the cation. It can be seen that the cation is not a substance that exists alone, but needs to be connected to an atom in the anion as part of the compound, so the target atom is further connected to the cation, and the cation and the anion are fused to obtain the compound. In this way, the compound is correctly analyzed from the structure file of the compound, avoiding the analysis of multiple substances from the structure file of the compound, and providing an accurate chemical structure formula for the subsequent analysis work of researchers.

[0057] In one embodiment, the cation is a metal ion, and the target atom is a negatively charged atom in the anion. Connecting the target atom with the cation and fusing the cation and the anion to obtain a compound includes: connecting the metal ion with the negatively charged atom, adding the metal ion to the structural formula object of the anion, and generating the structural formula object of the ionic compound.

[0058] Among them, the compound can be an ionic compound, which is a compound composed of cations and anions, and is essentially a compound bonded by Coulomb force. It can be seen that ionic compounds are compounds formed by ionic bonds, which are formed by electron transfer (the one who loses electrons is a cation, and the one who gains electrons is an anion), that is, a chemical bond formed between cations and anions due to electrostatic interaction. Connecting the target atom in the anion with the cation is intended to characterize the existence of an ionic bond between the target atom and the cation, and the anion and the cation are not two independent substances.

[0059] Specifically, by loading the structure file of the ionic compound, a metal ion carrying a positive charge and an anion carrying a negative charge can be obtained, and the anion corresponds to a structural formula object. The anion includes multiple atoms, and it is necessary to determine the atom connected to the metal ion among the multiple atoms of the anion. The metal ion has associated data, and the associated data of the metal ion defines the target atom connected to the metal ion. Therefore, the associated data of each atom in the compound is traversed, and according to the associated data of the metal ion, it is determined which atom in the anion the metal ion should be connected to. The metal ion carries positive electricity, so the target atom connected to the metal ion determined by traversing the associated data of each atom should be an atom carrying negative electricity in the anion. There is an ionic bond between the metal ion and the atom carrying negative electricity in the anion, then the metal ion is connected to the atom carrying negative electricity in the anion, and then the metal ion is added to the structural formula object of the anion to generate the structural formula object of the ionic compound.

[0060] In this embodiment, by connecting metal ions with negatively charged atoms and adding metal ions to the structural formula object of anions, a structural formula object of ionic compounds is generated. This enables the ionic compounds to be correctly parsed into one compound, and the anions and metal ions are not parsed into two substances. By obtaining the correct compound, an accurate chemical formula is provided for subsequent chemical reaction calculations.

[0061] In one embodiment, Figure 2 As shown, the method for generating the associated data corresponding to the cation includes the following steps:

[0062] S210, establishing an association relationship between the cation and the target atom, and obtaining the identifier of the cation and the identifier of the target atom.

[0063] S220 . Generate association data corresponding to the cation according to the identification of the cation and the identification of the target atom, and save the data in the structure file of the compound.

[0064] Wherein, mark is used to uniquely represent the serial number of each atom in the compound. When ionic compound is parsed in the conventional technology, ionic compound is parsed into two substances, and the inventor, after analysis, finds that due to the connection relationship between the negatively charged atoms in cation and anion, there is a problem, and it is necessary to strengthen the connection of the negatively charged atoms in cation and anion, therefore, by establishing the relationship between the negatively charged atoms in cation and anion, the associated data showing the chemical bond between the negatively charged atoms in cation and anion is generated, so that the compound as a whole of cation and anion is used when parsing. Because each atom in the compound has a mark, the corresponding associated data of the cation can be formed by the mark of the cation and the mark of the atom carrying negative electricity in the anion. Specifically, the cation carries positive electricity, and it is necessary to connect with the atom carrying negative electricity, to form a corresponding chemical bond (such as ionic bond), and the atom carrying negative electricity in the anion can be used as the target atom, and the associated relationship between the cation and the target atom is established, indicating the chemical bond between the two. By establishing the association relationship between the cation and the target atom, the identification of the cation and the identification of the target atom can be obtained, so that the identification of the cation and the identification of the target atom can be used to generate a data pair, that is, the association data corresponding to the cation is saved in the form of a data pair, for example, {"ionicPairs":[{"atom_id":1,"pairIons":[6]},{"atom_id":6,"pairIons":[1]}]}, pairIons represents the association attribute of the atom (which can be understood as the association data of the atom). From the association attribute of the atom, it can be known that the atom that has an association relationship with the atom identified as 1 is the atom identified as 6, and the atom that has an association relationship with the atom identified as 6 is the atom identified as 1. It can be seen that the association data corresponding to the cation is used to characterize the association relationship between the cation and the target atom. In order to parse the cation and the anion into a compound, the association data corresponding to the cation needs to be used during parsing. Therefore, the association data corresponding to the cation is saved in the structure file of the compound.

[0065] In one embodiment, Figure 3 As shown, establishing an association relationship between a cation and a target atom, and obtaining the identification of the cation and the identification of the target atom include the following steps:

[0066] S310, in response to the selection operation of the cation, obtaining the identifier of the cation, and generating an associated auxiliary component at the position of the cation, wherein one end of the associated auxiliary component is connected to the cation.

[0067] S320: In response to the connection operation between the other end of the associated auxiliary component and the target atom, obtain the identifier of the target atom.

[0068] Wherein, the association auxiliary component is used to characterize the chemical bond between the cation and the target atom. When the compound is an ionic compound, the association auxiliary component is used to characterize the ionic bond between the cation and the target atom. Specifically, the display interface of the drawn compound displays cations and anions, and the negatively charged atom in the anion is the target atom. The cation is selected by single-clicking, double-clicking, dragging, etc., and the identification of the cation is obtained in response to the selection operation of the cation. The association auxiliary component for characterizing the chemical bond is displayed at the position of the cation, and one end of the association auxiliary component is connected to the cation. After the association auxiliary component is generated at the position of the cation, it is necessary to determine which atom the other end of the association auxiliary component is connected to, and the association data is a data pair consisting of the identification of the cation and the identification of the target atom, therefore, the target atom is selected, and the connection operation of the other end of the association auxiliary component with the target atom is obtained, and the identification of the target atom is obtained. It should be noted that one end of the associated auxiliary component can be understood as the starting point of the associated auxiliary component, and the other end of the associated auxiliary component can be understood as the end point of the associated auxiliary component. In response to the selection operation of the cation, the associated auxiliary component is displayed at the position of the cation, the starting point of the associated auxiliary component is connected to the cation, and the end point of the associated auxiliary component is connected to the target atom. In addition, the number of cations and the number of target atoms are determined in combination with the specific compound, and this application does not limit it.

[0069] In one embodiment, Figure 4a As shown, an associated auxiliary component is generated at the position of the cation, and one end of the associated auxiliary component is connected to the cation, including:

[0070] S410. Display a line segment component at the position of the cation, wherein one end of the line segment component is connected to the cation.

[0071] In response to the connection operation between the other end of the associated auxiliary component and the target atom, the method comprises:

[0072] S420, moving the other end of the line segment component to the position of the target atom, and connecting the target atom and the other end of the line segment component.

[0073] Among them, Figure 4bAs shown, the associated auxiliary component is a line segment component (exemplarily, a chemical bond between atom Cs and atom O). A line segment component for characterizing a chemical bond is displayed at the position of the cation, and one end of the line segment component is connected to the cation. After the line segment component is displayed at the position of the cation, it is necessary to determine that the other end of the line segment component is connected to the target atom, and the other end of the line segment component is moved by dragging the mouse or other moving operations to move the other end of the line segment component to the position of the target atom. At this time, the mouse can be released to connect the other end of the line segment component to the target atom, that is, a chemical bond is generated between the cation and the target atom, indicating that the cation and the anion together constitute a compound.

[0074] In this embodiment, a line segment component is displayed at the position of the cation, one end of the line segment component is connected to the cation, and the other end of the line segment component is moved to the position of the target atom, and the target atom and the other end of the line segment component are connected, so as to realize the use of line segments to represent chemical bonds and accurately express the chemical formula of the compound.

[0075] In one embodiment, Figure 5a As shown, establishing the association relationship between the cation and the target atom includes the following steps:

[0076] S510. Load the original structure file of the compound, showing the cations and anions.

[0077] S520. Connect the negatively charged atoms in the cations and anions through the ion association tool to generate an association relationship between the cations and the negatively charged atoms.

[0078] Among them, the original structure file is a raw data table for storing the structural relationship of the compound. In the original structure file, cations and anions are separated from each other. The ion association tool is a tool for visually building data models. In this tool, the user can define the compound model that the user needs to build by establishing the association relationship between the cation and the target atom. The data relationship structure in the data model provides the relationship between the data that the user wants to view. After the data model is established, the user can obtain accurate ionic compound information based on the data relationship. Specifically, the original structure file of the compound to be loaded is opened by drawing the display interface of the compound, and the display interface of the compound is drawn to display the cations and anions. For example, Figure 5b As shown, the cation (Cs + ) and anions (CO3 2-) are separated from each other. The display interface of the drawn compound displays an ion association tool, which can be triggered to select a cation. At the position of the cation, an association auxiliary component is displayed. One end of the association auxiliary component is connected to the cation. Drag the other end of the association auxiliary component to the position of the negatively charged atom in the anion to connect the cation with the negatively charged atom in the anion. At the same time, the identification of the cation and the identification of the negatively charged atom are obtained to generate an association relationship between the cation and the negatively charged atom.

[0079] In one embodiment, Figure 6 As shown, before loading the original structure file of the compound, the method further includes:

[0080] S610: Instantiate the canvas and toolbar.

[0081] Load the original structure file of the compound, including:

[0082] S620. Load the original structure file of the compound through the canvas.

[0083] Among them, the canvas is used to edit and display chemical structural formulas, and the ion association tool is displayed in the toolbar. Specifically, the canvas and toolbar are instantiated, and the canvas and toolbar are displayed in the display interface. The original structure file of the compound to be loaded is opened through the canvas, and the canvas displays cations and anions. Furthermore, two buttons, one-click beautify structure and check structure, are provided in the canvas. By triggering the one-click beautify structure button, the structural formula of the compound can be rendered and beautified. By triggering the check structure button, the structural formula of the compound can be checked to ensure the accuracy of the structural formula.

[0084] In one embodiment, Figure 7 As shown, a method for analyzing a compound is provided, the method comprising the following steps:

[0085] S710: Instantiate the canvas and toolbar.

[0086] The canvas is used to edit and display chemical structures, and the toolbar displays ion association tools.

[0087] S720. Load the original structure file of the compound through the canvas.

[0088] S730. Load the original structure file of the compound, showing the cations and anions, and the cations and anions are separated from each other.

[0089] S740. Connect the negatively charged atoms in the cations and anions through the ion association tool to generate an association relationship between the cations and the negatively charged atoms.

[0090] Further, in response to the selection operation of the cation, the identification of the cation is obtained, and an associated auxiliary component is generated at the position of the cation, one end of the associated auxiliary component is connected to the cation; in response to the connection operation of the other end of the associated auxiliary component with the target atom, the identification of the target atom is obtained. According to the identification of the cation and the identification of the target atom, the associated data corresponding to the cation is generated and saved in the structure file of the compound. Among them, the associated auxiliary component can be a line segment component. One end of the line segment component is connected to the cation; the other end of the line segment component is connected to the target atom.

[0091] S750. Load the structure file of the compound.

[0092] The structure file includes each atom of the compound and associated data. The associated data is used to characterize the relationship between the atoms in the compound. The compound includes anions and cations. Cations are atoms that carry positive charge.

[0093] S760, traversing the association data of each atom in the compound, and determining the target atom connected to the cation among the atoms of the anion according to the association data corresponding to the cation.

[0094] S770, connect the target atom with the cation, and fuse the cation and the anion to obtain a compound.

[0095] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0096] In one embodiment, Figure 8 As shown, a compound analysis device is provided, including: a loading module 810, a traversal module 820 and a fusion module 830, wherein:

[0097] A loading module 810 is used to load a structure file of a compound, wherein the structure file includes atoms of the compound and associated data, wherein the associated data is used to characterize the association relationship between atoms in the compound, wherein the compound includes anions and cations, wherein the cations are atoms carrying positive charge, and the anions are atoms carrying negative charge;

[0098] A traversal module 820 is used to traverse the association data of each atom in the compound, and determine a target atom connected to the cation among the atoms of the anion according to the association data;

[0099] The fusion module 830 is used to connect the target atom and the cation, and fuse the cation and the anion to obtain the compound.

[0100] In one embodiment, the cation is a metal ion, and the target atom is a negatively charged atom in the anion; the fusion module 830 is also used to connect the metal ion and the negatively charged atom, add the metal ion to the structural formula object of the anion, and generate the structural formula object of the ionic compound.

[0101] In one embodiment, the parsing device further includes a generation module, including an identification acquisition module and an associated data generation module; wherein:

[0102] The identification acquisition module is used to establish an association relationship between the cation and the target atom, and obtain the identification of the cation and the identification of the target atom.

[0103] The associated data generation module is used to generate the associated data corresponding to the cation according to the identification of the cation and the identification of the target atom, and save the associated data in the structure file of the compound.

[0104] In one embodiment, the identification acquisition module is also used to obtain the identification of the cation in response to the selection operation of the cation, and generate an associated auxiliary component at the position of the cation, one end of the associated auxiliary component is connected to the cation; in response to the connection operation between the other end of the associated auxiliary component and the target atom, the identification of the target atom is obtained.

[0105] In one embodiment, the associated auxiliary component is a line segment component; the identification acquisition module is also used to display the line segment component at the position of the cation, one end of the line segment component is connected to the cation; the other end of the line segment component is moved to the position of the target atom, and the target atom is connected to the other end of the line segment component.

[0106] In one embodiment, the identification acquisition module is also used to load the original structure file of the compound, display the cation and the anion, and the cation and the anion are separated from each other; through the ion association tool, the negatively charged atoms in the cation and the anion are connected to generate the association relationship between the cation and the negatively charged atom.

[0107] In one embodiment, the device further comprises an instantiation module, which is used to instantiate a canvas and a toolbar, wherein the canvas is used to edit and display chemical structural formulas, and the ion association tool is displayed in the toolbar;

[0108] The identification acquisition module is also used to load the original structure file of the compound through the canvas.

[0109] The specific definition of the analytical device for compounds can be found in the definition of the analytical method for compounds above, which will not be repeated here. Each module in the analytical device for the above-mentioned compounds can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0110] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for analyzing a compound is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0111] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0113] Loading a structure file of a compound, wherein the structure file includes each atom of the compound and associated data, wherein the associated data is used to characterize the association relationship between each atom in the compound, wherein the compound includes anions and cations, and the cations are atoms carrying positive charge; traversing the associated data of each atom in the compound, and determining a target atom connected to the cation among each atom of the anion according to the associated data corresponding to the cation; connecting the target atom to the cation, and fusing the cation and the anion to obtain the compound.

[0114] In one embodiment, the cation is a metal ion, and the target atom is a negatively charged atom in the anion; when the processor executes the computer program, the following steps are also implemented: connecting the metal ion and the negatively charged atom, adding the metal ion to the structural formula object of the anion, and generating the structural formula object of the ionic compound.

[0115] In one embodiment, when the processor executes the computer program, the following steps are also implemented: establishing an association relationship between the cation and the target atom, obtaining the identifier of the cation and the identifier of the target atom; generating association data corresponding to the cation based on the identifier of the cation and the identifier of the target atom, and saving the data in the structure file of the compound.

[0116] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to the selection operation of the cation, the identification of the cation is obtained, and an associated auxiliary component is generated at the position of the cation, one end of the associated auxiliary component is connected to the cation; in response to the connection operation between the other end of the associated auxiliary component and the target atom, the identification of the target atom is obtained.

[0117] In one embodiment, the association auxiliary component is a line segment component; when the processor executes the computer program, the following steps are also implemented: displaying the line segment component at the position of the cation, one end of the line segment component is connected to the cation; moving the other end of the line segment component to the position of the target atom, connecting the target atom and the other end of the line segment component.

[0118] In one embodiment, when the processor executes the computer program, the following steps are also implemented: loading the original structure file of the compound, displaying the cation and the anion, and the cation and the anion are separated from each other; connecting the cation and the negatively charged atoms in the anion through an ion association tool to generate an association relationship between the cation and the negatively charged atom.

[0119] In one embodiment, when the processor executes the computer program, the following steps are also implemented: instantiating a canvas and a toolbar, wherein the canvas is used to edit and display chemical structural formulas, and the ion association tool is displayed in the toolbar; and loading the original structure file of the compound through the canvas.

[0120] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0121] Loading a structure file of a compound, wherein the structure file includes each atom of the compound and associated data, wherein the associated data is used to characterize the association relationship between each atom in the compound, wherein the compound includes anions and cations, and the cations are atoms carrying positive charge; traversing the associated data of each atom in the compound, and determining a target atom connected to the cation among each atom of the anion according to the associated data corresponding to the cation; connecting the target atom to the cation, and fusing the cation and the anion to obtain the compound.

[0122] In one embodiment, the cation is a metal ion, and the target atom is a negatively charged atom in the anion; when the computer program is executed by the processor, the following steps are also implemented: connecting the metal ion and the negatively charged atom, adding the metal ion to the structural formula object of the anion, and generating the structural formula object of the ionic compound.

[0123] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: establishing an association relationship between the cation and the target atom, obtaining the identifier of the cation and the identifier of the target atom; generating association data corresponding to the cation based on the identifier of the cation and the identifier of the target atom, and saving the data in the structure file of the compound.

[0124] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: in response to the selection operation of the cation, the identification of the cation is obtained, and an associated auxiliary component is generated at the position of the cation, one end of the associated auxiliary component is connected to the cation; in response to the connection operation between the other end of the associated auxiliary component and the target atom, the identification of the target atom is obtained.

[0125] In one embodiment, the association auxiliary component is a line segment component; when the computer program is executed by the processor, the following steps are also implemented: displaying a line segment component at the position of the cation, with one end of the line segment component connected to the cation; moving the other end of the line segment component to the position of the target atom, connecting the target atom and the other end of the line segment component.

[0126] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: loading the original structure file of the compound, displaying the cation and the anion, and the cation and the anion are separated from each other; connecting the cation and the negatively charged atoms in the anion through an ion association tool to generate an association relationship between the cation and the negatively charged atom.

[0127] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: instantiating a canvas and a toolbar, wherein the canvas is used to edit and display chemical structural formulas, and the ion association tool is displayed in the toolbar; and loading the original structure file of the compound through the canvas.

[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for analyzing a compound, characterized in that: The method comprises: Loading a structure file of a compound, wherein the structure file includes atoms of the compound and associated data, wherein the associated data is used to characterize the association relationship between atoms in the compound, wherein the compound includes anions and cations, wherein the cations are atoms or atomic groups carrying positive charge, and the anions are atoms or atomic groups carrying negative charge; Traversing the association data of each atom in the compound, and determining the target atom connected to the cation among the atoms of the anion according to the association data corresponding to the cation; the generation method of the association data corresponding to the cation includes: establishing an association relationship between the cation and the target atom, obtaining the identifier of the cation and the identifier of the target atom; generating the association data corresponding to the cation according to the identifier of the cation and the identifier of the target atom; wherein establishing the association relationship includes: loading the original structure file of the compound, displaying the cation and the anion, and the cation and the anion are separated from each other, connecting the cation and the negatively charged atom in the anion through an ion association tool, and generating an association relationship between the cation and the negatively charged atom; The target atom is connected to the cation, and the target atom in the cation and the anion is fused to obtain the compound.

2. The method according to claim 1, characterized in that The cation is a metal ion, and the target atom is an atom carrying negative charge in the anion; and the step of connecting the target atom with the cation and fusing the cation with the target atom in the anion to obtain the compound comprises: The metal ion is connected to the negatively charged atom, and the metal ion is added to the structural formula object of the anion to generate the structural formula object of the ionic compound.

3. The method according to claim 1, characterized in that The establishing of the association relationship between the cation and the target atom, and obtaining the identifier of the cation and the identifier of the target atom, includes: In response to the selection operation of the cation, an identifier of the cation is obtained, and an associated auxiliary component is generated at the position of the cation, wherein one end of the associated auxiliary component is connected to the cation; In response to the connection operation between the other end of the association auxiliary component and the target atom, an identifier of the target atom is obtained.

4. The method according to claim 3, characterized in that The associated auxiliary component is a line segment component; the associated auxiliary component is generated at the position of the cation, and one end of the associated auxiliary component is connected to the cation, including: Displaying a line segment component at the position of the cation, wherein one end of the line segment component is connected to the cation; The step of responding to the connection operation between the other end of the association auxiliary component and the target atom comprises: The other end of the line segment component is moved to the position of the target atom, and the target atom is connected to the other end of the line segment component.

5. The method according to claim 1, characterized in that Before loading the original structure file of the compound, the method further comprises: Instantiating a canvas and a toolbar, wherein the canvas is used to edit and display a chemical structure formula, and the toolbar displays the ion association tool; The loading of the original structure file of the compound comprises: The original structure file of the compound is loaded through the canvas.

6. The method according to claim 5, characterized in that The ion association tool is also used to establish an association relationship between cations and target atoms; wherein the association relationship is used to define a compound model that needs to be established.

7. A compound analysis device, characterized in that: The device comprises: A loading module, used to load a structure file of a compound, wherein the structure file includes atoms of the compound and associated data, wherein the associated data is used to characterize the association relationship between atoms in the compound, wherein the compound includes anions and cations, wherein the cations are atoms carrying positive charge, and the anions are atoms carrying negative charge; A traversal module, used for traversing the association data of each atom in the compound, and determining the target atom connected to the cation among the atoms of the anion according to the association data corresponding to the cation; a method for generating the association data corresponding to the cation includes: establishing an association relationship between the cation and the target atom, obtaining the identifier of the cation and the identifier of the target atom; generating the association data corresponding to the cation according to the identifier of the cation and the identifier of the target atom; wherein establishing the association relationship includes: loading the original structure file of the compound, displaying the cation and the anion, and the cation and the anion are separated from each other, connecting the cation and the negatively charged atom in the anion through an ion association tool, and generating an association relationship between the cation and the negatively charged atom; A fusion module is used to connect the target atom with the cation and fuse the target atom in the cation and the anion to obtain the compound.

8. The device according to claim 7, characterized in that The cation is a metal ion, and the target atom is a negatively charged atom in the anion; the target atom is connected to the cation, and the cation and the target atom in the anion are fused to obtain the compound. The fusion module is also used to: connect the metal ion and the negatively charged atom, add the metal ion to the structural formula object of the anion, and generate the structural formula object of the ionic compound.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Computer-aided design system for energy-containing compound

    CN101504679A

  • Compound property prediction method and device, computer equipment and readable storage medium

    CN110767271A

  • Method, equipment and device for determining reactant of target compound and medium

    CN111223532A

  • Compositions and methods for detection and isolation of phosphorylated molecules

    CN1665790A

  • Aid for use in teaching chemistry

    GB1498951A