CN115774569A - High-integration simulation tool modular packaging method - Google Patents

High-integration simulation tool modular packaging method Download PDF

Info

Publication number
CN115774569A
CN115774569A CN202211510462.9A CN202211510462A CN115774569A CN 115774569 A CN115774569 A CN 115774569A CN 202211510462 A CN202211510462 A CN 202211510462A CN 115774569 A CN115774569 A CN 115774569A
Authority
CN
China
Prior art keywords
simulation
module
tool
simulation tool
file
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
CN202211510462.9A
Other languages
Chinese (zh)
Other versions
CN115774569B (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.)
Nanjing Card Shi Fu Automotive Technology Co ltd
Original Assignee
Nanjing Card Shi Fu Automotive Technology Co ltd
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 Nanjing Card Shi Fu Automotive Technology Co ltd filed Critical Nanjing Card Shi Fu Automotive Technology Co ltd
Priority to CN202211510462.9A priority Critical patent/CN115774569B/en
Publication of CN115774569A publication Critical patent/CN115774569A/en
Application granted granted Critical
Publication of CN115774569B publication Critical patent/CN115774569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a high-integration simulation tool modularization packaging method, which comprises the steps of determining a simulation tool to be packaged, then carrying out standardized packaging on simulation tool information, a related library file and a user script to generate a standardized description file and a package file package, and then carrying out high-level abstraction and standardized packaging on the simulation tool, control parameters and input and output to form a standard module; generating a description file by utilizing a standard simulation analysis xml file template; adding a simulation tool related library file and a user script to a specified folder; and responding to the user operation instruction to package the description file and the simulation tool folder to obtain a packaging module. The method and the device automatically generate the package file package by packaging and packing the simulation tool, and shield differentiation details of bottom software and hardware for a simulation engineer; only the packaged description file packet needs to be concerned, the complexity of performance simulation analysis work is reduced, and development and learning costs are reduced.

Description

High-integration simulation tool modular packaging method
Technical Field
The invention relates to the field of engineering simulation analysis, in particular to a high-integration simulation tool modular packaging method.
Background
When engineering simulation multidisciplinary optimization analysis is carried out, more and more simulation disciplines, simulation software and hardware types are involved. The simulation tools used by the simulation engineers may not be uniform, and there are different operation steps and flows when different simulation tools are used, and multiple simulation tools need to be called to complete a single performance simulation analysis work. When a user performs multidisciplinary optimization analysis, due to the fact that used simulation tools are not uniform, the called simulation tools need to be independently learned, and calling needs to be achieved through independently writing scripts, and reusability of the scripts is poor. This makes the simulation engineer difficult and complicated to work with, and even makes multidisciplinary simulation optimization impossible to perform jointly.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to solve the defects in the prior art and provides a high-integration simulation tool modular packaging method, which is used for carrying out high-level abstract packaging on simulation software and hardware resources involved in CAE simulation analysis and supporting flexible calling of bottom layer software and hardware resources.
The technical scheme is as follows: the invention relates to a high-integration simulation tool modular packaging method, which comprises the following steps of:
step S01, determining a simulation tool to be packaged, wherein the simulation tool to be packaged comprises simulation tool information, control parameter information and input/output information, then performing standardized packaging on the simulation tool information, a related library file and a user script to generate a standardized description file and a package file package, and then performing high-level abstraction and standardized packaging on the simulation tool, the control parameters and the input/output to form a high-integration standard module comprising module definition, tool definition, input data, output data, operation parameters, control parameters and interface parameters;
s02, generating a description file by utilizing a standard simulation analysis xml file template; the description file comprises a simulation tool, control parameters and input and output;
s03, adding the simulation tool related library file and the user script to a specified folder;
s04, responding to a user operation instruction, packaging the description file and the simulation tool folder to obtain a packaging module, wherein the packaged package file comprises: xml file, library folder, scripts folder and resources folder; the xml file is a description file, the library folders include software related to the simulation tool or library files for binding hardware information, the scripts folders include script files for user module transaction processing, and the resource folders are resource files used for packaging the simulation tool package.
Further, the simulation tool information includes a module definition and a tool definition; the module definition is modular information packaged with a simulation tool, comprises a name, a display mode and a calling mode, and is matched through the module definition when being called externally; the tool definition refers to relevant information of the packaged simulation tool, including tool name, tool type and tool path, and is used when a module is started or a starting process is called externally; the packaged simulation tool comprises simulation software or hardware resources packaged in the module, such as finite element pre-and-post processing software, a solver, high Performance Computing (HPC) hardware resources and the like. Finite element pre-and post-processing software refers to CAE software for processing a simulation model or a result, a solver refers to computing software for performing matrix solution on the simulation model including a finite element computing method, and high performance computing HPC hardware resources refers to computing cluster information, the number of CPUs (central processing units) or the size of an internal memory to be used in a simulation computing process.
Further, the control parameter information comprises operation parameters, control parameters and interface parameters; the operation parameters are parameters or scripts which need to be added when the simulation tool operates (the parameters and the scripts can be distinguished according to different packaged simulation tools, and can also be extracted to be set by a user on an interface); the control parameters are encapsulation module state control parameters, comprise state control parameters and data control parameters, and control the operation state of the encapsulation module and the input and output of the data stream through the control parameters; the interface parameters are interface displays provided by the packaged simulation module for a user, the user sets a required interface by modifying the parameters of the packaged module on the interface, extracts the packaged module definition, the tool definition, the input data, the output data, the operation parameters and the control parameters to the user interface to generate corresponding controls, and then integrates or calls the controls.
Further, the state control parameter refers to directly ending after starting the simulation tool, or performing process blocking, waiting for a signal to be output; and the data control parameters control the input and output, uploading and downloading of the data stream of the packaging module.
Further, the input and output information includes input data and output data, the input data is input model data of the encapsulation module, and may be a single simulation model file, or a single main file and multiple include files, and the input data is divided into nas/bdf/dat files based on Nastran, inp/dat files based on Abaqus, and k/key/dyn files based on Dyna, etc. according to different types of input data related to encapsulation of different simulation tools; the output data is output result data of the packaging module, can be processed calculation model, calculated simulation result, post-processed extracted numerical value, chart, animation and automatically generated report, and is used as output stream to be input to the next packaging module or to be called by external programs.
Has the beneficial effects that: compared with the prior art, the invention has the following advantages:
(1) The method and the device automatically generate the package file package by packaging the simulation tool related to the CAE simulation analysis, and realize flexible calling of software and hardware resources at the bottom layer of the simulation tool; the packaged description file package can be directly imported into engineering simulation multidisciplinary optimization software, so that multidisciplinary simulation modules can be combined to form an integral flow.
(2) Aiming at different simulation tools (including simulation software and hardware resources), the invention carries out high-level abstract packaging on the simulation software and the hardware resources involved in CAE simulation analysis by the high-integration simulation tool modularization packaging method, makes the use and calling methods of the simulation tools consistent and supports flexible calling of the bottom layer software and hardware resources.
(3) The invention shields the differentiation details of bottom software and hardware for the simulation engineer. Therefore, the complexity of performance simulation analysis work is reduced, and the method is favorable for quick start in simulation work or quick integration in a simulation flow.
(4) The user extracts the encapsulated module definition, tool definition, input data, output data, operation parameters and control parameters to generate corresponding controls on the user interface through the interface parameters, so that the user can use or integrate the simulation tool more intuitively, efficiently and reasonably, and the user can set the user interface required by the user through configuration, thereby better meeting the use simplicity and personalization requirements of the simulation tool.
Drawings
FIG. 1 is a flow chart of the overall packaging of the present invention;
FIG. 2 is a block diagram of an embodiment of the present invention;
FIG. 3 is a diagram illustrating a file format according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a package file structure according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is described in detail below, but the scope of the present invention is not limited to the embodiments.
As shown in fig. 1, the method for modularizing and packaging a highly integrated simulation tool of the present embodiment includes the following steps:
step S01, determining a simulation tool to be packaged, wherein the simulation tool to be packaged comprises simulation tool information, control parameter information and input/output information, then carrying out standardized packaging on the simulation tool information, a related library file and a user script to generate a standardized description file and a package file package, and then carrying out high-level abstraction and standardized packaging on the simulation tool, the control parameter and the input/output to form a high-integration standard module; as shown in fig. 2, the simulation tool information of the present embodiment includes a module definition 1 and a tool definition 2; the control parameter information comprises an operation parameter 7, a control parameter 8 and an interface parameter 9; the input/output information includes input data 3, which is input model data 4 of the package module, and output data 5.
S02, generating a description file by utilizing a standard simulation analysis xml file template; the description file comprises a simulation tool, control parameters and input and output;
xml file at least contains simulation tool, control parameter, input and output, etc. as shown in fig. 3. The process of generating the description file comprises the following steps:
defining Module definition information, a Module name and a Module simulation type through a field Module; the information, path, etc. of the simulation Tool are illustrated in the field Tool.
The operating parameters and Control parameters of the module are defined by the fields Parameter and Control, respectively. Different parameter selections exist in the operation parameters 7 according to different simulation software, for example, i represents the input of a model file, b represents the background starting of the simulation tool, and script represents the calling of the simulation tool to a script; the control parameters 8 comprise state control parameters and data control parameters, the state control parameters Signal control whether the simulation tool is directly ended or process blocking is carried out after the simulation tool is started, when Signal =0, the process is directly ended, and when Signal =1, the process blocks to wait for a Signal to be output again; the data control parameters control the input and output of data flow of the encapsulation module, upload of the Upload control data and Download of the Download control data.
Through field GUI definition module interface parameters, users can extract the packaged module definition, tool definition, operation parameters, control parameters to the user interface to generate corresponding controls, detailed definition and description are carried out on the control types, users can extract the packaged parameters to the interface to generate the controls, the controls can be divided into various types, such as 0-Label,1-Input Line,2-Button,3Combox,4-SpinBox,5-CheckBox,6-RadioBox,7-TreeView,8-ListView,9-ProcessBar,10-GroupBox and the like, and users can carry out personalized configuration and extraction according to requirements. In addition, a user interface is reserved on the interface for inputting and outputting information, namely input data and output data.
And S03, adding the library file related to the simulation tool (including the library file related to the simulation software or the binding hardware information) and the user script to a specified folder.
And S04, responding to the user operation instruction, and packaging the description file and the simulation tool folder to obtain a packaging module. As shown in fig. 4, the packaged package file of this embodiment includes: xml file, library folder, scripts folder and resource folder; the xml file is a description file, the library folders include software related to the simulation tool or library files for binding hardware information, the scripts folders include script files for user module transaction processing, and the resource folders are resource files used for packaging the simulation tool package.
The package must include a description file and a library file, and the user can also pack other information files into the package together. And if the operation instruction of the user does not select other files to be packaged, responding to the operation instruction to package the description file and the library file to obtain a package module package.
According to the embodiment, the high-integration simulation tool modularization packaging method only needs to determine the simulation tool to be packaged, standardizes and packages simulation tool information, related library files and user scripts to generate standardized description files according to the requirements of performance simulation analysis work, and performs high-level abstraction on related simulation tools, control parameters, input and output and the like to automatically generate a package file package. That is, the simulation engineer only needs to pay attention to the packaged description file package and does not need to pay attention to the code level, so that the complexity of performance simulation analysis work is greatly reduced, and the development and learning cost is reduced. The packaged package file package can be directly imported into engineering simulation multidisciplinary optimization software, so that multidisciplinary simulation modules can be combined to form an integral flow; the differential interfaces of various simulation software and hardware resources are packaged into a uniform abstract interface, so that a user keeps consistency in learning, calling and using modes, and only an operation control generated through interface parameters exists externally.
In addition, input data are directly processed in the packaging module by a simulation tool, the started process is controlled according to the operation parameters and the control parameters, and finally the data are output to the outside or called by another module, so that the logic that the data face users and the whole process is irrelevant to bottom layer software and hardware resources is realized, the user operation is simpler, the safety is better, and the learning efficiency and the using efficiency are obviously improved.

Claims (5)

1. A high-integration simulation tool modularization packaging method is characterized by comprising the following steps: the method comprises the following steps:
step S01, determining a simulation tool to be packaged, wherein the simulation tool to be packaged comprises simulation tool information, control parameter information and input/output information, then performing standardized packaging on the simulation tool information, a related library file and a user script to generate a standardized description file and a package file, and then performing high-level abstraction and standardized packaging on the simulation tool, the control parameters and the input/output to form a high-integration standard module comprising a module definition, a tool definition, input data, output data, operation parameters, control parameters and interface parameters;
s02, generating a description file by utilizing a standard simulation analysis xml file template; the description file comprises a simulation tool, control parameters and input and output;
s03, adding the simulation tool related library file and the user script to a specified folder;
s04, responding to a user operation instruction, packaging the description file and the simulation tool folder to obtain a packaging module, wherein the packaged package file comprises: xml file, library folder, scripts folder and resource folder; the xml file is a description file, the library folders include software related to the simulation tool or library files for binding hardware information, the scripts folders include script files for user module transaction processing, and the resource folders are resource files used for packaging the simulation tool package.
2. The modular packaging method for highly integrated simulation tools according to claim 1, characterized in that: the simulation tool information comprises a module definition and a tool definition; the module definition refers to modular information packaged with a simulation tool, and comprises a name, a display mode and a calling mode, and the module definition is used for matching when the module is called externally; the tool definition refers to relevant information of the packaged simulation tool, including tool name, tool type and tool path, and is used when a module is started or a starting process is called externally;
wherein the encapsulated simulation tool comprises simulation software or hardware resources encapsulated within a module.
3. The modular packaging method for highly integrated simulation tools according to claim 1, characterized in that: the control parameter information comprises an operation parameter, a control parameter and an interface parameter; the operation parameters are parameters or scripts which need to be added when the simulation tool operates; the control parameters are encapsulation module state control parameters, comprise state control parameters and data control parameters, and control the operation state of the encapsulation module and the input and output of the data stream through the control parameters; the interface parameters are interface displays provided for users by the packaged simulation module, the user sets the required interface by modifying the parameters of the packaged module on the interface, extracts the packaged module definition, the tool definition, the input data, the output data, the operation parameters and the control parameters to generate corresponding controls on the user interface, and then integrates or calls the controls.
4. The modular packaging method for highly integrated simulation tools according to claim 3, wherein: the state control parameter refers to the state of directly ending after starting the simulation tool, or carrying out process blocking, and waiting for a signal to output; and the data control parameters control the input and output, uploading and downloading of the data stream of the packaging module.
5. The modular packaging method for highly integrated simulation tools according to claim 1, characterized in that: the input and output information comprises input data and output data, wherein the input data is input model data of the encapsulation module and comprises a single simulation model file, a single main file and a plurality of include files; the output data is output result data of the packaging module, the output data is used as an output stream to be input to the next packaging module or to be called by an external program, and the output data comprises a processed calculation model, a calculated simulation result, a value chart animation extracted by post-processing and an automatically generated report.
CN202211510462.9A 2022-11-29 2022-11-29 High-integration simulation tool modularized packaging method Active CN115774569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211510462.9A CN115774569B (en) 2022-11-29 2022-11-29 High-integration simulation tool modularized packaging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211510462.9A CN115774569B (en) 2022-11-29 2022-11-29 High-integration simulation tool modularized packaging method

Publications (2)

Publication Number Publication Date
CN115774569A true CN115774569A (en) 2023-03-10
CN115774569B CN115774569B (en) 2023-09-22

Family

ID=85390998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211510462.9A Active CN115774569B (en) 2022-11-29 2022-11-29 High-integration simulation tool modularized packaging method

Country Status (1)

Country Link
CN (1) CN115774569B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5799192A (en) * 1993-06-11 1998-08-25 Mitsubishi Denki Kabushiki Kaisha Tool encapsulating method and apparatus thereof
CN104573287A (en) * 2015-02-06 2015-04-29 成都幻实科技有限公司 Digital simulation framework design method based on interface binding unified model
CN110209471A (en) * 2019-06-11 2019-09-06 珠海格力电器股份有限公司 It is integrated with the cloud emulation mode and system of a variety of simulation softwares
CN111597686A (en) * 2020-04-15 2020-08-28 北京仿真中心 Loosely-coupled visual simulation resource integration and encapsulation method and system
CN114721666A (en) * 2022-04-20 2022-07-08 北京世冠金洋科技发展有限公司 Code packaging method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5799192A (en) * 1993-06-11 1998-08-25 Mitsubishi Denki Kabushiki Kaisha Tool encapsulating method and apparatus thereof
CN104573287A (en) * 2015-02-06 2015-04-29 成都幻实科技有限公司 Digital simulation framework design method based on interface binding unified model
CN110209471A (en) * 2019-06-11 2019-09-06 珠海格力电器股份有限公司 It is integrated with the cloud emulation mode and system of a variety of simulation softwares
CN111597686A (en) * 2020-04-15 2020-08-28 北京仿真中心 Loosely-coupled visual simulation resource integration and encapsulation method and system
CN114721666A (en) * 2022-04-20 2022-07-08 北京世冠金洋科技发展有限公司 Code packaging method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张黎辉;李伟;段娜;: "液体火箭发动机模块化通用仿真", 航空动力学报, no. 03 *

Also Published As

Publication number Publication date
CN115774569B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US20080022259A1 (en) Automatic Conversion of a Textual Language into a Graphical Program Representation
CN101908015A (en) Device and method for creating test case based on components
CN101587446A (en) Realistic model conversion method based on distributed interactive simulation platform
US20050197824A1 (en) Object-oriented design method for the time-effective and cost-effective development of production-grade embedded systems based on a standardized system architecture
CN110058853B (en) API (application program interface) flow method based on workflow and authority control
CN111290954B (en) FPGA component visual test framework and method based on UVM
CN115061772B (en) Multi-field simulation model integration method and system
CN112506505A (en) Method for producing program code by code template engine
CN104699518A (en) Multi-purpose meter reading machine adapter based on microkernel plug-in and realization method thereof
CN104063231B (en) Test resource rapid access method based on HIT-TENA
Tokunaga et al. IDF-Autoware: Integrated development framework for ROS-based self-driving systems using MATLAB/Simulink
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN101866373B (en) For the execution monitoring device of electric design automation
CN102033998B (en) Method for automatically generating reliability model
US5799192A (en) Tool encapsulating method and apparatus thereof
US20070283260A1 (en) Human-machine Interface System with Device Bridge and Method for Designing and Operating the Same
CN111399829B (en) Waveform modeling method and terminal based on model driving
CN113505054A (en) Network data static test system and test method for unmanned aerial vehicle control station
CN115774569B (en) High-integration simulation tool modularized packaging method
CN104679499A (en) IC equipment human-computer interaction interface customizable data displaying method
CN114757124B (en) CFD workflow modeling method and device based on XML, computer and storage medium
CN115421940A (en) Multi-source heterogeneous model white box integration method based on shared memory technology
CN115758789A (en) Software architecture design and architecture transmission method of complex real-time embedded system
CN116679974A (en) Multi-software package operation method, computer program product and terminal equipment
CN111309558B (en) Method, device, equipment and storage medium for collecting vue event data in frame

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