[go: up one dir, main page]

CN115774569B - High-integration simulation tool modularized packaging method - Google Patents

High-integration simulation tool modularized packaging method Download PDF

Info

Publication number
CN115774569B
CN115774569B CN202211510462.9A CN202211510462A CN115774569B CN 115774569 B CN115774569 B CN 115774569B CN 202211510462 A CN202211510462 A CN 202211510462A CN 115774569 B CN115774569 B CN 115774569B
Authority
CN
China
Prior art keywords
simulation
module
simulation tool
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.)
Active
Application number
CN202211510462.9A
Other languages
Chinese (zh)
Other versions
CN115774569A (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

Landscapes

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

Abstract

The invention discloses a high-integration simulation tool modularized packaging method, which comprises the steps of determining a simulation tool to be packaged, carrying out standardized packaging on simulation tool information, related library files and user scripts to generate standardized description files and package file packages, and carrying out high-level abstraction and standardized packaging on the simulation tool, control parameters and input and output to form a standard module; utilizing standard simulation analysis xml file templates to generate description files; adding the simulation tool related library file and the user script to a specified folder; and responding to the user operation instruction, and packaging the description file and the simulation tool folder to obtain the packaging module. According to the invention, the simulation tool is packaged and packed to automatically generate a package file package, so that the differential details of the bottom software and hardware are shielded for a simulation engineer; only the packaged description file package is needed to be concerned, the complexity of performance simulation analysis work is reduced, and development and learning costs are reduced.

Description

High-integration simulation tool modularized packaging method
Technical Field
The invention relates to the field of engineering simulation analysis, in particular to a high-integration simulation tool modularized packaging method.
Background
During engineering simulation multidisciplinary optimization analysis, the types of simulation disciplines, simulation software and hardware are more and more involved. The simulation tools used by the simulation engineers may not be uniform, different operation steps and flows exist when different simulation tools are used, and a plurality of simulation tools are required to be invoked to complete single performance simulation analysis work. When the user performs multidisciplinary optimization analysis, the simulation tools used are not uniform, so that the called simulation tools need to be independently learned, the call needs to be realized by independently writing scripts, and the reusability of the scripts is poor. This creates difficulty and complexity for the simulation engineer to work on, and even results in a failure to combine multidisciplinary simulation optimizations.
Disclosure of Invention
The invention aims to: the invention aims to solve the defects in the prior art and provide a high-integration simulation tool modularized packaging method.
The technical scheme is as follows: the invention discloses a high-integration simulation tool modularized packaging method, which 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 carrying out standardized packaging on the simulation tool information, related library files and user scripts to generate standardized description files and package file packages, and then carrying out high-level abstraction and standardized packaging on the simulation tool, the control parameters and the input/output to form a standard module with high integration, wherein the standard module comprises module definition, tool definition, input data, output data, operation parameters, control parameters and interface parameters;
s02, using standard simulation analysis xml file templates to generate description files; 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;
step S04, responding to a user operation instruction, packaging the description file and the simulation tool folder to obtain a package module, wherein the packaged package file comprises: module.xml files, library folders, scripts folders, and resource folders; the modules file is a description file, the library file comprises software related to a simulation tool or library files binding hardware information, the script file comprises script files for user module transaction processing, and the resource file refers to 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 modularized information packaged with a simulation tool, and comprises names, display and calling modes, and the module definition is used for matching when the module is called externally; the tool definition refers to the related information of the packaged simulation tool, including the tool name, the tool type and the tool path, and is used when the module starts or externally calls the starting process; the encapsulated simulation tool comprises simulation software or hardware resources encapsulated in a module, such as finite element pre-and post-processing software, a solver, high-performance computing HPC hardware resources and the like. The finite element pre-post processing software refers to CAE software for processing simulation models or results, the solver refers to calculation software for carrying out matrix solving on the simulation models, the high-performance calculation HPC hardware resource refers to calculation cluster information, the number of CPU or the memory size to be used in the simulation calculation process.
Further, 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 parameters and the scripts can be distinguished according to different packaged simulation tools and can be extracted to an interface for being set by a user); the control parameters are package module state control parameters, including state control parameters and data control parameters, and the operation state of the package module and the input and output of the data stream are controlled by the control parameters; the interface parameters are interface display provided for a user by the packaged simulation module, the user extracts the packaged module definition, tool definition, input data, output data, operation parameters and control parameters to the user interface to generate corresponding controls through the interface required by parameter modification setting of the packaged module on the interface, and then integrates or invokes the controls.
Further, the state control parameter refers to whether the simulation tool is directly ended after being started or the process is blocked, and a waiting signal is output; and the data control parameters control the input and output and uploading and downloading of the data flow of the packaging module.
Further, the input and output information comprises input data and output data, wherein the input data is input model data of an encapsulation module, can be a single simulation model file, can be a single main file and a plurality of include files, and is divided into Nastran-based nas/bdf/dat files, abaqus-based inp/dat files, dyna-based k/key/dyn files and the like according to different input data types related to encapsulation of different simulation tools; the output data is output result data of the packaging module, which can be a processed calculation model, a calculated simulation result, a post-processed extracted numerical value, a chart and an animation, and an automatically generated report, which is used as an output stream and is input to the next packaging module or is commonly called by an external program.
The beneficial effects are that: compared with the prior art, the invention has the following advantages:
(1) According to the invention, the simulation tools involved in CAE simulation analysis are packaged, the package file package is automatically generated, and flexible calling of software and hardware resources at the bottom layer of the simulation tools is realized; the packaged description file package can be directly imported into engineering simulation multidisciplinary optimization software, so that multidisciplinary simulation modules can realize the joint formation of an integral flow.
(2) Aiming at different simulation tools (comprising simulation software and hardware resources), the invention carries out high-level abstract encapsulation on the simulation software and hardware resources related in CAE simulation analysis by the high-integration simulation tool modularized encapsulation method, unifies the use and the calling methods of the simulation tools and supports flexible calling of the bottom software and hardware resources.
(3) The invention shields the detail of the differentiation of the underlying software and hardware for the simulation engineer. Therefore, the complexity of the performance simulation analysis work is reduced, and the quick start in the simulation work or the quick integration in the simulation flow are facilitated.
(4) The user extracts the encapsulated module definition, tool definition, input data, output data, operation parameters and control parameters to the user interface through interface parameters to generate corresponding controls, 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 simplicity and individuation requirements of the simulation tool.
Drawings
FIG. 1 is a flow chart of the overall package of the present invention;
FIG. 2 is a schematic 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 scheme 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 high-integration simulation tool modularized packaging method 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, related library files and user scripts to generate standardized description files and package file packages, and then carrying out high-level abstract and standardized packaging on the simulation tool, the control parameters and the input/output information to form a standard module with high integration; 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, using standard simulation analysis xml file templates to generate description files; the description file comprises a simulation tool, control parameters and input and output;
as shown in fig. 3, the description file module.xml file at least contains contents such as simulation tools, control parameters, input and output. The process for 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 field Tool describes information, a path, and the like of the simulation Tool.
The operation parameters and the Control parameters of the module are respectively defined in the fields Parameter and Control. 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 start of a simulation tool, and script represents the call 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 process is directly ended or blocked after the simulation tool is started, when signal=0, the process is directly ended, and when signal=1, the process is blocked and the waiting Signal is output; the data control parameters control the input and output of the data flow of the encapsulation module, the uploading of the uplink control data and the downloading of the downlink control data.
Through interface parameters of the field GUI definition module, a user can extract the encapsulated module definition, tool definition, operation parameters and control parameters to a user interface to generate corresponding controls, the types of the controls are defined and described in detail, the user can extract the encapsulated 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 the user can perform 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.
Step S03, adding the simulation tool related library file (comprising the library file of the simulation software or the binding hardware information) and the user script to the specified folder.
And step S04, responding to a user operation instruction, and packaging the description file and the simulation tool folder to obtain the packaging module. As shown in fig. 4, the package file after being packaged in the embodiment includes: module.xml files, library folders, scripts folders, and resource folders; the modules file is a description file, the library file comprises software related to a simulation tool or library files binding hardware information, the script file comprises script files for user module transaction processing, and the resource file refers to resource files used for packaging the simulation tool package.
The description file and the lists file must be included in the package, and the user can package other information files into the package. And if the operation instruction of the user does not select other files to be packaged, packaging the description file and the library file in response to the operation instruction to obtain the package module package.
According to the embodiment, according to the high-integration simulation tool modularized packaging method, only the simulation tool to be packaged is required to be determined, the simulation tool information, the related library files and the user scripts are standardized and packaged to generate standardized description files aiming at the requirements of performance simulation analysis work, the related simulation tools, control parameters, input and output and the like are subjected to high-level abstraction, and the package file package is automatically generated. That is, the simulation engineer only needs to pay attention to the packaged description file package, does not need to pay attention to the code level, greatly reduces the complexity of performance simulation analysis work, and reduces the development and learning costs. 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 differentiated 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 operation controls generated through interface parameters exist externally.
In addition, input data are directly processed by a simulation tool in the packaging module, the started process is controlled according to the operation parameters and the control parameters, and finally the output data are output to the outside or are called for another module, so that the logic that the data are oriented to a user and the whole process is irrelevant to the bottom software and hardware resources is realized, the operation of the user is simpler, the safety is better, and the learning and using efficiency is obviously improved.

Claims (3)

1. A high-integration simulation tool modularized packaging method is characterized in that: 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 carrying out standardized packaging on the simulation tool information, related library files and user scripts to generate standardized description files and package file packages, and then carrying out high-level abstraction and standardized packaging on the simulation tool, the control parameters and the input/output to form a standard module with high integration, wherein the standard module comprises module definition, tool definition, input data, output data, operation parameters, control parameters and interface parameters;
the simulation tool information comprises a module definition and a tool definition; the module definition is modularized information packaged with a simulation tool, and comprises names, display and calling modes, and the module definition is used for matching when the module is called externally; the tool definition refers to the related information of the packaged simulation tool, including the tool name, the tool type and the tool path, and is used when the module starts or externally calls the starting process; the packaged simulation tool comprises simulation software or hardware resources packaged in a module;
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 package module state control parameters, including state control parameters and data control parameters, and the operation state of the package module and the input and output of the data stream are controlled by the control parameters; the interface parameters are interface display provided for a user by the packaged simulation module, the user extracts the packaged module definition, tool definition, input data, output data, operation parameters and control parameters to the user interface to generate corresponding controls through modifying and setting parameters of the packaged module on the interface, and then integrates or calls the controls;
s02, using standard simulation analysis xml file templates to generate description files; 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;
step S04, responding to a user operation instruction, packaging the description file and the simulation tool folder to obtain a package module, wherein the packaged package file comprises: module.xml files, library folders, scripts folders, and resource folders; the modules file is a description file, the library file comprises software related to a simulation tool or library files binding hardware information, the script file comprises script files for user module transaction processing, and the resource file refers to resource files used for packaging the simulation tool package.
2. The high-integration simulation tool modular packaging method of claim 1, wherein: the state control parameters refer to whether the simulation tool is directly ended after being started, or the process is blocked, and a waiting signal is output; and the data control parameters control the input and output and uploading and downloading of the data flow of the packaging module.
3. The high-integration simulation tool modular packaging method of claim 1, wherein: the input/output information comprises input data and output data, wherein the input data is input model data of the packaging 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 supplied to an external program for calling, and the output data comprises a processed calculation model, a calculated simulation result, a numerical 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 CN115774569A (en) 2023-03-10
CN115774569B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118690607A (en) * 2024-06-18 2024-09-24 山东瑞启微电子科技有限公司 Chip packaging reliability simulation device and method

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 珠海格力电器股份有限公司 Cloud simulation method and system integrating multiple simulation software
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 珠海格力电器股份有限公司 Cloud simulation method and system integrating multiple simulation software
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
液体火箭发动机模块化通用仿真;张黎辉;李伟;段娜;;航空动力学报(第03期);全文 *

Also Published As

Publication number Publication date
CN115774569A (en) 2023-03-10

Similar Documents

Publication Publication Date Title
US6055368A (en) Batch execution control programming device and method
US5197016A (en) Integrated silicon-software compiler
US6966050B2 (en) Software building support system
CN107220064A (en) A kind of digital control system interface configuration development approach
CN105761007B (en) Auxiliary method and system for information management software design
CN115774569B (en) High-integration simulation tool modularized packaging method
CN100593156C (en) Control-based insert management system and method for secondary development platform
CN113687814A (en) Automation realization method of model framework and interface file based on AUTOSAR (automotive open system architecture)
CN114510233A (en) A VUE-based page generation method, platform, device and medium
CN112965446A (en) Flexible production line control system platform based on micro-service architecture
CN104063231B (en) Test resource rapid access method based on HIT-TENA
US5799192A (en) Tool encapsulating method and apparatus thereof
CN109165397A (en) Automatic CAE analysis system and development approach based on UG and ANSA platform
CN115934054A (en) Embedded software generation method based on truck body controller
CN111309558B (en) Method, device, equipment and storage medium for collecting vue event data in frame
JP2010049439A (en) System construction method using software model and modeling device
CN109933308A (en) The customed general-purpose system of remote sensing satellite data prediction flow path visual based on MPI+CUDA
CN114356430B (en) DAG dependent configuration tool based on airflow scheduling system
CN112784417A (en) Avionics distributed joint simulation method and system based on SysML
CN110647317A (en) Template-based application framework generation method
Seo et al. Tailoring test process by using the component-based development paradigm and the xml technology
CN116414375B (en) Method and system for exporting design edition source code
CN102184131B (en) The emulation verification method of SOC (system on a chip) and device
CN114741802B (en) Knowledge packaging method for oxyhydrogen engine
CN112380135B (en) A B/S architecture product automated testing method and 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