CN113377536A - Grid generation system and method - Google Patents

Grid generation system and method Download PDF

Info

Publication number
CN113377536A
CN113377536A CN202110643063.9A CN202110643063A CN113377536A CN 113377536 A CN113377536 A CN 113377536A CN 202110643063 A CN202110643063 A CN 202110643063A CN 113377536 A CN113377536 A CN 113377536A
Authority
CN
China
Prior art keywords
grid
client
cloud server
target
geometric model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110643063.9A
Other languages
Chinese (zh)
Other versions
CN113377536B (en
Inventor
淮晓永
马轶聪
高若辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
6th Research Institute of China Electronics Corp
Original Assignee
6th Research Institute of China Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 6th Research Institute of China Electronics Corp filed Critical 6th Research Institute of China Electronics Corp
Priority to CN202110643063.9A priority Critical patent/CN113377536B/en
Publication of CN113377536A publication Critical patent/CN113377536A/en
Application granted granted Critical
Publication of CN113377536B publication Critical patent/CN113377536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/28Design optimisation, verification or simulation using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Algebra (AREA)
  • Fluid Mechanics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a grid generation system and a grid generation method, wherein a client is connected with a cloud server in a network communication mode; the system comprises a client, a cloud server and a virtual machine, wherein the client is used for responding to an instruction for opening a simulation engineering file, loading a geometric model in the engineering file, sending a query request of available meshing methods provided by a query server to the cloud server, selecting a target meshing method for determining a mesh for generating a geometric model computational domain from a plurality of candidate meshing methods fed back by the cloud server, and feeding back the selected target meshing method to the cloud server; and the cloud server is used for feeding back various available candidate grid division methods according to the received query request sent by the client, sending the various candidate grid division methods to the client, receiving a target grid division method selected and input by the client, performing grid generation calculation according to the target grid division method, and generating the grid of the geometric model calculation domain.

Description

Grid generation system and method
Technical Field
The present application relates to the field of grid generation technologies, and in particular, to a grid generation system and method.
Background
The basic structure of the fluid mechanics numerical simulation software is generally divided into three parts, namely grid generation pretreatment, numerical solution and post-treatment analysis. In which, the grid generation is one of the key steps of the pre-processing, and in the industrial application practice of computational fluid dynamics, 40% -45% of the time is generally spent in the pre-processing stage. The grid generation calculation is to perform discretization division on a continuous calculation domain flow field, and divide a continuous geometric area into a plurality of small grid units so as to perform numerical solution of a flow field algebraic equation on the discrete units.
In the present stage, in order to obtain a high-precision numerical simulation solution, a computational domain needs to be divided into grid units as small as possible, and a grid with good quality can usually reach the order of tens of millions of grids or even hundreds of millions of grids. The larger the number of grids, the higher the demand on computing resources such as CPU, memory, etc. Therefore, limited computing resources of the computer are used in a single-computer environment, and when grid generation computation of a complex large model is performed, the computation efficiency is low, the computation time is long, and the user experience is poor.
Disclosure of Invention
In view of this, an object of the present application is to provide a grid generation system and method, where a grid generation method is deployed on a high-performance cloud server, a client may remotely communicate with grid generation computing through a grid application protocol, the client is only responsible for GUI human-computer interaction, and large-scale grid division processing is executed on a high-performance cloud server, so as to improve the efficiency of grid generation computing and improve the friendliness of user experience of grid generation processing computing.
In a first aspect, an embodiment of the present application provides a mesh generation system, where the mesh generation system includes: the system comprises a client and a cloud server, wherein the client is connected with the cloud server in a network communication mode.
The client is used for responding to an instruction for opening a simulation project file, loading a geometric model in the project file, sending a query request for querying available meshing methods provided by the cloud server to the cloud server, selecting a target meshing method for generating meshes of the geometric model calculation domain from a plurality of candidate meshing methods fed back by the cloud server, and feeding back the selected target meshing method to the cloud server;
the cloud server is used for feeding back various available candidate grid division methods according to the received query request sent by the client, sending the various candidate grid division methods to the client, receiving the target grid division method fed back by the client, performing grid generation calculation according to the target grid division method, and generating the grid of the geometric model calculation domain.
Further, the cloud server is further configured to:
and sending a grid parameter setting template to the client based on the target grid division method, and generating a grid of a geometric model calculation domain according to at least one grid setting parameter fed back by the client.
Further, the cloud server includes a grid application protocol unit:
and the grid application protocol unit is used for dividing the available grids according to the available grids provided by the cloud end server in the query request.
Further, the cloud server is further configured to query an applicable grid parameter setting template of the target grid division method based on the grid division method selected by the client, and send the grid parameter setting template to the client.
Further, the client displays a graphical user interface for displaying information, and the client is further configured to:
and after receiving the grid parameter setting template, constructing and generating a grid parameter setting panel on the graphical user interface, responding to the input operation of a user in the grid parameter acquisition area, acquiring at least one grid setting parameter, and sending the at least one grid setting parameter to the cloud server.
Further, the cloud server comprises a grid computing unit:
and the grid computing unit is used for receiving a grid generating instruction sent by the client, then carrying out grid generating computation based on the target grid dividing method and at least one grid setting parameter, and sending the execution state of the grid generating computation to the client in real time.
Further, the client is further configured to:
and judging whether the grid generation calculation in the cloud server is finished or not based on the execution state, and if the grid generation calculation is finished, sending a visual rendering request to the cloud server.
Further, the cloud server is configured to perform visual rendering calculation on the grid data obtained by the grid generating calculation after receiving the visual rendering request sent by the client, generate a visual image of a geometric model calculation domain grid, and send the visual image to the client.
In a second aspect, an embodiment of the present application further provides a mesh generation method, where the mesh generation method includes:
the method comprises the steps that the client side is controlled to load a geometric model in the engineering file, a query request for querying available grid division methods provided by the cloud server is sent, a target grid division method for generating grids of a geometric model calculation domain is selected and determined from multiple candidate grid division methods fed back by the cloud server, and the selected target grid division method is fed back to the cloud server;
and after the query request sent by the client is received by the cloud server, determining multiple candidate grid division methods, sending the multiple candidate grid division methods to the client, receiving a target grid division method selected by the client, performing grid generation calculation according to the target grid division method, and generating the grid of the geometric model calculation domain.
Further, the grid method further comprises:
and controlling the cloud server to send a grid parameter acquisition request to the client based on the target grid division method, and generating the grid of the geometric model calculation domain according to at least one grid parameter fed back by the client.
The embodiment of the application provides a grid generation system and a grid generation method, wherein a client is connected with a cloud server in a network communication mode; the system comprises a client, a cloud server and a plurality of candidate grid division methods, wherein the client is used for responding to a user instruction for opening a simulation engineering file, loading a geometric model in the engineering file, sending a query request for querying the grid division methods corresponding to available geometric models provided by the cloud server to the cloud server, selecting a target grid division method for determining grids for generating a geometric model calculation domain from the candidate grid division methods fed back by the cloud server, and feeding back the selected target grid division method to the cloud server; the cloud server is used for returning various available candidate grid division methods according to the received query request sent by the client and sending the various candidate grid division methods to the client; and receiving a target meshing method fed back by the client, and generating the meshes of the geometric model calculation domain by carrying out mesh generation calculation according to the target meshing method.
Therefore, the grid generation method is deployed on the high-performance cloud server, the client can remotely communicate with the grid generation calculation through the grid application protocol, the client is only responsible for GUI (graphical user interface) man-machine interaction, and large-scale grid division processing is executed on the high-performance cloud server, so that the grid generation calculation efficiency is improved, and the friendliness of the user experience of grid generation processing calculation is improved.
To make the aforementioned and other objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a mesh generation system according to an embodiment of the present application;
FIG. 2 is a GUI interface of a client provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a cloud server according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a mesh division method according to an embodiment of the present application;
fig. 5 is a process flow of mesh division in a mesh division method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 100-a grid generation system; 110-a client; 111-engineering management unit; 112-a grid parameter setting unit; 113-an information output unit; 114-a visualization rendering unit; 115-a service agent unit; 120-cloud server; 121-mesh application protocol unit; 122-a grid computing unit; 600-an electronic device; 610-a processor; 620-memory; 630-bus.
Detailed Description
To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to use the present disclosure, the following embodiments are presented in conjunction with a specific application scenario "mesh generation", and it will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and application scenarios without departing from the spirit and scope of the present disclosure.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
The method, apparatus, electronic device or computer-readable storage medium described in the embodiments of the present application may be applied to any scenario that needs to perform grid generation, and the embodiments of the present application do not limit a specific application scenario, and any scheme that uses the grid generation system and method provided in the embodiments of the present application is within the scope of protection of the present application.
Research shows that in the present stage, in order to obtain a high-precision numerical simulation solution, a computational domain needs to be divided into grid units as small as possible, and a grid with good quality can usually reach the order of tens of millions of grids or even hundreds of millions of grids. The larger the number of grids, the higher the demand on computing resources such as CPU, memory, etc. Therefore, limited computing resources of the single computer are limited in the single computer environment, which causes low computing efficiency, long computing time and poor user experience in the grid generation and computation of the complex large model.
Based on this, the embodiment of the application provides a grid generation system and a method, wherein a client is connected with a cloud server in a network communication mode; the system comprises a client, a cloud server and a plurality of candidate grid division methods, wherein the client is used for responding to an instruction for opening a user simulation project file, loading a geometric model in the project file, sending a query request for querying an available grid division method provided by the cloud server to the cloud server, selecting a target grid division method for determining a grid for generating a computational domain from the plurality of candidate grid division methods fed back by the cloud server, and feeding back the selected target grid division method to the cloud server; and the cloud server is used for returning various available candidate grid division methods provided by the server according to the received query request sent by the client, sending the various candidate grid division methods to the client, receiving a target grid division method fed back by the client, performing grid generation calculation according to the target grid division method, and generating the grid of the engineering geometric model calculation domain.
Therefore, the grid generation method is deployed on the high-performance cloud server, the client can remotely communicate with the grid generation calculation through the grid application protocol, the client is only responsible for GUI (graphical user interface) man-machine interaction, and large-scale grid division processing is executed on the high-performance cloud server, so that the grid generation calculation efficiency is improved, and the friendliness of the user experience of grid generation processing calculation is improved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a grid generating system according to an embodiment of the present disclosure. As shown in fig. 1, an embodiment of the present application provides a mesh generation system 100 including: the system comprises a client terminal 110 and a cloud server 120, wherein the client terminal 110 is connected with the cloud server 120 in a network communication mode, the client terminal 110 sends a query request of a query request grid division method to the cloud server 120, the cloud server 120 receives the query request and then carries out available grid division methods provided by query service, the query result is sent to the client terminal 110, the client terminal 110 receives the query result and then selects a target grid division method and sends the target grid division method to the cloud server 120, the cloud server 120 receives the query result and then carries out grid generation calculation according to the target grid division method, the generated grid data is visually rendered, a visual grid image is generated, and the visual grid image is sent to the client terminal 110.
Specifically, the client 110 is configured to, in response to an instruction for opening a simulation project file, load a geometric model in the project file, send a query request of available meshing methods provided by a query server to the cloud server 120, select a target meshing method for determining a mesh used for generating the geometric model computation domain from multiple candidate meshing methods fed back by the cloud server 120, and feed back the selected target meshing method to the cloud server 120.
Here, the mesh generation method available for the service is queried through the service interface, and the mesh division method selection box is initialized according to the available mesh generation method returned by the service.
Here, the client 110 provides a user with a grid-generated user GUI interactive interface, please refer to fig. 2, and fig. 2 is a GUI interactive interface of the client according to an embodiment of the present application. The system comprises an engineering management unit 111, a grid parameter setting unit 112, an information output unit 113, a visualization rendering unit 114 and a service agent unit 115. The project management unit 111 is responsible for managing basic project information such as a geometric model of a project, grid setting parameter information and the like, and provides a method for building a project, storing the project and opening the project. The mesh parameter setting unit 112 is responsible for providing mesh partition method selection, parameter setting interactive operation panel functions of each partition method. The information output unit 113 is responsible for displaying the calculation output information display during the execution of the grid generation. The visualization rendering unit 114 is responsible for performing visualization rendering on the mesh data generated by division, and displaying the mesh generation effect in an image manner. The service agent unit 115 is responsible for communication with the grid service and remotely invoking access to the grid service.
Further, the cloud server 120 is configured to return multiple available candidate grid division methods according to the received query request sent by the client 110, send the multiple candidate grid division methods to the client 110, receive a target grid division method fed back by the client 110, perform grid generation calculation according to the target grid division method, and generate a grid of the geometric model computational domain.
Here, the cloud server 120 stores therein a plurality of meshing methods.
Further, the cloud server 120 is further configured to: and sending a grid parameter setting template to the client 110 based on the target grid division method, and generating a grid of the geometric model computational domain according to at least one grid setting parameter fed back by the client 110.
Here, the cloud server 120 sends a mesh parameter setting template to the client 110 according to the target mesh partitioning method determined by the client 110, the client 110 receives the request and then feeds back mesh setting parameters to the cloud server 120, and the cloud server 120 generates the mesh of the geometric model computation domain according to the mesh setting parameters.
Further, the cloud server 120 is further configured to, after the parameter obtaining request is based on, query a grid parameter setting template applicable to the target grid division method, and send the grid parameter setting template to the client.
Further, the client displays a graphical user interface for displaying information, and the client is further configured to: after receiving the grid parameter setting template, a grid setting parameter acquisition area is created on the graphical user interface according to the template construction, at least one grid setting parameter is acquired in response to an input operation of a user in the grid setting parameter acquisition area, and at least one grid parameter is sent to the cloud server 120.
Here, the client 110 displays the grid parameter setting template after receiving the grid parameter setting template sent by the cloud server 120, and the user sets parameters according to the grid parameter setting template and sends at least one parameter setting to the cloud server 120 according to the user's parameter setting.
Further, referring to fig. 3, fig. 3 is a schematic structural diagram of a cloud server according to an embodiment of the present disclosure, and as shown in fig. 3, the cloud server 120 includes a grid application protocol unit 121 and a grid computing unit 122.
Specifically, the grid application protocol unit 121 is configured to query, according to the query request, available grid division methods provided by the cloud server.
Here, the grid application protocol unit 121 encapsulates the grid computer function according to a functional interface, and provides a remote call API interface in an RPC manner, including: querying an available mesh partitioning method, obtaining an applicable mesh setting parameter template of the mesh partitioning method, setting mesh parameters of an example, performing mesh partitioning, performing mesh inspection, performing mesh type conversion, and the like.
The grid computing unit 122 is configured to, after receiving a grid generating instruction sent by the client 110, perform grid generating computation based on the target grid dividing method and at least one grid setting parameter, and send an execution state of the grid generating computation to the client 110 in real time.
Here, after receiving the mesh generation instruction sent by the client 110, the mesh calculation unit 122 performs mesh generation calculation according to the target mesh partitioning method and at least one mesh parameter selected by the client 110, and sends the execution state of the mesh calculation to the client 110 in real time, and the information output unit 113 in the client 110 feeds back the mesh calculation execution state of the cloud server 120 in real time.
Further, the client 110 is further configured to: based on the execution state, it is determined whether the grid generation calculation in the cloud server 120 is finished, and if the grid generation calculation is finished, a visualization rendering request is sent to the cloud server 120.
Here, the client 110 determines whether the grid generation calculation in the cloud server 120 is finished according to the information display in the information output unit 113. For example, if the display identifier in the information output unit 113 is 1 and the grid generation calculation in the cloud server 120 is not finished, the information output unit 113 continues to display information, and if the display identifier in the information output unit 113 is 0 and the grid generation calculation in the cloud server 120 is finished, the client 110 sends a request for performing visualization rendering to the cloud server 120.
Further, the cloud server 120 is configured to perform, after receiving the visualization rendering request sent by the client 110, visualization rendering calculation by using the grid data obtained by the grid generating calculation, generate a visualization image of the geometric model calculation domain, and send the visualization image to the client 110.
Here, after the cloud server 120 receives the visualization rendering request sent by the client 110, the cloud server 120 performs visualization rendering calculation by using the grid data generated by the grid calculating unit 122, and generates a grid visualization image of a geometric model calculation domain, and the cloud server 120 sends the visualization image to the client 110 for the user to view.
The embodiment of the application provides a grid generation system, wherein a client is connected with a cloud server in a network communication mode; the system comprises a client, a cloud server and a plurality of candidate grid division methods, wherein the client is used for responding to an instruction for opening a simulation engineering file, loading a geometric model in the engineering file, sending a query request for querying an available grid division method provided by the cloud server to the cloud server, determining a target grid division method for generating a grid of a geometric model calculation domain from the candidate grid division methods fed back by the cloud server, and feeding back the selected target grid division method to the cloud server; and the cloud server is used for returning various candidate grid division methods provided by the server according to the received query request sent by the client, sending the various candidate grid division methods to the client, receiving the target grid division method fed back by the client, calculating according to the target grid division method, and generating the grid of the geometric model calculation domain.
Therefore, the grid generation method can be deployed on a high-performance cloud server, the client can remotely communicate with grid generation calculation through a grid application protocol, the client is only responsible for GUI (graphical user interface) man-machine interaction, and large-scale grid division processing is executed on the high-performance cloud server, so that the grid generation calculation efficiency is improved, and the friendliness of user experience of grid generation processing calculation is improved.
Referring to fig. 4, fig. 4 is a flowchart of a grid generating method according to an embodiment of the present disclosure. As shown in fig. 4, a mesh generation method provided in an embodiment of the present application includes:
s401: the method comprises the steps of controlling the client to load a geometric model in the engineering file, sending a query request for querying available meshing methods provided by the cloud server, determining a target meshing method for generating meshes of the geometric model calculation domain from a plurality of candidate meshing methods fed back by the cloud server, and feeding back the selected target meshing method to the cloud server.
In the step, the client is controlled to load a geometric model of the engineering file, and a query request for searching the grid division method is sent to the cloud server. Selecting a target meshing method according to the candidate meshing methods sent by the cloud server, and sending the selected target meshing method to the cloud server.
The grid division method includes blockMesh, snappyHexMesh and the like of OpenFoam or other grid division methods.
Here, the mesh generation method available for the service is queried through the service interface, and the mesh division method selection box is initialized according to the available mesh generation method returned by the service.
S402: and after the query request sent by the client is received by the cloud server, feeding back various available candidate grid division methods, sending the various candidate grid division methods to the client, receiving a target grid division method fed back by the client, and performing grid production calculation on a calculation domain according to the target grid division method to generate the grid of the geometric model calculation domain.
In the step, after the cloud server sends a request for inquiring the gridding division method according to the client, the cloud server sends available multiple gridding division methods provided by the service to the client in a form of a selection frame, the client selects any gridding division method as a target gridding division method to send to the cloud server, and the cloud server performs calculation according to the selected gridding division method to generate gridding data.
The steps further include: and controlling the cloud server to send a grid parameter acquisition request to the client based on the target grid division method, and generating a grid of a geometric model computational domain according to at least one grid parameter fed back by the client.
Here, the cloud server sends a mesh parameter setting template applicable to the selected mesh partitioning method to the client according to the target mesh partitioning method determined by the client, the client constructs and generates a mesh setting user interaction panel according to the template, a user performs mesh parameter setting and feeds back the mesh parameter setting to the cloud server, and the cloud server generates a mesh of the geometric model calculation domain according to the mesh parameters.
Further, the mesh generation method further includes: and controlling the grid application protocol unit to inquire the available gridding division method provided by the request feedback server according to the gridding division method.
Here, the available meshing method provided by the server is fed back according to the query request, wherein the meshing method includes: blocking mesh, snappyHexMesh, or other types of meshing methods by OpenFoam.
Further, the mesh generation method further includes: and controlling the cloud server to respond to a grid parameter setting template request of the client, inquiring a grid parameter setting template of the target grid division method, and sending the grid parameter setting template to the client.
Further, the mesh generation method further includes: and the control client displays a grid setting parameter acquisition area on the image user interface after receiving the grid parameter setting template, responds to the input operation of a user in the grid parameter acquisition area, acquires at least one grid setting parameter and sends the at least one grid setting parameter to the cloud server.
Here, after the client receives the grid parameter setting template, the grid parameter setting template is displayed on the client, and the user can set parameters according to the input area of the grid parameter setting template and send the set grid setting parameters to the cloud server.
Further, the mesh generation method further includes: and after controlling the grid computing unit to receive a grid generating instruction sent by the client, carrying out grid generating computation based on the target grid dividing method and at least one grid setting parameter, and sending the execution state of the grid generating computation to the client in real time.
Here, upon receiving a mesh generation instruction transmitted from the client, mesh generation calculation is performed according to the received at least one mesh setting parameter, and the mesh calculation unit transmits an execution state of the mesh generation calculation to the client.
Further, the mesh generation method further includes: and judging whether the grid generation calculation in the cloud server is finished or not based on the execution state, and if the grid generation calculation is finished, sending a visual rendering request to the cloud server.
Here, whether the grid generation calculation is completed or not is judged, if the grid generation calculation is not completed, information is always output to the client, if the grid generation calculation is completed, the information output to the client is stopped, at this time, the client sends an instruction for grid rendering calculation to the cloud server, and after receiving the instruction, the cloud server performs visual rendering by using grid data of the grid generation calculation, generates a visual grid image, and sends the visual grid image to the client for display.
In a specific embodiment, please refer to fig. 5 for a process flow of mesh partitioning in the mesh partitioning method provided in the embodiment of the present application, as shown in fig. 5, a simulation project file is opened by a client, a geometric model of a project is loaded, a project environment is initialized according to a project configuration, a mesh generation method available for a service is queried through a service interface, and a mesh partitioning method selection box is initialized according to an available mesh generation method returned by the service. After selecting one grid generation method, a user inquires a parameter setting interactive panel template of a default division method through a service interface, and an interactive panel is created according to the parameter setting interactive panel template returned by the service. And the user carries out the grid parameter setting operation of the project according to the interactive panel through the client, wherein when different grid division methods are selected, the service interface is called to inquire the parameter setting interactive panel template of the selected division method, and the interactive panel is created according to the parameter setting interactive panel template returned by the service. The grid setting data carried out by the user is saved, the grid division parameters of the grid setting interface setting service are called, and the grid generation calculation is started and executed. And regularly reading the grid generation calculation execution output information, and displaying the information to a user through an information output module so that the user can know the calculation execution state in real time. And judging whether the calculation is finished according to the information returned from the service, continuously and regularly reading the calculation execution output information when the calculation is not finished, stopping reading after the calculation is finished, selecting a visual rendering instruction by a user at a client to calculate generated grid data, and generating a grid image through a visual algorithm, wherein the user can visually check the generated grid effect.
The embodiment of the application provides a meshing method, wherein a client is controlled to load a geometric model in an engineering file, a query request for querying an available meshing method provided by a cloud server is sent, a plurality of candidate meshing methods fed back from the cloud server are used for determining a target meshing method for generating meshes of a geometric model computational domain, and the selected target meshing method is fed back to the cloud server; and after the query request sent by the client is received by the cloud server, determining multiple candidate grid division methods, sending the multiple candidate grid division methods to the client, receiving a target grid division method fed back by the client, calculating according to the target grid division method, and generating the grid of the geometric model calculation domain.
Therefore, the grid generation method can be deployed on a high-performance cloud server, the client can remotely communicate with grid generation calculation through a grid application protocol, the client is only responsible for GUI (graphical user interface) man-machine interaction, and large-scale grid division processing is executed on the high-performance cloud server, so that the grid generation calculation efficiency is improved, and the friendliness of user experience of grid generation processing calculation is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 runs, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the grid generation method in the method embodiment shown in fig. 4 may be performed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a process control apparatus. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A mesh generation system, characterized in that the mesh generation system comprises: the system comprises a client and a cloud server, wherein the client is connected with the cloud server in a network communication mode;
the client is used for responding to an instruction for opening a simulation project file, loading a geometric model in the project file, sending a query request for querying available meshing methods provided by the cloud server to the cloud server, selecting a target meshing method for generating meshes of the geometric model calculation domain from a plurality of candidate meshing methods fed back by the cloud server, and feeding back the selected target meshing method to the cloud server;
the cloud server is used for feeding back various available candidate grid division methods according to the received query request sent by the client, sending the various candidate grid division methods to the client, receiving the target grid division method fed back by the client, performing grid generation calculation according to the target grid division method, and generating the grid of the geometric model calculation domain.
2. The grid generation system of claim 1, wherein the cloud server is further configured to:
and sending a grid parameter setting template to the client based on the target grid division method, and generating the grid of the geometric model calculation domain according to at least one grid setting parameter fed back by the client.
3. The grid generation system of claim 1, further comprising the cloud server comprising a grid application protocol unit:
and the grid application protocol unit is used for feeding back the available grid division method provided by the cloud server according to the query request.
4. The mesh generation system of claim 2,
and the cloud server is further used for inquiring a grid parameter setting template of the target grid division method after the parameter acquisition request is based on the parameter acquisition request, and sending the grid parameter setting template to the client.
5. The mesh generation system of claim 4, wherein the client displays a graphical user interface for information display, the client further configured to:
and after receiving the grid parameter setting template, constructing and generating a grid parameter acquisition area on the graphical user interface, responding to the input operation of a user in the grid parameter acquisition area, acquiring at least one grid setting parameter, and sending the at least one grid setting parameter to the cloud server.
6. The grid generation system of claim 1, wherein the cloud server comprises a grid computing unit:
and the grid computing unit is used for receiving a grid generating instruction sent by the client, then carrying out grid generating computation based on the target grid dividing method and at least one grid setting parameter, and sending the execution state of the grid generating computation to the client in real time.
7. The mesh generation system of claim 6, wherein the client is further configured to:
and judging whether the grid generation calculation in the cloud server is finished or not based on the execution state, and if the grid generation calculation is finished, sending a visual rendering request to the cloud server.
8. The mesh generation system of claim 7,
and the cloud server is used for performing visual rendering calculation by using the grid data obtained by grid generation calculation after receiving a visual rendering request sent by the client, generating a visual image of the grid of the geometric model calculation domain, and sending the visual image to the client.
9. A mesh generation method applied to the mesh generation system according to any one of claims 1 to 8, the mesh generation method comprising:
the method comprises the steps that the client side is controlled to load a geometric model in the engineering file, a query request for querying available grid division methods provided by the cloud server is sent, multiple candidate grid division methods fed back from the cloud server are used for determining a target grid division method used for generating grids of a geometric model calculation domain, and the selected target grid division method is fed back to the cloud server;
and after the query request sent by the client is received by the cloud server, feeding back various available candidate grid division methods, sending the various candidate grid division methods to the client, receiving a target grid division method fed back by the client, and performing grid generation calculation on a calculation domain according to the target grid division method to generate the grid of the geometric model calculation domain.
10. The mesh generation method of claim 9, further comprising:
and controlling the cloud server to send a grid parameter acquisition request to the client based on the target grid division method, and generating the grid of the geometric model calculation domain according to at least one grid parameter fed back by the client.
CN202110643063.9A 2021-06-09 2021-06-09 Grid generation system and method Active CN113377536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110643063.9A CN113377536B (en) 2021-06-09 2021-06-09 Grid generation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110643063.9A CN113377536B (en) 2021-06-09 2021-06-09 Grid generation system and method

Publications (2)

Publication Number Publication Date
CN113377536A true CN113377536A (en) 2021-09-10
CN113377536B CN113377536B (en) 2023-11-24

Family

ID=77573305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110643063.9A Active CN113377536B (en) 2021-06-09 2021-06-09 Grid generation system and method

Country Status (1)

Country Link
CN (1) CN113377536B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114492249A (en) * 2022-04-02 2022-05-13 中国空气动力研究与发展中心计算空气动力研究所 Method, system, client and server for generating unstructured grid

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050259881A1 (en) * 2004-05-20 2005-11-24 Goss Michael E Geometry and view assisted transmission of graphics image streams
CN105224769A (en) * 2015-10-30 2016-01-06 北京蓝威技术有限公司 A kind of CAE data processing method of sing on web browser and system
CN107346353A (en) * 2017-06-05 2017-11-14 民政部零研究所 A kind of solid burning article combustion process emulation mode and server
CN107452072A (en) * 2017-07-25 2017-12-08 深圳拎得清软件有限公司 BIM line modelings method and its system based on webpage
CN108229085A (en) * 2018-04-12 2018-06-29 上海索辰信息科技有限公司 computer simulation analysis system and method
US20180350136A1 (en) * 2017-05-31 2018-12-06 TeMAVR, LLC Systems and associated methods for creating a viewing experience
CN111782255A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Virtual prop updating method and device
CN112187955A (en) * 2020-10-15 2021-01-05 北京适创科技有限公司 Casting mold modeling and simulation cloud computing service providing method based on SaaS platform
CN112487129A (en) * 2020-12-14 2021-03-12 中科星通(廊坊)信息技术有限公司 Visualization method and device for mass remote sensing vector data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050259881A1 (en) * 2004-05-20 2005-11-24 Goss Michael E Geometry and view assisted transmission of graphics image streams
CN105224769A (en) * 2015-10-30 2016-01-06 北京蓝威技术有限公司 A kind of CAE data processing method of sing on web browser and system
US20180350136A1 (en) * 2017-05-31 2018-12-06 TeMAVR, LLC Systems and associated methods for creating a viewing experience
CN107346353A (en) * 2017-06-05 2017-11-14 民政部零研究所 A kind of solid burning article combustion process emulation mode and server
CN107452072A (en) * 2017-07-25 2017-12-08 深圳拎得清软件有限公司 BIM line modelings method and its system based on webpage
CN108229085A (en) * 2018-04-12 2018-06-29 上海索辰信息科技有限公司 computer simulation analysis system and method
CN111782255A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Virtual prop updating method and device
CN112187955A (en) * 2020-10-15 2021-01-05 北京适创科技有限公司 Casting mold modeling and simulation cloud computing service providing method based on SaaS platform
CN112487129A (en) * 2020-12-14 2021-03-12 中科星通(廊坊)信息技术有限公司 Visualization method and device for mass remote sensing vector data

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
张必强, 邢渊, 阮雪榆: "大型三维几何模型在分布式协同设计中实时传输的关键技术", 计算机工程, no. 01 *
王晓华;张田文;柴旭东;: "可视化资源网格化方法", 计算机工程, no. 05 *
石滨;: "构建面向网格的可视化系统――信息可视化与网格的融合", 中国管理信息化, no. 20 *
石胜友;莫蓉;杨海成;陈泽峰;张传顺;常志勇;: "基于网格的标准件库系统研究与开发", 机械科学与技术, no. 01 *
黄成梓;白石阳;王芹;马召灿;张倩茹;刘田田;桂升;卢本卓;陈?昕;李鸿亮;: "3Ddevice:半导体器件及其辐照损伤效应仿真软件系统", 数值计算与计算机应用, no. 02 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114492249A (en) * 2022-04-02 2022-05-13 中国空气动力研究与发展中心计算空气动力研究所 Method, system, client and server for generating unstructured grid

Also Published As

Publication number Publication date
CN113377536B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
KR101936027B1 (en) Engineering tools, systems and modules
CN112988130A (en) Visual modeling method, device, equipment and medium based on big data
KR20220058850A (en) Job processing methods, devices, instruments, systems and storage media
EP2769302B1 (en) Use of dynamic profiles for creating and using a distributed computing environment
CN112965903A (en) Test method, test device, electronic equipment and computer readable storage medium
CN113377536A (en) Grid generation system and method
KR20220027870A (en) Visual programming for deep learning
CN114091672B (en) Distributed model reasoning method and device, electronic equipment and medium
CN116301735B (en) Method, device and storage medium for organizing software elements into software data links
CN113392627B (en) Management system and method for CFD software multiuser user-defined interactive interface
KR101360263B1 (en) Apparatus for controlling a computation job, method of controlling a computation job, and storage medium for storing a software controlling a computation job
CN108073450B (en) Task scheduling method, device and system
CN110764864A (en) Terraform-based visual resource arrangement method
US10360701B2 (en) Integrated visualization
CN114064188A (en) Design method and design device of monitoring interface and electronic equipment
CN114860346A (en) Management method of modeling task and operation method of modeling task
CN110928672B (en) Task arranging method, device and equipment and storage medium
JP2015041327A (en) Automatic operation system, method, and automatic operation program
CN110780852A (en) Method, device, equipment and medium for determining data source
JP7391269B1 (en) FA control program generation support program, FA control program generation support device, FA control program generation support method
CN117934663B (en) Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture
JP7501092B2 (en) Auxiliary method, control program and device
WO2014208005A1 (en) Non-functional evaluation assistance device, system, method, and program
CN117669293A (en) Model construction method, device, equipment and storage medium
AU2016202813A1 (en) Methods and systems for task time estimate re-asssessment in a task scheduling system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant