Simulation model data format conversion method, electronic equipment, storage medium and device

Through the simulation model data format conversion method, the standard intermediate format is used to realize data format interoperability between different simulation software models, solving the cost problems caused by barriers between simulation software and software replacement, and improving data interaction efficiency and model reusability .

CN119475735APending Publication Date: 2025-02-18BEIJING NEW ENERGY VEHICLE TECH INNOVATION CENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411530946.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve data format interoperability between different simulation software, resulting in barriers between various software in the simulation industry, increasing the manpower and material resources consumption and software learning costs when replacing software.

Method used

A simulation model data format conversion method is proposed. By determining the original format and target format of the model to be converted, and using standard intermediate formats for format conversion, the standard format model conversion between simulation software models is realized.

Benefits of technology

The data format barriers between different simulation software are solved, the manpower and material resources consumption and software learning costs are reduced when replacing software, and the reusability of simulation models and data interaction efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119475735A_ABST
    Figure CN119475735A_ABST
Patent Text Reader

Abstract

The invention discloses a simulation model data format conversion method and device, electronic equipment and a storage medium. The method comprises the steps of determining an original format and a target format of simulation model data to be converted; performing format conversion based on the original format, the target format and the standard intermediate format; and uploading the to-be-converted simulation model data subjected to format conversion to a file server for storage. According to the method, keywords of simulation model data and a standard format conversion rule-standard intermediate format are formulated, and the standard intermediate format is utilized to realize conversion from a domestic and overseas common simulation software model to a standard format model and conversion from the standard format model to other domestic and overseas common simulation software models, so that barriers among the same software are solved; the problems of manpower and material resource consumption caused by B-end software replacement and huge investment and repeated work of C-end learning software are solved, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of simulation model data processing, and more specifically, relates to a simulation model data format conversion method, electronic equipment, storage medium and device. Background Art

[0002] As the field of industrial software becomes increasingly prosperous, the problem of parsing and converting data formats between various software has become a major challenge that industrial software vendors must face. The advanced solution algorithms developed by many industrial software development teams have been severely restricted in their universality due to the failure to achieve effective interface docking with mainstream commercial software. This has forced the development team to invest a lot of valuable time resources in the analysis and research of data files in different formats, resulting in unnecessary duplication of work, the so-called "reinventing the wheel" phenomenon. This situation has seriously hindered the development team from focusing on the research and development and optimization of the core functions of the algorithm, thus affecting the overall technological progress and innovation efficiency of industrial software.

[0003] With the development of CAD software, there are more and more CAD industry standard format files, such as stp. However, for the simulation industry, even for the same discipline simulation software, there is no unified standard format file, resulting in barriers between the various software in the simulation industry. Simulation is divided into different directions: structure, fluid, dynamics, electronic control, etc.; simulation models in different directions are completely different, and simulation models in the same direction cannot be reused due to differences in keywords, language, programming logic, etc.; for simulation models in the same direction, there is currently no unified model standard that can be converted to each other; for the FMI protocol and FMU model proposed by the EU Modelisar, although the interconnection and data interaction of various simulation software are realized, the software is opened up at the interface level, only parameter transfer is realized, and the transfer of simulation models is not realized. For the B-end, the company determines which software to use for simulation. Once the software is replaced later, it will face the consumption of huge manpower and material resources to rebuild the model built by the previous software. For the C-end, engineers master the use of which software. Once the software is replaced later, they will face huge software learning costs and repeated labor of rebuilding the old model.

[0004] The information disclosed in the background technology section of the present invention is only intended to deepen the understanding of the general background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0005] The purpose of the present invention is to propose a simulation model data format conversion method, electronic device, storage medium and device, so as to realize the conversion of commonly used simulation software models at home and abroad into standard format models and the conversion of standard format models into other commonly used simulation software models at home and abroad, solve the barriers between the same software, solve the manpower and material resource consumption caused by the replacement of software on the B side, solve the huge investment and repetitive work of learning software on the C side, and reduce costs.

[0006] To achieve the above-mentioned purpose, the present invention proposes a simulation model data format conversion method, electronic equipment, storage medium and device.

[0007] According to a first aspect of the present invention, a simulation model data format conversion method is proposed, comprising:

[0008] Determine the original format and target format of the simulation model data to be converted;

[0009] Performing format conversion based on the original format, the target format and the standard intermediate format;

[0010] Upload the simulation model data to be converted that has completed format conversion to the file server for storage.

[0011] Optionally, the standard intermediate format includes:

[0012] Keyword conversion instructions, including how to add new keywords and the principle of data format conversion;

[0013] Configuration parameters, used for performing format conversion of the simulation model data to be converted keyword by keyword based on the configuration parameters;

[0014] Keyword list and examples, used to record all convertible keywords and conversion formats.

[0015] Optionally, the format conversion based on the original format, the target format and the standard intermediate format includes:

[0016] Create an empty model data target file with an empty path;

[0017] determining a conversion script based on the original format and the target format;

[0018] Splicing and executing commands based on the empty path of the model data target file, the conversion script, the original format and the standard intermediate format;

[0019] Format conversion is performed based on the execution command.

[0020] Optionally, the structure of the execution command is:

[0021] / main C:\the original format suffix of the simulation model data to be converted + the empty path of the model data target file + the software name of the conversion script + the standard intermediate format.

[0022] Optionally, it also includes:

[0023] During the format conversion process, the conversion progress is read in real time and the conversion details are written into the toolchain log.

[0024] Optionally, it also includes:

[0025] Determine whether the format conversion is successful. If it fails, output a conversion failure log including conversion error information.

[0026] Optionally, it also includes:

[0027] After the format conversion is successfully executed, it is determined whether there is data in the model data target file. If not, a conversion failure log including conversion error information is output.

[0028] According to a second aspect of the present invention, a simulation model data format conversion device is provided, comprising:

[0029] A determination module, used for determining an original format and a target format of the simulation model data to be converted;

[0030] A conversion module, used for performing format conversion based on the original format, the target format and the standard intermediate format;

[0031] The upload module uploads the simulation model data to be converted after the format conversion is completed to the file server for storage.

[0032] According to a third aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0033] at least one processor; and,

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the simulation model data format conversion method described in any one of the first aspects.

[0036] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium is proposed, which stores computer instructions for causing a computer to execute any simulation model data format conversion method described in the first aspect.

[0037] The beneficial effects of the present invention are as follows: the present invention formulates keywords for simulation model data and standard format conversion rules - standard intermediate format, and utilizes the standard intermediate format to realize the conversion of commonly used simulation software models at home and abroad into standard format models and the conversion of standard format models into other commonly used simulation software models at home and abroad, thereby solving the barriers between the same software, solving the manpower and material resource consumption caused by software replacement on the B side, solving the problem of huge investment and repetitive work in learning software on the C side, and reducing costs.

[0038] The system of the present invention has other characteristics and advantages, which will be apparent from the drawings incorporated herein and the following detailed description, or will be described in detail in the drawings incorporated herein and the following detailed description, which together serve to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, in which like reference numerals generally represent like components.

[0040] Figure 1 A flow chart showing the steps of a simulation model data format conversion method according to the present invention.

[0041] Figure 2 A schematic diagram showing a standard intermediate format according to the present invention is shown.

[0042] Figure 3 A schematic diagram showing the overall structure of configuration parameters according to the present invention.

[0043] Figure 4 A flowchart showing the steps of a simulation model data format conversion method according to the second embodiment of the present invention. DETAILED DESCRIPTION

[0044] The present invention will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0045] like Figure 1 As shown, a simulation model data format conversion method according to the present invention includes:

[0046] Determine the original format and target format of the simulation model data to be converted;

[0047] Perform format conversion based on original format, target format and standard intermediate format;

[0048] Upload the simulation model data to be converted that has completed format conversion to the file server for storage.

[0049] Specifically, the present invention first determines the original format and target format of the simulation model data to be converted, that is, determines the source file suffix of the simulation model data to be converted and the target file suffix of the model data, and then uses the standard intermediate format to perform format conversion according to the original format and target format of the simulation model data to be converted, and converts the model generated by the commonly used simulation software into a standard format model, or converts the standard format model into any commonly used simulation software model; after the conversion is completed, it is uploaded to the file server for storage. The present invention formulates keywords for simulation model data and standard format conversion rules-standard intermediate format, and uses the standard intermediate format to realize the conversion of commonly used simulation software models at home and abroad into standard format models and the conversion of standard format models into other commonly used simulation software models at home and abroad, thereby solving the barriers between the same software, solving the manpower and material resource consumption caused by the replacement of software on the B side, solving the problem of huge investment and duplication of work in learning software on the C side, and reducing costs.

[0050] In one example, the standard intermediate format includes:

[0051] Keyword conversion instructions, including how to add new keywords and the principle of data format conversion;

[0052] Configuration parameters, used for performing format conversion of simulation model data to be converted keyword by keyword based on the configuration parameters;

[0053] Keyword list and examples, used to record all convertible keywords and conversion formats.

[0054] Specifically, Figure 2 As shown in the figure, the standard intermediate format includes: keyword conversion instructions, configuration parameters and keyword lists and examples. The keyword conversion instructions include the method of adding new keywords and the principle description document of data format conversion; configuration parameters are used to perform format conversion of each keyword on the simulation model data to be converted based on the configuration parameters; keyword lists and examples are used to record all convertible keywords and conversion formats. Configuration parameters include: overall structure, model objects, model metadata objects, model node objects, computational grid information and solver output data information. The overall structure of XML data is as follows: Figure 3As shown in the figure, the model object (Model) is the main object of the lightweight data model, which directly or indirectly contains various other data objects, including: model structure and attribute information, model geometry information, model engineering information, model display information, model animation information, extended information, mesh, results, structural simulation settings, fluid simulation settings, system simulation settings, etc. The model object contains model metadata, model structure tree data or model structure tree data file URI, mesh data block information or block information data file URI, material data or material data file URI, font data or font data file URI, topology geometry data file URI, PMI data file URI, spatial index data file URI, animation data file URI, camera data, model unit, watermark data, light source data, scene background information, etc., which are stored in an XML file. The model metadata object is represented by an XML object, which contains information such as format version number, model generator, copyright information, file version number, creator, encoding value, description, etc. The model node object is a generalized object, represented by an XML object, which can represent various objects in the simulation model: boundaries, loads, materials, physical models, drawings, line display objects, point display objects, etc., and express the model through a tree structure. The computational grid information includes node, association and unit information. By formulating keywords for simulation model data and standard format conversion rules - standard intermediate format, the standard intermediate format is used to realize the conversion of commonly used simulation software models at home and abroad to standard format models and the conversion of standard format models to other commonly used simulation software models at home and abroad, solving the barriers between the same software, solving the human and material resource consumption caused by the replacement of software on the B side, solving the huge investment and duplication of learning software on the C side, and reducing costs.

[0055] In one example, format conversion based on the original format, the target format, and the standard intermediate format includes:

[0056] Create an empty model data target file with an empty path;

[0057] Determine a conversion script based on the original format and the target format;

[0058] Execute commands based on empty path of model data target file, conversion script, original format and standard intermediate format;

[0059] Perform format conversion based on execution command.

[0060] In one example, the structure of the execute command is:

[0061] / main C:\the original format suffix of the simulation model data to be converted + the empty path of the model data target file + the software name of the conversion script + the standard intermediate format.

[0062] In one example, it also includes:

[0063] During the format conversion process, the conversion progress is read in real time and the conversion details are written into the toolchain log.

[0064] In one example, it also includes:

[0065] Determine whether the format conversion is successful. If it fails, output a conversion failure log including conversion error information.

[0066] In one example, it also includes:

[0067] After the format conversion is successfully executed, it is determined whether there is data in the model data target file. If not, a conversion failure log including conversion error information is output.

[0068] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but is not intended to be limiting of the present invention. It should be noted that the embodiments and features in the embodiments of the present invention may be combined with each other without conflict.

[0069] Embodiment 1

[0070] This embodiment provides a simulation model data format conversion method, including:

[0071] Determine the original format and target format of the simulation model data to be converted;

[0072] Perform format conversion based on original format, target format and standard intermediate format;

[0073] Upload the simulation model data to be converted that has completed format conversion to the file server for storage.

[0074] Standard intermediate formats include:

[0075] Keyword conversion instructions, including how to add new keywords and the principle of data format conversion;

[0076] Configuration parameters, used for performing format conversion of simulation model data to be converted keyword by keyword based on the configuration parameters;

[0077] Keyword list and examples, used to record all convertible keywords and conversion formats.

[0078] Format conversion based on original format, target format and standard intermediate format includes:

[0079] Create an empty model data target file with an empty path;

[0080] Determine a conversion script based on the original format and the target format;

[0081] Execute commands based on empty path of model data target file, conversion script, original format and standard intermediate format;

[0082] Perform format conversion based on execution command.

[0083] During the format conversion process, the conversion progress is read in real time and the conversion details are written into the toolchain log.

[0084] Determine whether the format conversion is successful. If it fails, output a conversion failure log including conversion error information.

[0085] After the format conversion is successfully executed, it is determined whether there is data in the model data target file. If not, a conversion failure log including conversion error information is output.

[0086] The structure of the execution command is:

[0087] / main C:\the original format suffix of the simulation model data to be converted + the empty path of the model data target file + the software name of the conversion script + the standard intermediate format.

[0088] Embodiment 2

[0089] like Figure 4 As shown, this embodiment provides a simulation model data format conversion method, including:

[0090] Step 1: When the system starts running, first select the model source and model target. After the model source and target are determined, the system will automatically match the model source and model target file suffixes.

[0091] Step 2: Upload the corresponding simulation model at the model source, that is, the model generated by commonly used simulation software (or standard format model).

[0092] Step 3: The simulation model (or standard format model) will be stored in the corresponding memory or computing server.

[0093] Step 4: The system starts preparing to parse the uploaded model.

[0094] Step 5: Transfer the model uploaded in step 2 (i.e., the model generated by commonly used simulation software or the standard format model) to the calculation server in step 3.

[0095] Step 6: Create an empty model target file path on the compute server.

[0096] Step 7: Determine which type of conversion script to use based on the selected model source and model target file suffix.

[0097] Step 8: Splice and execute commands according to the script, model source file, and model target file (the splicing command structure: . / main C:\, which is the common simulation software model format suffix + C:\xxx.gc (empty path of the model target file) + the software name corresponding to the conversion script + the standard intermediate format)

[0098] Step 9: Copy the conversion script (main) to the server described in step 3.

[0099] Step 10: Perform model conversion according to the standard intermediate format, that is, convert the commonly used simulation software model into the standard format model (or convert the standard format model into the commonly used simulation software model). At the same time, the system will output the log of the conversion process in real time.

[0100] Step 11: The system conversion action is completed. If the conversion is successful, a standard format model (or a common simulation software model) will be generated in the model target file in step 6. If the conversion fails, a failure log will be output.

[0101] Step 12: The standard format model (or commonly used simulation software model) generated in step 11 is uploaded to the file server.

[0102] Step 13: All data generated by Step 2, Step 9, Step 10, and Step 11 will be deleted from the server mentioned in Step 3. At this point, the conversion process is complete.

[0103] Among them, steps 1-3 are the process of the system inputting a commonly used simulation software model (or a standard format model); steps 4-10 are the format conversion process; and steps 11-13 are the process of the system outputting a standard format model (or a standard format model).

[0104] Embodiment 3

[0105] This embodiment provides a simulation model data format conversion device, including:

[0106] A determination module, used for determining an original format and a target format of the simulation model data to be converted;

[0107] A conversion module, used for format conversion based on an original format, a target format and a standard intermediate format;

[0108] The upload module uploads the simulation model data to be converted after the format conversion is completed to the file server for storage.

[0109] Embodiment 4

[0110] The present disclosure also provides an electronic device, the electronic device comprising:

[0111] at least one processor; and,

[0112] a memory communicatively connected to the at least one processor; wherein,

[0113] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the simulation model data format conversion method in the first embodiment.

[0114] The electronic device according to an embodiment of the present disclosure includes a memory and a processor, and the memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may, for example, include a read-only memory (ROM), a hard disk, a flash memory, etc.

[0115] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the present disclosure, the processor is used to run the computer-readable instructions stored in the memory.

[0116] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present disclosure.

[0117] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0118] Embodiment 5

[0119] An embodiment of the present disclosure provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the simulation model data format conversion method in embodiment 1.

[0120] According to the computer-readable storage medium of the embodiment of the present disclosure, non-transitory computer-readable instructions are stored thereon. When the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the above-mentioned methods of each embodiment of the present disclosure are executed.

[0121] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).

[0122] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A simulation model data format conversion method, characterized in that: include: Determine the original format and target format of the simulation model data to be converted; Performing format conversion based on the original format, the target format and the standard intermediate format; Upload the simulation model data to be converted that has completed format conversion to the file server for storage.

2. The simulation model data format conversion method according to claim 1, characterized in that: The standard intermediate formats include: Keyword conversion instructions, including how to add new keywords and the principle of data format conversion; Configuration parameters, used for performing format conversion of the simulation model data to be converted keyword by keyword based on the configuration parameters; Keyword list and examples, used to record all convertible keywords and conversion formats.

3. The simulation model data format conversion method according to claim 1, characterized in that: The format conversion based on the original format, the target format and the standard intermediate format includes: Create an empty model data target file with an empty path; determining a conversion script based on the original format and the target format; Splicing and executing commands based on the empty path of the model data target file, the conversion script, the original format and the standard intermediate format; Format conversion is performed based on the execution command.

4. The simulation model data format conversion method according to claim 3, characterized in that: The structure of the execution command is: / main C:\the original format suffix of the simulation model data to be converted + the empty path of the model data target file + the software name of the conversion script + the standard intermediate format.

5. The simulation model data format conversion method according to claim 1, characterized in that: Also includes: During the format conversion process, the conversion progress is read in real time and the conversion details are written into the toolchain log.

6. The simulation model data format conversion method according to claim 5, characterized in that: Also includes: Determine whether the format conversion is successful. If it fails, output a conversion failure log including conversion error information.

7. The simulation model data format conversion method according to claim 6, characterized in that: Also includes: After the format conversion is successfully executed, it is determined whether there is data in the model data target file. If not, a conversion failure log including conversion error information is output.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the simulation model data format conversion method described in any one of claims 1-7.

9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the simulation model data format conversion method described in any one of claims 1-7.

10. A simulation model data format conversion device, characterized in that: include: A determination module, used for determining an original format and a target format of the simulation model data to be converted; A conversion module, used for performing format conversion based on the original format, the target format and the standard intermediate format; The upload module uploads the simulation model data to be converted after the format conversion is completed to the file server for storage.

Citation Information

Patent Citations

  • CAE data processing method and system based on Web browser

    CN105224769A

  • Simulation file format conversion method and device, electronic equipment and storage medium

    CN116932485A

  • File format conversion method and device and storage medium

    CN118760656A