Distributed numerical simulation system implementation method and device, equipment and storage medium

By creating multiple system containers and deploying a multiphysics numerical simulator in a cloud computing environment, and utilizing reverse proxy and encryption protocols, the problem of a single computer being unable to handle large-scale numerical simulation calculations was solved, thus realizing an efficient and secure distributed numerical simulation system.

CN122021092APending Publication Date: 2026-05-12PETROCHINA SHENZHEN NEW ENERGY RESEARCH INSTITUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411609201.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

A single computer is insufficient to efficiently solve large-scale numerical simulation problems, resulting in low computational efficiency, slow computer response, or even system crashes.

Method used

By creating system container templates using cloud computing technology, multiple system containers are generated, basic software components required for interactive computing are installed, and a multiphysics numerical simulator is deployed in the interactive computing environment. A distributed numerical simulation system is realized using reverse proxy and encryption protocols.

Benefits of technology

It enhances the interactivity and security of the simulation system, improves the efficiency of numerical simulation processing, and ensures efficient computation and secure data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122021092A_ABST
    Figure CN122021092A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of cloud computing, and discloses a distributed numerical simulation system implementation method, device and equipment and a storage medium, and the method comprises the following steps: creating a system container template through a cloud computing technology, creating a plurality of system containers according to the system container template, installing basic software components required by interactive computing, and establishing a plurality of distributed numerical simulation systems according to the basic software components; an interactive computing environment is obtained, a multi-physics field numerical simulator is installed in a system container of the interactive computing environment, an encryption protocol is configured through a reverse proxy, and a distributed numerical simulation system is achieved. According to the invention, the system container template is created by using the cloud computing technology, the plurality of system containers are generated, the basic software component is installed to construct the interactive computing environment, and on the basis, the multi-physics field numerical simulator is deployed, and the distributed numerical simulation system is realized through the reverse proxy and encryption protocol. Interaction and safety of the simulation system are enhanced, and numerical simulation processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and in particular to a method, apparatus, device and storage medium for implementing a distributed numerical simulation system. Background Technology

[0002] Numerical simulation models are becoming increasingly large-scale, and the need for higher computational precision necessitates the increasing use of local mesh refinement. This combination results in numerical models discretized using the Finite Element Method (FEM) or Finite Volume Method (FVM) typically having millions, tens of millions, or even hundreds of millions of nodes (or elements). Ultimately, these models require assembling and solving systems of linear algebraic equations of orders in the tens of millions, billions, or tens of billions. Such large-scale computations, when initiated on a standard computer, can easily lead to sluggish response or even a near-crash. Summary of the Invention

[0003] The main purpose of this application is to provide a method, apparatus, device and storage medium for implementing a distributed numerical simulation system, which aims to solve the technical problem that a single computer cannot efficiently solve large-scale numerical simulation calculations.

[0004] To achieve the above objectives, this application proposes a method for implementing a distributed numerical simulation system, the method comprising:

[0005] A system container template can be created using cloud computing technology, and multiple system containers can be created based on the system container template;

[0006] Install the basic software components required for interactive computing to obtain an interactive computing environment;

[0007] A multiphysics numerical simulator is installed in the system container of the interactive computing environment, and an encryption protocol is configured through a reverse proxy to realize a distributed numerical simulation system.

[0008] In one embodiment, the step of installing a multiphysics numerical simulator in the system container of the interactive computing environment and configuring an encryption protocol through a reverse proxy to realize a distributed numerical simulation system includes:

[0009] A multiphysics numerical simulator is installed in the system container of the interactive computing environment;

[0010] Verify the installation information of the multiphysics numerical simulator, obtain the verification results, and adjust and update the multiphysics numerical simulator according to the verification results;

[0011] A reverse proxy node is generated by copying the system container template, and after installing the reverse proxy based on the reverse proxy node, the reverse proxy is configured.

[0012] The unencrypted protocol of the interactive computing environment is switched to an encrypted protocol for external services according to the preset configuration information;

[0013] On the reverse proxy node, system services are exposed to target users to realize a distributed numerical simulation system.

[0014] In one embodiment, the step of exposing system services to target users on the reverse proxy node to realize the distributed numerical simulation system includes:

[0015] On the reverse proxy node, define matching rules for specific paths;

[0016] According to the matching rules, requests for the specific path are forwarded to the actual system address, and full-duplex communication protocol support based on the transport protocol is enabled.

[0017] In one embodiment, the step of installing the basic software components required for interactive computing to obtain an interactive computing environment includes:

[0018] After logging into the system container using the default user, a new dedicated user for the interactive computing environment is created, and the permissions of the new dedicated user are set to superuser management permissions.

[0019] After logging into the system container as a dedicated new user, the basic software components required for interactive computing are installed.

[0020] Configure and test the basic software components to obtain an interactive computing environment.

[0021] In one embodiment, the step of configuring and testing the basic software components to obtain an interactive computing environment includes:

[0022] A configuration file is generated based on the aforementioned basic software components, and key configuration items in the configuration file are modified according to configuration requirements.

[0023] Configure the basic software components according to the configuration file and the built-in instructions in the file;

[0024] After the basic software components pass testing, an interactive computing environment is obtained.

[0025] In one embodiment, after the steps of installing a multiphysics numerical simulator in the system container of the interactive computing environment and configuring an encryption protocol through a reverse proxy to realize a distributed numerical simulation system, the method further includes:

[0026] Upon receiving a computation request, estimate the computational scale of the request.

[0027] The required computing power is assessed based on the computing scale, and the corresponding high-performance computing nodes in the distributed numerical simulation system are matched to process the computing request based on the required computing power.

[0028] In one embodiment, after the steps of installing a multiphysics numerical simulator in the system container of the interactive computing environment and configuring an encryption protocol through a reverse proxy to realize a distributed numerical simulation system, the method further includes:

[0029] The lightweight plotting component in the distributed numerical simulation system enables online post-processing of two-dimensional and three-dimensional plots of smaller data volumes.

[0030] The high-performance visualization processing node in the distributed numerical simulation system is invoked according to the client-server model. The high-performance visualization processing node is used to perform post-processing on the 3D graph of the large data volume to obtain the post-processing result of the large data volume.

[0031] The large data volume and the post-processing results of the large data volume are saved to network-attached storage and / or storage area network.

[0032] Furthermore, to achieve the above objectives, this application also proposes a distributed numerical simulation system implementation apparatus, which includes:

[0033] The container creation module is used to create system container templates using cloud computing technology, and to create multiple system containers based on the system container templates.

[0034] The environment setup module is used to install the basic software components required for interactive computing and obtain an interactive computing environment.

[0035] The system implementation module is used to install a multiphysics numerical simulator in the system container of the interactive computing environment and configure an encryption protocol through a reverse proxy to realize a distributed numerical simulation system.

[0036] In addition, to achieve the above objectives, this application also proposes a distributed numerical simulation system implementation device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the distributed numerical simulation system implementation method described above.

[0037] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the distributed numerical simulation system implementation method described above.

[0038] The technical solution proposed in this application creates a system container template using cloud computing technology, and then creates multiple system containers based on the system container template. Basic software components required for interactive computing are installed to obtain an interactive computing environment. A multiphysics numerical simulator is installed within the system containers of this interactive computing environment, and an encryption protocol is configured through a reverse proxy to realize a distributed numerical simulation system. Because this application utilizes cloud computing technology to create a system container template, generates multiple system containers, and installs basic software components to build an interactive computing environment, and then deploys a multiphysics numerical simulator on this basis, and realizes a distributed numerical simulation system through a reverse proxy and encryption protocol, the interactivity and security of the simulation system are enhanced, and the efficiency of numerical simulation processing is improved. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a flowchart illustrating an embodiment of the distributed numerical simulation system implementation method of this application.

[0042] Figure 2 This application presents the software architecture for the distributed numerical simulation system.

[0043] Figure 3 This is a flowchart illustrating Embodiment 2 of the distributed numerical simulation system implementation method of this application;

[0044] Figure 4 This is a schematic diagram of the login interface of the distributed numerical simulation system of this application;

[0045] Figure 5 This is a schematic diagram of the drawing interface of the distributed numerical simulation system of this application;

[0046] Figure 6 This is a flowchart illustrating Embodiment 3 of the distributed numerical simulation system implementation method of this application;

[0047] Figure 7 This is a schematic diagram of the module structure of the distributed numerical simulation system implementation device according to an embodiment of this application;

[0048] Figure 8 This is a schematic diagram of the hardware operating environment involved in the implementation method of the distributed numerical simulation system in this application embodiment.

[0049] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0050] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0051] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0052] Due to the complexity of current numerical simulations, using only a single device for data preparation, simulation calculations, and post-processing will result in low computational efficiency or make it impossible to perform numerical simulations successfully.

[0053] Therefore, in order to overcome the above-mentioned defects, this application provides a solution that utilizes cloud computing technology to create system container templates, generate multiple system containers, install basic software components to build an interactive computing environment, deploy a multiphysics numerical simulator on this basis, and realize a distributed numerical simulation system through reverse proxy and encryption protocol, thereby enhancing the interactivity and security of the simulation system and improving the efficiency of numerical simulation processing.

[0054] It should be noted that the execution subject of each embodiment of this application can be a computing service system with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic system or a distributed numerical simulation system implementation system capable of realizing the above functions. The following description uses a distributed numerical simulation system implementation system as an example to illustrate the various embodiments.

[0055] Based on this, the embodiments of this application provide a method for implementing a distributed numerical simulation system, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the distributed numerical simulation system implementation method of this application.

[0056] In this embodiment, the distributed numerical simulation system implementation method includes steps S10 to S40:

[0057] Step S10: Create a system container template using cloud computing technology, and create multiple system containers based on the system container template.

[0058] It's important to note that cloud computing is an internet-based computing method that provides dynamic, scalable, and virtualized resources and services via the internet. A system container template is a pre-configured template containing the necessary resources such as an operating system, applications, and library files, used for quickly creating and running system containers. A system container is a lightweight, portable software runtime environment that contains all the dependencies and resources required to run an application, but is isolated from other containers.

[0059] Understandably, a complex numerical simulation task is accomplished by using multiple interconnected nodes via a network. These nodes can be real computers, containers in cloud computing (similar to virtual machines), or processes, etc. Each node performs its specific function, addressing numerical simulation tasks that are computationally massive, have diverse requirements, and are beyond the capabilities of a single computer. These nodes have different operating systems and hardware configurations, forming a "heterogeneous environment." They are either tightly or loosely coupled entities, running different operating systems and software. Some focus on simulation computation, some on storage, and some on graphics rendering, that is, visualizing 3D models or scenes using software. Together, these nodes constitute a distributed numerical simulation system.

[0060] It should be understood that, based on cloud computing technology that supports system containers, numerous system containers with functions such as high-performance computing, development, testing, deployment, storage, graphics processing, interactive computing, and reverse proxy can be created to form various functional nodes on the server side, enabling users to access them through multiple methods such as browsers and dedicated clients.

[0061] For ease of understanding, the following examples are provided, but they do not limit this application. The steps for creating multiple system containers can be as follows:

[0062] 1. Create a system container template

[0063] To speed up downloads, a Universal Resource Locator (URL) for Linux container (LXC) images has been added. The main components include:

[0064] lxc remote add tuna-images https: / / mirrors.tuna.tsinghua.edu.cn / lxc-images / --protocol=simplestreams–public

[0065] Then, use the following command to create a system container named container-template, which mainly contains:

[0066] lxc launch tuna-images:ubuntu / noble container-template

[0067] 2. Create the mynginx container from the container template.

[0068] Create a new container named mynginx for the reverse proxy software NGINX, and specify the host as node1 (assuming its external IP address is 10.0.0.5). The main contents are:

[0069] lxc copy container-template mynginx--target node1.

[0070] 3. Create the myjupyterhub container from the container template.

[0071] A new container named myjupyterhub is created for the shared computing software JupyterHub, with the host specified as the node3-hpc node. The main contents include:

[0072] lxc copy container-template myjupyterhub--target node3-hpc

[0073] It should be understood that, technically, two servers are sufficient to create an LXC cloud. However, for stability reasons, three servers are generally used (with potentially different hardware configurations) to ensure that at least two of the three nodes (node1, node2, and node3-hpc) are always available. This is the minimum number of nodes required for an LXC cloud to function properly. In the example scenario above, it is assumed that node3-hpc, with the best overall configuration in terms of Central Processing Unit (CPU) and memory, is the High-Performance Computing (HPC) node.

[0074] It should be noted that an LXC cloud environment needs to be set up before creating multiple system containers.

[0075] For example, the steps to set up an LXC cloud environment could be: download the latest version of the Ubuntu Server ISO file and create a Universal Serial Bus (USB) installation disk. Install it on the bare metal server, selecting the LXD clustering mode.

[0076] Step S20: Install the basic software components required for interactive computing to obtain an interactive computing environment.

[0077] It should be noted that basic software components refer to the software elements necessary to constitute an interactive computing environment. These components can include programming language interpreters, development tools, data processing libraries, etc. An interactive computing environment is a computing platform that supports real-time interaction between users and computers. It typically includes a user-friendly interface, powerful data processing and analysis tools, and rich visualization capabilities.

[0078] Step S30: Install a multiphysics numerical simulator in the system container of the interactive computing environment, and configure an encryption protocol through a reverse proxy to realize a distributed numerical simulation system.

[0079] It should be noted that a multiphysics numerical simulator is a computational tool or software that can simulate the interaction of multiple physical fields (such as flow field, temperature field, electromagnetic field, structural stress field, etc.). It usually integrates mathematical models and numerical algorithms of multiple physical fields and can simulate and predict the process of multiple physical phenomena occurring and interacting simultaneously in complex environments.

[0080] Furthermore, it's important to note that a reverse proxy is a network service that requests resources from a server on behalf of a client and returns the resources the server provides to the client. Reverse proxies are commonly used for caching static content, accelerating website access speed, and protecting backend servers from direct attacks. An encryption protocol is a protocol used to securely transmit data between communicating parties. It typically uses encryption algorithms to encrypt and decrypt data to ensure confidentiality, integrity, and authentication.

[0081] For ease of understanding, the following references Figure 2 This explanation is provided, but does not limit the scope of this application. Figure 2The distributed numerical simulation system software architecture utilizes software such as Gmsh and Petrel for preprocessing on user-end devices. This includes mesh generation (network partitioning) and allows users to set boundary conditions, initial conditions, and input static and dynamic data. Post-processing is performed using software such as JupyterLab, Pluto, and Paraview, which can include generating high-quality 2D and 3D images from complex datasets, plotting curves, contour maps, field value color maps, and creating animations. Linux container cloud processing capabilities include allowing multiple users to access stored data over the network, enabling remote access and rendering of Paraview visualizations, and providing load balancing, request filtering, and security features.

[0082] This embodiment uses cloud computing technology to create a system container template, and then creates multiple system containers based on the template. Basic software components required for interactive computing are installed to obtain an interactive computing environment. A multiphysics numerical simulator is installed within the system containers of this interactive computing environment, and an encryption protocol is configured through a reverse proxy to realize a distributed numerical simulation system. Because this application utilizes cloud computing technology to create a system container template, generate multiple system containers, and install basic software components to build an interactive computing environment, and then deploys a multiphysics numerical simulator on this basis, and realizes a distributed numerical simulation system through a reverse proxy and encryption protocol, the interactivity and security of the simulation system are enhanced, and the efficiency of numerical simulation processing is improved.

[0083] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 Step S30 may include steps S301 to S305:

[0084] Step S301: Install a multiphysics numerical simulator in the system container of the interactive computing environment.

[0085] For ease of understanding, the following examples are provided, but they do not limit this application. The steps for installing a multiphysics numerical simulator can be as follows:

[0086] 1. Install the multiphysics numerical simulator open-DARTS

[0087] Install the multiphysics numerical simulator open-DARTS using the Python package manager (pip). The main components include:

[0088] pip install open-darts

[0089] pip show open-darts

[0090] The last command checks the emulator's installation information, and a possible result is as follows:

[0091] ┌─[jupyterhub@myjupyterhub][~][env38::Python3.8.16]

[0092] └%pip show open-darts

[0093] Name: open-darts

[0094] Version: 1.1.3

[0095] Summary:Delft Advanced Research Terra Simulator

[0096] Homepage:

[0097] Author:

[0098] Author-email: Denis Voskov<D.V.Voskov@tudelft.nl>

[0099] License:LICENSE.md

[0100] Location:

[0101] / home / jupyterhub / miniconda3 / envs / env38 / lib / python3.8 / site-packages

[0102] Requires: gmsh, h5py, iapws, igraph, matplotlib, meshio, numba, numpy, openpyxl, opmcpg, pandas, pyevtk, scipy, shapely, sympy, vtk, xarray

[0103] Required-by:

[0104] 2. Install the multiphysics numerical simulator OGS

[0105] To install OGS using pip and check the emulator information after installation, use the commands `pip install ogs` and `pipshow ogs` respectively.

[0106] It should be noted that the multiphysics numerical simulator open-DARTS, as an efficient neural network architecture search method, relaxes the search space to be continuous, allowing for optimization of the validation set performance of the network architecture through gradient descent, while using orders of magnitude fewer computational resources. The multiphysics numerical simulator OGS can simulate various geological processes, utilizes high-performance numerical computing libraries, and can run in parallel on a single or multiple computers.

[0107] Step S302: Verify the installation information of the multiphysics numerical simulator, obtain the verification result, and adjust and update the multiphysics numerical simulator according to the verification result.

[0108] Understandably, to ensure the correct installation of the multiphysics numerical simulator, improve system performance and stability, guarantee the accuracy of simulation results, and adapt to the needs of different application scenarios, it is necessary to verify the installation information after installing the multiphysics numerical simulator. This may include checking whether the software's installation path, configuration files, and dependency libraries are correctly installed and configured. Based on the verification results, if any problems or misconfigurations are found during the installation process, the software can be adjusted accordingly, including modifying configuration files, updating dependency libraries, and optimizing software settings.

[0109] Step S303: Generate a reverse proxy node by copying the system container template, install the reverse proxy based on the reverse proxy node, and then configure the reverse proxy.

[0110] Understandably, a new container instance is created from the system container template as a reverse proxy node. Reverse proxy software, such as NGINX, Apache, or HAProxy, is then installed on this generated node. After installation, the reverse proxy is configured to specify how it should handle incoming requests and forwarded responses. Configuration may include setting the listening port, defining forwarding rules, configuring SSL / TLS certificates to support HTTPS connections, and setting caching policies.

[0111] Step S304: Switch the unencrypted protocol of the interactive computing environment to an encrypted protocol for external services according to the preset configuration information.

[0112] It should be noted that the default configuration information is a pre-set "instruction manual" or "guide" that tells the computer or system how to configure or set it up, and may include specific steps or parameters on how to switch protocols.

[0113] Furthermore, it's important to clarify that a protocol is a set of rules or methods for communication between computers. An unencrypted protocol means that data transmitted in this communication method is not encrypted, meaning anyone could potentially intercept and understand it. External services refer to services provided by a system or application to external users or devices; for example, a website provides services that allow anyone to access its content. Encrypted protocols, in contrast to unencrypted protocols, encrypt data during transmission to ensure that only the intended recipient can understand it.

[0114] Step S305: On the reverse proxy node, the system service is exposed to the target user to realize the distributed numerical simulation system.

[0115] For ease of understanding, the following examples are provided, but they are not intended to limit this application. The steps for configuring a reverse proxy can be as follows:

[0116] 1. Install NGINX in a container in the LXC cloud.

[0117] (1) Log in to the container mynginx as the root user.

[0118] lxc exec mynginx --sudo --user root–login

[0119] (2) Install NGINX

[0120] apt-get install nginx-y

[0121] (3) NGINX configuration

[0122] Main configuration file: / etc / nginx / nginx.conf

[0123] The directory for loading auxiliary configuration files is: / etc / nginx / conf.d /

[0124] 2. Configure NGINX as an HTTPS terminator

[0125] File location and name: / etc / nginx / nginx.conf. This configuration switches access via the unencrypted HTTP protocol (default port 80) to the encrypted HTTPS protocol (default port 443), enabling HTTP to be used within the cloud while HTTPS is used for external services. Key configuration contents include:

[0126]

[0127]

[0128] 3. Expose the JupyterHub service to external access.

[0129] Assuming external access is provided via the URL http: / / 10.0.0.5 / geothermal, the key configuration details for this functionality are as follows:

[0130]

[0131] The above configuration information can be processed in two ways, with the same result:

[0132] (1) Insert the "#Placeholder for geothermal.conf." section into the main configuration file nginx.conf;

[0133] (2) Place the separate configuration file geothermal.conf in the / etc / nginx / conf.d / directory.

[0134] After exposing the system services to target users, a distributed numerical simulation system was implemented. Users can log in by accessing a specific URL over the network. A reference interface is shown below. Figure 4 As shown.

[0135] It should be understood that NGINX enables services within the cloud computing environment to be accessed from the outside via HTTPS (i.e., acts as an HTTPS terminator), while containers within the cloud computing environment communicate with NGINX via HTTP to avoid the time and resource overhead of encryption and decryption. Simultaneously, NGINX's reverse proxy function exposes the container services, allowing external users to access them via IP address or domain name.

[0136] Furthermore, to ensure that the request is correctly forwarded to the actual system address and to optimize data transmission efficiency, after step S305, the following steps are also included:

[0137] On the reverse proxy node, define matching rules for specific paths;

[0138] According to the matching rules, requests for the specific path are forwarded to the actual system address, and full-duplex communication protocol support based on the transport protocol is enabled.

[0139] It's important to note that matching rules refer to a set of logic or conditions defined on the reverse proxy node to determine whether a request should be forwarded to a specific backend system or address. These rules are typically based on factors such as the request's URL path, HTTP method, and header information. Full-duplex communication protocols allow data to be transmitted simultaneously in both directions (sending and receiving) without waiting for the other party to complete data transmission. Common protocols supporting full-duplex communication include TCP and WebSocket.

[0140] Understandably, rules are set or configured on reverse proxy nodes to identify which requests should be forwarded to specific backend systems. Once a request matches a matching rule defined on the reverse proxy node, the request is forwarded to the actual address of the specified backend system or service (e.g., the IP address and port of a web server). This typically involves rewriting the request data and / or modifying the header information to ensure that the backend system can correctly process and respond to the request.

[0141] It should be understood that configuring a reverse proxy node to support full-duplex communication protocols is typically based on the transport protocols used between the client and the backend system (such as TCP or WebSocket).

[0142] This embodiment deploys a multiphysics numerical simulator in an interactive computing environment, ensuring its accuracy through verification and adjustment. A reverse proxy node is generated using a system container template, and reverse proxy software is installed and configured. The unencrypted protocol of the interactive computing environment is switched to an encrypted protocol. Matching rules for specific paths are defined on the reverse proxy node, and a full-duplex communication protocol is enabled. Through the application of reverse proxy and encryption protocols, data leakage is effectively prevented, user privacy is protected, and the support for path matching rules and full-duplex communication protocols enables the system to efficiently handle concurrent requests, reduces communication latency, and significantly improves the accuracy of numerical simulation and the security of data transmission.

[0143] In the second embodiment, after step S30, steps S311 to S312 may also be included:

[0144] Step S311: After receiving the calculation request, estimate the calculation scale of the calculation request.

[0145] Step S312: Assess the required computing power based on the computing scale, and process the computing request by matching the corresponding high-performance computing nodes in the distributed numerical simulation system based on the required computing power.

[0146] Understandably, upon receiving a computation request, the system estimates the computational scale of the request, assesses the required computing power based on the computational scale, and matches high-performance computing nodes in the distributed numerical simulation system with the required computing power to complete the most time-consuming simulation computation task as quickly as possible.

[0147] It should be understood that when there are high-performance computing nodes with different configurations (memory, CPU, GPU, etc.), the computing power requirement can be estimated based on the computational scale of the model, and the high-performance computing node can be switched accordingly. Two modes can be designed:

[0148] (1) Automatic mode: Based on the number of nodes (or units) of the model, the memory and other usage requirements are estimated, and the computing jobs are automatically sent to the matching HPC nodes;

[0149] (2) Manual selection: Manually determine the computing scale and manually select HPC nodes.

[0150] It should be understood that,

[0151] Therefore, after step S30, the following may also be included:

[0152] The lightweight plotting component in the distributed numerical simulation system enables online post-processing of two-dimensional and three-dimensional plots of smaller data volumes.

[0153] The high-performance visualization processing node in the distributed numerical simulation system is invoked according to the client-server model. The high-performance visualization processing node is used to perform post-processing on the 3D graph of the large data volume to obtain the post-processing result of the large data volume.

[0154] The large data volume and the post-processing results of the large data volume are saved to network-attached storage and / or storage area network.

[0155] It should be noted that you can purchase a complete set of Network-Attached Storage (NAS) or Storage Area Network (SAN) equipment and connect it to the network where the cloud computing environment is located; or you can purchase parts to assemble it yourself.

[0156] For ease of understanding, the following examples are provided, but they do not limit this application. The various functions of a distributed numerical simulation system can be gradually enriched by using online programming with Python or Julia, such as 2D plotting. Some lightweight online 3D plotting can be implemented using Python's PyVista package or Julia's Makie package. For 3D plotting of large datasets, ParaView can be used, with two methods:

[0157] (1) Local use

[0158] If the local computer is powerful enough, the numerical simulation data can be downloaded to the local computer and loaded through ParaView for post-processing.

[0159] (2) Client-Server (CS) Model

[0160] Install ParaView pvserver on a high-performance computing node (node3-hpc) in the cloud computing environment. Run ParaView on the client side, and then... Figure 5 As shown, it connects to the pvserver for graphics rendering.

[0161] Upon receiving a computation request, this embodiment assesses the required computing power based on the computational scale and matches the appropriate high-performance computing node to process the request. For smaller data volumes, the system utilizes lightweight drawing components for online post-processing of 2D and 3D graphs. For 3D graphs of large data volumes, the system uses a client-server model to call high-performance visualization processing nodes for post-processing to obtain post-processing results for large data volumes. This provides flexible post-processing capabilities for data volumes of different sizes, ensuring efficient utilization of computing resources and reducing resource waste.

[0162] Based on the first embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 6 Step S20 may include steps S201 to S203:

[0163] Step S201: After logging into the system container using the default user, create a dedicated new user for the interactive computing environment and set the permissions of the dedicated new user to super user management permissions.

[0164] It's important to note that the default user refers to the user account used by default when logging into the system or system container unless another user is explicitly specified. This account is typically created during system installation or configuration and has basic access permissions. A dedicated new user is a new user account created for a specific purpose or task. Compared to the default user, a dedicated new user may have different permissions, configuration files, and working environments. Superuser privileges, also known as root privileges or administrator privileges, are the highest level of privilege in a computer system. Users with superuser privileges can perform any operation, including modifying system configurations, installing software, and accessing all files.

[0165] Understandably, the system container is logged in using the default user's credentials (such as username and password). Inside the system container, a new user account is created using the default user's privileges. This new user account will be used in the interactive computing environment, and the privilege level of the newly created user will be elevated to superuser management privileges.

[0166] Step S202: After logging into the system container through the dedicated new user, install the basic software components required for interactive computing.

[0167] Step S203: Configure and test the basic software components to obtain an interactive computing environment.

[0168] It should be understood that the core task of step S203 is to configure and test the basic software components in order to ultimately obtain a fully functional interactive computing environment. This step not only requires accurate configuration of each component, but also ensures that their performance after configuration meets expectations. Therefore, step S203 may also include:

[0169] A configuration file is generated based on the aforementioned basic software components, and key configuration items in the configuration file are modified according to configuration requirements.

[0170] Configure the basic software components according to the configuration file and the built-in instructions in the file;

[0171] After the basic software components pass testing, an interactive computing environment is obtained.

[0172] For ease of understanding, the following examples are provided, but they do not limit the scope of this application. The steps to obtain an interactive computing environment may be as follows:

[0173] 1. Install JupyterLab and JupyterHub

[0174] (1) Log in to the myjupyterhub container from any node of the LXC cloud.

[0175] lxc exec myjupyterhub --sudo --user ubuntu-login

[0176] In this context, ubuntu is the default user when creating the container myjupyterhub.

[0177] (2) Create a user named jupyterhub and grant it sudoer privileges.

[0178] sudo useradd-mG sudo-s / bin / bash jupyterhub

[0179] (3) Install the basic Python Software Development Kit (SDK)

[0180] Use the `exit` command to exit the container as the `ubuntu` user and log in again as the `jupyterhub` user. The main steps are:

[0181] lxc exec myjupyterhub--sudo--user jupyterhub-login

[0182] (4) Use miniconda to manage the Python version on the server.

[0183] Follow the prompts to complete the installation: sh . / Miniconda3-py37_4.10.3-Linux-x86_64.sh.

[0184] Taking the installation of Python SDK version 3.8 as an example, the commands to name it env38 and enter this environment are as follows:

[0185] conda create --name env38 python=3.8

[0186] conda activate env38

[0187] (5) Use the conda command to install Jupyter Notebook, JupyterHub, and JupyterLab: `conda install notebook jupyterhub jupyterlab -y`

[0188] 2. Configure JupyterHub

[0189] Generate the JupyterHub configuration file jupyterhub_config.py and perform the necessary configurations according to the built-in instructions in the file: jupyterhub --generate-config. There are three key configuration points as follows:

[0190] (1) Modify the value of the variable c.JupyterHub.bind_url;

[0191] (2) Modify the value of variable c.Spawner.default_url and use JupyterLab as the web interface;

[0192] (3) Modify the value of variable c.Authenticator.allow_all to True.

[0193] 3. Run JupyterHub

[0194] JupyterHub requires sudoer privileges to run. The default first username is also jupyterhub. The main contents include:

[0195] sudo-E env"PATH=$PATH"jupyterhub\

[0196] -f / home / jupyterhub / jupyterhub_config.py.

[0197] 4. Add new users to JupyterHub

[0198] Assuming the new username is test01, the command would be:

[0199] sudo useradd-mG jupyterhub-s / bin / bash / test01.

[0200] It should be noted that JupyterHub is an essential component for creating shared Jupyter Notebooks, while JupyterLab is the next-generation web interface for Jupyter Notebooks.

[0201] It should be understood that during the various tasks of numerical simulation, JuypterLab interacts directly with the rich Application Programming Interfaces (APIs) of the backend nodes OGS, open-DARTS, and pvserver, without being confined to or even needing to use the limited CRUD operations of the Representational State Transfer Application Programming Interface (RESTful API). The equipped high-performance computing nodes should at least meet the numerical simulation computing needs at the million-node (or cell) level.

[0202] This embodiment creates a dedicated new user for the interactive computing environment within the system container and grants them superuser management privileges. The dedicated new user then logs back into the system container and installs, configures, and tests a series of basic software components required for interactive computing. This ensures the smooth progress of the entire configuration and testing process, as well as the effective management of the interactive computing environment, thereby improving the accuracy and reliability of the built environment.

[0203] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the implementation method of the distributed numerical simulation system of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0204] This application also provides a distributed numerical simulation system implementation device; please refer to [reference needed]. Figure 7 The distributed numerical simulation system implementation device includes:

[0205] The container creation module 10 is used to create a system container template using cloud computing technology, and to create multiple system containers based on the system container template.

[0206] Environment setup module 20 is used to install the basic software components required for interactive computing and obtain an interactive computing environment;

[0207] System implementation module 30 is used to install a multiphysics numerical simulator in the system container of the interactive computing environment and configure an encryption protocol through a reverse proxy to realize a distributed numerical simulation system.

[0208] The distributed numerical simulation system implementation apparatus provided in this application, employing the distributed numerical simulation system implementation method in the above embodiments, can solve the technical problem that a single computer cannot efficiently solve large-scale numerical simulation calculations. Compared with the prior art, the beneficial effects of the distributed numerical simulation system implementation apparatus provided in this application are the same as those of the distributed numerical simulation system implementation method provided in the above embodiments, and other technical features in the distributed numerical simulation system implementation apparatus are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0209] This application provides a distributed numerical simulation system implementation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the distributed numerical simulation system implementation method in Embodiment 1 above.

[0210] The following is for reference. Figure 8This document illustrates a structural schematic diagram of a distributed numerical simulation system implementation device suitable for implementing embodiments of this application. The distributed numerical simulation system implementation device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Detection Devices), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The distributed numerical simulation system implementation device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0211] like Figure 8 As shown, the distributed numerical simulation system implementation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the distributed numerical simulation system. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the distributed numerical simulation system implementation device to communicate wirelessly or wiredly with other systems to exchange data. Although a distributed numerical simulation system implementation device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented alternatively.

[0212] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0213] The distributed numerical simulation system implementation device provided in this application, employing the distributed numerical simulation system implementation method in the above embodiments, can solve the technical problem that a single computer cannot efficiently solve large-scale numerical simulation calculations. Compared with the prior art, the beneficial effects of the distributed numerical simulation system implementation device provided in this application are the same as those of the distributed numerical simulation system implementation method provided in the above embodiments, and other technical features in this distributed numerical simulation system implementation device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.

[0214] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0215] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0216] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the distributed numerical simulation system implementation method in the above embodiments.

[0217] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having 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 fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0218] The aforementioned computer-readable storage medium may be included in the distributed numerical simulation system implementation device; or it may exist independently and not assembled into the distributed numerical simulation system implementation device.

[0219] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the distributed numerical simulation system implementation device, the distributed numerical simulation system implementation device: creates a system container template through cloud computing technology, creates multiple system containers according to the system container template, installs the basic software components required for interactive computing, obtains an interactive computing environment, installs a multiphysics numerical simulator in the system containers of the interactive computing environment, and configures an encryption protocol through a reverse proxy to realize a distributed numerical simulation system.

[0220] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0221] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0222] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0223] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described distributed numerical simulation system implementation method, thereby solving the technical problem that a single computer cannot efficiently solve large-scale numerical simulation calculations. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the distributed numerical simulation system implementation method provided in the above embodiments, and will not be repeated here.

[0224] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the distributed numerical simulation system implementation method described above.

[0225] The computer program product provided in this application can solve the technical problem that a single computer cannot efficiently solve large-scale numerical simulation calculations. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the distributed numerical simulation system implementation method provided in the above embodiments, and will not be repeated here.

[0226] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for implementing a distributed numerical simulation system, characterized in that, The method includes the following steps: A system container template is created using cloud computing technology, and multiple system containers are created based on the system container template. Install the basic software components required for interactive computing to obtain an interactive computing environment; A multiphysics numerical simulator is installed in the system container of the interactive computing environment, and an encryption protocol is configured through a reverse proxy to realize a distributed numerical simulation system.

2. The method for implementing a distributed numerical simulation system as described in claim 1, characterized in that, The steps of installing a multiphysics numerical simulator in the system container of the interactive computing environment and configuring an encryption protocol through a reverse proxy to realize a distributed numerical simulation system include: A multiphysics numerical simulator is installed in the system container of the interactive computing environment; Verify the installation information of the multiphysics numerical simulator, obtain the verification results, and adjust and update the multiphysics numerical simulator according to the verification results; A reverse proxy node is generated by copying the system container template, and after installing the reverse proxy based on the reverse proxy node, the reverse proxy is configured. The unencrypted protocol of the interactive computing environment is switched to an encrypted protocol for external services according to the preset configuration information; On the reverse proxy node, system services are exposed to target users to realize a distributed numerical simulation system.

3. The method for implementing a distributed numerical simulation system as described in claim 2, characterized in that, The step of exposing system services to target users on the reverse proxy node to realize the distributed numerical simulation system includes: On the reverse proxy node, define matching rules for specific paths; According to the matching rules, requests for the specific path are forwarded to the actual system address, and full-duplex communication protocol support based on the transport protocol is enabled.

4. The method for implementing a distributed numerical simulation system as described in claim 1, characterized in that, The steps for installing the basic software components required for interactive computing and obtaining an interactive computing environment include: After logging into the system container using the default user, a new dedicated user for the interactive computing environment is created, and the permissions of the new dedicated user are set to superuser management permissions. After logging into the system container as a dedicated new user, the basic software components required for interactive computing are installed. Configure and test the basic software components to obtain an interactive computing environment.

5. The method for implementing a distributed numerical simulation system as described in claim 4, characterized in that, The steps of configuring and testing the basic software components to obtain an interactive computing environment include: A configuration file is generated based on the aforementioned basic software components, and key configuration items in the configuration file are modified according to configuration requirements. Configure the basic software components according to the configuration file and the built-in instructions in the file; After the basic software components pass testing, an interactive computing environment is obtained.

6. The method for implementing a distributed numerical simulation system as described in any one of claims 1 to 5, characterized in that, After the step of installing a multiphysics numerical simulator in the system container of the interactive computing environment and configuring an encryption protocol through a reverse proxy to realize a distributed numerical simulation system, the method further includes: Upon receiving a computation request, estimate the computational scale of the request. The required computing power is assessed based on the computing scale, and the corresponding high-performance computing nodes in the distributed numerical simulation system are matched to process the computing request based on the required computing power.

7. The method for implementing a distributed numerical simulation system as described in any one of claims 1 to 5, characterized in that, After the step of installing a multiphysics numerical simulator in the system container of the interactive computing environment and configuring an encryption protocol through a reverse proxy to realize a distributed numerical simulation system, the method further includes: The lightweight plotting component in the distributed numerical simulation system enables online post-processing of two-dimensional and three-dimensional plots of smaller data volumes. The high-performance visualization processing node in the distributed numerical simulation system is invoked according to the client-server model. The high-performance visualization processing node is used to perform post-processing on the 3D graph of the large data volume to obtain the post-processing result of the large data volume. The large data volume and the post-processing results of the large data volume are saved to network-attached storage and / or storage area network.

8. A distributed numerical simulation system implementation device, characterized in that, The distributed numerical simulation system implementation device includes: The container creation module is used to create system container templates using cloud computing technology, and to create multiple system containers based on the system container templates. The environment setup module is used to install the basic software components required for interactive computing and obtain an interactive computing environment. The system implementation module is used to install a multiphysics numerical simulator in the system container of the interactive computing environment and configure an encryption protocol through a reverse proxy to realize a distributed numerical simulation system.

9. A distributed numerical simulation system implementation device, characterized in that, The distributed numerical simulation system implementation device includes: a memory, a processor, and a distributed numerical simulation system implementation program stored in the memory and executable on the processor. When the distributed numerical simulation system implementation program is executed by the processor, it implements the distributed numerical simulation system implementation method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium stores a distributed numerical simulation system implementation program, which, when executed by a processor, implements the distributed numerical simulation system implementation method as described in any one of claims 1 to 7.