CN110797091A - Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium - Google Patents

Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium Download PDF

Info

Publication number
CN110797091A
CN110797091A CN201910967007.3A CN201910967007A CN110797091A CN 110797091 A CN110797091 A CN 110797091A CN 201910967007 A CN201910967007 A CN 201910967007A CN 110797091 A CN110797091 A CN 110797091A
Authority
CN
China
Prior art keywords
chemical reaction
product
reactant
atoms
structure model
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.)
Pending
Application number
CN201910967007.3A
Other languages
Chinese (zh)
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.)
Shenzhen Createk Electronics Co Ltd
Original Assignee
Shenzhen Createk Electronics 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 Shenzhen Createk Electronics Co Ltd filed Critical Shenzhen Createk Electronics Co Ltd
Priority to CN201910967007.3A priority Critical patent/CN110797091A/en
Publication of CN110797091A publication Critical patent/CN110797091A/en
Pending legal-status Critical Current

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/10Analysis or design of chemical reactions, syntheses or processes

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a chemical reaction three-dimensional structure model generation method, a terminal and a computer readable storage medium, wherein a preset identification algorithm is adopted to obtain a mathematical operation symbol and a chemical reaction parameter from an equation for representing a chemical reaction; then obtaining atomic parameters of reactants and products in the chemical reaction according to the mathematical operation symbol and the chemical reaction parameters; and finally, generating a chemical reaction three-dimensional structure model according to the atomic parameters. According to the chemical reaction three-dimensional structure model generation method, the chemical reaction three-dimensional structure model is generated by utilizing the atomic parameters forming the chemical reaction, the chemical reaction micro process is displayed, the problem that the chemical reaction process is too abstract and difficult to understand is avoided, and the intuitiveness and the user experience of the chemical reaction micro process are improved.

Description

Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium
Technical Field
The application relates to the technical field of computers, in particular to a chemical reaction three-dimensional structure model generation method, a terminal and a readable storage medium.
Background
With the progress of society and the expansion of knowledge transmission level, the transmission demand of education, meetings and scientific research related to chemistry is also increasing. In the current chemical reaction mode, the reaction of the inter-atomic combination is represented by letters, numbers or a circle, so that the display mode of the chemical reaction is too abstract in the current chemical reaction mode, and a learning object cannot understand the chemical reaction micro process well.
Disclosure of Invention
The application mainly aims to provide a chemical reaction three-dimensional structure model generation method, a terminal and a computer storage medium, and aims to solve the technical problems that in the chemical reaction display process in the prior art, the used chemical formula is not beneficial to intuitively understanding the change process of microcosmic chemistry and is too abstract.
In order to achieve the above object, an embodiment of the present application provides a chemical reaction three-dimensional structure model generation method, including the following steps:
acquiring mathematical operation symbols and chemical reaction parameters from an equation for representing chemical reaction by adopting a preset identification algorithm;
obtaining atomic parameters of reactants and products in the chemical reaction according to the mathematical operation symbol and the chemical reaction parameters;
and generating a chemical reaction three-dimensional structure model according to the atomic parameters.
Optionally, the step of obtaining the mathematical operation sign and the chemical reaction parameter from the equation for representing the chemical reaction comprises:
locating and obtaining the mathematical operation symbols from an equation for representing a chemical reaction, wherein the mathematical operation symbols comprise preset symbols and preset generation symbols;
obtaining each reactant expression in the chemical reaction parameters from the left side of the preset generating symbol;
obtaining the quantity of each of the reactants in the chemical reaction parameter from each of the reactant expression leading numbers.
Optionally, the step of obtaining the quantity of each of the reactants in the chemical reaction parameter from each of the reactant expression leading numbers is followed by:
obtaining each product expression in the chemical reaction parameters from the right side of the preset generating symbol;
obtaining the quantity of each product in the chemical reaction parameter from the product expression prefix.
Optionally, the step of obtaining atomic parameters of the reactant and the product in the chemical reaction according to the mathematical operation sign and the chemical reaction parameter includes:
obtaining the chemical symbol of the atoms and the number of the atoms forming each reactant according to the expression of each reactant and the number of each reactant;
and acquiring the chemical symbol of the atom and the number of the atoms forming each product according to each product expression and the number of each product.
Optionally, the step of obtaining the chemical sign of the atoms and the number of atoms forming each of the products is followed by:
obtaining subscript numbers for atoms of each of said reactants;
taking the product of the leading number of each said reactant expression and the subscript number of the atom of each said reactant as the number of atoms of each said reactant;
obtaining subscript numbers of atoms of each of the products;
the product of the prefix number of each product expression and the subscript number of the atom of each product is defined as the number of atoms of each product.
Optionally, the step of obtaining atomic parameters of the reactant and the product in the chemical reaction according to the mathematical operation sign and the chemical reaction parameter further includes:
identifying and obtaining atoms of fixed valency in each reactant, and obtaining actual valency of atoms of non-fixed valency in each reactant based on valency of atoms of fixed valency in the reactant;
and identifying and acquiring atoms with fixed valences in each product, and obtaining the actual valences of the atoms with non-fixed valences in each product based on the valences of the atoms with fixed valences in the products.
Optionally, the step of generating a chemical reaction three-dimensional structure model according to the atomic parameters comprises:
generating a three-dimensional model of the reactant atoms according to the atomic chemical symbols of the reactants;
and connecting the three-dimensional models of the reactant atoms according to the atomic number and the valence of the reactant to obtain the three-dimensional structure model of the reactant in the chemical reaction.
Optionally, the step of generating a chemical reaction three-dimensional structure model according to the atomic parameters further includes:
generating a three-dimensional model of the product atom according to the atomic chemical sign of the product;
and connecting the three-dimensional models of the product atoms according to the number and the valence of the product atoms to obtain the three-dimensional structure model of the product in the chemical reaction.
The present application further provides a terminal, the terminal including: a memory, a processor and a chemical reaction three-dimensional structure model generation program stored on the memory and executable on the processor, the chemical reaction three-dimensional structure model generation program, when executed by the processor, implementing the steps of the chemical reaction three-dimensional structure model generation method as described above.
The present application also provides a computer storage medium having a chemical reaction three-dimensional structure model generation program stored thereon, which when executed by a processor, implements the steps of the chemical reaction three-dimensional structure model generation method as described above.
In the microscopic display process of the chemical reaction, a preset recognition algorithm is adopted to obtain mathematical operation symbols and chemical reaction parameters from an equation for representing the chemical reaction; then obtaining atomic parameters of reactants and products in the chemical reaction according to the mathematical operation symbols and the chemical reaction parameters; finally, generating a chemical reaction three-dimensional structure model according to the atomic parameters, thereby realizing the generation of the chemical reaction three-dimensional structure model; the chemical reaction three-dimensional structure model shows the chemical reaction micro process, avoids the problem that the chemical reaction process is too abstract and is not easy to understand, and improves the intuitiveness and the user experience of the chemical reaction micro process.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of an optional terminal according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of an embodiment of a method for generating a chemical reaction three-dimensional structure model according to the present application;
FIG. 3 is a detailed flowchart of step S10;
FIG. 4 is a detailed flowchart of the steps after step S13;
FIG. 5 is a detailed flowchart of step S20;
FIG. 6 is a detailed flowchart of the steps after step S22;
FIG. 7 is another detailed flowchart of step S20;
FIG. 8 is a detailed flowchart of step S30;
FIG. 9 is a schematic view of another detailed flow chart of step S30;
fig. 10 is a schematic view of an application scenario of an embodiment of the chemical reaction three-dimensional structure model generation method of the present invention.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present application may include a terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), and the like.
In the following description, taking a terminal as an example, please refer to fig. 1, which is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present application, where the terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal configuration shown in fig. 1 is not intended to be limiting, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the various components of the terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store a software program and various data, and the memory 109 may be a computer storage medium, and the memory 109 stores the chemical reaction three-dimensional structure model generating program of the present application. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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 volatile solid state storage device.
The processor 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. The processor 110 executes a chemical reaction three-dimensional structure model generation program in the memory 109 to implement the steps of the embodiments of the chemical reaction three-dimensional structure model generation method of the present application.
Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the terminal 100 may further include a bluetooth module or the like, which is not described in detail herein. The terminal 100 can be connected with other terminal devices through bluetooth to realize communication and information interaction.
Based on the above terminal hardware structure, various embodiments of the method of the present application are provided.
The present application provides a chemical reaction three-dimensional structure model generation method, which is applied to a terminal, and in an embodiment of the chemical reaction three-dimensional structure model generation method, referring to fig. 2, the chemical reaction three-dimensional structure model generation method includes:
step S10, acquiring mathematical operation symbols and chemical reaction parameters from an equation for representing chemical reactions by adopting a preset recognition algorithm;
the preset identification algorithm is an algorithm aiming at the information identification of the chemical reaction equation, and is used for identifying all information forming the chemical equation, including mathematical operation symbols and chemical reaction parameters in the chemical equation, wherein the mathematical operation symbols comprise preset symbols and preset generation symbols, the preset symbols are + signs, the preset generation symbols are ═ signs, and the chemical reaction parameters comprise reactant parameters and product parameters.
Step S20, according to the mathematical operation symbol and the chemical reaction parameter, obtaining the atomic parameters of the reactant and the product in the chemical reaction;
the chemical reaction refers to the process that molecules are broken into atoms, and the atoms are rearranged and combined to generate a new substance; the chemical reaction equation consists of two parts of information, namely a mathematical operation symbol and a chemical reaction parameter; the mathematical operation symbols play a role in distinguishing different types of chemical reaction parameters (i.e., reactant parameters and product parameters); thus, according to the mathematical operation sign and the chemical reaction parameter, the atomic parameters of the reactant and the product in the chemical reaction can be obtained.
And step S30, generating a chemical reaction three-dimensional structure model according to the atomic parameters.
Atoms are connected according to valence, and are spatially arranged according to a mutual exclusion theory of valence and electron pairs to form a chemical reaction three-dimensional model structure.
In this embodiment, a preset recognition algorithm is adopted to obtain mathematical operation symbols and chemical reaction parameters from an equation for representing a chemical reaction; then obtaining atomic parameters of reactants and products in the chemical reaction according to the mathematical operation symbols and the chemical reaction parameters; finally, generating a chemical reaction three-dimensional structure model according to the atomic parameters, thereby realizing the generation of the chemical reaction three-dimensional structure model; the chemical reaction three-dimensional structure model shows the chemical reaction micro process, avoids the problem that the chemical reaction process is too abstract and is not easy to understand, and improves the intuitiveness and the user experience of the chemical reaction micro process.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 3, step S10 includes:
step S11, positioning and obtaining mathematical operation signs from the equation for representing the chemical reaction, wherein the mathematical operation signs comprise preset signs and preset generation signs;
the default and sign refer to the "+" sign in the chemical reaction equation; the preset generation symbol refers to a ═ number in a chemical reaction equation; the "+" sign serves to link a plurality of reactants or a plurality of products, and the "═ sign serves to distinguish the reactants and the products; the left side of the "═ sign is a reactant of a chemical reaction, and the right side of the" ═ sign is a product of the chemical reaction.
Step S12, obtaining each reactant expression in the chemical reaction parameters from the left side of the preset generating symbol;
reactant expression refers to the chemical formula of the reactant that participates in a chemical reaction; in a chemical reaction equation, the chemical formula on the left side of the "═ sign is the reactant expression.
Step S13, the number of each reactant in the chemical reaction parameter is obtained from the pre-numerator of each reactant expression.
The number of reactants refers to the number of reactants involved in a chemical reaction; in a chemical reaction equation, the number before each reactant expression is the amount of the reactant in the chemical reaction, and if the reactant has no prefix, the number represents that the amount of the reactant in the chemical reaction is 1; if the reactant has no prefix number of 3, it means that the amount of this reactant in this chemical reaction is 3.
In this embodiment, a mathematical operation symbol is obtained first; then obtaining the expression of each reactant; and finally, acquiring the quantity of each reactant, thereby obtaining the parameter information of the reactants, namely the reactant expression and the quantity of the reactants, and preparing for subsequently obtaining the atomic chemical symbols of the reactants and calculating the atomic quantity of the reactants.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 4, after step S13, the method includes:
step S14, obtaining each product expression in the chemical reaction parameters from the right side of the preset generating symbol;
the product expression refers to a chemical formula of a substance obtained by a chemical reaction of a reactant of the chemical reaction; in a chemical reaction equation, the right-hand chemical formula of the "═ sign is the product expression.
In step S15, the number of each product in the chemical reaction parameter is obtained from the product expression prefix.
The number of products refers to the number of substances obtained by the chemical reaction of reactants; in a chemical reaction equation, the number in front of each product expression is the amount of the product generated in the chemical reaction, and if the product has no prefix, the number of the product in the chemical reaction is 1; if the product has no prefix number of 2, it means that the number of the product in the chemical reaction is 2.
In this embodiment, each product expression is first obtained; and finally, acquiring the quantity of each product, thereby obtaining the parameter information of the product, namely the product expression and the quantity of the product, and preparing for obtaining the atomic chemical symbol of the product and calculating the atomic quantity of the product subsequently.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 5, step S20 includes:
step S21, obtaining the atomic chemical sign and the number of atoms forming each reactant according to the expression of each reactant and the number of each reactant;
if the reactant is expressed as SO3Then the atomic symbols from which the reactants can be obtained are a sulfur atom S and an oxygen atom O; since the reactant is composed of atoms, the number of the reactant corresponds to the number of atoms of the reactant, and therefore the number of atoms of the reactant can be obtained from the number of the reactant, for example, SO in the expression of a single reactant3In the formula, the number of sulfur atoms S is 1, and the number of oxygen atoms O is 3; and then the number of reactant atoms in the whole chemical reaction can be obtained according to the number of the reactants.
In step S14, the atomic chemical symbol and the number of atoms forming each product are obtained from the expression of each product and the number of each product.
If the product expression is H2O, then the atomic symbols from which the product can be obtained are hydrogen atom H and oxygen atom O; since the product is composed of atoms, and the number of the product corresponds to the number of the product atoms, the number of the product atoms can be obtained from the number of the product, for example, the expression H in a single product2In O, the number of hydrogen atoms H is 2, and the number of oxygen atoms O is 1; and then the number of product atoms in the whole chemical reaction can be obtained according to the number of the product atoms.
In this embodiment, since the reactant and the product are composed of atoms, the chemical symbols of the various atoms and the number of the various atoms in the reactant can be obtained according to the expression and the number of the reactant, and similarly, the chemical symbols of the various atoms and the number of the various atoms in the product can be obtained according to the expression and the number of the product.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 6, after step S22, the method includes:
step S23, acquiring subscript numbers of atoms of each reactant;
subscript numbers refer to the number in the lower right hand corner of the atomic chemical symbols, with the subscript number of an atom representing the number of that atom in a compound. That is, the subscript numbers of the atoms in the reactants are obtained, and the number of atoms in a single reactant can be obtained; such as SO3The subscript number of oxygen atom O is 3 and represents a single SO3The number of atoms in the compound being 3, in particular, as indicated by the subscript number, representing 1 atom in a single reactant, e.g. SO3The number of sulfur atoms S is 1.
Step S24, taking the product of the prefix number of each reactant expression and the subscript number of each reactant atom as the number of each reactant atom;
multiplying the subscript number of an atom in a reactant by the leading number of the reactant in which the atom is located to obtain the total number of atoms of the reactant in the chemical reaction; if the expression of the reactant and the prefix number obtained for the chemical reaction are 2SO3The total number of S atoms is 2 (2 for 2 prefix and 1 for 1 subscript), and the number of O atoms is 6 (2 for 2 prefix and 3 for 3 subscript and 2 for 3 subscript).
Step S25, acquiring subscript numbers of atoms of each product;
obtaining subscript numbers of atoms in the resultant to obtain the number of atoms in a single resultant; such as CaSO4The subscript number of oxygen atom O is 4, representing the number in a single CaSO4The number of oxygen atoms O in the compound being 4, in particular, as indicated by the subscript number, representing 1 atom in a single product, e.g. CaSO4The number of Ca atoms and S atoms in the alloy is 1.
In step S26, the product of the prefix number of each product expression and the subscript number of the atom of each product is defined as the number of atoms of each product.
Multiplying the subscript number of the atom in the product by the prefix number of the product in which the atom is located to obtain the total number of atoms of the product in the chemical reaction; if the product expression and prefix number obtained from the chemical reaction are 3CaSO4The numbers indicate that the total number of Ca atoms is 3 (the prefix number is 3, and the subscript number is 1, and 3 × 1 ═ 3), the number of S atoms is 3 (the prefix number is 3, and the subscript number is 1, and 3 × 1 ═ 3), and the number of O atoms is 12 (the prefix number is 3, and the subscript number is 4, and 3 × 4 ═ 12).
In this embodiment, the subscript numbers of the reactant atoms are obtained, and the number of each atom of the reactant is obtained by multiplying the number of each reactant by the subscript number of each atom; similarly, the subscript numbers of the product atoms are obtained, and the number of each product atom is obtained by multiplying the number of each product atom by the subscript number of each atom.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 7, step S20 further includes:
step A10, identifying and obtaining atoms with fixed valence in each reactant, and obtaining the actual valence of atoms with non-fixed valence in each reactant based on the valence of the atoms with fixed valence in the reactant;
step A20, identifying and obtaining the atom with fixed valence in each product, and obtaining the actual valence of the atom with non-fixed valence in each product based on the valence of the atom with fixed valence in each product.
In the present embodiment, the valence indicates a property expressed when one atom of one element is combined with atoms of other elements { i.e., constitutes a compound }. Generally, the valence number is equal to the number of electrons lost by each atom when combined, i.e., the number of electrons lost by the element when it reaches a stable structure; for example, the valence of Ca, which is a calcium atom, is fixed and is + 2; the valency of the sulfur atom S is non-fixed and is +4, +6, -2. For example, the reactant calcium sulfate CaSO4The valence of the oxygen atom O being fixed to the valence of-2, 4 oxygen atoms OThe valence is-8, the valence of Ca is fixed +2, the valence of S is changed, and the valence of O and Ca is-6; since the valence of the entire compound is 0, calcium sulfate CaSO is known4The actual valence of the sulfur atom S is +6, i.e., the actual valence of the atom of non-fixed valence in each reactant is obtained based on the valence of the atom of fixed valence in the reactant, and similarly, the actual valence of the atom of non-fixed valence in each product is obtained based on the valence of the atom of fixed valence in the product.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 8, step S30 includes:
step S31, generating a three-dimensional model of reactant atoms according to the atom chemical symbols of the reactants;
the stereoscopic model of the reactant atom refers to an atomic three-dimensional space stereoscopic model having a connecting bond corresponding to an atomic chemical symbol; if the valence of Ca is +2, the three-dimensional model of Ca has two bonds with positive properties.
And step S32, connecting the three-dimensional models of the reactant atoms according to the number and the valence of the reactant atoms to obtain the three-dimensional structure model of the reactant in the chemical reaction.
In this embodiment, a three-dimensional model of reactant atoms is generated according to the atomic chemical symbols of the reactants, and then the three-dimensional models of the reactant atoms are connected according to the atomic number and valence of the reactants to obtain a three-dimensional structure model of the reactants in the chemical reaction. Therefore, the microscopic process of the chemical reaction can be visually displayed, and the process and the essence of the chemical reaction can be further understood conveniently.
Further, in another embodiment of the method for generating a chemical reaction three-dimensional structure model according to the present application, referring to fig. 9, step S30 further includes:
step S33, generating a three-dimensional model of the product atom according to the atom chemical sign of the product;
the product atom stereomodel is an atomic three-dimensional space stereomodel having a connecting bond corresponding to an atomic chemical symbol.
Step S34, connecting the three-dimensional models of the product atoms according to the number and valence of the product atoms to obtain the three-dimensional structure model of the product in the chemical reaction.
In this example, a three-dimensional model of the product atom is generated based on the atomic chemical sign of the product, and the three-dimensional models of the product atom are connected based on the number and valence of the product atom to obtain a three-dimensional structure model of the product in the chemical reaction. Therefore, the microscopic process of the chemical reaction can be visually displayed, and the process and the essence of the chemical reaction can be further understood conveniently.
To assist understanding of the technical solution of the present embodiment, refer to fig. 10, wherein the upper side of fig. 10 is the chemical reaction equation SO3+CaO=CaSO4The lower side of fig. 10 shows a spatial three-dimensional model of the chemical reaction. The microscopic process of this chemical reaction is shown schematically in the lower side of fig. 10: wherein, SO to the left of the "═ number3And CaO as reactants; reactant SO3Comprises 1 sulfur atom S and 3 oxygen atoms O, and reactant CaO comprises one calcium atom Ca and 1 oxygen atom O; CaSO to the right of "═ sign4Is a resultant; product CaSO4Comprises one calcium atom Ca, 1 sulfur atom S and 4 oxygen atoms O.
In addition, this application still provides a terminal, and the terminal includes: a memory 109, a processor 110, and a chemical reaction three-dimensional structure model generating program stored in the memory 109 and operable on the processor 110, wherein the terminal display control program, when executed by the processor 110, implements the steps of the embodiments of the chemical reaction three-dimensional structure model generating method described above.
Furthermore, the present application also provides a computer-readable storage medium storing one or more programs, which can be further executed by one or more processors for implementing the steps of the embodiments of the chemical reaction three-dimensional structure model generation method.
The specific implementation of the terminal and the readable storage medium (i.e., the computer readable storage medium) of the present application is basically the same as the embodiments of the chemical reaction three-dimensional structure model generation method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present application or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) and includes instructions for causing a terminal (e.g. a mobile phone) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A chemical reaction three-dimensional structure model generation method is characterized by comprising the following steps:
acquiring mathematical operation symbols and chemical reaction parameters from an equation for representing chemical reaction by adopting a preset identification algorithm;
obtaining atomic parameters of reactants and products in the chemical reaction according to the mathematical operation symbol and the chemical reaction parameters;
and generating a chemical reaction three-dimensional structure model according to the atomic parameters.
2. The chemical reaction three-dimensional structure model generation method according to claim 1, wherein the step of obtaining the mathematical operation sign and the chemical reaction parameter from the equation for representing the chemical reaction comprises:
locating and obtaining the mathematical operation symbols from an equation for representing a chemical reaction, wherein the mathematical operation symbols comprise preset symbols and preset generation symbols;
obtaining each reactant expression in the chemical reaction parameters from the left side of the preset generating symbol;
obtaining the quantity of each of the reactants in the chemical reaction parameter from each of the reactant expression leading numbers.
3. The method of generating a chemical reaction spatial structure model according to claim 2, wherein the step of obtaining the quantity of each of the reactants in the chemical reaction parameter from each of the reactant expression leading numbers is followed by:
obtaining each product expression in the chemical reaction parameters from the right side of the preset generating symbol;
obtaining the quantity of each product in the chemical reaction parameter from the product expression prefix.
4. The method for generating a chemical reaction three-dimensional structure model according to claim 3, wherein the step of obtaining the atomic parameters constituting the reactant and the product in the chemical reaction based on the mathematical operation sign and the chemical reaction parameter comprises:
obtaining the chemical symbol of the atoms and the number of the atoms forming each reactant according to the expression of each reactant and the number of each reactant;
and acquiring the chemical symbol of the atom and the number of the atoms forming each product according to each product expression and the number of each product.
5. The chemical reaction three-dimensional structure model creation method according to claim 4, wherein the step of obtaining the chemical sign of the atoms and the number of the atoms forming each of the products is followed by:
obtaining subscript numbers for atoms of each of said reactants;
taking the product of the leading number of each said reactant expression and the subscript number of the atom of each said reactant as the number of atoms of each said reactant;
obtaining subscript numbers of atoms of each of the products;
the product of the prefix number of each product expression and the subscript number of the atom of each product is defined as the number of atoms of each product.
6. The chemical reaction spatial structure model generating method according to any one of claims 1 to 5, wherein the atomic parameters further include a valence of an atom, and the step of obtaining the atomic parameters constituting the reactant and the product in the chemical reaction based on the mathematical operation sign and the chemical reaction parameter further includes:
identifying and obtaining atoms of fixed valency in each reactant, and obtaining actual valency of atoms of non-fixed valency in each reactant based on valency of atoms of fixed valency in the reactant;
and identifying and acquiring atoms with fixed valences in each product, and obtaining the actual valences of the atoms with non-fixed valences in each product based on the valences of the atoms with fixed valences in the products.
7. The chemical reaction three-dimensional structure model generation method according to claim 6, wherein the step of generating the chemical reaction three-dimensional structure model based on the atomic parameters comprises:
generating a three-dimensional model of the reactant atoms according to the atomic chemical symbols of the reactants;
and connecting the three-dimensional models of the reactant atoms according to the atomic number and the valence of the reactant to obtain the three-dimensional structure model of the reactant in the chemical reaction.
8. The chemical reaction three-dimensional structure model generation method according to claim 7, wherein the step of generating the chemical reaction three-dimensional structure model based on the atomic parameters further comprises:
generating a three-dimensional model of the product atom according to the atomic chemical sign of the product;
and connecting the three-dimensional models of the product atoms according to the number and the valence of the product atoms to obtain the three-dimensional structure model of the product in the chemical reaction.
9. A terminal, characterized in that the terminal comprises: memory, a processor and a chemical reaction spatial structure model generation program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the chemical reaction spatial structure model generation method according to any one of claims 1 to 8.
10. A storage medium, characterized in that the storage medium has stored thereon a chemical reaction three-dimensional structure model generation program that, when executed by a processor, implements the steps of the chemical reaction three-dimensional structure model generation method according to any one of claims 1 to 8.
CN201910967007.3A 2019-10-11 2019-10-11 Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium Pending CN110797091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910967007.3A CN110797091A (en) 2019-10-11 2019-10-11 Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910967007.3A CN110797091A (en) 2019-10-11 2019-10-11 Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium

Publications (1)

Publication Number Publication Date
CN110797091A true CN110797091A (en) 2020-02-14

Family

ID=69440271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910967007.3A Pending CN110797091A (en) 2019-10-11 2019-10-11 Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN110797091A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223630A (en) * 2021-05-24 2021-08-06 河北新望达软件科技有限公司 Chemical device process flow simulation method, electronic device and storage medium
CN114446407A (en) * 2022-03-03 2022-05-06 冰洲石生物科技(上海)有限公司 Method, system, medium, and electronic device for extracting reaction template for chemical reaction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080305465A1 (en) * 2007-06-08 2008-12-11 California Polytechnic State University Foundation System and method for modeling atomic structures
CN101329731A (en) * 2008-06-06 2008-12-24 南开大学 Automatic recognition method pf mathematical formula in image
CN101504679A (en) * 2009-03-19 2009-08-12 西安近代化学研究所 Computer-aided design system for energy-containing compound
CN109686209A (en) * 2019-02-21 2019-04-26 南京南欣医药技术研究院有限公司 Molecular structure model construction method and device
CN110263631A (en) * 2019-05-10 2019-09-20 南京大学 A kind of hand-written chemical formula identification and Calculate Ways

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080305465A1 (en) * 2007-06-08 2008-12-11 California Polytechnic State University Foundation System and method for modeling atomic structures
CN101329731A (en) * 2008-06-06 2008-12-24 南开大学 Automatic recognition method pf mathematical formula in image
CN101504679A (en) * 2009-03-19 2009-08-12 西安近代化学研究所 Computer-aided design system for energy-containing compound
CN109686209A (en) * 2019-02-21 2019-04-26 南京南欣医药技术研究院有限公司 Molecular structure model construction method and device
CN110263631A (en) * 2019-05-10 2019-09-20 南京大学 A kind of hand-written chemical formula identification and Calculate Ways

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AVIDOR, N.1 ET AL.: "Particles Interacting in Generalized Langevin Equation simulator", 《COMPUTER PHYSICS COMMUNICATIONS》 *
王清华等: "用Virtools Dev实现化学三维世界", 《化学教育》 *
胡绮妙等: "化学专业软件ISIS/Draw 2.2的简介", 《化学教学》 *
钟诚: "分子三维结构模型的构造与演示", 《中外医疗》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223630A (en) * 2021-05-24 2021-08-06 河北新望达软件科技有限公司 Chemical device process flow simulation method, electronic device and storage medium
CN114446407A (en) * 2022-03-03 2022-05-06 冰洲石生物科技(上海)有限公司 Method, system, medium, and electronic device for extracting reaction template for chemical reaction

Similar Documents

Publication Publication Date Title
KR102650142B1 (en) Synchronization methods and electronic devices
CN110989882B (en) Control method, electronic device and computer readable storage medium
CN109379484B (en) Information processing method and terminal
CN109151367B (en) Video call method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN110531915B (en) Screen operation method and terminal equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
WO2019085774A1 (en) Application control method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN109240783B (en) Interface display method and terminal equipment
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN108958593B (en) Method for determining communication object and mobile terminal
CN109684107B (en) Information reminding method and device
WO2020125405A1 (en) Control method for terminal apparatus, and terminal apparatus
CN111158817A (en) Information processing method and electronic equipment
CN108924312B (en) Terminal and control method
CN108509141B (en) Control generation method and mobile terminal
CN110795021A (en) Information display method and device and electronic equipment
CN110796438B (en) Message sending method and mobile terminal
CN110797091A (en) Chemical reaction three-dimensional structure model generation method, terminal and readable storage medium
CN109597546B (en) Icon processing method and terminal equipment
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN109002245B (en) Application interface operation method and mobile terminal
CN108491143B (en) Object movement control method and mobile terminal
CN110784394A (en) Prompting method and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200214