Simulation method based on multiple tools, computer system and storage medium

By standardizing the simulation module and data format, the problem of complex integration of multi-tools and low data interaction efficiency is solved, and efficient data interaction between multi-simulation tools and rapid execution of simulation tasks is achieved.

CN119166590AInactive Publication Date: 2024-12-20SHANGHAI YILEAD INFORMATION TECH CO LTD

Patent Information

Application Number
CN202411234297.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing multi-tool integration platform has complexity and inefficiency in the process of data file format conversion, delivery and selection, resulting in complex integration between tools and inefficient data interaction.

Method used

By creating standardized simulation modules, adopting standard file formats and data formats, and adjusting configuration parameters to achieve interoperability between multiple data formats, ensuring the data format matching of adjacent modules, thereby achieving efficient data interaction.

Benefits of technology

It realizes the ease of use, automation and reusability of tool applications, improves the execution speed of simulation tasks and data interaction efficiency, and solves the problems of complex integration between multiple tools and low data interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166590A_ABST
    Figure CN119166590A_ABST
Patent Text Reader

Abstract

The invention provides a simulation method based on multiple tools, a computer system and a storage medium. Comprising the steps that a standardized simulation module is created, and the standardized simulation module has a standard file format; standardizing the data formats of the simulation modules, wherein each simulation module can transmit interaction data in any one or more data formats in a plurality of preset data formats by adjusting configuration parameters; determining required simulation modules according to the current simulation task and determining a target execution sequence of the required simulation modules; sequentially judging whether the data formats required by two adjacent simulation modules are matched or not according to the target execution sequence; if the matching is successful, directly transmitting the interaction data; if matching fails, the configuration parameters are adjusted to switch the data format of at least one of the two adjacent simulation modules so as to achieve transmission of interaction data between the two adjacent simulation modules. And efficient interaction of data is realized by standardizing the component format of the simulation module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer simulation software, and further to a simulation method based on multiple tools, a computer system and a storage medium. Background Art

[0002] In the process of modern engineering design and R&D, multidisciplinary simulation and optimization have become key technologies to improve product performance and shorten development cycles. The existing multi-tool integration platform involves a large number of commercial tools, self-developed programs, etc., but there are problems such as the need for manual conversion of data file formats between multiple tools, manual participation in data transfer, and high error rate in file selection, which leads to complex integration between multiple tools and low efficiency of data interaction. Summary of the invention

[0003] The purpose of the present invention is to provide a multi-tool-based simulation method, a computer system and a storage medium to solve the problems of complex multi-tool integration and low data interaction efficiency in the prior art.

[0004] The technical solution provided by the present invention is as follows:

[0005] The present invention provides a multi-tool-based simulation method, comprising:

[0006] Creating a standardized simulation module, wherein the standardized simulation module has a standard file format;

[0007] Standardize the data format of the simulation module, each simulation module can transmit the interactive data in any one or several of the preset multiple data formats by adjusting the configuration parameters;

[0008] Determine the required simulation modules according to the current simulation task and determine the target execution order of the required simulation modules;

[0009] Determine in sequence according to the target execution order whether the data formats required by two adjacent simulation modules match;

[0010] If the match is successful, the interactive data is directly transferred; if the match fails, the interactive data is transferred between the two adjacent simulation modules by adjusting the configuration parameters to switch the data format of at least one of the two adjacent simulation modules.

[0011] In some implementations, the step of adjusting the configuration parameters to switch the data format of at least one of two adjacent simulation modules includes:

[0012] Obtain output interaction data output by a first simulation module that is ahead in the target execution order;

[0013] Determine a first output configuration parameter of the first simulation module according to the output interaction data;

[0014] The second input configuration parameter of the second simulation module that is later in the target execution order is adjusted, and the type of the second input configuration parameter is adjusted to a type that matches the first output configuration parameter.

[0015] In some implementations, the standardizing the data format of the simulation module includes:

[0016] Obtaining pre-processed interactive data to be processed by the simulation module;

[0017] Determining pre-processing configuration parameters of the pre-processing interaction data;

[0018] Adjusting the input configuration parameters of the simulation module, adjusting the type of the input configuration parameters to a type that matches the pre-processing configuration parameters, wherein the type of the input configuration parameters includes: a single value type, a one-dimensional array, a two-dimensional array, a combination array, an enumeration type, and a file type;

[0019] Obtaining processed interaction data obtained after the simulation module performs data processing on the pre-processing interaction data;

[0020] Determining post-processing configuration parameters of the processed interaction data;

[0021] Adjust the output configuration parameters of the simulation module, and adjust the type of the output configuration parameters to a type that matches the processed configuration parameters, wherein the types of the output configuration parameters include: single-value type, one-dimensional array, two-dimensional array, combination array, enumeration type, and file type.

[0022] In some implementations, standardizing the data type of the simulation module includes:

[0023] determining the pre-processing data type of the pre-processing interaction data;

[0024] Adjusting the input data type of the simulation module, adjusting the type of the input data type to a type that matches the data type before processing, wherein the type of the input data type includes: string type, integer type, floating point type, file type and picture type;

[0025] determining a processed data type of the processed interaction data;

[0026] Adjust the output data type of the simulation module, and adjust the type of the output data type to a type that matches the processed data type, wherein the types of the output data type include: string type, integer type, floating point type, file type, and picture type.

[0027] In some implementations, the format information of the data format includes: a first fixed field, a parameter type, parameter information, a data type, a second fixed field, a parameter value, and a third fixed field;

[0028] The parameter information includes at least one of the following: data name, data range, data details, data unit and data quantity.

[0029] In some implementations, when the parameter type is combined data, the format information of the data format further includes: the number of data rows and the number of data columns.

[0030] In some embodiments, it further comprises:

[0031] Real-time monitoring of the execution status of the current simulation task includes:

[0032] Obtaining log information of the current simulation task in real time;

[0033] When the log information is abnormal, obtain abnormal data;

[0034] Detect and analyze the abnormal data to obtain abnormal results, which include: parameter errors and input file errors;

[0035] When the parameter is wrong, modify the abnormal parameter according to the abnormal data so that the abnormal parameter matches the data format;

[0036] When the input file is erroneous, the abnormal file is modified according to the abnormal data so that the abnormal file matches the data format.

[0037] In some implementations, the data format includes: a default value, and a configuration method of the default value includes: manual configuration, acquisition from a local file;

[0038] The method of obtaining from the local file includes:

[0039] Parsing the local file to extract simulation elements;

[0040] The data information is called according to the simulation elements and transferred to the default values.

[0041] The present invention also provides a computer system, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of a multi-tool-based simulation method described in any one of the above embodiments.

[0042] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of a multi-tool-based simulation method described in any one of the above embodiments are implemented.

[0043] Compared with the prior art, the multi-tool-based simulation method, computer system and storage medium provided by the present invention have the following beneficial effects:

[0044] The tool integration component is defined in a relatively unified technical way. By defining the execution logic, data transfer logic and interaction interface among multiple tools, the tool application process is encapsulated into a calculation template. This solves the problems of complex multi-tool integration and low data interaction efficiency in the existing technology, realizes the ease of use, automation and reuse of tool application, realizes efficient data interaction among multiple simulation tools, and improves the execution speed of simulation tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.

[0046] Figure 1 A schematic diagram of a flow chart of a multi-tool-based simulation method provided by the present invention;

[0047] Figure 2 A structural diagram of a simulation module in a multi-tool-based simulation method provided by the present invention;

[0048] Figure 3 The type of configuration parameters in a multi-tool-based simulation method provided by the present invention;

[0049] Figure 4 The invention provides a type of data type in a multi-tool-based simulation method. DETAILED DESCRIPTION

[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0051] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0052] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0053] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0055] In the process of modern engineering design and R&D, multidisciplinary simulation and optimization have become key technologies for improving product performance and shortening development cycles. However, design work involves a large number of commercial tools and self-developed programs. Self-developed programs have problems such as missing and insufficient interactive interfaces. Data transfer between multiple tools requires manual participation. There is a lot of waiting time and file selection error rate during data interaction. The data file format between tools needs to be manually converted, and the data generated by the tools cannot be submitted with one click. The above problems have brought many inconveniences to multi-tool simulation. Therefore, many problems at the tool application level need to be solved by certain technical means to improve the efficiency and accuracy of tool application.

[0056] The present invention provides a multi-tool-based simulation method, a computer system and a storage medium, which define tool integration components in a relatively unified technical manner, and encapsulate the tool application process into a calculation template by defining the execution logic, data transfer logic and interaction interface between multiple tools, thereby achieving ease of use, automation and reuse of tool application, thereby improving work efficiency.

[0057] In one embodiment, reference Figure 1 As shown, the present invention provides a multi-tool-based simulation method, comprising:

[0058] S100, creating a standardized simulation module, wherein the standardized simulation module has a standard file format;

[0059] S200, standardizing the data format of the simulation modules, each simulation module can transmit interactive data in any one or several data formats among a plurality of preset data formats by adjusting configuration parameters;

[0060] S300, determining the required simulation modules according to the current simulation task and determining the target execution order of the required simulation modules;

[0061] S400, determining in sequence according to the target execution order whether the data formats required by two adjacent simulation modules match;

[0062] S500: If the match is successful, the interactive data is directly transmitted;

[0063] S600: If the matching fails, the data format of at least one of the two adjacent simulation modules is switched by adjusting the configuration parameters to realize the transmission of interactive data between the two adjacent simulation modules.

[0064] In a specific implementation, the design simulation module is the basis of design simulation in multi-tool integration. The standardized simulation module has a standard file format, including data such as models, algorithms, applications and their input and output interfaces used in design simulation activities. Design simulation data exists in the form of module files, such as Figure 2 As shown, a standard design simulation module includes six types of files: input files, executable programs, output files, interface files, configuration files and other files.

[0065] The input file serves as the parameter entry of the executable program in the simulation module. The input parameters are defined according to the data format of the interactive data and exist in the form of a text file. There can be multiple input files.

[0066] The executable program includes the models, methods, algorithms, etc. involved in the design simulation module, and encapsulates this information and data into an executable program, including but not limited to: exe, jar, bat and other formats, in the form of an executable program file.

[0067] Output file: As the parameter export of the executable program in the simulation module, the output parameters are defined according to the data format of the interactive data and exists in the form of a text file. There can be multiple output files.

[0068] The interface file is used as the interface display of the design simulation module to display and operate the data interaction in the simulation module and is stored in the form of an executable file.

[0069] The configuration file is used to configure parameter display and parameter association, and exists in the form of an XML file.

[0070] Other files include temporary files, basic data files, executable program dependency libraries, etc.

[0071] In a specific implementation, the data format of the simulation module is standardized, that is, the data format of the input file and the output file of the simulation module are standardized to form a unified data interaction standard specification.

[0072] In a specific implementation, the current simulation task is obtained, the required simulation modules are determined according to the current simulation task, multiple simulation modules are newly created on the operation page, and at the same time, the target execution order of the simulation modules is determined, and standardized file formats and data formats are configured for each simulation module in turn.

[0073] According to the target execution order, it is determined whether the data formats required by the two adjacent simulation modules match. If the match is successful, the current simulation task is executed and the interactive data is directly transferred. If the match fails, the two adjacent simulation modules at the failure point are located, and the configuration parameters of at least one of the two adjacent simulation modules are adjusted so that the data formats of the interactive data between the two adjacent simulation modules match, and the current simulation task continues to be executed.

[0074] This solution defines tool integration components in a relatively unified technical manner by standardizing the file format and data format of the simulation module. The data format of the simulation module can be adjusted by adjusting the configuration parameters of the simulation module so that the required data formats between two adjacent simulation modules can be matched successfully and data interaction can be performed. That is, the problems of complex multi-tool integration and low data interaction efficiency in the prior art are solved, and efficient data interaction between multiple simulation tools is achieved, thereby improving the execution speed of simulation tasks.

[0075] In one embodiment, based on the above embodiment, the data format of at least one simulation module of two adjacent simulation modules is switched by adjusting the configuration parameters, including:

[0076] S210, obtaining output interaction data output by a first simulation module that is ahead in the target execution order;

[0077] S220, determining a first output configuration parameter of a first simulation module according to the output interaction data;

[0078] S230, adjusting the second input configuration parameter of the second simulation module that has a later target execution order, and adjusting the type of the second input configuration parameter to a type that matches the first output configuration parameter.

[0079] During implementation, a standard data format is configured for the input file and output file of each simulation module to match the transmission of interactive data. When the interactive data transmission fails between two adjacent simulation modules, the order of the two adjacent simulation modules is determined according to the target execution order, and the first simulation module is defined as the one with the earlier target execution order, and the second simulation module is defined as the one with the later target execution order. The configuration parameters of at least one of the two adjacent simulation modules are adjusted to adjust the corresponding data format so that the data formats of the two adjacent simulation modules match and support the transmission of interactive data.

[0080] In a specific implementation, the second input configuration parameter of the second simulation module is adjusted according to the first output configuration parameter of the first simulation module, that is, the type of the second input configuration parameter is adjusted to a type that matches the first output configuration parameter, thereby achieving matching of two adjacent simulation modules to realize the transmission of interactive data.

[0081] In a specific implementation, the first output configuration parameter of the first simulation module is adjusted according to the second input configuration parameter of the second simulation module, that is, the type of the first output configuration parameter is adjusted to a type that matches the second input configuration parameter, thereby achieving matching of two adjacent simulation modules to realize the transmission of interactive data.

[0082] In a specific implementation, according to the input interaction data of the first simulation module, the first output configuration parameter of the first simulation module and the second input configuration parameter of the second simulation module are adjusted respectively until the first output configuration parameter matches the second input parameter, thereby achieving matching of the two adjacent simulation modules and realizing the transmission of interaction data.

[0083] In one embodiment, based on the above embodiment, the data format of the standardized simulation module includes:

[0084] S710, obtaining pre-processing interaction data to be processed by the simulation module;

[0085] S720, determining pre-processing configuration parameters of the pre-processing interaction data;

[0086] S730, adjusting the input configuration parameters of the simulation module, adjusting the type of the input configuration parameters to a type that matches the configuration parameters before processing, wherein the type of the input configuration parameters includes: a single value type, a one-dimensional array, a two-dimensional array, a combination array, an enumeration type, and a file type;

[0087] S810, obtaining processed interaction data obtained after the simulation module performs data processing on the pre-processing interaction data;

[0088] S820, determining a post-processing configuration parameter of the processed interaction data;

[0089] S830, adjust the output configuration parameters of the simulation module, and adjust the type of the output configuration parameters to a type that matches the processed configuration parameters, wherein the types of the output configuration parameters include: single value type, one-dimensional array, two-dimensional array, combination array, enumeration type, and file type.

[0090] In the implementation, the data of the design simulation module is complex and of many types. In order to unify the data interface and realize seamless data transmission, the design defines the parameter structure by configuring parameters. Figure 3 As shown, the standardized data format is divided into 6 categories, including: single-value type, one-dimensional array, two-dimensional array, combined array, enumeration type, and file type.

[0091] During implementation, the simulation module is configured in a standardized manner according to the data format of the pre-processing interactive data to be processed by the simulation module. After obtaining the pre-processing interactive data to be processed by the simulation module, the directory structure of the local initialization module is called, and the configuration parameters of the input file of the simulation module are adjusted so that the data format of its input file matches the data format of the pre-processing interactive data to be processed. After the simulation module completes processing of the pre-processing interactive data, the data format of the processed post-processing interactive data is obtained, the directory structure of the local initialization module is called, and the configuration parameters of the output file of the simulation module are adjusted so that the data format of its output file matches the data format of the post-processing interactive data.

[0092] Standardizing the data format of input and output parameters of the design simulation module is conducive to the flexible expansion and data interaction of the design simulation module, and improves the openness and adaptability of the software framework.

[0093] In one embodiment, based on the above embodiment, it further includes: standardizing the data type of the simulation module, including:

[0094] S910, determining a pre-processing data type of the pre-processing interaction data;

[0095] S920, adjusting the input data type of the simulation module, adjusting the type of the input data type to a type that matches the data type before processing, wherein the types of the input data type include: string type, integer type, floating point type, file type, and picture type;

[0096] S930, determining the processed data type of the processed interaction data;

[0097] S940, adjusting the output data type of the simulation module, adjusting the type of the output data type to a type that matches the processed data type, wherein the types of the output data type include: string type, integer type, floating point type, file type, and picture type.

[0098] In the implementation, in order to facilitate the interactive use of design simulation data in the platform and realize seamless data transmission, the data types of simulation modules are further standardized. Figure 4 As shown, the standardized data types are divided into five categories: string type, integer type, floating point type, file type and picture type.

[0099] During implementation, the simulation module is configured in a standardized manner according to the data type of the pre-processing interactive data to be processed by the simulation module. After obtaining the pre-processing interactive data to be processed by the simulation module, the directory structure of the local initialization module is called, and the data type of the input file of the simulation module is adjusted so that the data type of its input file matches the data type of the pre-processing interactive data to be processed. After the simulation module completes processing of the pre-processing interactive data, the data format of the processed post-processing interactive data is obtained, the directory structure of the local initialization module is called, and the data type of the output file of the simulation module is adjusted so that the data type of its output file matches the data type of the post-processing interactive data.

[0100] Standardizing the data types of input and output parameters of the design simulation module is conducive to the flexible expansion and data interaction of the design simulation module, and improves the openness and adaptability of the software framework.

[0101] In one embodiment, based on the above embodiment, the format information of the data format includes: a first fixed field, a parameter type, parameter information, a data type, a second fixed field, a parameter value, and a third fixed field;

[0102] The parameter information includes at least one of the following: data name, data range, data details, data unit and data quantity.

[0103] In one embodiment, based on the above embodiment, when the parameter type is combined data, the format information of the data format further includes: the number of data rows and the number of data columns.

[0104] In practice, the data format is standardized by configuring fixed format information. The first fixed field includes "%", indicating the beginning of the first line; the second fixed field includes "%", indicating the end of the first line; the third fixed field includes "%end%", indicating the end of the configuration and a new line; each field is separated by a space. The format information of the data format is described in turn according to different types of configuration parameters.

[0105] In implementation, when the data format is single-value data, the first fixed field includes "%", the parameter type includes "single", the parameter information includes "cylinder length {mm}", the data type includes "FLT", the second fixed field includes "%", the parameter value includes "30", and the third fixed field includes "%end%". The standardized data format includes:

[0106] The first line of text should be written as "% single cylinder length {mm} FLT%";

[0107] The second line of text reads "30";

[0108] Write "%end%" at the end of the line.

[0109] In the above embodiment, the data in the square brackets {} represent data units, that is, the cylinder length is 30 mm.

[0110] It should be noted that specific parameter values ​​can be manually configured or obtained from a local file, and there is no restriction here.

[0111] In practice, when the data format is a one-dimensional array, the first line of text consists of fixed fields, data names, data units, data types, data numbers, and fixed characters, separated by spaces. The data name is followed by square brackets, which are represented by "column name + semicolon", and the data units corresponding to the data are enclosed in brackets; the second line of text is the corresponding data value, separated by spaces. Standardized data formats include:

[0112] The first line of text reads "%array1 cylinder [length; thickness] {mm; mm} FLT 1%";

[0113] The first line of text reads "2020";

[0114] Write "%end%" at the end of the line.

[0115] In the above embodiment, the cylinder has a length of 20 mm and a thickness of 20 mm.

[0116] It should be noted that specific parameter values ​​can be manually configured or obtained from a local file, and there is no restriction here.

[0117] In implementation, when the data format is a two-dimensional array, the first fixed field includes "%", the parameter type includes "array2", and the parameter information includes "data name [column name 1; ...; column name n & row name 1; ...; row name m] {unit 1; ...; unit n & unit 1; ...; unit m} data type data row number data column number". The standardized data format includes:

[0118] The first line of text reads "%array2 data name [column name 1;...; column name n&row name 1;...; row name m] {unit 1;...; unit n&unit 1;...; unit m} data type number of rows m number of columns n%";

[0119] The first line of text is written in the form of a two-dimensional array. The data of the second line is written in a new line until the mth line is written.

[0120] Write "%end%" at the end of the line.

[0121] It should be noted that the specific parameter values ​​of the two-dimensional array can be manually configured or obtained from a local file, and there is no restriction here.

[0122] In practice, simulation results and other parameters are generally composed of multiple columns of data, showing multiple two-dimensional curve bundle characteristics with a certain column of data (such as time, position, etc.) as the horizontal axis. Each column of data can be regarded as a one-dimensional array. This type of file is called a "combined array" file. When the data format is a combined array, the standardized data format includes:

[0123] The first line of text is written as "%ComArray combination array name {unit 1; ...; unit n} data type number of data rows number of data columns %";

[0124] The second line contains the array column names, separated by spaces;

[0125] The third line starts to write the array parameter value. The array parameter value is multi-row and multi-column, and the number of columns is the same as the number of column names;

[0126] Write "%end%" at the end of the line.

[0127] It should be noted that the specific array parameter values ​​can be manually configured or obtained from a local file, and there is no restriction here.

[0128] During implementation, when the data format is an enumeration type, the first line of text is written as “%enum data name {unit 1;…; unit n} data type %”; the second line is written as the parameter value, and the options are continued after the parameter value, such as “{option 1 option 2 option n}”; and at the end, a new line is written as “%end%”.

[0129] In implementation, when the data format is a file type, the first line of text is written as "%file data name data type%"; the second line is written as the parameter value, which is the file path, which can be an absolute path or a relative path; the end is written as "%end%". The file type is mainly used for the transfer of data files in the data flow. When executing data flow transfer, if the source file is a folder, the folder transfer is executed, otherwise the file transfer is executed.

[0130] It should be noted that the specific array parameter values ​​can be manually configured or obtained from a local file, and there is no restriction here.

[0131] In a specific implementation, when the data type is an array type, the complete expression of the data column name and the data row name is: {column name 1; ...; column name n & row name 1; ...; row name m}, and the array type has the following characteristics:

[0132] 1) Each column and row of data in array type data has a special meaning, and the column name and row name are used to indicate the special meaning.

[0133] 2) Column names and row names can be omitted, but no spaces are allowed.

[0134] 3) Each data column in multiple columns of data may correspond to a column name, and each data row may correspond to a row name, which is expressed as follows:

[0135] [column name 1;…; column name n&row name 1;…; row name m], or [&row name 1;…; row name n], or [column name 1;…; column name n].

[0136] In a specific implementation, the data unit refers to the data unit of the parameter value in the application, such as millimeters, centimeters, etc. The complete expression of the data unit is: {unit 1; ...; unit n}, and the data unit has the following characteristics:

[0137] 1) A single parameter value has only one data unit.

[0138] 2) Data units can be omitted, but there cannot be spaces; if there are three columns of parameter values ​​and the parameter values ​​in the middle column do not require data units, the expression is: {unit 1; unit 3}, that is, when the parameter does not require data units, it is represented by an empty string in the expression.

[0139] 3) Each data column in the multiple columns of data corresponds to a data unit.

[0140] In a specific implementation, the value range of data exists only in a single data, and its complete expression is: <lower limit; upper limit>. The value range of data has the following characteristics:

[0141] 1) If only a single data exists in the value range definition, it can be omitted, but no spaces are allowed.

[0142] 2) If the value can be freely selected, "<lower limit; upper limit>" can be omitted. If the lower limit or upper limit does not exist, NULL is used to represent it. For example, [20; NULL] means that the data value range is greater than or equal to 20.

[0143] In one embodiment, based on the above embodiment, the data format includes: a default value, and the configuration method of the default value includes: manual configuration, acquisition from a local file;

[0144] The methods for obtaining files from local files include:

[0145] Parse local files and extract simulation elements;

[0146] Data information is called up according to simulation elements and transferred to default values.

[0147] In the implementation, the default value in the data format is the parameter value. In the process of configuring parameters, the parameter value can be manually entered and saved for data interaction during the simulation task, or after the parameter configuration is completed, the data information can be retrieved from the local file for data interaction during the simulation task. Specifically, the method of obtaining data information from the local file includes:

[0148] The simulation system calls the local file, parses the local file, extracts the simulation elements in the local file, sends the extracted simulation elements to the function classifier for classification, selects the data information to be called according to the type of simulation element, and transfers it to the default value for storage.

[0149] In one embodiment, based on the above embodiment, real-time monitoring of the execution status of the current simulation task includes:

[0150] Get the log information of the current simulation task in real time;

[0151] When the log information is abnormal, obtain the abnormal data;

[0152] Detect and analyze abnormal data to obtain abnormal results, including: parameter errors and input file errors;

[0153] When the parameters are wrong, modify the abnormal parameters according to the abnormal data so that the abnormal parameters match the data format;

[0154] When the input file is wrong, modify the abnormal file according to the abnormal data so that the abnormal file matches the data format.

[0155] In one embodiment, during the execution of the current simulation task, the operation process of the current simulation task is monitored in real time, the simulation progress and simulation results of the current simulation task are fed back, and an abnormal state is warned. Specifically, the current simulation task is monitored by acquiring log information in real time, and the abnormal results are processed through abnormal data.

[0156] Common abnormal results include parameter errors and input file errors. When a parameter is wrong, modify the abnormal parameter according to the prompt of the abnormal data, such as modifying the data format of the simulation module or modifying the data value of the abnormal parameter to match the data format of the simulation module. When an input file is wrong, modify the abnormal file according to the prompt of the abnormal data, such as modifying the data format of the simulation module or modifying the file format of the abnormal file to match the data format of the abnormal file and the simulation module.

[0157] In a specific embodiment, the simulation system is logged in through the login interface of the simulation system and the main interface is entered. The main interface includes the following seven functional areas:

[0158] (1) Menu and toolbar area: displays all functions and shortcut buttons in the simulation system;

[0159] (2) Calculation template list: displays the composition of calculation templates and simulation modules, and provides basic operation functions for calculation templates and simulation modules;

[0160] (3) Module parameter list: displays the configuration parameter list and configuration parameter information of the simulation module, and provides the configuration parameter editing function;

[0161] (4) Process Editor: A process visualization editor that provides editing of simulation task processes and data flows, as well as status monitoring during simulation task execution;

[0162] (5) Component library: displays all simulation modules of the simulation system, which can be dragged into the process editor for operation, and supports the creation and import of simulation modules;

[0163] (6) Console: Print out the simulation task flow and execution information of the simulation module;

[0164] (7) Status bar: Displays personal information such as user name and role.

[0165] In the implementation, a standardized simulation module is created according to the current simulation task. Specifically, select the "Professional Module" component label in the component library, click the "+" button, and the new module interface will pop up in the main interface. Enter the basic information of the professional module and click the "New" button. The simulation module is successfully created. After the simulation module is created, the content of the simulation module is empty, jump to the property interface of the simulation module, and standardize the data format of the simulation module.

[0166] In implementation, the computational workflow of the current simulation task can be flexibly customized, and the execution sequence of each simulation activity can be determined, supporting logical component forms such as starting point, end point, branch, and loop. A complete and effective workflow should include: starting point node, end point node, N logical judgment or loop nodes, and N module nodes.

[0167] In the implementation, the simulation modules are connected by connecting wires according to the target execution order. The specific operations are as follows:

[0168] (1) Drag components from the component library to the process visual editor and define the workflow according to the execution sequence of the target execution order. The starting component is placed at the beginning of the process and the ending component is placed at the end of the process.

[0169] (2) Hover the mouse in the middle of the icon, press and move the mouse to draw a connection line, move to the middle of the next node and release the mouse. When the data formats of two adjacent simulation modules match successfully, a connection line will appear between the two simulation modules to connect the nodes. When the data formats of two adjacent simulation modules fail to match, the connection line cannot be connected and a connection error is prompted.

[0170] (3) For component nodes such as judgment and loop, it is necessary to define branch execution or loop termination conditions.

[0171] (4) After the process editing is completed, click the "Save" button to save the task process.

[0172] According to another aspect of the present invention, the present invention further provides a computer system, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the multi-tool-based simulation methods in the above-mentioned embodiments.

[0173] Specifically, this embodiment is a device embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described in detail here.

[0174] According to another aspect of the present invention, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the multi-tool-based simulation methods in the above-mentioned embodiments are implemented.

[0175] Specifically, this embodiment is a device embodiment corresponding to the above method embodiment. For specific effects, please refer to the above method embodiment, which will not be described in detail here.

[0176] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A multi-tool based simulation method, characterized in that: include: Creating a standardized simulation module, wherein the standardized simulation module has a standard file format; Standardize the data format of the simulation module, each simulation module can transmit the interactive data in any one or several of the preset multiple data formats by adjusting the configuration parameters; Determine the required simulation modules according to the current simulation task and determine the target execution order of the required simulation modules; Determine in sequence according to the target execution order whether the data formats required by two adjacent simulation modules match; If the match is successful, the interactive data is directly transferred; If the matching fails, the data format of at least one of the two adjacent simulation modules is switched by adjusting the configuration parameters to realize the transmission of the interactive data between the two adjacent simulation modules.

2. A multi-tool based simulation method according to claim 1, characterized in that: The step of adjusting the configuration parameters to switch the data format of at least one of two adjacent simulation modules comprises: Obtain output interaction data output by a first simulation module that is ahead in the target execution order; Determine a first output configuration parameter of the first simulation module according to the output interaction data; The second input configuration parameter of the second simulation module that is later in the target execution order is adjusted, and the type of the second input configuration parameter is adjusted to a type that matches the first output configuration parameter.

3. The multi-tool-based simulation method according to claim 1, characterized in that: The standardization of the data format of the simulation module includes: Obtaining pre-processed interactive data to be processed by the simulation module; Determining pre-processing configuration parameters of the pre-processing interaction data; Adjusting the input configuration parameters of the simulation module, adjusting the type of the input configuration parameters to a type that matches the pre-processing configuration parameters, wherein the type of the input configuration parameters includes: a single value type, a one-dimensional array, a two-dimensional array, a combination array, an enumeration type, and a file type; Obtaining processed interaction data obtained after the simulation module performs data processing on the pre-processing interaction data; Determining post-processing configuration parameters of the processed interaction data; Adjust the output configuration parameters of the simulation module, and adjust the type of the output configuration parameters to a type that matches the processed configuration parameters, wherein the types of the output configuration parameters include: single-value type, one-dimensional array, two-dimensional array, combination array, enumeration type, and file type.

4. A multi-tool based simulation method according to claim 3, characterized in that: Also includes: Standardize the data types of the simulation modules, including: determining the pre-processing data type of the pre-processing interaction data; Adjusting the input data type of the simulation module, adjusting the type of the input data type to a type that matches the data type before processing, wherein the type of the input data type includes: string type, integer type, floating point type, file type and picture type; determining a processed data type of the processed interaction data; Adjust the output data type of the simulation module, and adjust the type of the output data type to a type that matches the processed data type, wherein the types of the output data type include: string type, integer type, floating point type, file type, and picture type.

5. The multi-tool-based simulation method according to claim 1, characterized in that: The format information of the data format includes: a first fixed field, a parameter type, parameter information, a data type, a second fixed field, a parameter value, and a third fixed field; The parameter information includes at least one of the following: data name, data range, data details, data unit and data quantity.

6. A multi-tool based simulation method according to claim 5, characterized in that: When the parameter type is combined data, the format information of the data format further includes: the number of data rows and the number of data columns.

7. The multi-tool-based simulation method according to claim 1, characterized in that: Also includes: Real-time monitoring of the execution status of the current simulation task includes: Obtaining log information of the current simulation task in real time; When the log information is abnormal, obtain abnormal data; Detect and analyze the abnormal data to obtain abnormal results, which include: parameter errors and input file errors; When the parameter is wrong, modify the abnormal parameter according to the abnormal data so that the abnormal parameter matches the data format; When the input file is erroneous, the abnormal file is modified according to the abnormal data so that the abnormal file matches the data format.

8. The multi-tool-based simulation method according to claim 1, characterized in that: The data format includes: a default value, and the configuration method of the default value includes: manual configuration and acquisition from a local file; The method of obtaining from the local file includes: Parsing the local file to extract simulation elements; The data information is called according to the simulation elements and transferred to the default values.

9. A computer system comprising: A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of a multi-tool-based simulation method as described in any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a multi-tool-based simulation method as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • HLA based simulation software interaction method

    CN101504688A

  • Multi-discipline simulation software data exchange method

    CN103699737A

  • Multi-equipment collaborative task simulation method and device, storage medium and equipment

    CN111796531A

  • Multidisciplinary simulation data transmission method and device, data interface and storage medium

    CN117331717A

  • Distributed simulation

    US20020052725A1

Cited By

  • Simulation data processing system and method, equipment, storage medium and program product

    CN121434155A