A three-dimensional model topology optimization method, device and medium

Through the topology optimization system based on B/S architecture, automatic resource assessment and unified management are realized, and CAD design software is deeply integrated, which solves the problem of slow optimization process caused by insufficient resources in the existing technology, and improves the design efficiency and topology optimization cost. effectiveness.

CN118395748BActive Publication Date: 2024-09-24SHANDONG HUAYUN 3D TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410831158.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-24
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

When existing topology optimization software based on C/S architecture handles large models or high-demand optimization tasks, insufficient resources cause the optimization process to be slow or even fail, resulting in low cost and efficiency of topology optimization.

Method used

A topology optimization system based on B/S architecture is used to realize automatic evaluation and unified management of resources through scheduling monitoring server and geometric structure topology optimization services. It deeply integrates CAD design software to perform topology optimization fine structure iterative calculations and monitor through network connections. Running status, realizing the closed-loop process of design-optimization-design.

Benefits of technology

It improves design efficiency, solves the problem of slow optimization process caused by insufficient resources, realizes elastic scheduling and fault recovery of resources, and improves the cost-effectiveness of topology optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395748B
    Figure CN118395748B
Patent Text Reader

Abstract

The embodiment of the present application discloses a three-dimensional model topology optimization method, device and medium. It belongs to the field of topology optimization technology and solves the problem of low cost-effectiveness of topology optimization in the prior art. The scheduling and monitoring server responds to the solution instruction sent by the browser end, so that the geometric structure topology optimization service obtains the data required for topology optimization; the scheduling and monitoring server determines the required computing resources and required memory resources based on the obtained topology optimization rough structure and topology optimization settings to apply for resources; based on the applied resources and required data, the geometric structure topology optimization service starts the topology optimization solver, performs iterative calculation of the topology optimization fine structure through the topology optimization solver, and caches the iterative results; the scheduling and monitoring server sends a synchronization instruction to the CAD geometric modeling service, and sends the iterative results obtained by the CAD geometric modeling service in the cache to the browser end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of topology optimization, and in particular to a three-dimensional model topology optimization method, device and medium. Background Art

[0002] In modern manufacturing, especially with the rapid development of additive manufacturing technology, part design is undergoing unprecedented changes. Traditional part design is often limited by the manufacturing process and material characteristics, resulting in conservative design results and low material utilization. In order to overcome this challenge, topology optimization has emerged as an advanced structural design method. By redesigning the topological structure of the part, it achieves the goal of minimizing material usage and manufacturing costs while meeting the mechanical performance requirements.

[0003] In the prior art, traditional topology optimization software based on C / S (client-server) architecture is usually deployed on a local machine. This architecture is often limited by local resources (such as memory, computing power, etc.) when facing complex topology optimization problems. Especially when dealing with large models or high-demand optimization tasks, insufficient resources will cause the optimization process to be slow or even fail, resulting in low cost-effectiveness of topology optimization. Summary of the invention

[0004] The embodiments of the present application provide a three-dimensional model topology optimization method, device and medium for solving the following technical problems: When processing large models or high-demand optimization tasks, the traditional topology optimization software based on the C / S architecture in the prior art suffers from insufficient resources, which can lead to a slow optimization process or even failure, resulting in a low cost-effectiveness of topology optimization.

[0005] The present application embodiment adopts the following technical solutions:

[0006] The embodiment of the present application provides a three-dimensional model topology optimization method. The method includes: the method is executed by a topology optimization system based on a B / S architecture, the topology optimization system based on the B / S architecture is composed of a scheduling monitoring server, a CAD geometric modeling service, and a geometric structure topology optimization service, and the method includes: the scheduling monitoring server responds to the solution instruction sent by the browser, so that the geometric structure topology optimization service obtains the data required for topology optimization; the scheduling monitoring server determines the required computing resources and required memory resources based on the obtained topology optimization rough structure and topology optimization settings to apply for resources; based on the applied resources and required data, the geometric structure topology optimization service starts the topology optimization solver, performs iterative calculation of the topology optimization fine structure through the topology optimization solver, and caches the iterative results; the scheduling monitoring server sends a synchronization instruction to the CAD geometric modeling service, and sends the iterative results obtained by the CAD geometric modeling service in the cache to the browser.

[0007] The embodiment of the present application is based on the topology optimization method of the B / S architecture. The scheduling and monitoring service end realizes automatic evaluation of memory and computing resources based on the obtained topology optimization rough structure and topology optimization settings, and realizes unified resource management, flexible overall scheduling and deployment. Through deep integration with CAD design software, the topology optimization fine structure is iteratively calculated based on the topology optimization solver, and the iterative results are cached. There is no need to switch software to realize the closed-loop process of design-optimization-design, thereby improving design efficiency. In addition, the scheduling and monitoring service maintains a network connection with the topology optimization solver, monitors the operating status of the topology optimization solver, solves the problem of mismatch between the operating life cycle of the CAD design system and the topology optimization system, and realizes functions such as operating status monitoring, intermediate result storage, and fault site response.

[0008] In one implementation of the present application, the scheduling and monitoring server responds to the solution instruction sent by the browser so that the geometric structure topology optimization service obtains the data required for topology optimization, specifically including: the scheduling and monitoring server responds to the solution instruction sent by the browser so that the CAD geometric modeling service organizes and obtains the data required for topology optimization; wherein the required data includes at least the objective function, the objective function constraint threshold, the discrete grid corresponding to the design domain and the constraints and loads attached to the discrete grid, material properties, topology optimization setting parameters, user name, document name, version number, instance number, communication IP, port number and one of the cache folder locations; the required data is transmitted to the geometric structure topology optimization service through the data conversion interface layer.

[0009] In one implementation of the present application, the scheduling and monitoring server determines the required computing resources and required memory resources based on the acquired topology optimization coarse structure and topology optimization settings, specifically including: the scheduling and monitoring server obtains the historical topology optimization coarse structure and the historical topology optimization settings, and performs fitting processing based on the historical topology optimization coarse structure and the historical topology optimization settings to obtain the required computing resources; the scheduling and monitoring server determines the number of vertices corresponding to the discrete grid based on the discrete grid corresponding to the current topology optimization, and determines the required memory resources based on the number of vertices and the preset necessary memory capacity calculation function.

[0010] In one implementation of the present application, before the geometric structure topology optimization service starts the topology optimization solver based on the applied resources and required data, the method also includes: the scheduling monitoring service establishes a network connection with the topology optimization solver through the Socket socket; the scheduling monitoring service obtains the running status of the topology optimization solver through the Socket socket, and when the running status is the end of the operation or the unexpected termination, notifies the CAD interactive design kernel to store the running data of the topology optimization solver.

[0011] In one implementation of the present application, before the scheduling monitoring server sends a synchronization instruction to the CAD geometric modeling service, the method includes: the scheduling monitoring server receives the iterative intermediate results sent by the topology optimization solver, and caches the iterative intermediate results for data recovery.

[0012] In one implementation of the present application, after the scheduling and monitoring server responds to the solution instruction sent by the browser so that the geometric structure topology optimization service obtains the data required for topology optimization, the method also includes: after the browser is restarted, the scheduling and monitoring server responds to the data synchronization instruction sent by the browser to notify the CAD geometric modeling service to perform data synchronization self-check; when the self-check result of the CAD geometric modeling service is that the topology optimization state is completed, the current topology optimization task is ended; when the self-check result of the CAD geometric modeling service is that the topology optimization state is not completed, the topology optimization state is not completed returned to the scheduling and monitoring server; the scheduling and monitoring server re-establishes a connection with the topology optimization solver to execute different topology optimization process scheduling based on the connection result.

[0013] In one implementation of the present application, different topology optimization process scheduling is executed based on the connection results, specifically including: when the connection result is a successful connection, the topology optimization process scheduling is executed based on the preset normal operation process; when the connection result is an unsuccessful connection, the CAD geometric modeling service synchronizes the output data of the topology optimization solver based on the cached data; the CAD geometric modeling service determines the exit status of the topology optimization solver based on the output data, and executes different topology optimization process scheduling based on different exit statuses.

[0014] In one implementation of the present application, the CAD geometric modeling service determines the exit status of the topology optimization solver based on the output data, and executes different topology optimization process scheduling based on different exit statuses, specifically including: if the topology optimization status in the output data is a completed state, the topology optimization solver is determined to be in a normally completed exit state, and the calling process is ended after the CAD geometric modeling service is synchronized with the output data; if the topology optimization status in the output data is an unfinished state, the CAD geometric modeling service reorganizes the required data and sends the required data to the topology optimization solver; the CAD geometric modeling service sends a request to restart the topology optimization solver to the scheduling monitoring server; the scheduling monitoring server restarts the topology optimization solver, and executes topology optimization process scheduling based on the preset normal operating process.

[0015] An embodiment of the present application provides a three-dimensional model topology optimization device, including: 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 so that the at least one processor can: schedule a monitoring server to respond to a solution instruction sent by a browser so that a geometric structure topology optimization service obtains data required for topology optimization; the scheduling monitoring server determines required computing resources and required memory resources based on the obtained topology optimization coarse structure and topology optimization settings to apply for resources; based on the applied resources and required data, the geometric structure topology optimization service starts a topology optimization solver, performs iterative calculation of a topology optimization fine structure through the topology optimization solver, and caches the iterative results; the scheduling monitoring server sends a synchronization instruction to a CAD geometric modeling service, and sends the iterative results obtained by the CAD geometric modeling service in the cache to the browser.

[0016] A non-volatile computer storage medium provided in an embodiment of the present application stores computer executable instructions, and the computer executable instructions are configured as follows: a scheduling and monitoring server responds to a solving instruction sent by a browser so that a geometric structure topology optimization service obtains data required for topology optimization; the scheduling and monitoring server determines required computing resources and required memory resources based on the obtained topology optimization coarse structure and topology optimization settings to apply for resources; based on the applied resources and required data, the geometric structure topology optimization service starts a topology optimization solver, performs iterative calculation of a topology optimization fine structure through the topology optimization solver, and caches the iterative results; the scheduling and monitoring server sends a synchronization instruction to a CAD geometric modeling service, and sends the iterative results obtained by the CAD geometric modeling service in the cache to the browser.

[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: The embodiments of the present application are based on the topology optimization method of the B / S architecture, and the scheduling and monitoring service end realizes automatic evaluation of memory and computing resources based on the obtained topology optimization coarse structure and topology optimization settings, and realizes unified resource management, flexible overall scheduling and deployment. Through deep integration with CAD design software, the topology optimization fine structure is iteratively calculated based on the topology optimization solver, and the iterative results are cached, without switching software to realize the closed-loop process of design-optimization-design, thereby improving design efficiency. In addition, the scheduling and monitoring service maintains a network connection with the topology optimization solver, monitors the operating status of the topology optimization solver, solves the problem of mismatch between the operating life cycle of the CAD design system and the topology optimization system, and realizes functions such as operating status monitoring, intermediate result storage, and fault site response. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0019] Figure 1 A topology optimization system architecture diagram of a B / S architecture provided in an embodiment of the present application;

[0020] Figure 2 A flow chart of a three-dimensional model topology optimization method provided in an embodiment of the present application;

[0021] Figure 3 A flow chart of a topology optimization service call in a normal operating state provided in an embodiment of the present application;

[0022] Figure 4 A scheduling flow chart of a topology optimization service for resuming normal operation provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a three-dimensional model topology optimization device provided in an embodiment of the present application.

[0024] Reference numerals:

[0025] 200 3D model topology optimization device, 201 processor, 202 memory. DETAILED DESCRIPTION

[0026] Embodiments of the present application provide a three-dimensional model topology optimization method, device and medium.

[0027] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0028] The technical solution proposed in the embodiment of the present invention is described in detail below with reference to the accompanying drawings.

[0029] The three-dimensional model topology optimization method in the embodiment of the present application is executed by a topology optimization system based on a B / S architecture. The topology optimization system based on a B / S architecture is composed of a scheduling and monitoring server, a CAD geometric modeling service, and a geometric structure topology optimization service. Figure 1A topology optimization system architecture diagram of a B / S architecture provided in an embodiment of the present application, such as Figure 1 As shown, the topology optimization system of B / S architecture includes a browser side and a server side, and the server side includes a scheduling monitoring service and a computing service.

[0030] The browser side in the embodiment of the present application includes CAD design functions and topology optimization functions, wherein the topology optimization function includes setting optimization goals, selecting design domains, setting materials, setting load constraints, meshing, solving, visualization, result comparison, and outputting reports.

[0031] The server side in the embodiment of the present application includes a scheduling monitoring service and a computing service, which constitute a closed loop of design-optimization-design. The scheduling monitoring service includes computing resources, resource scheduling services, instance management services, data storage services, and a database is also provided for storing user information, project information, and grid information. The computing service includes two parts, one is an interactive CAD modeling service, and the other is a geometric structure topology optimization service. The CAD modeling service includes a three-dimensional CAD geometric modeling engine, geometric modeling, sketches, parts, assemblies, engineering drawings, and data exchange. The geometric structure topology optimization service includes a default topology optimization solver and a third-party integrated topology optimization solver. Through the data conversion interface layer, the two transmit data. The interactive CAD design kernel is used to design the optimized topology coarse structure required by the topology optimization solver. The topology optimization solver receives the setting conditions of the design kernel coarse structure and the client transmission, and the calculation optimization meets the expected fine structure. The fine structure will be returned to the design kernel for redesign to complete the closed loop.

[0032] Furthermore, the implementation of the scheduling monitoring service in the embodiment of the present application can be divided into the following three parts:

[0033] 1. Resource scheduling service. The scheduling and monitoring server first estimates the computing resources and memory resources required by the topology optimization solver based on the interactive design kernel output and the topology optimization settings transmitted by the client. It then applies for memory resources and computing resources as needed for calculation, and reclaims resources in a timely manner when the calculation is completed or terminated unexpectedly.

[0034] 2. Data caching service: The topology optimization solver will return intermediate calculation results multiple times during operation. The scheduling monitoring server is responsible for receiving and caching the calculation results of the topology optimization solver for recovery from unexpected termination.

[0035] 3. Operation monitoring. Due to the huge difference between the life cycle of the CAD interactive design kernel (half an hour without operation interruption) and the life cycle of the topology optimization solver (long-term uninterrupted continuous operation), the two do not communicate directly. Instead, the scheduling monitoring service maintains a network connection with the topology optimization solver through the Socket socket, monitors the operating status of the topology optimization solver, and wakes up the CAD interactive design kernel to store the corresponding data when the operation ends or is terminated unexpectedly.

[0036] Figure 2 A flow chart of a three-dimensional model topology optimization method provided in an embodiment of the present application, such as Figure 2 As shown, the 3D model topology optimization method includes the following steps:

[0037] Step 101: The scheduling monitoring server responds to the solution instruction sent by the browser, so that the geometric structure topology optimization service obtains the data required for topology optimization.

[0038] In one embodiment of the present application, the scheduling monitoring service responds to the solution instruction sent by the browser so that the CAD geometry modeling service organizes and obtains the data required for topology optimization; wherein the required data includes at least one of the objective function, the constraint threshold of the objective function, the discrete grid corresponding to the design domain, the constraint conditions and loads attached to the discrete grid, the material properties, the topology optimization setting parameters, the user name, the document name, the version number, the instance number, the communication IP, the port number, and the cache folder location. The required data is transmitted to the geometry topology optimization service through the data conversion interface layer.

[0039] Specifically, assuming that the browser has completed all operations before topology optimization solution, the browser clicks the "Solve" button to send a solution signal to the scheduling monitoring server, and the scheduling monitoring server notifies the CAD geometry modeling service to organize the data required for the geometry structure topology optimization service. The required data includes at least one of the objective function, the constraint threshold of the objective function, the discrete grid corresponding to the design domain, the constraints and loads attached to the discrete grid, the material properties, the topology optimization setting parameters, the user name, the document name, the version number, the instance number, the communication IP, the port number, and the cache folder location.

[0040] Furthermore, the CAD kernel transmits the required data of the organization to the geometric structure topology optimization service through the data conversion interface layer, and after the data transmission is completed, the CAD service notifies the scheduling and monitoring service that the data transmission is completed.

[0041] Step 102: The scheduling monitoring server determines the required computing resources and required memory resources based on the obtained topology optimization rough structure and topology optimization settings to apply for resources.

[0042] In one embodiment of the present application, the scheduling monitoring server obtains the historical topology optimization coarse structure and the historical topology optimization settings, and performs fitting processing based on the historical topology optimization coarse structure and the historical topology optimization settings to obtain the required computing resources. The scheduling monitoring server determines the number of vertices corresponding to the discrete grid based on the discrete grid corresponding to the current topology optimization, and determines the required memory resources based on the number of vertices and the preset necessary memory capacity calculation function.

[0043] Specifically, the computing resources in the embodiments of the present application refer to the number of CPU / GPU cores that can be used, which are usually allocated in powers of 2, and the size of the computing resources is obtained by fitting the historical usage data. For example, historical usage data is collected, including the usage of computing resources over a period of time in the past. These data may include the utilization rate of the CPU / GPU, the number of concurrent tasks, the execution time of tasks, etc. Data fitting is performed through a linear regression model, a time series prediction model, or a machine learning model.

[0044] Furthermore, the memory resources in the embodiments of the present application refer to the necessary memory capacity required for the topology optimization operation, which is determined by the number of vertices of the discrete mesh (such as tetrahedral mesh, cubic mesh) of one of the topology optimization inputs, where the necessary memory capacity = number of vertices 2 ×8 / 10 9 GB.

[0045] Furthermore, after the scheduling and monitoring server calculates the required computing resources and the required memory resources, it applies for resources.

[0046] Step 103: Based on the requested resources and required data, the geometric structure topology optimization service starts the topology optimization solver, performs iterative calculation of the topology optimization fine structure through the topology optimization solver, and caches the iterative results.

[0047] In one embodiment of the present application, the scheduling monitoring service establishes a network connection with the topology optimization solver through a socket. The scheduling monitoring service obtains the running status of the topology optimization solver through the socket, and when the running status is the end of the operation or the unexpected termination, the CAD interactive design kernel is notified to store the running data of the topology optimization solver.

[0048] In one embodiment of the present application, the scheduling monitoring server receives the iterative intermediate results sent by the topology optimization solver, and caches the iterative intermediate results for data recovery.

[0049] Specifically, the scheduling and monitoring server first determines the computing resources and memory resources required by the topology optimization solver based on the interactive design kernel output and the topology optimization settings transmitted by the client, then applies for memory and computing resources on demand for calculation, and reclaims resources in a timely manner when the calculation is completed or terminated unexpectedly.

[0050] Furthermore, the scheduling monitoring service applies for computing resources, starts the topology optimization solver of the geometric structure topology optimization service, and establishes a socket-based network connection to receive information sent by the topology optimization solver. The information sent by the topology optimization solver includes monitoring scheduling related information, such as user name, document name, version number, and instance number, etc., which are used to confirm the identity of the sender, and also includes topology optimization related information, such as cache file name, current iteration step of topology optimization, and topology optimization objective function information.

[0051] Furthermore, the topology optimization solver performs solution calculations and writes the iteration results into the data cache. After the data cache is written, the iteration information and status information are sent to the scheduling monitoring server, where the status information includes a status code, for example, S0 is not executed, S1 is normal, S2 is interrupted, and S3 is ended. The topology optimization solver will return intermediate calculation results multiple times during operation. The scheduling monitoring server is responsible for receiving the calculation results of the topology optimization solver and caching them for recovery from unexpected termination.

[0052] Step 104: The scheduling monitoring server sends a synchronization instruction to the CAD geometric modeling service, and sends the iteration result obtained by the CAD geometric modeling service in the cache to the browser.

[0053] In one embodiment of the present application, the dispatch monitoring service sends a data synchronization instruction to the CAD geometry modeling service. After receiving the instruction, the CAD modeling service synchronizes the topology optimization solver iteration results from the data cache. After the data synchronization is completed, the CAD geometry modeling service routes the corresponding data through the dispatch monitoring service and pushes it to the browser. At the same time, the CAD modeling service writes the data to the data storage medium.

[0054] Figure 3 A flow chart of a topology optimization service call in a normal operating state provided in an embodiment of the present application is as follows: Figure 3 As shown in the figure, assuming that the browser has completed all operations before topology optimization solution, the normal operation of the topology optimization service call process includes the following steps:

[0055] a. Click the "Solve" button to send a solution signal to the scheduling monitoring server;

[0056] b. The scheduling and monitoring server notifies the CAD geometry modeling service and organizes the data required by the geometry structure topology optimization service;

[0057] c. The CAD kernel transfers data to the geometry topology optimization service through the data conversion interface layer;

[0058] d. The CAD service notifies the scheduling and monitoring service that data transmission has ended;

[0059] e. The scheduling monitoring service applies for computing resources, starts the topology optimization solver of the geometric structure topology optimization service, and establishes a socket-based network connection to receive information sent by the topology optimization solver;

[0060] f. The topology optimization solver performs solution calculations and writes the iteration results into the data cache;

[0061] g. After the data cache is written, it sends iteration information and status information to the scheduling monitoring server;

[0062] h. Instruct the monitoring server to send data synchronization instructions to the CAD geometry modeling service;

[0063] i. The CAD modeling service synchronizes the topology optimization solver iteration results from the data cache;

[0064] j. After data synchronization is completed, the CAD geometry modeling service will route the corresponding data through the scheduling monitoring server and push it to the browser;

[0065] k. The CAD modeling service writes the data to a data storage medium.

[0066] Since geometric structure topology optimization requires multiple iterations to obtain the expected results, step fk needs to be executed repeatedly for the number of optimization iterations set by the user and then exit.

[0067] Assume that during the topology optimization service, the CAD geometry modeling service exits due to timeout or unknown failure and then restarts. The scheduling process of the topology optimization service to resume normal operation is as follows:

[0068] In one embodiment of the present application, after the browser is restarted, the scheduling monitoring server responds to the data synchronization instruction sent by the browser to notify the CAD geometry modeling service to perform a data synchronization self-check. When the self-check result of the CAD geometry modeling service is that the topology optimization state is completed, the current topology optimization task is terminated. When the self-check result of the CAD geometry modeling service is that the topology optimization state is not completed, the topology optimization state is not completed and returned to the scheduling monitoring server. The scheduling monitoring server re-establishes a connection with the topology optimization solver to execute different topology optimization process scheduling based on the connection result.

[0069] Specifically, Figure 4 A scheduling flow chart of a topology optimization service for resuming normal operation provided in an embodiment of the present application, such as Figure 4As shown, the CAD geometry modeling service exits due to timeout or unknown failure and then restarts:

[0070] a. After the browser is restarted, it will actively send data synchronization instructions to the scheduling monitoring server;

[0071] b. The scheduling monitoring server notifies the CAD geometry modeling service to perform a self-check on the data synchronization status;

[0072] c. The CAD geometry modeling service reads the topology optimization status data from the data storage medium. If the topology optimization status is completed, it means that the topology optimization service call is completed and there is no subsequent step;

[0073] d. If the topology optimization status is not completed, the status is returned to the scheduling monitoring server. The scheduling monitoring server first tries to re-establish the socket connection with the geometry topology optimization solver; and executes different topology optimization process scheduling based on the connection result.

[0074] In one embodiment of the present application, when the connection result is a successful connection, the topology optimization process scheduling is performed based on the preset normal operation process. When the connection result is an unsuccessful connection, the CAD geometry modeling service synchronizes the output data of the topology optimization solver based on the cache data. The CAD geometry modeling service determines the exit state of the topology optimization solver based on the output data, and performs different topology optimization process scheduling based on different exit states.

[0075] In one embodiment of the present application, if the topology optimization state in the output data is a completed state, the topology optimization solver is determined to be in a normal completed exit state, and the call process is terminated after the CAD geometry modeling service is synchronized with the output data. If the topology optimization state in the output data is an unfinished state, the CAD geometry modeling service reorganizes the required data and sends the required data to the topology optimization solver. The CAD geometry modeling service sends a request to restart the topology optimization solver to the scheduling monitoring server. The scheduling monitoring server restarts the topology optimization solver and performs topology optimization process scheduling based on the preset normal operation process.

[0076] Specifically, Figure 4 A scheduling flow chart of a topology optimization service for resuming normal operation provided in an embodiment of the present application, such as Figure 4 As shown:

[0077] e. The scheduling monitoring server first tries to re-establish the socket connection with the geometric structure topology optimization solver; if the connection is successfully established, it indicates that the topology optimization solver is running normally, and the subsequent topology optimization service call process is executed according to the normal running state; if the connection cannot be successfully established, it is necessary to consider two situations: the topology optimization solver exits at the end of operation and abnormal exit;

[0078] f. The CAD geometry modeling service synchronizes the solver output data from the data cache. If the topology optimization status in the cached data is completed, it indicates that the topology optimization solver has completed and exited normally. Then, the call process ends after synchronizing the data with the CAD geometry modeling service.

[0079] g. If the topology optimization status in the cached data is incomplete, the CAD geometry modeling service reorganizes the data and transfers it to the topology optimization solver;

[0080] h. The CAD geometry modeling service sends a request to restart the topology optimization solver to the scheduling monitoring server;

[0081] i. The scheduling monitoring server restarts the solver and re-establishes the socket connection, and then executes the topology optimization service call process according to the normal operating status.

[0082] Figure 5 A schematic diagram of the structure of a three-dimensional model topology optimization device provided in an embodiment of the present application. Figure 5 As shown, a three-dimensional model topology optimization device 200 includes: at least one processor 201; and a memory 202 that is communicatively connected to the at least one processor 201; wherein the memory 202 stores instructions that can be executed by the at least one processor 201, and the instructions are executed by the at least one processor 201 so that the at least one processor 201 can: schedule the monitoring server to respond to the solution instruction sent by the browser so that the geometric structure topology optimization service obtains the data required for topology optimization; the scheduling monitoring server determines the required computing resources and required memory resources based on the obtained topology optimization coarse structure and topology optimization settings to apply for resources; based on the applied resources and required data, the geometric structure topology optimization service starts the topology optimization solver, performs iterative calculation of the topology optimization fine structure through the topology optimization solver, and caches the iterative results; the scheduling monitoring server sends a synchronization instruction to the CAD geometric modeling service, and sends the iterative results obtained by the CAD geometric modeling service in the cache to the browser.

[0083] The embodiment of the present application also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows: the scheduling and monitoring server responds to the solving instruction sent by the browser so that the geometric structure topology optimization service obtains the data required for topology optimization; the scheduling and monitoring server determines the required computing resources and the required memory resources based on the obtained topology optimization rough structure and topology optimization settings to apply for resources; based on the applied resources and the required data, the geometric structure topology optimization service starts the topology optimization solver, performs iterative calculation of the topology optimization fine structure through the topology optimization solver, and caches the iterative results; the scheduling and monitoring server sends a synchronization instruction to the CAD geometric modeling service, and sends the iterative results obtained by the CAD geometric modeling service in the cache to the browser.

[0084] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0085] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and changes. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims

1. A three-dimensional model topology optimization method, characterized in that: The method is executed by a topology optimization system based on a B / S architecture, and the topology optimization system based on a B / S architecture is composed of a scheduling monitoring service end, a CAD geometric modeling service, and a geometric structure topology optimization service. The method includes: The scheduling monitoring server responds to the solution instruction sent by the browser, so that the geometric structure topology optimization service obtains the data required for topology optimization; The scheduling and monitoring server determines the required computing resources and required memory resources based on the obtained topology optimization rough structure and topology optimization settings to apply for resources; wherein the computing resources refer to the number of available CPU / GPU cores; Based on the applied resources and the required data, the geometric structure topology optimization service starts a topology optimization solver, performs topology optimization fine structure iterative calculation through the topology optimization solver, and caches the iterative results; The scheduling monitoring service sends a synchronization instruction to the CAD geometric modeling service, and sends the iteration result obtained by the CAD geometric modeling service in the cache to the browser; Before the geometric structure topology optimization service starts a topology optimization solver based on the requested resources and the required data, the method further includes: The scheduling monitoring server establishes a network connection with the topology optimization solver through a Socket socket; The scheduling monitoring server obtains the running status of the topology optimization solver through the Socket socket, and when the running status is the end of operation or unexpected termination, notifies the CAD interactive design kernel to store the running data of the topology optimization solver; After the scheduling monitoring server responds to the solution instruction sent by the browser so that the geometric structure topology optimization service obtains the data required for topology optimization, the method further includes: After the browser is restarted, the scheduling monitoring service responds to the data synchronization instruction sent by the browser to notify the CAD geometric modeling service to perform a data synchronization self-check; When the self-check result of the CAD geometric modeling service is that the topology optimization state is completed, the current topology optimization task is terminated; When the self-check result is that the topology optimization state is not completed, the CAD geometric modeling service returns the topology optimization state not completed to the scheduling monitoring service end; The scheduling monitoring server re-establishes a connection with the topology optimization solver to execute different topology optimization process scheduling based on the connection result; The execution of different topology optimization process scheduling based on the connection results specifically includes: When the connection result is successful, executing topology optimization process scheduling based on a preset normal operation process; When the connection result is that the connection is unsuccessful, the CAD geometric modeling service synchronizes the output data of the topology optimization solver based on the cache data; The CAD geometric modeling service determines an exit state of the topology optimization solver based on the output data, and executes different topology optimization process scheduling based on different exit states; The CAD geometric modeling service determines an exit state of the topology optimization solver based on the output data, and executes different topology optimization process scheduling based on different exit states, specifically including: If the topology optimization state in the output data is a completed state, determining that the topology optimization solver is in a normal completion exit state, and terminating the calling process after the CAD geometric modeling service is synchronized with the output data; If the topology optimization state in the output data is an unfinished state, the CAD geometric modeling service reorganizes the required data and sends the required data to the topology optimization solver; The CAD geometric modeling service sends a request to restart the topology optimization solver to the scheduling monitoring service end; The scheduling monitoring server restarts the topology optimization solver and performs topology optimization process scheduling based on a preset normal operation process.

2. A three-dimensional model topology optimization method according to claim 1, characterized in that: The scheduling monitoring server responds to the solution instruction sent by the browser so that the geometric structure topology optimization service obtains the data required for topology optimization, specifically including: The scheduling monitoring service end responds to the solution instruction sent by the browser end, so that the CAD geometric modeling service organizes and obtains the data required for topology optimization; wherein the required data includes at least one of the objective function, the objective function constraint threshold, the discrete grid corresponding to the design domain and the constraint conditions and loads attached to the discrete grid, material properties, topology optimization setting parameters, user name, document name, version number, instance number, communication IP, port number and cache folder location; The required data is transmitted to the geometry topology optimization service through a data conversion interface layer.

3. A three-dimensional model topology optimization method according to claim 1, characterized in that: The scheduling monitoring server determines the required computing resources and required memory resources based on the obtained topology optimization rough structure and topology optimization settings, specifically including: The scheduling monitoring server obtains a historical topology optimization coarse structure and a historical topology optimization setting, and performs fitting processing based on the historical topology optimization coarse structure and the historical topology optimization setting to obtain the required computing resources; The scheduling and monitoring server determines the number of vertices corresponding to the discrete grid based on the discrete grid corresponding to the current topology optimization, and determines the required memory resources based on the number of vertices and a preset necessary memory capacity calculation function.

4. A three-dimensional model topology optimization method according to claim 1, characterized in that: Before the scheduling monitoring service sends a synchronization instruction to the CAD geometric modeling service, the method includes: The scheduling monitoring server receives the iterative intermediate results sent by the topology optimization solver, and caches the iterative intermediate results for data recovery.

5. A three-dimensional model topology optimization device, characterized in that: The device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the method according to any one of claims 1 to 4.

6. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions can execute the method according to any one of claims 1 to 4.