A method and simulation hardware for increasing the capacity of molecular dynamics simulations

By configuring high-speed and secondary storage space in the central computing unit, the problem of uneven atomic distribution in distributed molecular dynamics simulation is solved, achieving efficient and stable large-capacity simulation operations and improving the capacity and efficiency of the simulation system.

CN123178295APending Publication Date: 2026-11-27SHANGHAI SMARTLOGIC TECHNOLOGY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611330324.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In distributed molecular dynamics simulations, the sporadic and uneven distribution of atoms makes it impossible to simultaneously achieve large-capacity simulation, high storage utilization, and stable and efficient simulation operations.

Method used

The central computing unit is configured with high-speed storage space and supporting secondary storage space. By determining whether the total amount of atomic data exceeds the preset capacity limit, the excess part is stored in the secondary storage space and a status flag is added. The simulation calculation is completed by calling the two types of storage space in stages.

Benefits of technology

Without increasing hardware storage costs or reducing the number of atoms, the simulation system can accommodate a wider range of atoms, thereby increasing the overall simulation capacity and ensuring continuous, efficient, and stable operation of the simulation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178295A_ABST
    Figure CN123178295A_ABST
Patent Text Reader

Abstract

The application discloses a method and simulation hardware for increasing the capacity of molecular dynamics simulation, and relates to the technical field of molecular dynamics, which comprises the following steps: configuring high-speed storage space and matched secondary storage space in a central computing unit; if the amount of atomic data is not over the limit, all the data is stored in the high-speed storage space with higher read-write efficiency, so as to guarantee the basic efficiency of simulation operation; if the amount of atomic data is over the limit, the regular data is left in the high-speed storage space, the excess data is stored in the secondary storage space and a state mark is added, then the data in the two types of storage spaces is called in stages and in turn to complete simulation operation; on the basis of completely preserving the original molecular dynamics simulation running performance, the atomic scale that can be carried by the simulation system is widened, the overall simulation capacity is improved, meanwhile, the layered storage and staged operation logic is adapted to the networking architecture of the distributed computing unit, and the continuous and stable multi-round iterative operation of the simulation process can also be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of molecular dynamics technology, and in particular to a method and simulation hardware for increasing the capacity of molecular dynamics simulations. Background Technology

[0002] Distributed molecular dynamics simulation relies on multiple computational units to divide the physical space to complete the atomic allocation and migration processing. The simulation calculation sets a fixed cutoff radius and only performs force and energy-related calculations on atoms within the radius.

[0003] Before computation, the central computing unit needs to collect and summarize the atomic information of all associated computing units within the cutoff radius. Based on the maximum atomic peak value of a single computing unit, a fixed-size high-speed storage space is allocated to the central computing unit. However, during simulation, occasional situations may occur where atoms are locally clustered or spatially unevenly distributed. The instantaneous number of atoms in a single unit may far exceed the daily average. To adapt to these special working conditions, three processing methods are usually adopted: first, directly expand the reserved capacity of high-speed storage and configure the storage space according to the extreme peak atomic number; second, reduce the total number of atoms in the simulation to match the capacity limit of the existing high-speed storage; and third, abandon high-speed storage and store all atomic data in a low-speed storage medium for simulation.

[0004] However, the first approach of expanding high-speed storage significantly increases hardware storage costs, and the uneven distribution of atoms is only an occasional occurrence. Most simulation rounds cannot fully utilize the expanded storage space, resulting in long-term idleness and extremely low utilization of high-performance storage resources. The second approach of reducing the total number of atoms directly compresses the scale that the simulation can support, significantly reducing the simulation capacity and making it difficult to fully reproduce the complete physical simulation system. The third approach of storing all data in low-speed storage does not require limiting the number of atoms or expanding high-speed storage, but even in the regular simulation stage where atoms are evenly distributed, it can only rely on low-speed media to read and write data, continuously slowing down the overall simulation speed and failing to simultaneously achieve large-capacity simulation, high storage utilization, and stable and efficient simulation operations. Summary of the Invention

[0005] This invention provides a method and simulation hardware for increasing the capacity of molecular dynamics simulations, in order to solve the technical problem that distributed molecular dynamics simulations cannot simultaneously achieve large-capacity simulations, high storage utilization, and stable and efficient simulation operations when dealing with sporadic and uneven atomic distribution.

[0006] According to an aspect of an embodiment of the present invention, there is provided a method for increasing molecular dynamics simulation capacity, executed by a distributed molecular dynamics simulation hardware, where the distributed molecular dynamics simulation hardware includes a plurality of computing units, the computing units include one central computing unit and a plurality of associated computing units; the central computing unit is configured with a high-speed storage space and a secondary storage space arranged in association with the high-speed storage space, the method includes:

[0007] Receiving, by the central computing unit, atomic information transmitted by all associated computing units, and aggregating the atomic information to obtain all atomic data to be processed in the current round;

[0008] Determining, by the central computing unit, whether the total amount of all atomic data in the current round exceeds a preset capacity upper limit of the high-speed storage space, and if the total amount of all atomic data in the current round is less than or equal to the preset capacity upper limit, storing all atomic data in the current round into the high-speed storage space;

[0009] If the total amount of all atomic data in the current round is greater than the preset capacity upper limit, storing, by the central computing unit, the atomic data within the range of the capacity upper limit into the high-speed storage space, meanwhile storing the atomic data exceeding the capacity upper limit into the secondary storage space, and adding a status mark indicating that atomic data is stored to the secondary storage space;

[0010] Calling, by the central computing unit, the current round atomic data stored in the high-speed storage space, running molecular dynamics simulation operations, and completing the first-round computing task of the current round;

[0011] Detecting, by the central computing unit, the status mark of the secondary storage space, and if the status mark is detected in the secondary storage space, calling the current round atomic data in the secondary storage space to complete the secondary simulation operation of the current round, and ending the current round simulation calculation;

[0012] If the status mark is not detected in the secondary storage space, ending the current round simulation calculation.

[0013] According to another aspect of an embodiment of the present invention, there is provided an apparatus for increasing molecular dynamics simulation capacity, configured in a distributed molecular dynamics simulation hardware, where the distributed molecular dynamics simulation hardware includes a plurality of computing units, the computing units include one central computing unit and a plurality of associated computing units; the central computing unit is configured with a high-speed storage space and a secondary storage space arranged in association with the high-speed storage space, the apparatus includes:

[0014] A receiving and aggregating module, configured to receive, by the central computing unit, atomic information transmitted by all associated computing units, and aggregate the atomic information to obtain all atomic data to be processed in the current round;

[0015] The total amount judgment module is used to determine whether the total amount of all atomic data in this round exceeds the preset capacity limit of the high-speed storage space through the central computing unit. If the total amount of all atomic data in this round is less than or equal to the preset capacity limit, then all atomic data in this round will be stored in the high-speed storage space.

[0016] The secondary storage module is used to store the atomic data within the capacity limit into the high-speed storage space through the central computing unit if the total amount of atomic data in this round exceeds the preset capacity limit. At the same time, the atomic data exceeding the capacity limit is stored into the secondary storage space, and a status flag containing atomic data is added to the secondary storage space.

[0017] The first-round calculation module is used to retrieve the atomic data stored in the high-speed storage space of the central computing unit, run molecular dynamics simulation calculations, and complete the first round of calculation tasks.

[0018] The secondary simulation module is used to detect the status flags of the secondary storage space through the central computing unit. If a status flag is detected in the secondary storage space, the atomic data of this round in the secondary storage space is retrieved to complete the secondary simulation operation of this round and end the simulation operation of this round.

[0019] The "End This Round" module is used to terminate the current round of simulation calculation if no status flag is detected in the secondary storage space.

[0020] According to another aspect of the present invention, a distributed molecular dynamics simulation hardware is provided, comprising: a plurality of computing units interconnected with each other, the computing units including a central computing unit and a plurality of associated computing units; the central computing unit is integrated with a high-speed storage space and a secondary storage space configured in conjunction with the high-speed storage space, the distributed molecular dynamics simulation hardware being used to execute the method for increasing the molecular dynamics simulation capacity as described in any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method for increasing the capacity of molecular dynamics simulation as described in any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the method as described in any embodiment of the present invention.

[0023] The technical solution of this invention, by configuring a high-speed storage space and a supporting secondary storage space simultaneously in the central computing unit, can distribute and store the aggregated atomic data according to the preset capacity limit of the high-speed storage space. If the amount of atomic data does not exceed the limit, all data is stored in the high-speed storage space with higher read and write efficiency, ensuring the basic efficiency of simulation operations and storage utilization. If the amount of atomic data exceeds the limit, regular data is stored in the high-speed storage space, and excess data is stored in the secondary storage space with added status flags. Then, the data from the two types of storage spaces are called in stages to complete the simulation operation. The whole process only adds a simple status flag detection operation, and the computational overhead is negligible. There is no need to expand the hardware capacity of the original high-speed storage space or reduce the total number of atoms in the simulation system. It can cope with the working conditions of occasional uneven distribution of atoms and local atom concentration during the simulation process. While fully preserving the original molecular dynamics simulation performance, it expands the atomic scale that the simulation system can support and improves the overall simulation capacity. At the same time, the logic of hierarchical storage and staged operation is adapted to the network architecture of the distributed computing unit, which can also ensure the continuous, efficient, and stable multi-round iterative operation of the simulation process.

[0024] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a flowchart of a method for increasing the capacity of molecular dynamics simulations according to Embodiment 1 of the present invention;

[0027] Figure 2 This is a flowchart of another method for increasing the capacity of molecular dynamics simulation provided in Embodiment 2 of the present invention;

[0028] Figure 3 This is a flowchart of another method for increasing the capacity of molecular dynamics simulation provided in Embodiment 3 of the present invention;

[0029] Figure 4 This is a schematic diagram of a uniform atomic distribution applicable to an embodiment of the present invention;

[0030] Figure 5is a schematic structural diagram of an apparatus for increasing molecular dynamics simulation capacity according to a fourth embodiment of the present invention;

[0031] Figure 6 is a schematic structural diagram of distributed molecular dynamics simulation hardware implementing the method for increasing molecular dynamics simulation capacity according to the embodiment of the present invention. Detailed Embodiments

[0032] To enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0033] It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way may be interchanged under appropriate circumstances, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 is a flowchart of a method for increasing molecular dynamics simulation capacity according to Embodiment 1 of the present invention. This embodiment is applicable to molecular dynamics simulation scenarios. The method can be executed by an apparatus for increasing molecular dynamics simulation capacity, which can be implemented in the form of hardware and / or software, and is generally configured in distributed molecular dynamics simulation hardware. The distributed molecular dynamics simulation hardware includes multiple computing units, including one central computing unit and multiple associated computing units; the central computing unit is configured with high-speed storage space and secondary storage space set in coordination with the high-speed storage space.

[0036] In the embodiment of the present invention, the distributed molecular dynamics simulation hardware may be specifically understood as: a hardware entity formed by networking multiple computing nodes for completing molecular dynamics particle force and motion simulation, which implements distributed parallel computing by splitting the simulated physical space with multiple units.

[0037] Specifically, a computing unit can be understood as a basic hardware node within the distributed molecular dynamics simulation hardware that independently possesses data acquisition, data transmission, or simulation computation capabilities. The central computing unit can be understood as the core aggregation computing node of the distributed molecular dynamics simulation hardware, equipped with two levels of supporting storage hardware, used to perform global atomic data reception, storage distribution, and complete simulation computation operations. Associated computing units can be understood as ordinary hardware nodes in the distributed molecular dynamics simulation hardware other than the central computing unit, used to acquire raw atomic data from their corresponding simulation regions and transmit it to the central computing unit.

[0038] High-speed storage space can be specifically understood as: high-performance storage hardware connected to the central computing unit, with high read / write speeds and limited hardware capacity, used to prioritize the storage of regular-scale atomic data to ensure simulation efficiency. Secondary storage space can be specifically understood as: low-speed storage hardware physically interconnected with the high-speed storage space, configured within the same central computing unit as the high-speed storage space, and only temporarily storing excess atomic data exceeding the capacity of the high-speed storage.

[0039] like Figure 1 As shown, the method includes:

[0040] S110. Receive atomic information transmitted by all associated computing units through the central computing unit, and summarize it to obtain all atomic data to be processed in this round.

[0041] In this embodiment of the invention, atomic information can be specifically understood as: raw collected data characterizing the state of atoms such as position, velocity, force, and quantity within each simulation partition.

[0042] Specifically, the central computing unit reads the predefined spatial interaction truncation threshold in the simulation configuration, delineates the coverage space range centered on the grid point where its own hardware is located, automatically filters all associated computing units whose grid coordinates fall within this space range, and establishes bidirectional data transmission communication channels for each. It continuously receives the atomic state information synchronously uploaded by each associated computing unit with established links, which is collected from the simulation partition under its jurisdiction.

[0043] Specifically, the interaction cutoff threshold can be understood as a criterion used to determine whether there is an interaction between two atoms that needs to be calculated. Only when the spatial distance between two atoms falls within this threshold range will they generate forces and energy interactions; atom pairings exceeding this threshold will skip the calculation.

[0044] In addition, through the unit dynamic signal reporting mechanism, each associated computing unit can actively send its own spatial location identifier to the central computing unit. The central computing unit completes the admission judgment and establishes a communication link based on the truncation threshold. All associated units that access the link will continuously push locally collected atomic information for the central computing unit to summarize and process according to the simulation iteration sequence.

[0045] The central computing unit can switch data acquisition modes according to the real-time load status of the simulation. When the system load is stable, it adopts a batch receiving mode to receive atomic information data packets buffered by each associated computing unit at once. When the system load is high, it switches to a time-sharing polling receiving mode, sequentially querying each associated computing unit to pull atomic information according to a preset time slice. After the data reception is complete, data alignment is performed on the scattered atomic information from different partitions based on the global spatial coordinate reference to unify the data timing and coordinate standards. Duplicate particle information is removed based on the unique global particle identifier. The integrated and cleaned complete dataset is the complete atomic data to be processed in this simulation iteration.

[0046] S120. The central computing unit determines whether the total amount of all atomic data in this round exceeds the preset capacity limit of the high-speed storage space. If the total amount of all atomic data in this round is less than or equal to the preset capacity limit, then all atomic data in this round is stored in the high-speed storage space.

[0047] Specifically, the central computing unit determines whether the total amount of atomic data in this round exceeds the preset capacity limit of the high-speed storage space. If the total amount of atomic data in this round is less than or equal to the preset capacity limit, then all atomic data in this round will be stored in the high-speed storage space.

[0048] In addition, a partition pre-verification mechanism can be introduced during the transmission stage of local atomic information uploaded by each associated computing unit to the central computing unit. Each associated computing unit counts the volume of atomic information in its own simulation area in real time and makes a local volume prediction by comparing it with the local partition atomic warning threshold. If the data volume of a single partition is greater than or equal to the warning threshold, the data packets are automatically split and pushed out of peak. If it is less than the threshold, it is transmitted in batches normally. This balances the transmission load caused by multiple units uploading concurrently in the same period, reduces the congestion of data reception in the central computing unit in a short period of time, reduces the peak pressure of hardware read and write when writing concentratedly in high-speed storage space, and thus improves the overall data reception and storage write processing efficiency of the central computing unit.

[0049] S130. If the total amount of atomic data in this round is greater than the preset capacity limit, the atomic data within the capacity limit range is stored in the high-speed storage space through the central computing unit, and the atomic data exceeding the capacity limit is stored in the secondary storage space. A status flag indicating that atomic data is stored is added to the secondary storage space.

[0050] In this embodiment of the invention, the status flag can be specifically understood as: an identification identifier written into the secondary storage space, used to quickly determine whether atomic data exceeding the capacity limit is stored in the storage area.

[0051] Specifically, if the total amount of atomic data in this round exceeds the preset capacity limit, the central computing unit will split the atomic data in this round according to the atomic space partitioning sorting rules or the atomic entry timing sorting rules. When the link read and write resources are sufficient, the basic data writing in the high-speed storage space and the transfer of the excess data in the secondary storage space will be carried out simultaneously. When the link resources are tight, the high-speed storage writing will be completed first, and then the excess atomic data will be asynchronously transmitted to the secondary storage area. After the excess data storage is completed, an identification field can be embedded in the header of the data packet or an independent flag register can be called to write the storage existence status flag. The status flag can be a permanent flag that is retained throughout the entire operation until the end of this round, or a one-time temporary flag that is automatically erased after the secondary simulation operation is completed.

[0052] In addition, a data weight priority threshold can be introduced to adjust the order of splitting atomic data, and high-weight interactive atomic data can be stored in high-speed storage space first, further adapting to hierarchical storage and splitting processing under different particle interaction intensities.

[0053] Optionally, based on the above embodiments, after the central computing unit receives atomic information transmitted by multiple associated computing units, there are two optional methods for over-limit judgment and data diversion storage. The first is a unit-independent verification mode, in which the central computing unit performs over-limit judgment separately for the atomic information uploaded by each associated computing unit, compares the single-unit high-speed storage allocation quota corresponding to each associated computing unit, and only diverts and stores the over-limit atomic data of the corresponding associated unit that exceeds the quota into the secondary storage. The second is a global total unified verification mode, in which the central computing unit first integrates the atomic information uploaded by all associated computing units to obtain the complete atomic dataset for this round, and then compares the overall size of the dataset with the overall preset capacity limit of the high-speed storage space, stores all atomic data within the capacity limit range into the high-speed storage, and stores all incremental atomic data exceeding the total capacity limit into the secondary storage.

[0054] In a specific example, in a distributed interactive scenario where A is the central computing unit and B and C are related computing units within the cutoff radius, the method for judging the excess of atomic data aggregated by the central computing unit can be as follows: When the central computing unit A receives atomic data packets uploaded by B and C, it checks the number of atoms of B and C respectively according to the threshold of the dedicated storage partitions pre-divided for each related unit by the high-speed storage. If the data uploaded by unit B exceeds the upper limit of its partition, only the overflow atoms of unit B are cached in the secondary storage space. If the data of unit C exceeds the limit, the overflow data of C is diverted separately. The overflow data of each related unit is stored separately and does not interfere with each other.

[0055] Alternatively, the central computing unit A can first merge and summarize the atomic information of B and C into a complete global atomic dataset, and then compare it with the overall preset capacity limit of the high-speed storage. Regardless of the data source unit, all atoms within the capacity limit are uniformly stored in the high-speed storage, and all atomic data exceeding the total threshold are uniformly stored in the secondary storage space.

[0056] The unit-by-unit verification mode can accurately distinguish the overflow atomic data of different related units, which facilitates subsequent source tracing and batch-based secondary simulation operations, reducing the data splitting and scheduling pressure under large data volume. The global total unified verification mode has simple logic and lower computational overhead, and is suitable for simulation conditions where the atomic distribution is generally uniform and there are very few local extreme clusters. The two judgment granularities can be flexibly selected according to the simulation particle aggregation characteristics, which improves the versatility of the hierarchical storage scheme of this invention to adapt to different simulation scenarios. It can adapt to the diverse atomic data diversion processing needs without changing the core architecture of high-speed storage combined with secondary storage and staged operation.

[0057] S140. The central computing unit retrieves the atomic data stored in the high-speed storage space for this round, runs molecular dynamics simulation calculations, and completes the first round of calculation tasks.

[0058] In this embodiment of the invention, molecular dynamics simulation can be understood as a calculation process based on the current atomic data to solve particle interactions, which may include calculating interatomic forces, calculating interatomic energy parameters, etc.

[0059] The first round of computation tasks can be understood as: the basic simulation computation stage that is executed first under the hierarchical and distributed storage logic. It relies only on the atomic data of this round stored in the high-speed storage space to complete the interactive operation. It is the first stage of the single-round simulation computation process.

[0060] Specifically, the central computing unit can select a data reading scheme based on the system's real-time computing power load threshold. When computing resources are sufficient, it can use a one-time batch reading method to retrieve the complete basic atomic dataset from the high-speed storage space. When computing resources are limited, it can rely on the local particle interaction truncation threshold to read atomic data in blocks. After reading the atomic position and motion state information, it can perform molecular dynamics calculations according to the particle interaction solution rules. A computational priority threshold can also be introduced to prioritize the solution of the interaction forces of highly interactive atomic pairings, further optimizing the computation time of the first round of computation tasks.

[0061] High-interaction atom pairings can be specifically understood as a group of atom pairs that are spatially close and frequently generate strong forces. These atom pairs exhibit large variations in potential energy and force values, and have a higher weight in influencing the overall energy results of the simulation system. When computing resources are limited, a computational priority threshold can be set to prioritize the scheduling of hardware computing power to complete the interactive computation of this type of atom pairing, while secondary processing of distant, weakly interacting atom combinations.

[0062] Generally speaking, in simulations, atoms stacked in local clusters are very close to each other, which are highly interactive atom pairs. Compared with spatially dispersed and far apart atom combinations, the calculation of the interaction force and energy parameters between the two will be completed first.

[0063] S150. The central computing unit detects the status flags of the secondary storage space. If a status flag is detected in the secondary storage space, the atomic data of this round is retrieved from the secondary storage space to complete the secondary simulation operation of this round and end the simulation operation of this round.

[0064] In this embodiment of the invention, the secondary simulation operation can be specifically understood as: after completing the first round of basic simulation calculation based on the atomic data stored in the high-speed storage space, the supplementary molecular dynamics operation performed on the over-limit atomic data in the secondary storage space, together with the first round of calculation, constitutes a complete round of simulation calculation.

[0065] Specifically, the central computing unit detects the status markers in the secondary storage space. If a status marker is detected, it indicates the presence of excess atomic data to be processed. When the hardware computing power load exceeds the threshold for sufficient computing power, the central computing unit adopts a serial scheduling mode. After the first round of computation is completed, the atomic data in the secondary storage space is retrieved, and the unified force and energy solution rules are reused to perform secondary supplementary simulation operations. When the hardware computing power meets the threshold for sufficient computing power, resources can be simultaneously scheduled to perform the first and secondary operations in parallel. After all secondary simulation operations are completed, the status markers and excess atomic data corresponding to this round in the secondary storage space are automatically cleared, and the available space in the secondary storage is released to accommodate the excess atomic data generated by the offloading storage in the next round of simulation.

[0066] In addition, a threshold for delaying the start of secondary operations can be set to load secondary storage data in advance when the first round of operations is nearing completion, further shortening the waiting time between the two rounds of operations.

[0067] S160. If no status flag is detected in the secondary storage space, the simulation calculation ends.

[0068] Specifically, after the central computing unit completes the first round of simulation calculations, it initiates the verification process for the status markers in the secondary storage space. This process only executes the basic logic of reading and matching the identifier field. There are no complex calculations such as atomic forces and energy. The overall computing power and latency overhead are negligible and will not change the overall performance of the original simulation. If the verification fails to identify a valid status marker, it can be determined that there is no excess atomic data in this round and no particle information to be calculated in the secondary storage. There is no need to start the secondary supplementary calculations, and the simulation iteration is terminated.

[0069] It is important to emphasize that the computing, storage, and communication hardware specifications of each grid computing unit in the distributed molecular dynamics simulation hardware are uniform. That is, the hardware configuration, built-in high-speed storage space and secondary storage space, data transmission and reception, and particle solving computing capabilities are completely consistent. There are no computing units with fixed functions, such as dedicated central computing unit hardware or dedicated associated computing unit hardware.

[0070] When any computing unit is solving the particle interaction forces within its own cutoff range with itself as the core, it will temporarily act as the central computing unit to receive atomic information uploaded by surrounding associated computing units. If the original central computing unit falls into the cutoff interaction range of another unit, it will switch its identity to become an associated computing unit and transmit atomic data to the new central computing unit. The unit role will dynamically switch according to the interactive computing needs, and the unit will be both a central computing unit and an associated computing unit.

[0071] Understandably, to avoid logical obscurity caused by multiple reference perspectives, a single reference perspective is uniformly adopted for simplified explanation. One computing unit is selected as the reference and named the central computing unit. The remaining grid units within the spatial coverage of this unit are uniformly classified as associated computing units. This naming method does not limit any computing unit to only perform a single function.

[0072] All computing units have consistent hardware and can dynamically switch between central and associated roles, eliminating the need to customize two different specifications of computing hardware, thus reducing hardware deployment costs. Each unit can independently complete the entire process of atomic aggregation, hierarchical storage, and phased solution. When the distributed simulation system expands the grid size, it can add computing units of the same specification without difference, improving the universal adaptability of distributed molecular dynamics simulation hardware.

[0073] The technical solution of this invention, by configuring a high-speed storage space and a supporting secondary storage space simultaneously in the central computing unit, can distribute and store the aggregated atomic data according to the preset capacity limit of the high-speed storage space. If the amount of atomic data does not exceed the limit, all data is stored in the high-speed storage space with higher read and write efficiency, ensuring the basic efficiency of simulation operations and storage utilization. If the amount of atomic data exceeds the limit, regular data is stored in the high-speed storage space, and excess data is stored in the secondary storage space with added status flags. Then, the data from the two types of storage spaces are called in stages to complete the simulation operation. The whole process only adds a simple status flag detection operation, and the computational overhead is negligible. There is no need to expand the hardware capacity of the original high-speed storage space or reduce the total number of atoms in the simulation system. It can cope with the working conditions of occasional uneven distribution of atoms and local atom concentration during the simulation process. While fully preserving the original molecular dynamics simulation performance, it expands the atomic scale that the simulation system can support and improves the overall simulation capacity. At the same time, the logic of hierarchical storage and staged operation is adapted to the network architecture of the distributed computing unit, which can also ensure the continuous, efficient, and stable multi-round iterative operation of the simulation process.

[0074] Example 2

[0075] Figure 2 This is a flowchart of another method for increasing the capacity of molecular dynamics simulations provided in Embodiment 2 of the present invention. This embodiment is a refinement of the method for increasing the capacity of molecular dynamics simulations in the above embodiments. Figure 2 As shown, the method includes:

[0076] S210. Each computing unit defines a corresponding storage space range in the high-speed storage space based on the maximum number of atoms it can carry during the operation of a single computing unit.

[0077] In this embodiment of the invention, the preset maximum number of atoms to be carried can be specifically understood as: the upper limit threshold of the number of atoms that a single computing unit can accommodate within its managed simulation space, serving as the basis for dividing the high-speed storage space. The storage space range can be specifically understood as: each computing unit, based on the upper limit threshold of the number of atoms that can be accommodated within its managed simulation space, divides its own dedicated storage partition within the high-speed storage space to store the atomic information collected by its unit within the managed simulation space.

[0078] Specifically, before the process of the central computing unit receiving atomic information uploaded by each associated computing unit is initiated, a high-speed storage pre-allocation pre-operation is performed.

[0079] Each computing unit reads the maximum atomic carrying capacity threshold of each unit pre-stored in the simulation configuration file as the basis for spatial partitioning. Within the high-speed storage space equipped in the central computing unit, it partitions an independent dedicated storage partition for itself to complete the initial preset configuration of the global high-speed storage capacity. The partitioned dedicated partition is used to temporarily cache all atomic information collected in the simulation space under the jurisdiction of the corresponding unit. In this way, by using fixed partition boundaries to constrain the local data storage volume, the problem of data overflow and information loss caused by the volume of particle data collected by the unit exceeding the unconstrained storage boundary under the condition of local atomic aggregation is avoided.

[0080] In addition, dynamic storage expansion space can be set. When it is detected that the occupancy of a certain unit's storage partition is close to the partition's full load warning threshold or a sudden surge in the number of atoms is about to occur, the reserved dynamic storage expansion space can be automatically activated to expand the storage capacity. At the same time, before the start of each simulation iteration, the partition boundaries of the high-speed storage of each computing unit can be recalibrated and fine-tuned based on the particle distribution statistics of the previous round, so as to adapt to the continuously dynamically changing particle density distribution during the simulation.

[0081] S220. The central computing unit receives atomic information transmitted from all associated computing units and summarizes it to obtain all atomic data to be processed in this round.

[0082] Optionally, based on the above embodiments, the associated computing unit is a computing unit located within the cutoff radius coverage of the central computing unit. Each associated computing unit collects atomic information within its simulation space and sends it to the central computing unit for aggregation and calculation.

[0083] In this embodiment of the invention, the cutoff radius coverage area can be specifically understood as: a three-dimensional spatial region defined by taking the simulation grid corresponding to the central computing unit as the center and relying on the preset particle interaction distance threshold. Only grid units falling within this region have atomic interaction computing requirements.

[0084] Specifically, the cutoff radius of the central computing unit is determined based on a pre-set particle interaction distance threshold. All computing units whose coordinates fall within the boundary of this space are designated as associated computing units. Other outer units do not need to participate in this data upload. Each associated computing unit continuously collects atomic information within its corresponding simulation space grid. The atomic information can be sent to the central computing unit using either batch push or time-sharing polling modes. After receiving the data, the central computing unit completes the alignment and deduplication summarization process, and then performs hierarchical storage and phased simulation operations.

[0085] Furthermore, a dynamic interaction range threshold can be pre-configured as a benchmark for adaptive adjustment of the cutoff radius boundary. The particle distribution density index of each partition is statistically analyzed in real time and compared with the density judgment threshold. In grid regions where local atomic aggregation occurs, a large number of atoms move closer together, significantly shortening the particle spacing. Some neighboring atoms that were originally outside the basic cutoff interaction threshold will generate non-negligible van der Waals forces, Coulomb forces, and other particle interactions. If a fixed boundary is still used, the calculation of these atomic interactions will be missed. Therefore, the interaction coverage boundary of the central computational unit can be automatically expanded outward based on the dynamic interaction range threshold, incorporating more computational units corresponding to adjacent grids into the associated unit category. Simultaneously, all atomic information within the newly added grid is collected for subsequent force and energy parameter solutions.

[0086] When the overall particle distribution is determined to be uniform or sparse, the interparticle spacing within the mesh remains relatively large. The interaction forces between distant atoms exceeding the basic truncation interaction threshold are so weak as to be negligible, and there is no need for effective interaction calculations. Only the interactions between atoms within the truncation radius need to be calculated. Through a mechanism that dynamically expands the boundary according to the particle density, the simulation calculation requirements for fully capturing all effective atomic interaction pairings under different particle density conditions are accurately matched.

[0087] Understandably, the boundary expansion judgment logic is not limited to the single-grid particle density threshold. It can also introduce a comprehensive cross-judgment based on the aggregation linkage threshold of multiple adjacent grids to avoid the problem of frequent fluctuations in the interaction boundary caused by relying solely on a single grid index. If only a single grid density threshold is used, the appearance of sporadic atom aggregation within the grid in a short period of time will directly trigger boundary expansion, causing repeated boundary adjustments and frequent start-stop of unit transmission links in each simulation iteration, resulting in additional scheduling overhead. However, the multi-adjacent grid aggregation linkage threshold will simultaneously verify the particle density status of multiple adjacent grids around the target grid. Only when the target grid and its surrounding associated grids simultaneously reach the aggregation judgment threshold and form a continuous particle aggregation area will it be determined that there is a new continuous atomic interaction and perform boundary expansion. When a single grid aggregates instantaneously and the surrounding grid particles are sparse and uniform, the boundary will not be adjusted to stabilize the interaction coverage. After the interactive coverage boundary completes adaptive expansion and contraction adjustment, the system locates the computing units corresponding to the neighboring grids newly included in the interactive range, establishes dedicated data transmission communication links for each newly added associated unit, issues atomic data acquisition commands, and all associated units synchronously collect atomic information within their own partitions and push it to the central computing unit through the transmission link. The central computing unit completes the aggregation and processing of the dispersed atomic information in multiple partitions, supporting the subsequent hierarchical storage and phased simulation calculation process.

[0088] By selecting units within the truncation radius of the central computing unit as associated computing units, and only having these units collect and upload atomic information from the corresponding simulation space for unified central calculation, peripheral mesh units that do not have effective particle forces beyond the truncation interaction threshold can be directly filtered out. This eliminates the need to transmit and aggregate irrelevant atomic data, reducing bandwidth consumption for cross-unit data transmission and redundant overhead for data cleaning and storage at the central end. The central computing unit only performs force and energy calculations on atomic datasets within the effective interaction range, avoiding a large number of meaningless particle pairing calculations and reducing overall computing power consumption. At the same time, limiting the data collection source to a fixed range simplifies the management logic of unit communication links and reduces scheduling losses caused by frequent link creation and destruction. Thus, while fully retaining all atomic information that needs to participate in interactive calculations, the data transmission efficiency and overall simulation speed are improved simultaneously.

[0089] S230. The central computing unit determines whether the total amount of all atomic data in this round exceeds the preset capacity limit of the high-speed storage space. If the total amount of all atomic data in this round is less than or equal to the preset capacity limit, then all atomic data in this round is stored in the high-speed storage space.

[0090] Optionally, based on the above embodiments, the preset upper limit of the high-speed storage space configured in the central computing unit is set according to the number of atomic peaks and the local clustering distribution characteristics of atoms that occur when a single computing unit runs during the simulation.

[0091] In this embodiment of the invention, the number of atomic peaks can be specifically understood as: the maximum volume threshold of atoms that a single grid cell can instantaneously accommodate throughout the entire simulation cycle, representing the limit of particle data volume under local aggregation conditions, and serving as a benchmark for storage capacity planning. The local aggregation distribution characteristics of atoms can be specifically understood as: the distribution pattern of concentrated stacking and uneven density of atoms within the simulation grid, used to distinguish between normal basic atomic data and incremental excess atomic data brought about by aggregation.

[0092] Specifically, a small-scale pre-simulation sample with the same particle density, spatial structure, and material system as the simulation to be performed can be selected for iterative operation. The time-series records of the number of grid atoms and the variation law of particle density during the pre-simulation process can be collected. The pre-simulation sample can replicate the atomic aggregation variation trend of the formal simulation, and the various characteristic parameters obtained in this way have equivalent reference value.

[0093] The system acquires the time-series records of the number of atoms generated by each grid cell in each round of the complete simulation iteration process. It then iterates through all time-series values ​​to extract the peak threshold of a single atom for each cell. This peak value is used as a reference benchmark for storage resource allocation under extreme aggregation scenarios. Simultaneously, it analyzes the local aggregation distribution characteristics of grid atoms attached to the time-series data. It calls the preset particle density judgment threshold to identify two particle operation conditions within the simulation cycle: long-term sparse uniformity and short-term continuous aggregation. It statistically analyzes two types of characteristic parameters for each type of operation: the continuous iteration ratio and the atomic increment amplitude during aggregation. It substitutes the single-cell atom peak threshold and the aggregation operation statistical parameters into the preset capacity allocation calculation logic. Using the single-cell atom peak threshold as the upper limit base, it performs a reduction operation on the upper limit base using the two types of correction coefficients in the aggregation operation statistical parameters: the continuous iteration ratio and the atomic increment amplitude during aggregation, to obtain the high-speed storage capacity allocation threshold.

[0094] If, according to statistics, the simulation results show that the preset number of iterations are all under sparse and uniform conditions, with only a few iterations showing short-term atom aggregation, and the incremental atoms brought about by the aggregation only account for a small proportion of the total atom volume corresponding to the peak threshold, then the peak base number is multiplied by the sparse condition weight correction coefficient to obtain the amortization threshold. Finally, the atom carrying capacity corresponding to this amortization threshold is used as the preset capacity limit of the high-speed storage space.

[0095] The capacity limit is less than the total number of atomic peaks and is only used to store regular atomic data under conditions without severe aggregation. When local aggregation of atoms occurs in the grid and the volume of unit atomic data exceeds the upper limit threshold of high-speed storage capacity, the aggregated incremental atomic data that exceeds the capacity limit will be automatically diverted to the corresponding secondary storage space for caching.

[0096] By simultaneously combining the peak number of atoms in a single unit with the local clustering distribution characteristics of atoms to set the upper limit of the high-speed storage space capacity, and by relying on the clustering distribution characteristics to distinguish between regular basic particle data and clustered incremental particle data, the configuration scale of high-speed storage is compressed. The excess atomic data generated by local clustering is assigned to the secondary storage space to share the storage pressure, giving full play to the auxiliary storage role of the secondary cache, reducing the redundant allocation of scarce high-speed storage hardware resources, improving the utilization rate of high-speed storage hardware, reducing hardware deployment costs, and ensuring that all atomic data under normal particle distribution conditions can be stored in high-speed storage, continuously guaranteeing the read and write efficiency of simulation operations.

[0097] S240. If the total amount of atomic data in this round exceeds the preset capacity limit, the atomic data within the capacity limit range is stored in the high-speed storage space through the central computing unit, while the atomic data exceeding the capacity limit is stored in the secondary storage space, and a status flag indicating that atomic data is stored is added to the secondary storage space.

[0098] Optionally, based on the above embodiments, the secondary storage space is a low-speed storage area, used only for temporarily storing atomic data that exceeds the capacity limit of the high-speed storage space.

[0099] Specifically, the secondary storage space is a low-speed storage area. Its only function is to temporarily cache incremental atomic data that exceeds the preset capacity limit of the high-speed storage space when the local clustering of grid atoms occurs. Under normal simulation conditions where the particle distribution is uniform and sparse and no excess atomic data is generated, the secondary storage space does not retrieve or output atomic data and does not participate in the particle interaction solution calculation of any round of molecular dynamics simulation.

[0100] By setting the secondary storage space as a low-speed storage area that only temporarily stores overflow atomic data caused by aggregation and does not participate in simulation calculations under normal working conditions, the entire operation under normal particle sparse working conditions only accesses high-speed storage, avoiding read and write latency caused by the intervention of low-speed secondary storage, ensuring the efficiency of basic simulation calculations, and at the same time eliminating the need to configure high-performance read and write hardware for secondary storage, reducing the overall storage hardware cost. Secondary storage is only used to share the pressure of high-speed storage in a few local aggregation iterations, and the hierarchical storage architecture balances hardware costs and the need for complete data storage under extreme working conditions.

[0101] S250 retrieves the atomic data stored in the high-speed storage space through the central computing unit, runs molecular dynamics simulation calculations, and completes the first round of calculations.

[0102] S260. The central computing unit detects the status flags in the secondary storage space. If a status flag is detected in the secondary storage space, the atomic data of this round is retrieved from the secondary storage space to complete the secondary simulation operation of this round and end the simulation operation of this round.

[0103] S270. If no status flag is detected in the secondary storage space, the simulation calculation ends.

[0104] The technical solution of this invention defines a dedicated storage range in its own high-speed storage space based on the maximum number of atoms that a single unit can carry. By pre-defining a fixed storage interval that matches the peak atomic requirements for each computing unit, the storage boundaries of local atomic data for each unit can be clearly defined in advance, avoiding local atomic data overflow. This ensures that each associated computing unit can completely collect and temporarily store atomic information within its simulation space and stably transmit complete data to the central computing unit. It standardizes the local storage allocation of distributed hardware from the source, providing a regular and orderly data input foundation for the subsequent central computing unit to aggregate all atomic data and complete the distributed storage according to the upper limit of the high-speed storage space. This prevents the loss of atomic information and incomplete data aggregation due to the lack of boundaries in local storage, and ensures the stable and continuous operation of the entire hierarchical storage and staged operation simulation process. The central computing unit is equipped with both high-speed storage and a supporting secondary storage space. This allows for the distribution and storage of aggregated atomic data according to the preset capacity limit of the high-speed storage space. If the amount of atomic data does not exceed the limit, all data is stored in the high-speed storage space with higher read and write efficiency, ensuring the basic efficiency of simulation operations and storage utilization. If the amount of atomic data exceeds the limit, regular data is stored in the high-speed storage space, and excess data is stored in the secondary storage space with added status flags. The simulation operation is then completed by calling data from both types of storage spaces in stages. The entire process only adds a simple status flag detection operation, and the computational overhead is negligible. There is no need to expand the hardware capacity of the original high-speed storage space or reduce the total number of atoms in the simulation system. This can handle the situation of occasional uneven distribution of atoms and local atom concentration during the simulation. While fully preserving the original molecular dynamics simulation performance, it expands the atomic scale that the simulation system can support and increases the overall simulation capacity. At the same time, the logic of hierarchical storage and staged operation is adapted to the network architecture of the distributed computing unit, which can also ensure the continuous, efficient, and stable multi-round iterative operation of the simulation process.

[0105] Example 3

[0106] Figure 3 This is a flowchart illustrating another method for increasing the capacity of molecular dynamics simulations according to Embodiment 3 of the present invention. This embodiment is a refinement of the method for increasing the capacity of molecular dynamics simulations described in the above embodiments. Figure 3 As shown, the method includes:

[0107] S310. The central computing unit receives atomic information transmitted from all associated computing units and summarizes it to obtain all atomic data to be processed in this round.

[0108] S320. The central computing unit determines whether the total amount of all atomic data in this round exceeds the preset capacity limit of the high-speed storage space. If the total amount of all atomic data in this round is less than or equal to the preset capacity limit, then all atomic data in this round is stored in the high-speed storage space.

[0109] S330. If the total amount of atomic data in this round exceeds the preset capacity limit, the atomic data within the capacity limit range is stored in the high-speed storage space through the central computing unit, while the atomic data exceeding the capacity limit is stored in the secondary storage space, and a status flag indicating that atomic data is stored is added to the secondary storage space.

[0110] S340: The central computing unit retrieves the atomic data stored in the high-speed storage space for this round, runs molecular dynamics simulation calculations, and completes the first round of calculation tasks.

[0111] S350. The central computing unit detects the status flags of the secondary storage space. If a status flag is detected in the secondary storage space, the atomic data of this round is retrieved from the secondary storage space to complete the secondary simulation operation of this round and end the simulation operation of this round.

[0112] S360. If no status flag is detected in the secondary storage space, the simulation calculation ends.

[0113] S370. Based on the simulation results of this round, update instructions and operation information are sent back to each associated computing unit, and the atomic states in their respective simulation spaces are updated through each associated computing unit.

[0114] S380. Determine whether the next round of simulation calculation needs to be executed. If it is determined that the next round of simulation calculation needs to be executed, return to the operation of receiving atomic information transmitted by all associated computing units through the central computing unit.

[0115] S390. If it is determined that no further simulation calculation is needed, the overall simulation process ends.

[0116] Specifically, after the central computing unit completes the first round of calculations in high-speed storage and the secondary supplementary calculations in secondary storage (if any), it integrates the particle force, displacement changes, and other calculation information obtained in this round of solution to generate a unified atomic state update instruction. The instruction and calculation information are then sent back in batches to all associated computing units included in the interaction scope. Each associated computing unit reads the update instruction and corrects the position, velocity, and force state of all atoms in its simulation grid. Simultaneously, it refreshes the atomic time-series data cached in its local high-speed storage partition. After completing this round of particle state update, the system reads the preset simulation termination criteria and compares the total number of iterations, particle energy convergence threshold, and other conditions to determine whether to start the next round of simulation. If it is determined that continuous iteration is required, it returns to the operation of receiving atomic information transmitted by all associated computing units through the central computing unit. If it is determined that the simulation end criteria have been met, it persists all kinds of simulation calculation results accumulated throughout the process to the storage medium, stops atomic data acquisition, hierarchical cache read and write, and particle interactive solution operations, clears all temporary atomic data cached in the high-speed storage space and secondary storage space, releases communication links and storage hardware resources, and terminates the overall simulation task.

[0117] Optionally, based on the above embodiments, the atomic information transmitted by the associated computing unit is the atomic information collected by each associated computing unit in the scenario of sporadic and uneven atomic distribution during the simulation process, where there is a local clustering of atomic numbers.

[0118] In this embodiment of the invention, the scenario of sporadic and uneven atomic distribution can be specifically understood as: a random and non-continuous occurrence of grid particle density imbalance during simulation iteration, which is different from the normal particle distribution that is uniformly dispersed throughout the process. The locally concentrated atomic information can be specifically understood as: the complete state data of atomic positions, velocities, forces, etc., within the simulation space grid managed by the associated computing unit, where the total number of particles exceeds the conventional carrying capacity of the high-speed storage space due to atomic clustering.

[0119] Specifically, the key application scenario for uploading atomic information by the associated computing unit is the uneven atomic distribution and local particle aggregation in the simulation process. In this scenario, the volume of atomic data collected by the unit will exceed the capacity limit set by the high-speed storage based on the capacity sharing threshold. If only a single high-speed storage is used to cache the data, particle information overflow and loss are very likely to occur. Therefore, the system adopts a split storage scheme to carry the regular basic atomic data in the high-speed storage space and temporarily cache the overflow incremental atomic data in the secondary storage space. Correspondingly, there is a phased simulation operation logic. The high-speed storage data is read first to complete the mainstream particle interaction solution, and then the overflow data in the secondary storage is called to supplement the calculation of the remaining particle forces. The entire hierarchical storage and phased operation architecture does not require additional expansion of high-speed storage hardware resources, nor does it require the deletion of any atoms participating in the iterative calculation in the simulation system. It relies on the secondary storage to share the data storage pressure under extreme aggregation conditions. Under the same hardware configuration, it can support the simulation system to accommodate more atoms for synchronous operation. Moreover, the low-speed secondary storage will not be called in the regular iteration stage when the particles are uniformly sparse. There is no additional increase in read, write and solver latency, and the original simulation performance is stably preserved.

[0120] By employing a combined solution of high-speed storage and secondary storage for the occasional local clustering of atoms, and staged computation, this method overcomes the limitation of high-speed storage capacity on the total scale of atoms in the simulation by utilizing secondary storage space to handle excess atomic data generated by clustering. Under the same hardware conditions, it significantly increases the total number of atoms that the simulation system can support. Meanwhile, conventional non-clustering iterations use only high-speed storage to complete all computations, avoiding read / write losses caused by low-speed storage and not reducing the original simulation speed. It can meet the simulation needs of large-scale atoms with occasional local clustering and stable simulation efficiency without additional investment in high-performance storage hardware.

[0121] In a specific example, distributed molecular dynamics simulations rely on physical space partitioning to handle atom allocation and migration. Conventional allocation architectures can run stably in most simulation scenarios where particles are uniformly distributed. However, some simulation scenarios exhibit uneven atomic density distribution within the physical space. Existing technologies generally address localized atom aggregation and uneven distribution by reducing the overall atomic scale of the simulation. This allows the pre-allocated high-speed storage space of each computing unit to accommodate the peak atomic data under aggregation conditions. This solution fundamentally constrains the total number of atoms the simulation system can accommodate, significantly reducing the upper limit of the simulation scale.

[0122] Molecular dynamics simulations set a fixed interaction distance as the cutoff radius. Within the cutoff radius, all atomic pairs must complete the solution of force and energy parameters. Before the operation starts, all associated computing units within the cutoff radius coverage area of ​​the central computing unit need to collect all atomic information in their own grids and transmit it to the central computing unit for aggregation and solution.

[0123] For example, in a 3D physical simulation space, the truncation range corresponding to the central computing unit typically covers 125 grid computing units (5×5×5). After removing the central computing unit itself, there are still 124 surrounding related computing units that need to upload atomic data. Under normal uniform distribution conditions, the average scale of atoms carried by all computing units is the baseline value. During the simulation, the instantaneous peak atomic value of any grid is less than twice the average. Existing solutions will directly reserve high-speed storage space for each surrounding unit based on the peak atomic value of a single unit. At this time, the total high-speed storage capacity pre-allocated by the central computing unit is the total number of covered units multiplied by the peak atomic number of a single unit. However, under normal simulation conditions, the actual average total atomic volume of each unit is only half of the peak standard, directly causing the utilization rate of high-speed storage hardware space to only maintain half level.

[0124] If, under the same total atomic scale, the simulation shows uneven atomic distribution and particle aggregation in local meshes, the instantaneous peak atomic value of a single unit will double again. The original scheme of fully reserving storage must simultaneously double the reserved storage capacity of a single unit, and the total amount of high-speed storage pre-allocated in the central computing unit will simultaneously increase to twice the original amount. The actual space utilization rate of high-speed storage hardware will further decline to one-quarter. High-performance high-speed storage hardware itself has scarce hardware capacity resources and high cost. It will occupy high-speed storage resources by a factor of two and be in a state of low load utilization for a long time, which will greatly increase the hardware operating burden of the simulation system.

[0125] To avoid losing atomic data due to high-speed storage overflow, current technology can only reduce the total atomic scale of the simulation by halving the average number of atoms per grid. This reduces the peak atomic size of each unit to fit the limited high-speed storage capacity, ultimately resulting in a significant decrease in the effective simulation atomic capacity that the entire simulation system can support, making it impossible to perform large-scale molecular dynamics simulations.

[0126] Understandably, all atomic numbers mentioned in the text are used only for illustrating the principles and are not intended to limit the actual hardware specifications of the device.

[0127] Figure 4This is a schematic diagram of a uniform atom distribution applicable to an embodiment of the present invention. As shown in the figure, multiple horizontal and vertical straight lines intersect each other perpendicularly to divide an equal square grid. A circular area is drawn in the center of the overall grid area to represent the cutoff radius coverage of the central computing unit. The circular boundary intersects with the multi-layer square grid. The interior of the circular area is filled with a large number of uniformly discretely arranged dots, representing the conventional simulation atoms in a uniformly distributed state. A small cluster of tightly arranged dots is gathered at the center of the circular area to indicate the local atom aggregation region that occasionally occurs during the simulation. Outside the circular cutoff range, several dots are also scattered in the square grid to represent the peripheral atoms outside the cutoff radius that do not need to participate in the interactive calculation. Under normal circumstances, most atoms are uniformly dispersed in each grid cell within the cutoff circle, resulting in balanced storage occupation and stable space utilization. However, if local atom aggregation occurs in the central grid, the number of atoms in a single grid increases significantly. If the traditional solution of reserving high-speed storage according to the peak value is still used, it will result in a large amount of high-speed storage hardware resources being idle and wasted.

[0128] For example, the method proposed in this embodiment of the invention reserves a fixed capacity of high-speed storage space for each computing unit based on a peak of 80 atoms per computing unit. After receiving the atomic information uploaded by the associated units, the central computing unit performs split storage processing: if the number of atoms uploaded by a single unit does not exceed the high-speed storage capacity limit, all atomic information is directly stored in the high-speed storage space; if the number of atoms uploaded by a single unit exceeds the high-speed storage preset limit, only the basic atomic data within the limit is stored in the high-speed storage space, and the aggregated incremental atomic data exceeding the limit is transferred to the secondary storage space. At the same time, a corresponding status mark is generated to record that the secondary storage space has stored the overflow atomic information.

[0129] When the central computing unit performs simulation calculations, it adopts a phased calculation logic. It first reads all the atomic information stored in the high-speed storage space to complete the first round of force and energy related calculations. After the first round of calculations is completed, the judgment logic is executed to check whether there is any overflow atomic data in the secondary storage space. If there is no atomic data in the secondary storage space, the secondary supplementary calculation process is skipped directly. If atomic information is detected in the secondary storage space, the temporarily stored aggregated incremental atomic data is read to complete the subsequent secondary simulation calculations.

[0130] Understandably, the preset upper limit of the high-speed storage space configured in the central computing unit can also be set based on the number of atomic peaks and the local clustering distribution characteristics of atoms that occur when a single computing unit is running during the simulation.

[0131] In most iterations of the simulation, the atoms are uniformly distributed, and the number of atoms in a single unit will not exceed the upper limit of the high-speed storage capacity. All particle calculations are completed solely using high-speed storage space. The entire process only adds one step to determine whether there is data in the secondary storage. The additional computing power overhead caused by this determination is extremely low and will hardly affect the simulation efficiency.

[0132] By employing a high-speed, multi-level storage architecture with off-flow caching and staged computation, the system can handle extreme simulation conditions such as localized atom aggregation and uneven distribution of atoms without requiring a significant increase in high-performance, high-speed storage hardware or artificial reduction in the total atomic scale of the simulation system. This approach not only fully preserves the original molecular dynamics simulation performance but also ensures compatibility with extreme simulation conditions. In essence, it enhances the total atomic scale that the entire simulation system can support.

[0133] The technical solution of this invention, by configuring a high-speed storage space and a supporting secondary storage space simultaneously in the central computing unit, can distribute and store the aggregated atomic data according to the preset capacity limit of the high-speed storage space. If the amount of atomic data does not exceed the limit, all data is stored in the high-speed storage space with higher read and write efficiency, ensuring the basic efficiency of simulation operations and storage utilization. If the amount of atomic data exceeds the limit, regular data is stored in the high-speed storage space, and excess data is stored in the secondary storage space with added status flags. Then, the data from the two types of storage spaces are called in stages to complete the simulation operation. The whole process only adds a simple status flag detection operation, and the computational overhead is negligible. There is no need to expand the hardware capacity of the original high-speed storage space or reduce the total number of atoms in the simulation system. It can cope with the working conditions of occasional uneven distribution of atoms and local atom concentration during the simulation process. While fully preserving the original molecular dynamics simulation performance, it expands the atomic scale that the simulation system can support and improves the overall simulation capacity. At the same time, the logic of hierarchical storage and staged operation is adapted to the network architecture of the distributed computing unit, which can also ensure the continuous, efficient, and stable multi-round iterative operation of the simulation process. By sending update instructions and computational data back to each associated computational unit after each round of simulation calculation, the system ensures that each unit can promptly update the real-time states of atomic positions, forces, and motions within its simulation space. This guarantees that the atomic information collected in each simulation iteration closely matches the actual dynamic changes of atoms. Furthermore, the system's logic for determining the next round of simulation calculation allows for either cyclic iteration or termination of the overall simulation task. This enables closed-loop continuous iterative computation of molecular dynamics simulations, ensuring the temporal accuracy and continuity of atomic data across multiple simulation rounds. It avoids simulation distortion caused by atomic state lag, adapting to the step-by-step computation characteristics of distributed architectures and flexibly meeting the iterative requirements of different simulation tasks. This significantly improves the integrity, stability, and adaptability of the overall simulation process.

[0134] Example 4

[0135] Figure 5 This is a schematic diagram of a device for increasing the capacity of molecular dynamics simulations, provided in Embodiment 4 of the present invention. Figure 5 As shown, the device includes: a receiving and summarizing module 510, a total quantity judgment module 520, a secondary storage module 530, a first-round calculation module 540, a secondary simulation module 550, and a round-ending module 560, wherein:

[0136] The receiving and summarizing module 510 is used to receive atomic information transmitted by all associated computing units through the central computing unit, and summarize it to obtain all atomic data to be processed in this round.

[0137] The total amount judgment module 520 is used to determine whether the total amount of all atomic data in this round exceeds the preset capacity limit of the high-speed storage space through the central computing unit. If the total amount of all atomic data in this round is less than or equal to the preset capacity limit, then all atomic data in this round will be stored in the high-speed storage space.

[0138] The secondary storage module 530 is used to store the atomic data within the capacity limit into the high-speed storage space through the central computing unit if the total amount of atomic data in this round exceeds the preset capacity limit, and at the same time store the atomic data exceeding the capacity limit into the secondary storage space, and add a status flag containing atomic data to the secondary storage space.

[0139] The first-round calculation module 540 is used to retrieve the atomic data stored in the high-speed storage space of this round through the central computing unit, run molecular dynamics simulation calculations, and complete the first round of calculation tasks.

[0140] The secondary simulation module 550 is used to detect the status flags of the secondary storage space through the central computing unit. If a status flag is detected in the secondary storage space, the atomic data of this round in the secondary storage space is retrieved to complete the secondary simulation operation of this round and end the simulation operation of this round.

[0141] Module 560 terminates the current round of simulation calculation if no status flag is detected in the secondary storage space.

[0142] The technical solution of this invention, by configuring a high-speed storage space and a supporting secondary storage space simultaneously in the central computing unit, can distribute and store the aggregated atomic data according to the preset capacity limit of the high-speed storage space. If the amount of atomic data does not exceed the limit, all data is stored in the high-speed storage space with higher read and write efficiency, ensuring the basic efficiency of simulation operations and storage utilization. If the amount of atomic data exceeds the limit, regular data is stored in the high-speed storage space, and excess data is stored in the secondary storage space with added status flags. Then, the data from the two types of storage spaces are called in stages to complete the simulation operation. The whole process only adds a simple status flag detection operation, and the computational overhead is negligible. There is no need to expand the hardware capacity of the original high-speed storage space or reduce the total number of atoms in the simulation system. It can cope with the working conditions of occasional uneven distribution of atoms and local atom concentration during the simulation process. While fully preserving the original molecular dynamics simulation performance, it expands the atomic scale that the simulation system can support and improves the overall simulation capacity. At the same time, the logic of hierarchical storage and staged operation is adapted to the network architecture of the distributed computing unit, which can also ensure the continuous, efficient, and stable multi-round iterative operation of the simulation process.

[0143] Furthermore, based on the above embodiments, the device for increasing the molecular dynamics simulation capacity may further include: a range delineation module, wherein:

[0144] The scope delineation module is used to delineate the corresponding storage space range in the high-speed storage space before receiving atomic information transmitted by all associated computing units through the central computing unit. This is based on the maximum number of atoms that a single computing unit can carry during operation.

[0145] Based on the above embodiments, the associated computing unit is a computing unit located within the cutoff radius of the central computing unit. Each associated computing unit collects atomic information within its simulation space and sends it to the central computing unit for aggregation and calculation.

[0146] Based on the above embodiments, the preset capacity limit of the high-speed storage space configured in the central computing unit is set according to the number of atomic peaks and the local clustering distribution characteristics of atoms that occur when a single computing unit runs during the simulation.

[0147] Based on the above embodiments, the secondary storage space is a low-speed storage area, which is only used to temporarily store atomic data that exceeds the capacity limit of the high-speed storage space.

[0148] Furthermore, based on the above embodiments, the device for increasing the molecular dynamics simulation capacity may further include: an update state module, a return execution module, and a termination module, wherein:

[0149] The update state module is used to send update instructions and operation information back to each associated calculation unit after the current round of simulation calculation is completed, based on the results of the current round of simulation calculation, so that each associated calculation unit can update the atomic state in its respective simulation space.

[0150] Return to the execution module to determine whether the next round of simulation calculation needs to be executed. If it is determined that the next round of simulation calculation needs to be executed, return to the execution module to receive the atomic information transmitted by all associated computing units through the central computing unit.

[0151] End the overall module. This is used to terminate the overall simulation process if it is determined that no further simulation calculations are needed.

[0152] Based on the above embodiments, the atomic information transmitted by the associated computing unit is the atomic information collected by each associated computing unit in the scenario of sporadic and uneven atomic distribution during the simulation process, where there is a local cluster of atomic numbers.

[0153] The apparatus for increasing molecular dynamics simulation capacity provided in the embodiments of the present invention can execute the method for increasing molecular dynamics simulation capacity provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0154] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0155] In the technical solution disclosed herein, the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data all comply with the relevant laws, regulations and standards of the relevant countries and regions, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse.

[0156] In the technical solution disclosed herein, if automated decision-making is involved, a corresponding operation entry will be provided to the user, allowing the user to choose to agree to or reject the automated decision result; if the user chooses to reject, the process will proceed to the expert decision-making process.

[0157] Example 5

[0158] Figure 6This is a schematic diagram of the structure of distributed molecular dynamics simulation hardware that implements the method for increasing the simulation capacity of molecular dynamics according to embodiments of the present invention. The distributed molecular dynamics simulation hardware 600 includes multiple interconnected computing units, each including a central computing unit 610 and multiple associated computing units 620. The central computing unit 610 integrates a high-speed storage space 630 and a secondary storage space 640 configured in conjunction with the high-speed storage space 630. The distributed molecular dynamics simulation hardware 600 is used to execute the method for increasing the simulation capacity of molecular dynamics as described in any embodiment of the present invention.

[0159] Specifically, the distributed molecular dynamics simulation hardware 600 is a simplified two-dimensional schematic diagram of a three-dimensional mesh simulation hardware. The hardware as a whole includes multiple sets of computing units that establish communication links with each other. The computing units are divided into a central computing unit 610 for information aggregation and solution tasks, and several associated computing units 620 distributed within the truncation radius around the central unit. The figure only shows the multiple sets of associated computing units 620 arranged on the two-dimensional plane. In the three-dimensional real simulation scene, the associated computing units will continue to be arranged along the depth dimension, together forming a three-dimensional spherical truncation interaction space. The central computing unit 610 has a built-in high-speed storage space 630 for storing regular atomic data, and is also equipped with an independently set secondary storage space 640 for temporarily caching and aggregating overflow atomic data. The high-speed storage space 630 and the secondary storage space 640 are directly connected to the central computing unit 610. The associated computing units 620 push the atomic information collected by their own mesh to the central computing unit 610 through the communication line, and then the central unit completes the hierarchical and distributed storage and staged simulation calculation.

[0160] The distributed molecular dynamics simulation hardware of this invention integrates high-speed storage space and secondary storage space into a central computing unit, and is constructed with distributed related computing units arranged in a three-dimensional truncation radius space. The hardware architecture uses a two-dimensional view to simplify the representation of the three-dimensional mesh layout. The hardware architecture is fully compatible with the core method logic of atomic hierarchical split storage and staged computation. The three-dimensional multi-dimensional related unit layout can completely capture all atomic information to be computed within the spherical truncation interaction range. The central unit uniformly manages the two-level storage to facilitate automatic splitting of atomic data. There is no need to configure large-capacity high-speed storage for each related unit separately. Relying on the multi-level storage design at the hardware level, the cost of high-speed storage hardware is balanced with the data storage requirements of extreme clustering conditions. The total scale of simulation atoms that the entire hardware can support is increased without reducing the simulation speed.

[0161] In some embodiments, the method for increasing molecular dynamics simulation capacity can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed onto the distributed molecular dynamics simulation hardware via ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the distributed molecular dynamics simulation hardware, one or more steps of the method for increasing molecular dynamics simulation capacity described above can be performed. Alternatively, in other embodiments, the distributed molecular dynamics simulation hardware can be configured to perform the method for increasing molecular dynamics simulation capacity by any other suitable means (e.g., by means of firmware).

[0162] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0164] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0165] To provide user interaction, the systems and techniques described herein can be implemented on distributed molecular dynamics simulation hardware, which includes: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the distributed molecular dynamics simulation hardware. Other types of devices can also be used to provide user interaction; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0166] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0167] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0168] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0169] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for increasing the capacity of molecular dynamics simulations, characterized in that, performed by a distributed molecular dynamics simulation hardware, the distributed molecular dynamics simulation hardware includes multiple computing units, the computing units include a central computing unit and multiple associated computing units; the central computing unit is configured with a high-speed storage space and a secondary storage space arranged in association with the high-speed storage space, including: receiving, by the central computing unit, atomic information transmitted by all associated computing units, and aggregating the atomic information to obtain all atomic data to be processed in the current round; determining, by the central computing unit, whether a total amount of the all atomic data in the current round exceeds a preset capacity upper limit of the high-speed storage space, and if the total amount of the all atomic data in the current round is less than or equal to the preset capacity upper limit, storing the all atomic data in the current round into the high-speed storage space; if the total amount of the all atomic data in the current round is greater than the preset capacity upper limit, storing, by the central computing unit, atomic data within a capacity upper limit range into the high-speed storage space, and simultaneously storing atomic data exceeding the capacity upper limit into the secondary storage space, and adding a status mark indicating that atomic data is stored in the secondary storage space; invoking, by the central computing unit, the current-round atomic data stored in the high-speed storage space, and running a molecular dynamics simulation calculation to complete a first-round computing task of the current round; detecting, by the central computing unit, the status mark of the secondary storage space, and if it is detected that the secondary storage space has the status mark, invoking the current-round atomic data in the secondary storage space to complete a secondary simulation calculation of the current round, and ending the simulation calculation of the current round; if it is not detected that the secondary storage space has the status mark, ending the simulation calculation of the current round.

2. The method according to claim 1, characterized in that, before receiving, by the central computing unit, the atomic information transmitted by all associated computing units, the method further includes: delimiting, by each computing unit, a corresponding storage space range in the high-speed storage space according to a maximum number of atoms preset to be carried during operation of a single computing unit.

3. The method according to claim 1, characterized in that, the associated computing unit is a computing unit located within a coverage range of a cutoff radius of the central computing unit, and each associated computing unit collects atomic information in a simulation space to which it belongs and sends the atomic information to the central computing unit, for the central computing unit to perform aggregation and calculation.

4. The method according to claim 1, characterized in that, the preset capacity upper limit of the high-speed storage space configured by the central computing unit is set according to a peak number of atoms and a local aggregation distribution characteristic of atoms that occur when a single computing unit operates during a simulation process.

5. The method according to claim 1, characterized in that, the secondary storage space is a low-speed storage area, and is only used for temporarily storing atomic data exceeding the capacity upper limit of the high-speed storage space.

6. The method according to claim 1, characterized in that, after ending the simulation calculation of the current round, the method further includes: according to a simulation calculation result of the current round, returning an update instruction and calculation information to each associated computing unit, and updating, by each associated computing unit, an atomic state in the simulation space to which it belongs; determining whether a next round of simulation calculation needs to be performed, and if it is determined that the next round of simulation calculation needs to be performed, returning to perform the operation of receiving, by the central computing unit, the atomic information transmitted by all associated computing units; if it is determined that the next round of simulation calculation does not need to be performed, ending an entire simulation process.

7. The method according to claim 1, characterized in that, the atomic information transmitted by the associated computing unit is atomic information with local quantity aggregation collected by each associated computing unit in a scenario where atoms are occasionally unevenly distributed during a simulation process.

8. A distributed molecular dynamics simulation hardware, characterized in that, including: The distributed molecular dynamics simulation hardware comprises multiple interconnected computing units, including a central computing unit and multiple associated computing units; the central computing unit is integrated with a high-speed storage space and a secondary storage space configured in conjunction with the high-speed storage space; the distributed molecular dynamics simulation hardware is used to execute the method for increasing the molecular dynamics simulation capacity as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for increasing the capacity of molecular dynamics simulations as described in any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for increasing the capacity of molecular dynamics simulations according to any one of claims 1-7.