Spin multiplicity specification method and device

Through the spin multiple-designation method, the spin multiples of molecular slices, combined molecular slices and sub-molecular slices are automatically specified, which solves the problem of difficult to deal with large-scale reaction systems and spin multiples in traditional simulation methods, and achieves high efficiency, Accurate molecular dynamics simulation.

CN114496100BActive Publication Date: 2024-11-05SHENZHEN BAY LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111573362.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-11-05
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

Traditional abortion molecular dynamics simulations are difficult to simulate complex reaction systems with more than one thousand atoms, and they cannot automatically specify the spin multiples of the molecular slices in the simulation system, resulting in inaccurate simulations.

Method used

A spin multiple-designation method is provided. By obtaining the type and relationship of the molecular slices, the spin multiples of the molecular slices, the combined molecular slices and the sub-molecular slices are automatically specified, and a computer program is executed to implement this method using a processor and a memory.

Benefits of technology

Automatically specifying the multiple spins of thousands of molecular slices in complex reaction systems is achieved, making large-scale abortion molecular dynamics simulation possible, and improving the accuracy and efficiency of the simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114496100B_ABST
    Figure CN114496100B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and computer-readable storage medium for specifying spin multiplicity. The method for specifying spin multiplicity includes: obtaining the type of molecular fragment, and specifying the spin multiplicity for the molecular fragment according to the type of the molecular fragment; judging whether two adjacent molecular fragments are combined to form a combined molecular fragment, and if so, specifying the spin multiplicity for the combined molecular fragment according to the type of the two adjacent molecular fragments; judging whether the molecular fragment is split to form at least two sub-molecular fragments, and if so, obtaining the type of the sub-molecular fragment, and specifying the spin multiplicity for the sub-molecular fragment according to the type of the sub-molecular fragment. The technical solution provided by the present application can realize the automatic specification of the spin multiplicity of molecular fragments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of molecular dynamics simulation, and in particular to a method and device for specifying spin multiplicity. Background Art

[0002] There are a large number of intermediate species and elementary reactions in complex reaction systems such as combustion, meteorology and interstellar chemistry. For example, complex reaction systems such as combustion contain nearly one million elementary reactions and tens of thousands of molecules. These intermediate products and elementary reactions constitute a large-scale complex reaction system. How to simulate such a large-scale complex reaction system is a technical challenge in this field.

[0003] The development of computational chemistry has made it possible to solve the above problems, especially ab initio molecular dynamics simulation. However, traditional ab initio molecular dynamics simulation is limited by computing power and it is difficult to simulate systems with more than one thousand atoms. The calculation time increases exponentially with the size of the reaction system. In addition, since quantum chemical calculations are based on molecular orbital theory and electrons are processed under a global delocalized image, traditional ab initio molecular dynamics simulation methods can only set the charge and spin multiplicity of the simulation system as a whole, but cannot automatically specify the charge and spin multiplicity of each molecule in the simulation system, resulting in inaccurate simulations.

[0004] The fragmentation-based ab initio molecular dynamics simulation provides a new approach to solve the above problems. On the one hand, fragmentation processing can greatly reduce the calculation scale of the reaction system; on the other hand, the fragmentation-based ab initio molecular dynamics simulation is also suitable for specifying the spin multiplicity and charge of molecular fragments. In fragmentation-based quantum chemistry simulations, the spin multiplicity of molecular fragments has a significant impact on reaction pathways and intermolecular reaction mechanisms. However, in fragmentation-based ab initio molecular dynamics simulations, the number of molecular fragments is huge, and a large number of molecular fragments exist in the form of free radicals. It is difficult for users to specify the spin multiplicity of molecular fragments one by one during the calculation process. Therefore, how to realize the automatic specification of the spin multiplicity of molecular fragments is an urgent problem to be solved. Summary of the invention

[0005] The present application provides a spin multiplicity specification method to realize automatic specification of the spin multiplicity of a molecular fragment.

[0006] On the one hand, the present application provides a method for specifying the spin multiplicity of a molecular fragment, comprising: obtaining the type of the molecular fragment, and specifying the spin multiplicity for the molecular fragment according to the type of the molecular fragment; judging whether two adjacent molecular fragments are combined to form a combined molecular fragment, and if so, specifying the spin multiplicity for the combined molecular fragment according to the type of the two adjacent molecular fragments; judging whether the molecular fragment is split to form at least two sub-molecular fragments, and if so, obtaining the type of the sub-molecular fragment, and specifying the spin multiplicity for the sub-molecular fragment according to the type of the sub-molecular fragment.

[0007] Optionally, the type of the molecular fragment is obtained, and the spin multiplicity is specified for the molecular fragment according to the type of the molecular fragment, including: determining whether the molecular fragment is a special molecular fragment, the spin multiplicity of the special molecular fragment is pre-stored in a memory; if so, obtaining the spin multiplicity of the molecular fragment from the memory; if not, specifying the spin multiplicity for the molecular fragment according to the charge number and nuclear charge number of the molecular fragment.

[0008] Optionally, determining whether the molecular fragment is a special molecular fragment includes: obtaining the atomic type and atomic coordinates included in the molecular fragment; obtaining the charge number of the molecular fragment; and determining whether the molecular fragment is a special molecular fragment according to the atomic type and atomic coordinates included in the molecular fragment and the charge number of the molecular fragment.

[0009] Optionally, determining whether two adjacent molecular fragments are combined to form a combined molecular fragment includes: acquiring a distance between the two adjacent molecular fragments; if the distance is less than or equal to a first preset threshold, the two adjacent molecular fragments are combined to form a combined molecular fragment.

[0010] Optionally, assigning a spin multiplicity to a combined molecular fragment according to types of two adjacent molecular fragments comprises: judging whether the types of the two adjacent molecular fragments satisfy a preset condition, wherein the spin multiplicity of a combined molecular fragment formed by combining two adjacent molecular fragments satisfying the preset condition is pre-stored in a memory; if so, acquiring the spin multiplicity of the combined molecular fragment from the memory; if not, acquiring the type of the combined molecular fragment, and assigning the spin multiplicity to the combined molecular fragment according to the type of the combined molecular fragment.

[0011] Optionally, obtaining the type of the combined molecular fragment and specifying the spin multiplicity for the combined molecular fragment according to the type of the combined molecular fragment includes: determining whether the combined molecular fragment is a special molecular fragment, the spin multiplicity of the special molecular fragment being pre-stored in a memory; if so, obtaining the spin multiplicity of the combined molecular fragment from the memory; if not, specifying the spin multiplicity for the combined molecular fragment according to the charge number and nuclear charge number of the combined molecular fragment.

[0012] Optionally, judging whether the combined molecular fragment is a special molecular fragment includes: obtaining the atomic type and atomic coordinates included in the combined molecular fragment; determining the charge number of the combined molecular fragment according to the charge numbers of two adjacent molecular fragments; judging whether the combined molecular fragment is a special molecular fragment according to the atomic type and atomic coordinates included in the combined molecular fragment and the charge number of the combined molecular fragment.

[0013] Optionally, determining whether a molecular fragment is split into at least two sub-molecular fragments includes: obtaining a distance between two adjacent atoms in the molecular fragment; if the distance is greater than or equal to a second preset threshold, the molecular fragment is split into at least two sub-molecular fragments.

[0014] Optionally, obtaining the type of the sub-molecular fragment and specifying the spin multiplicity for the sub-molecular fragment according to the type of the sub-molecular fragment includes: calculating the charge of each atom in the molecular fragment that is about to split, and calculating the charge number of the sub-molecular fragment according to the charge of each atom; judging whether the sub-molecular fragment is a special molecular fragment, the spin multiplicity of the special molecular fragment is pre-stored in the memory; if so, obtaining the spin multiplicity of the sub-molecular fragment from the memory; if not, specifying the spin multiplicity for the sub-molecular fragment according to the charge number and nuclear charge number of the sub-molecular fragment.

[0015] Optionally, the spin multiplicity specifying method further includes: obtaining the spin multiplicity specified by the user for the molecular fragment; determining whether the spin multiplicity specified by the user satisfies a preset rule; if so, receiving the spin multiplicity specified by the user.

[0016] On the other hand, the present application provides a spin multiplicity specification device for ab initio molecular dynamics simulation, comprising a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the computer program to implement any of the above spin multiplicity specification methods.

[0017] On the other hand, the present application provides a computer storage medium storing a computer program, which implements any of the above spin multiplicity specifying methods when executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0019] Figure 1 It is a flow chart of an embodiment of a method for specifying the spin multiplicity of a molecular fragment of the present application;

[0020] Figure 2 yes Figure 1 A schematic diagram of a flow chart of an embodiment of S100;

[0021] Figure 3 yes Figure 2 A schematic diagram of a flow chart of an embodiment of S110;

[0022] Figure 4 yes Figure 2 A schematic diagram of a flow chart of an embodiment of S130;

[0023] Figure 5 yes Figure 1 A schematic diagram of a flow chart of an embodiment of S200;

[0024] Figure 6 yes Figure 5 A schematic diagram of a flow chart of an embodiment of S250;

[0025] Figure 7 yes Figure 6 Schematic diagram of the process of an embodiment of S251

[0026] Figure 8 yes Figure 1 A schematic diagram of a flow chart of an embodiment of S300;

[0027] Fig. 9 It is a flow chart of another embodiment of the method for specifying the spin multiplicity of a molecular fragment of the present application;

[0028] Fig.10 is a schematic diagram of an embodiment of a user specifying spin multiplicity for a molecular fragment in S20;

[0029] Fig.11 It is a structural schematic diagram of an embodiment of a spin multiplicity specifying device of the present application;

[0030] Fig.12 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0031] The present application is further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present application, but are not intended to limit the scope of the present application. Similarly, the following examples are only some embodiments of the present application rather than all embodiments, and all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0032] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0033] The terms "first", "second", "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0034] See also Figure 1 , Figure 1 1 is a flow chart of an embodiment of a method for specifying the spin multiplicity of a molecular fragment of the present application. This embodiment provides a method for automatically specifying the spin multiplicity of a molecular fragment, the method comprising:

[0035] S100: Obtain the type of the molecular slice, and assign a spin multiplicity to the molecular slice according to the type of the molecular slice.

[0036] In the description of this application, the "type of molecular chips" includes two categories, conventional molecular chips and special molecular chips. Next, the special molecular chips and conventional molecular chips will be described.

[0037] The spin multiplicity of a conventional molecular fragment can be calculated by its charge number and nuclear charge number. Specifically, the total number of electrons in a conventional molecular fragment can be calculated by the following formula: Among them, N tot. is the total number of electrons in the molecular fragment, Z i is the nuclear charge number of the i-th atom in the molecular sheet, Natom is the total number of atoms in the molecular sheet, C tot. is the charge number of the molecular fragment. tot. If N is divisible by 2, the number of single electrons in the molecular fragment is 0, and the spin multiplicity of the molecular fragment = the number of single electrons + 1 = 1. tot. If it cannot be divided by 2, then the number of single electrons in the molecular fragment is 1, and the spin multiplicity of the molecular fragment = the number of single electrons + 1 = 2.

[0038] For example, CH4 +The nuclear charge number is 6+4=10, and the charge number is +1. Therefore, the total number of electrons is the nuclear charge number - charge number = 10-1 = 9, and the number of single electrons is 1, so the spin multiplicity = the number of single electrons + 1 = 2. + The nuclear charge number is 6+3=9, and the charge number is +1. From this, we can get that the total number of electrons is nuclear charge number - charge number = 9-1=8, and the number of single electrons is 0, so the spin multiplicity = number of single electrons + 1 = 1.

[0039] The special molecular fragments described in this application refer to molecules whose spin multiplicity cannot be calculated by the above calculation method, for example, the molecules shown in the following table:

[0040]

[0041] For example, the nuclear charge number of the O atom is 8. If the spin multiplicity is calculated by its charge number and the nuclear charge number, the spin multiplicity of the O atom should be 1, but in fact, the spin multiplicity of the O atom is 3. The reason is that although the O atom has 8 electrons, 2 of them are unpaired, that is, the number of single electrons N of the O atom is 2, and the spin multiplicity is N+1=2+1=3.

[0042] like Figure 2 As shown, Figure 2 yes Figure 1 The flowchart of an embodiment of S100 is shown in FIG. 1 , and S100 can be implemented by the following steps:

[0043] S110: Determine whether the molecular fragment is a special molecular fragment. The spin multiplicity of the special molecular fragment is pre-stored in the memory.

[0044] Since the spin multiplicity of a special molecular fragment cannot be calculated by its charge number and nuclear charge number, and the types of special molecular fragments are relatively limited, the spin multiplicity of the special molecular fragment can be manually specified and pre-stored in the memory.

[0045] Based on the above reasons, before assigning spin multiplicity to a molecular fragment, it is necessary to determine the type of molecular fragment. Specifically, Figure 3 As shown, Figure 3 yes Figure 2 In the flowchart of S110 of an embodiment, determining whether a molecular fragment is a special molecular fragment can be implemented by the following steps:

[0046] S111: Obtain the atomic types and atomic coordinates included in the molecular fragment.

[0047] The specific molecule to which the molecular fragment belongs can be determined based on the atomic types and atomic coordinates included in the molecular fragment.

[0048] S112: Obtain the charge number of the molecular fragment.

[0049] In this embodiment, the charge number of the molecular fragment specified by the user can be obtained. If the user does not specify, the charge number of the molecular fragment is assumed to be 0. That is to say, in this application, the charge number of the molecular fragment is determined by combining user specification and automatic specification. In some embodiments, the charge number of the molecular fragment can be specified only by the user or only by automatic specification. This application does not limit this, and those skilled in the art can choose according to actual needs.

[0050] Specifically, the charge number of the molecular fragment can be further combined with the nuclear charge number of the molecular fragment to determine whether the molecular fragment is a free radical or a charged ion.

[0051] S113: judging whether the molecular fragment is a special molecular fragment according to the atomic types and atomic coordinates included in the molecular fragment and the charge number of the molecular fragment.

[0052] This application does not limit the specific judgment method, and technicians in this field can choose it according to actual needs.

[0053] In this embodiment, although S111 is numbered earlier than S112, the actual execution order of S111 and S112 may be inconsistent with the numbering order. For example, S111 may be executed before S112, or S112 may be executed before S111, or S111 and S112 may be executed at the same time. This application does not impose any restrictions on this, and technical personnel in this field can make a choice based on actual needs.

[0054] S120: If yes, the spin multiplicity of the molecular fragment is obtained from the memory.

[0055] If the molecular fragment is a special molecular fragment, the spin multiplicity of the special molecular fragment is pre-stored in the memory, and therefore, the spin multiplicity can be directly obtained from the memory.

[0056] S130: If not, assigning a spin multiplicity to the molecular fragment according to the charge number and the nuclear charge number of the molecular fragment.

[0057] If the molecular fragment is a conventional molecular fragment, the spin multiplicity can be calculated by its charge number and nuclear charge number. Specifically, Figure 4 As shown, Figure 4 yes Figure 2 In the flowchart of S130 of an embodiment, the spin multiplicity is assigned to the molecular fragment according to the charge number and the nuclear charge number of the molecular fragment, which can be implemented by the following steps:

[0058] S131: Calculate the number of single electrons of the molecular fragment according to the charge number and nuclear charge number of the molecular fragment.

[0059] Specifically, the total number of electrons in a conventional molecular fragment can be calculated by the following formula: Among them, N tot. is the total number of electrons in the molecular fragment, Z i is the nuclear charge number of the i-th atom in the molecular sheet, Natom is the total number of atoms in the molecular sheet, C tot. is the charge number of the molecular fragment. tot. If N is divisible by 2, the number of single electrons in the molecular fragment is 0. tot. If it is not divisible by 2, then the number of single electrons in the molecule is 1.

[0060] S132: Assign spin multiplicity to the molecular fragment according to the number of single electrons in the molecular fragment.

[0061] Specifically, the spin multiplicity of a molecular fragment = the number of single electrons + 1. For example, if the number of single electrons is 0, the spin multiplicity is 1; if the number of single electrons is 1, the spin multiplicity is 2; if the number of single electrons is 2, the spin multiplicity is 3; and so on.

[0062] S200: Determine whether two adjacent molecular fragments are combined to form a combined molecular fragment. If a combination occurs, specify a spin multiplicity for the combined molecular fragment according to the types of the two adjacent molecular fragments.

[0063] In this embodiment, the combination of two adjacent molecular fragments means that the two adjacent molecular fragments collide and combine to form a new molecular fragment, namely, a combined molecular fragment. Specifically, it can be determined whether the two adjacent molecular fragments are combined by monitoring the distance between the two adjacent molecular fragments, such as Figure 5 As shown, Figure 5 yes Figure 1 The flow chart of an embodiment of S200 is shown in FIG. Determining whether two adjacent molecular fragments are combined to form a combined molecular fragment can be achieved by the following steps:

[0064] S210: Obtain the distance between two adjacent molecular fragments.

[0065] Specifically, if the distance between two adjacent molecular fragments is relatively far, it means that the two molecular fragments will not collide temporarily. If the distance between two adjacent molecular fragments is relatively close, it means that the two molecular fragments are about to collide.

[0066] S220: If the distance is less than or equal to the first preset threshold, two adjacent molecular fragments are combined to form a combined molecular fragment.

[0067] Specifically, if the distance between two adjacent molecular fragments is greater than the first preset threshold, it means that the two molecular fragments will not collide temporarily. If the distance between two adjacent molecular fragments is less than or equal to the first preset threshold, it means that the two molecular fragments are about to collide. The specific value of the first preset threshold is not limited in this application, and those skilled in the art can select it according to actual needs.

[0068] Please continue reading Figure 5 , according to the types of two adjacent molecular fragments, the spin multiplicity is specified for the combined molecular fragment, which can be achieved through the following steps:

[0069] S230: judging whether the types of two adjacent molecular fragments meet a preset condition, and the spin multiplicity of a combined molecular fragment formed by combining two adjacent molecular fragments that meet the preset condition is pre-stored in the memory.

[0070] Specifically, if two adjacent molecular fragments that are combined include a special molecular fragment, the spin multiplicity of the combined molecular fragment formed by the combination of these two molecular fragments cannot be calculated by its charge number and nuclear charge number. For example, as described in the following table:

[0071]

[0072] In addition, the spin multiplicity of a combined molecular fragment formed by combining two adjacent molecular fragments with spin multiplicity of 2 is 1. All of the above are special combinations, and the spin multiplicity of the combined molecular fragments formed under these special combinations can be pre-stored in the memory.

[0073] Therefore, before specifying the spin multiplicity of the combined molecular fragments, it is necessary to first determine whether the combination between two adjacent molecular fragments belongs to the special combination described above. If so, the combination between the two adjacent molecular fragments meets the preset conditions. If not, the combination between the two adjacent molecular fragments does not meet the preset conditions.

[0074] S240: If satisfied, the spin multiplicity of the combined molecular fragment is obtained from the memory.

[0075] As mentioned above, the combination of two adjacent molecular fragments meets the preset conditions, which means that the combination of two adjacent molecular fragments belongs to the special combination case described above. Since the spin multiplicity of the combined molecular fragment formed by the special combination case is pre-stored in the memory, the spin multiplicity of the combined molecular fragment can be directly obtained from the memory.

[0076] S250: If not satisfied, the type of the combined molecular fragment is obtained, and the spin multiplicity is assigned to the combined molecular fragment according to the type of the combined molecular fragment.

[0077] As mentioned above, the combination of two adjacent molecular fragments does not meet the preset conditions, which means that the combination of two adjacent molecular fragments does not belong to the special combination case described above. In this case, it is necessary to execute the steps of obtaining the type of the combined molecular fragment and specifying the spin multiplicity for the combined molecular fragment according to the type of the combined molecular fragment.

[0078] like Figure 6 As shown, Figure 6 yes Figure 5 In the flowchart of S250 of an embodiment, obtaining the type of the combined molecular fragment and specifying the spin multiplicity for the combined molecular fragment according to the type of the combined molecular fragment can be implemented by the following steps:

[0079] S251: Determine whether the combined molecular fragment is a special molecular fragment. The spin multiplicity of the special molecular fragment is pre-stored in the memory.

[0080] like Figure 7 As shown, Figure 7 yes Figure 6 In the flowchart of S251 of an embodiment, determining whether the combined molecular fragment is a special molecular fragment can be implemented by the following steps:

[0081] S2511: Obtain the atomic types and atomic coordinates included in the combined molecular fragment.

[0082] Specifically, this step may be similar to S111.

[0083] S2512: Determine the charge number of the combined molecular fragment according to the charge numbers of two adjacent molecular fragments.

[0084] Specifically, the charge number of the combined molecular fragment is equal to the sum of the charge numbers of the two adjacent molecular fragments forming the combined molecular fragment. For example, if the charge numbers of the two adjacent molecular fragments are +1 and -1 respectively, the charge number of the combined molecular fragment formed by the combination of the two molecular fragments is 0.

[0085] S2513: Determine whether the combined molecular fragment is a special molecular fragment according to the atomic types and atomic coordinates included in the combined molecular fragment and the charge number of the combined molecular fragment.

[0086] Specifically, this step may be similar to S113.

[0087] In this embodiment, although S2511 is numbered earlier than S2512, the actual execution order of S2511 and S2512 may be inconsistent with the numbering order. For example, S2511 may be executed before S2512, or S2512 may be executed before S2511, or S2511 and S2512 may be executed at the same time. This application does not impose any restrictions on this, and technical personnel in this field can make a choice based on actual needs.

[0088] S252: If yes, the spin multiplicity of the combined molecular fragment is obtained from the memory.

[0089] Specifically, this step may be similar to S120.

[0090] S253: If not, assigning a spin multiplicity to the combined molecular fragment according to the charge number and the nuclear charge number of the combined molecular fragment.

[0091] Specifically, this step may be similar to S130.

[0092] S300: determining whether a molecular fragment is split to form at least two sub-molecular fragments; if splitting occurs, obtaining the type of the sub-molecular fragment, and assigning a spin multiplicity to the sub-molecular fragment according to the type of the sub-molecular fragment.

[0093] In this embodiment, the splitting of a molecular fragment means that at least two smaller sub-molecular fragments separated from each other appear inside the molecular fragment. Specifically, the distance between two adjacent atoms in the molecular fragment can be monitored to determine whether the molecular fragment has split, such as Figure 8 As shown, Figure 8 yes Figure 1 The flow chart of an embodiment of S300 in FIG. 1 is a flow chart of an embodiment of S300. The determination of whether a molecular fragment is split to form at least two sub-molecular fragments may be implemented by the following steps:

[0094] S310: Obtain the distance between two adjacent atoms in the molecular slice.

[0095] Specifically, if the distance between every two adjacent atoms in a molecular fragment is relatively close, it means that the molecule will not split for the time being. If the distance between two adjacent atoms in a molecular fragment is relatively far, it means that the molecular fragment is about to split.

[0096] S320: If the distance is greater than or equal to the second preset threshold, the molecular fragment is split into at least two sub-molecular fragments.

[0097] Specifically, in a molecular fragment, if the distance between two adjacent atoms is greater than or equal to the second preset threshold, it means that the molecular fragment is about to split. In a molecular fragment, if the distance between each two adjacent atoms is less than the second preset threshold, it means that the molecular fragment will not split temporarily. The specific value of the second preset threshold is not limited in this application, and those skilled in the art can select it according to actual needs.

[0098] Please continue reading Figure 8 , obtain the type of the sub-molecule fragment, and specify the spin multiplicity for the sub-molecule fragment according to the type of the sub-molecule fragment through the following steps:

[0099] S330: Calculate the charge of each atom in the molecular fragment that is about to split, and calculate the charge number of the daughter molecular fragment according to the charge of each atom.

[0100] Specifically, the charge of each atom in the molecular fragment to be split can be calculated according to the charge of each atom, and then the charge of the entire sub-molecular fragment can be calculated according to the charge of each atom, and then the charge of the sub-molecular fragment can be specified according to the charge of the entire sub-molecular fragment.

[0101] S340: Determine whether the sub-molecule fragment is a special molecule fragment, and the spin multiplicity of the special molecule fragment is pre-stored in the memory.

[0102] Specifically, this step can be implemented by the following steps:

[0103] S341: Obtain the atomic types and atomic coordinates included in the sub-molecule fragment.

[0104] Specifically, this step may be similar to S111.

[0105] S342: judging whether the sub-molecular fragment is a special molecular fragment according to the atomic type and atomic coordinates included in the sub-molecular fragment and the charge number of the sub-molecular fragment.

[0106] Specifically, this step may be similar to S113.

[0107] S350: If yes, obtain the spin multiplicity of the sub-molecule fragment from the memory.

[0108] Specifically, this step may be similar to S120.

[0109] S360: If not, assigning a spin multiplicity to the sub-molecule fragment according to the charge number and the nuclear charge number of the sub-molecule fragment.

[0110] Specifically, this step may be similar to S130.

[0111] The method provided in the present application can not only automatically specify the spin multiplicity of the combined molecular fragments formed by the combination of molecular fragments, but also automatically specify the spin multiplicity of the sub-molecular fragments formed by the splitting of molecular fragments, thereby realizing the automatic specification of the spin multiplicity of tens of thousands of molecular fragments in a complex reaction system, making it possible to carry out large-scale ab initio molecular dynamics simulations of more than 10,000 atoms.

[0112] See also Fig. 9 , Fig. 9 is a flow chart of another embodiment of the method for specifying the spin multiplicity of a molecular fragment of the present application, Fig. 9 Compared with the embodiment in Figure 1 The difference between the embodiment in is that the user is allowed to specify the spin multiplicity for the molecular fragment. Specifically, before S100, the following steps are also included:

[0113] S10: Obtain a user instruction, and determine whether to allow the user to specify the spin multiplicity for the molecular fragment based on the user instruction.

[0114] The user can choose whether to manually specify the spin multiplicity or to have the system automatically specify the spin multiplicity. In other words, this embodiment further allows the user to specify the spin multiplicity for the molecular fragment.

[0115] S20: If the user is allowed to specify the spin multiplicity for the molecular fragment, the spin multiplicity specified by the user is obtained.

[0116] In this embodiment, the user can manually specify the spin multiplicity in the comment line of the input file. For molecular fragments not specified by the user, the spin multiplicity of the molecular fragment is specified automatically. For example, the input file can be in PDB (protein data bank) format, and in practice, the definition block of the Residue name in columns 18-20 is changed to the spin multiplicity definition area. The user can specify the spin multiplicity of each molecular fragment at any atomic position. For example Fig.10 As shown, Fig.10 This is a schematic diagram of an embodiment of the user specifying the spin multiplicity for the molecular fragments in S20. The first molecular fragment can be specified as a spin singlet state (spin multiplicity is 1), and the second molecular fragment can be specified as a spin triplet state (spin multiplicity is 3).

[0117] If the user is not allowed to specify the spin multiplicity for the molecular fragment, S100 is executed.

[0118] S30: Determine whether the spin multiplicity specified by the user satisfies a preset rule.

[0119] In this embodiment, if the user specifies a non-integer data type or specifies a spin multiplicity that does not conform to the overall charge condition of the molecular fragment, it is considered that the spin multiplicity specified by the user does not satisfy the preset rule.

[0120] S40: If satisfied, receiving the spin multiplicity specified by the user and executing S200.

[0121] If the user's designation satisfies the above-mentioned preset rules, the user's designation can be accepted. In addition, the automatic designation method can be used to designate the spin multiplicity of the molecular fragments that are not designated by the user.

[0122] S50: If not satisfied, execute S100.

[0123] In this embodiment, if the spin multiplicity specified by the user does not satisfy the above-mentioned preset rules, S100 is executed to automatically specify the spin multiplicity of the molecular fragment. In some embodiments, if the spin multiplicity specified by the user does not satisfy the preset rules, an alarm may be further issued to prompt the user that the specified error has occurred, or the user's specified authority may be closed. This application does not limit this, and those skilled in the art may make a choice according to actual needs.

[0124] In addition, the present application also provides a spin multiplicity designation device 400 for ab initio molecular dynamics simulation. Fig.11 , Fig.11 1 is a schematic diagram of the structure of an embodiment of a spin multiplicity specifying device of the present application. The spin multiplicity specifying device 400 includes a memory 410, a processor 420, and a computer program stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program, the steps of any of the spin multiplicity specifying methods described above are implemented.

[0125] The processor 420 may also be referred to as a CPU (Central Processing Unit). The processor 420 may be an integrated circuit chip having signal processing capabilities. The processor 420 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 420 may also be any conventional processor, etc.

[0126] The memory 410 may include a random access memory (RAM), a read-only memory (ROM), a flash memory, an erasable programmable read-only memory 410 (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a removable disk, a CD-ROM, and the like. The memory 410 may store program data, which may include, for example, a single instruction or many instructions, and may be distributed over several different code segments, distributed between different programs, and distributed across multiple memories. The memory 410 may be coupled to the processor 420 so that the processor 420 can read and write information from / to the memory 410. Of course, the memory 410 may be integrated into the processor 420, which is not limited in the present application, and those skilled in the art may make a selection according to actual needs.

[0127] See also Fig.12 , Fig.12 It is a schematic diagram of the structure of an embodiment of a computer-readable storage medium of the present application, and a computer program is stored on the computer-readable storage medium 500, and when the computer program is executed by the processor, the steps of any of the spin multiplicity designation methods described above are implemented. The technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage device, including a number of instructions (program data) to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the various implementation methods of the present invention. The aforementioned storage device includes: various media such as a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and electronic devices such as computers, mobile phones, laptops, tablet computers, cameras, etc. having the above storage media.

[0128] In the several embodiments provided in the present application, it should be understood that the disclosed spin multiplicity designation method can be implemented in other ways. For example, the electronic device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0131] The above descriptions are only some embodiments of the present application, and do not limit the protection scope of the present application. Any equivalent device or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for specifying the spin multiplicity of a molecular fragment, characterized in that: include: Acquire the type of the molecular slice, and assign a spin multiplicity to the molecular slice according to the type of the molecular slice; Determine whether two adjacent molecular fragments are combined to form a combined molecular fragment, and if so, assign a spin multiplicity to the combined molecular fragment according to the types of the two adjacent molecular fragments; Determine whether the molecular fragment is split to form at least two sub-molecular fragments, if split occurs, obtain the type of the sub-molecular fragment, and assign a spin multiplicity to the sub-molecular fragment according to the type of the sub-molecular fragment; The step of obtaining the type of the molecular slice and assigning the spin multiplicity to the molecular slice according to the type of the molecular slice includes: Determining whether the molecular fragment is a special molecular fragment, the spin multiplicity of the special molecular fragment is pre-stored in the memory; If yes, obtaining the spin multiplicity of the molecular fragment from the memory; If not, assigning a spin multiplicity to the molecular fragment according to the charge number and the nuclear charge number of the molecular fragment; Wherein, the step of assigning the spin multiplicity to the combined molecular fragment according to the types of the two adjacent molecular fragments comprises: Determining whether the types of the two adjacent molecular fragments meet a preset condition, wherein the spin multiplicity of a combined molecular fragment formed by combining the two adjacent molecular fragments that meet the preset condition is pre-stored in a memory; If satisfied, the spin multiplicity of the combined molecular fragment is obtained from the memory; If not, obtaining the type of the combined molecular piece, and assigning the spin multiplicity to the combined molecular piece according to the type of the combined molecular piece; The step of obtaining the type of the sub-molecular slice and specifying the spin multiplicity for the sub-molecular slice according to the type of the sub-molecular slice comprises: Calculating the charge of each atom in the molecular fragment that is about to split, and calculating the charge number of the daughter molecular fragment according to the charge of each atom; Determining whether the sub-molecule fragment is the special molecule fragment; If yes, obtaining the spin multiplicity of the sub-molecule fragment from the memory; If not, a spin multiplicity is assigned to the sub-molecule fragment according to the charge number and the nuclear charge number of the sub-molecule fragment.

2. The method for specifying spin multiplicity according to claim 1, characterized in that: The determining whether the molecular fragment is a special molecular fragment comprises: Obtaining the atomic types and atomic coordinates included in the molecular fragment; Obtaining the charge number of the molecular fragment; Whether the molecular fragment is the special molecular fragment is determined according to the atomic type and atomic coordinates included in the molecular fragment and the charge number of the molecular fragment.

3. The method for specifying spin multiplicity according to claim 1, characterized in that: The step of judging whether two adjacent molecular fragments are combined to form a combined molecular fragment comprises: Obtaining the distance between the two adjacent molecular fragments; If the distance is less than or equal to a first preset threshold, the two adjacent molecular fragments are combined to form a combined molecular fragment.

4. The method for specifying spin multiplicity according to claim 1, characterized in that: The step of obtaining the type of the combined molecular piece and assigning a spin multiplicity to the combined molecular piece according to the type of the combined molecular piece includes: Determining whether the combined molecular fragment is a special molecular fragment, the spin multiplicity of the special molecular fragment is pre-stored in a memory; If yes, then obtaining the spin multiplicity of the combined molecular piece from the memory; If not, a spin multiplicity is assigned to the composite molecular piece according to the charge number and the nuclear charge number of the composite molecular piece.

5. The method for specifying spin multiplicity according to claim 4, characterized in that: The step of judging whether the combined molecular fragment is a special molecular fragment comprises: Obtaining the atomic types and atomic coordinates included in the combined molecular fragment; Determining the charge number of the combined molecular fragment according to the charge numbers of the two adjacent molecular fragments; Whether the combined molecular fragment is the special molecular fragment is determined according to the atomic types and atomic coordinates included in the combined molecular fragment and the charge number of the combined molecular fragment.

6. The method for specifying spin multiplicity according to claim 1, characterized in that: The step of determining whether the molecular fragment is split into at least two sub-molecular fragments comprises: Obtaining the distance between two adjacent atoms in the molecular slice; If the distance is greater than or equal to a second preset threshold, the molecular fragment is split into at least two sub-molecular fragments.

7. The method for specifying spin multiplicity according to claim 1, characterized in that: Also includes: Obtaining the spin multiplicity specified by the user for the molecular fragment; Determining whether the spin multiplicity specified by the user satisfies a preset rule; If satisfied, the spin multiplicity specified by the user is received.

8. A spin multiplicity specification device for ab initio molecular dynamics simulation, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the computer program to implement the spin multiplicity specification method according to any one of claims 1 to 7.

9. A computer storage medium, characterized in that The computer storage medium stores a computer program, and when the computer program is executed, the spin multiplicity specifying method according to any one of claims 1 to 7 is implemented.