Simulation data type reflection method and device and simulation equipment
By employing a non-intrusive data type reflection method in GPU physics simulation, production process data is converted into a preset format and processed using a reflection generator. This solves the memory alignment rule violation problem caused by type reflection, enables effective processing of single-type, type array, and composite type data, and improves the efficiency and flexibility of GPU simulation computing.
Patent Information
- Application Number
- CN202411560542.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-01-10
AI Technical Summary
In existing GPU physics simulation calculations, type reflection technology disrupts memory alignment rules by intrusively modifying type information, making it difficult to apply to the GPU and unable to systematically generate type information in batches.
By acquiring production process data from the target scenario, storing it in pre-allocated memory space, and converting the data into a preset format, the reflection generator is used to convert the data format type into a preset type data. A non-intrusive method is used for type reflection, supporting the processing of format data of single type, type array, and composite type.
Without disrupting the GPU's memory structure, it achieves efficient reflection of single-type, type array, and composite type format data, improving the GPU's simulation data processing capabilities and flexibility, and meeting memory byte alignment requirements.
Smart Images

Figure CN119294130A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data type reflection, and in particular to a simulation data type reflection method, device and simulation equipment. Background Art
[0002] With the introduction of the national intelligent manufacturing strategy in recent years, more and more industrial production, design and manufacturing companies are pursuing intelligent and digital production design and manufacturing to meet the needs of reducing corporate production design costs and ensuring the safety of front-line personnel. Therefore, computer industrial physical simulation technology is increasingly valued by companies.
[0003] In complex industrial scenarios, such as the field of iron and steel metallurgy, the reaction process in the shaft furnace is complex, involving multiphase flow, heat transfer, chemical reaction, phase change and other issues. It faces challenges such as slow simulation calculation and long simulation development cycle due to the complexity of the physical model. Since the graphics processing unit (GPU) has a large number of parallel computing cores, it is a microprocessor commonly used for image and graphics related computing work. After years of development, it can now be widely used in the field of general scientific computing. Therefore, modern industrial physics simulation through GPU is conducive to speeding up simulation calculation speed and shortening simulation development cycle. For industrial physics simulation software, data type reflection is an important and basic topic, especially in physics simulation calculation on GPU, which usually requires the object type accessed by the GPU's video memory to have strict memory byte alignment requirements. Otherwise, it is easy to access wrong data in GPU physics simulation calculation, resulting in abnormal simulation results or access failure.
[0004] At present, the type reflection technology in related technologies destroys the memory alignment rules of the type by intrusively modifying the type information, which makes it difficult to apply it to the GPU for simulation calculations, and there are problems such as the inability to systematically generate type information in batches and reflectively generate objects. Therefore, how to realize the reflective generation of type objects without destroying the memory structure of the type, so as to meet the needs of GPU physical simulation calculations, and realize the batch compilation and dynamic reflection of type information is a problem that needs to be solved urgently. Summary of the invention
[0005] In view of the above-mentioned shortcomings of the prior art, the present application provides a simulation data type reflection method, device and simulation equipment to solve the above-mentioned technical problems.
[0006] According to one aspect of an embodiment of the present application, a simulation data type reflection method is provided, comprising: acquiring production process data of a target scene; the production process data is stored in a pre-allocated memory space, and the target scene comprises a steel metallurgical production scene; using the production process data as simulation data, and converting the simulation data into preset format data; the preset format data comprises at least one of single type format data, type array format data and composite type format data; determining a data format type and a type content corresponding to the data format type from the preset format data, and determining a reflection generator according to the data format type; converting the type content corresponding to the data format type into preset type data through the reflection generator, and applying the preset type data to the simulation process of the target scene.
[0007] In one embodiment of the present application, the process of converting the simulation data into preset format data includes: if the simulation data only includes single type data, the single type data is integrated according to the single type format to obtain the single type format data, and the single type format data is used as the preset format data; the single type format is a combination of a single type object name, a separator and a single type object content; if the simulation data only includes type array data, the type array data is integrated according to the type array format to obtain the type array format data, and the type array format data is used as the preset format data; the type array format is a combination of a type array object name, a separator and a type array object content; if the simulation data only includes composite type data, the composite type data is integrated according to the composite type format to obtain the composite type format data, and the composite type format data is used as the preset format data; the composite type format is a combination of a general type header, an included type header, a separator, a composite type object content, an included type tail and a general type tail.
[0008] In one embodiment of the present application, the process of determining the data format type and the type content corresponding to the data format type from the preset format data includes: obtaining the separator position in the preset format data; using the data information before the separator position in the preset format data as key information, and using the data information after the separator position in the preset format data as value information; if the key information does not contain the general type header, then determining that the data format type is the single type format, and using the value information as the type content corresponding to the single type format, or determining that the data format type is the type array format, and using the value information as the type content corresponding to the type array format; if the key information contains the general type header, then determining that the data format type is the composite type format, and based on the key information and the value information, determining the type content corresponding to the composite type format.
[0009] In one embodiment of the present application, the process of determining the type content corresponding to the composite type format based on the key information and the value information includes: generating a composite type object string based on the key information and the value information; obtaining the general type header position in the composite type object string; using the character information before the general type header position in the composite type object string as the composite type name, and redetermining the key information and the value information from the character information after the general type header position in the composite type object string, forming a composite type member name array with the redetermined key information and the redetermined value information, and using all the redetermined value information as the type content corresponding to the composite type format, the redetermined key information is used to represent the composite type member name, and the redetermined value information is used to represent the composite type member content.
[0010] In one embodiment of the present application, if the data format type is the composite type format, and the preset type data includes the data type of the composite type member content, then the process of converting the type content corresponding to the data format type into the preset type data through the reflection generator includes: reading the composite type member content in the composite type member name array, inputting the composite type member content into a string stream tool, and loading a type conversion function based on the data type; converting the data in the string stream tool into composite type member data through the type conversion function, and integrating the composite type member data to obtain the preset type data.
[0011] In one embodiment of the present application, after obtaining the preset type data, the method also includes: obtaining the address offset of the composite type member name in the composite type member name array; determining an object creation function based on the composite type name, and creating a composite type empty object according to the object creation function; determining a storage address of the composite type member data in the composite type empty object according to the first address of the composite type empty object and the address offset; storing the composite type member data in the storage address, storing the preset type data at a position in the composite type empty object after the composite type member data, and outputting the first address of the composite type empty object.
[0012] In one embodiment of the present application, the process of converting the type content corresponding to the data format type into preset type data through the reflection generator also includes: if the data format type is the single type format, the single type object reflection generator is used as the reflection generator, and the type content corresponding to the single type format is converted into the preset type data through the reflection generator to output the preset type data; if the data format type is the type array format, the type array object reflection generator is used as the reflection generator, and the type content corresponding to the type array format is converted into the preset type data through the reflection generator to output the preset type data.
[0013] According to one aspect of an embodiment of the present application, a simulation data type reflection device is provided, including: a data acquisition module, used to acquire production process data of a target scene; the production process data is stored in a pre-allocated memory space, and the target scene includes a steel metallurgical production scene; a format conversion module, used to use the production process data as simulation data, and convert the simulation data into preset format data; the preset format data includes at least one of single type format data, type array format data and composite type format data; a type determination module, used to determine a data format type and a type content corresponding to the data format type from the preset format data, and determine a reflection generator based on the data format type; a type conversion module, used to convert the type content corresponding to the data format type into preset type data through the reflection generator, and the preset type data is applied to the simulation process of the target scene.
[0014] In one embodiment of the present application, the device also includes: a data acquisition module for collecting the production process data; the production process data includes temperature data, component data and equipment status data; a data interface module for transmitting the preset format data to the type determination module.
[0015] According to one aspect of an embodiment of the present application, a simulation device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the simulation device implements the simulation data type reflection method as described above.
[0016] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the above-mentioned simulation data type reflection method.
[0017] The beneficial effects of the present invention are as follows: the present invention obtains the production process data of the target scene, stores the production process data in a pre-allocated memory space, uses the production process data as simulation data, converts the simulation data into preset format data, determines the data format type and the type content corresponding to the data format type from the preset format data, and determines the reflection generator according to the data format type, and converts the type content corresponding to the data format type into preset type data through the reflection generator. In the above process, by setting the pre-allocated memory space and storing the production process data in the pre-allocated memory space, the size of the pre-allocated memory space remains unchanged, so that in the process of type reflection on the simulation data, the production process data is read or modified in a non-invasive manner, the memory structure of the GPU end is not destroyed, the memory byte alignment requirement of the GPU end is met, and the disadvantage that the memory alignment rule is destroyed by intrusive modification of the production process data, and cannot be applied to the simulation calculation on the GPU end is avoided; in addition, in the process of type reflection on the simulation data, not only single type format data and type array format data can be type reflected, but also composite type format data can be type reflected, thereby improving the processing capability and processing flexibility of the GPU end for type reflection on the simulation data.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present application;
[0021] Figure 2 is a flow chart of a simulation data type reflection method shown in an exemplary embodiment of the present application;
[0022] Figure 3 is a flow chart of a simulation data type reflection method shown in another exemplary embodiment of the present application;
[0023] Figure 4 is a flowchart showing a method of determining key information and value information from data in a preset format according to an exemplary embodiment of the present application;
[0024] Figure 5 is a flowchart showing an exemplary embodiment of the present application for converting type content corresponding to a composite type format into preset type data through a reflection generator;
[0025] Figure 6 A block diagram of a simulation data type reflection device suitable for implementing an embodiment of the present application is shown;
[0026] Figure 7 is a block diagram of a simulation data type reflection system shown in an exemplary embodiment of the present application;
[0027] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing the simulation device of the embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0029] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0030] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0031] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0032] The technical solution of the embodiment of the present application involves related technologies such as welding of steel structure parts, which is specifically described by the following embodiments:
[0033] Figure 1 It is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present application.
[0034] Reference Figure 1 As shown, the system architecture may include a data acquisition device 101 and a computer device 102. The computer device 102 may be at least one of a GPU computer, a GPU computing cluster, a neural network computer, etc. Relevant technicians may use the computer device 102 to obtain the production process data of the target scene, store the production process data in a pre-allocated memory space, use the production process data as simulation data, and convert the simulation data into preset format data, determine the data format type and the type content corresponding to the data format type from the preset format data, and determine the reflection generator according to the data format type, and convert the type content corresponding to the data format type into preset type data through the reflection generator. The data acquisition device 101 is used to acquire the production process data of the target scene. In this embodiment, the data acquisition device 101 uses sensors and the like to acquire the production process data of the target scene, and provides it to the computer device 102 for processing.
[0035] Schematically, after the computer device 102 obtains the production process data of the target scene of the data acquisition device 101, the production process data is used as simulation data, and the simulation data is converted into preset format data, the data format type and the type content corresponding to the data format type are determined from the preset format data, and a reflection generator is determined according to the data format type, and the type content corresponding to the data format type is converted into preset type data through the reflection generator. In the above process, by setting a pre-allocated memory space and storing the production process data in the pre-allocated memory space, the size of the pre-allocated memory space remains unchanged, so that in the process of type reflection of the simulation data, the production process data is read or modified in a non-invasive manner without destroying the memory structure of the GPU end, and the memory byte alignment requirements of the GPU end are met, so as to avoid the disadvantage that the memory alignment rules are destroyed by intrusive modification of the production process data, and cannot be applied to the simulation calculation on the GPU end; in addition, in the process of type reflection of the simulation data, not only single type format data and type array format data can be type reflected, but also composite type format data can be type reflected, thereby improving the processing capability and processing flexibility of the GPU end for type reflection of the simulation data.
[0036] It should be noted that the simulation data type reflection method provided in the embodiment of the present application is generally executed by the computer device 102 , and accordingly, the simulation data type reflection device is generally set in the computer device 102 .
[0037] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0038] Figure 2 is a flowchart of a simulation data type reflection method shown in an exemplary embodiment of the present application. The simulation data type reflection method can be executed by a computing processing device. The computing processing device can be Figure 1 The computer device 102 shown in FIG. Figure 2 As shown, the simulation data type reflection method at least includes steps S210 to S240, which are described in detail as follows:
[0039] In step S210, the production process data of the target scene is obtained. In one embodiment of the present application, the production process data is stored in a pre-allocated memory space, and the size of the pre-allocated memory space can be set according to the actual situation. The size of the pre-allocated memory space remains unchanged during the type reflection process of the simulation data, thereby realizing non-invasive reading or modification of the production process data, etc., without destroying the memory structure of the GPU side, meeting the memory byte alignment requirements of the GPU side, and avoiding the disadvantage that the memory alignment rules are destroyed by intrusive modification of the production process data, and cannot be applied to the simulation calculation on the GPU side. The target scene includes a steel metallurgical production scene, etc.
[0040] In step S220, the production process data is used as simulation data, and the simulation data is converted into preset format data. In one embodiment of the present application, the preset format data includes at least one of single type format data, type array format data and composite type format data. The process of converting the simulation data into preset format data includes: if the simulation data only includes single type data, the single type data is integrated according to the single type format to obtain single type format data, and the single type format data is used as preset format data; the single type format is a combination of a single type object name, a separator and a single type object content; if the simulation data only includes type array data, the type array data is integrated according to the type array format to obtain type array format data, and the type array format data is used as preset format data; the type array format is a combination of a type array object name, a separator and a type array object content; if the simulation data only includes composite type data, the composite type data is integrated according to the composite type format to obtain composite type format data, and the composite type format data is used as preset format data; the composite type format is a combination of a general type header, an inner type header, a separator, a composite type object content, an inner type tail and a general type tail. The process of obtaining the production process data of the target scene, using the production process data as simulation data, and converting the simulation data into preset format data is implemented on the script side. The script side usually refers to the environment or platform for writing and executing scripts (usually codes for automated tasks or specific functions). The autonomous compilation and dynamic generation of preset format data are realized through the script side, and the preset format data is input into the GPU side for physical simulation calculations.
[0041] In step S230, the data format type and the type content corresponding to the data format type are determined from the preset format data, and the reflection generator is determined according to the data format type. In one embodiment of the present application, the process of determining the data format type and the type content corresponding to the data format type from the preset format data includes: obtaining the delimiter position in the preset format data; using the data information before the delimiter position in the preset format data as key information, and using the data information after the delimiter position in the preset format data as value information; if the key information does not contain a general type header, the data format type is determined to be a single type format, and the value information is used as the type content corresponding to the single type format, or the data format type is determined to be a type array format, and the value information is used as the type content corresponding to the type array format; if the key information contains a general type header, the data format type is determined to be a composite type format, and based on the key information and the value information, the type content corresponding to the composite type format is determined. The GPU side can implement parsing of the preset format data, determine the single type format and the type content corresponding to the single type format, the type array format and the type content corresponding to the type array format, the composite type format and the type content corresponding to the composite type format.
[0042] In step S240, the type content corresponding to the data format type is converted into preset type data by the reflection generator. In one embodiment of the present application, the process of converting the type content corresponding to the data format type into preset type data by the reflection generator is implemented on the GPU, and the preset type data is applied to the simulation process of the target scene. In the process of type reflection on the simulation data, not only single type format data and type array format data can be type reflected, but also composite type format data can be type reflected, which improves the processing capability and processing flexibility of the GPU end for type reflection on the simulation data.
[0043] In one embodiment of the present application, the process of converting simulation data into data in a preset format includes:
[0044] If the simulation data only includes single-type data, the single-type data is integrated according to the single-type format to obtain single-type format data, and the single-type format data is used as the preset format data. In one embodiment of the present application, a single-type text generation function is created for the single-type data, and the single-type text generation function integrates the single-type data according to the single-type format to obtain single-type format data. The single-type format is a combination of a single-type object name, a separator, and a single-type object content. The separator can be a semicolon, a comma, an equal sign, etc. The single-type object name is a string with a marking function, a combination of numbers, etc., which is used to characterize the uniqueness of the single type.
[0045] If the simulation data only includes type array data, the type array data is integrated according to the type array format to obtain type array format data, and the type array format data is used as the preset format data; in one embodiment of the present application, a type array text generation function is created for the type array data, and the type array text generation function integrates the type array data according to the type array format to obtain type array format data. The type array format is a combination of a type array object name, a separator, and a type array object content. The type array object name is a string with a marking function, a number combination, etc., which is used to characterize the uniqueness of the type array. When the number of type array object contents is multiple, multiple type array object contents are separated by spaces, and the size of the type array is passed in through the parameter data of the script function.
[0046] If the simulation data only includes composite type data, the composite type data is integrated according to the composite type format to obtain composite type format data, and the composite type format data is used as the preset format data; in one embodiment of the present application, a composite type text generation function is created for the composite type data, and the composite type text generation function integrates the composite type data according to the composite type format to obtain composite type format data, the composite type format is a combination of a general type header, an included type header, a separator, a composite type object content, an included type tail, and a general type tail, and the combination of the included type header, separator, composite type object content, and included type tail between the general type header and the general type tail can be one or more, which is not specifically limited here, that is, the composite type may include one type of data or multiple types of data, and each type of data corresponds to a combination of an included type header, a separator, a composite type object content, and an included type tail.
[0047] In another embodiment of the present application, if the simulation data includes single type data and type array data, a single type text generation function is created for the single type data, and the single type text generation function integrates the single type data according to the single type format to obtain single type format data; a type array text generation function is created for the type array data, and the type array text generation function integrates the type array data according to the type array format to obtain type array format data; and the single type format data and the type array format data are used as preset format data. If the simulation data includes type array data and composite type data, a type array text generation function is created for the type array data, and the type array text generation function integrates the type array data according to the type array format to obtain type array format data; a composite type text generation function is created for the composite type data, and the composite type text generation function integrates the composite type data according to the composite type format to obtain composite type format data; and the type array format data and the composite type format data are used as preset format data. If the simulation data includes single type data and composite type data, a single type text generation function is created for the single type data, and the single type text generation function integrates the single type data according to the single type format to obtain single type format data; a composite type text generation function is created for the composite type data, and the composite type text generation function integrates the composite type data according to the composite type format to obtain composite type format data; and the single type format data and the composite type format data are used as preset format data. If the simulation data includes single type data, type array data and composite type data, a single type text generation function is created for the single type data, and the single type text generation function integrates the single type data according to the single type format to obtain single type format data; a type array text generation function is created for the type array data, and the type array text generation function integrates the type array data according to the type array format to obtain type array format data; a composite type text generation function is created for the composite type data, and the composite type text generation function integrates the composite type data according to the composite type format to obtain composite type format data; and the single type format data, type array format data and composite type format data are used as preset format data.
[0048] In one embodiment of the present application, the process of determining the data format type and the type content corresponding to the data format type from the preset format data includes:
[0049] Obtain the delimiter position in the preset format data. In one embodiment of the present application, the delimiter position is obtained by parsing the type text parser set by the GPU end, the preset format data is arranged in rows, the type text parser includes a text object parser and an interface for providing data to the outside, and the parsing result of the text object parser is provided to the type text item parser through the interface for providing data to the outside. The text object parser is a software tool or program for converting text data into a structured format that can be understood and processed by a computer.
[0050] The data information before the separator position in the preset format data is used as key information, and the data information after the separator position in the preset format data is used as value information. In one embodiment of the present application, the preset format data is stored in rows, and the process of determining the key information and the value information is performed in rows.
[0051] If the key information does not contain a general type header, the data format type is determined to be a single type format, and the value information is used as the type content corresponding to the single type format, or the data format type is determined to be a type array format, and the value information is used as the type content corresponding to the type array format. In one embodiment of the present application, the type text item parser is used to determine that the data format type is a single type format when the key information of a certain row does not contain a general type header, and there is only one type object content in the value information of the row, and the value information is used as the type content corresponding to the single type format; the type text item parser is used to determine that the data format type is a type array format when the key information of a certain row does not contain a general type header, and there are multiple type object contents separated by spaces in the value information of the row, and the value information is used as the type content corresponding to the type array format; remove spaces from the key information and value information in the single type format, and combine the key information with spaces removed and the value information with spaces removed to form a key-value pair; remove spaces from the key information and value information in the type array format, and combine the key information with spaces removed and the value information with spaces removed to form a key-value pair.
[0052] In one embodiment of the present application, after determining a single type format, the type text item parser is further used to return a single type object reflection generator, and the single type object reflection generator performs type reflection on the type content corresponding to the single type format; after determining a type array format, the type text item parser is further used to return a type array object reflection generator, and the type array object reflection generator performs type reflection on the type content corresponding to the type array format. The type text item parser is a tool specially designed for parsing and processing text items containing multiple types (such as titles, paragraphs, lists, tables, images, code blocks, etc.), and usually identifies different types of text items according to predefined rules or patterns, and performs further processing on different types of text items.
[0053] If the key information contains a general type header, the data format type is determined to be a composite type format, and based on the key information and the value information, the type content corresponding to the composite type format is determined. In one embodiment of the present application, if the key information of a row contains a general type header, after traversing the preset format data of the next row to obtain the value information of the next row, the value information of the next row is used as the first value information, and the preset format data after the next row is traversed again to obtain the value information, and the value information obtained again is added to the end of the first value information, and the above operation is repeated until the traversal to the general type tail is completed, the composite type key information and the composite type value information are obtained, and the composite type general type tail is inserted after the composite type value information, the composite type key information and value information are removed from the spaces, and the key information with spaces removed and the value information with spaces removed are combined to form a key-value pair. The type text item parser is used to determine the data format type as a composite type format when the key information contains a general type header, and determine the type content corresponding to the composite type format based on the key information and the value information.
[0054] In another embodiment of the present application, after determining the composite type, the type text item parser is further used to return a composite type object parser, and the composite type object parser further parses the key information and the value information to determine the type content corresponding to the composite type format. The composite type object parser is an important tool for understanding and processing complex data structures and parsing the type content corresponding to the composite type format.
[0055] In one embodiment of the present application, based on the key information and the value information, the process of determining the type content corresponding to the composite type format includes:
[0056] Generate a composite type object string based on the key information and the value information. In one embodiment of the present application, after determining a composite type object parser, generate a composite type object string based on the key information and the value information by the composite type object parser.
[0057] Obtaining the position of the general type header in the composite type object string. In one embodiment of the present application, the position of the general type header in the composite type object string is located by a composite type object parser.
[0058] The character information before the general type header position in the composite type object string is used as the composite type name, and the key information and value information are re-determined from the character information after the general type header position in the composite type object string, and the re-determined key information and the re-determined value information are used to form a composite type member name array, and all the re-determined value information is used as the type content corresponding to the composite type format. In one embodiment of the present application, the re-determined key information is used to characterize the composite type member name, and the re-determined value information is used to characterize the composite type member content. The process of redetermining key information and value information from character information located after the general type header position in the composite type object string includes: inputting character information located after the general type header position in the composite type object string into a string stream tool, traversing each line in the string stream tool by line, and relocating the separator position of each line of character information in the string stream tool; using character information located before the re-determined separator position in each line of the string stream tool as redetermined key information, and using character information located after the re-determined separator position in each line of the string stream tool as redetermined value information, until all lines of character information in the string stream tool are traversed, and the redetermined key information and redetermined value information in all lines are obtained. After the redetermined key information and redetermined value information in all lines are obtained, the redetermined key information and the redetermined value information belonging to the same line are combined into a key-value pair, and stored in an information storage structure, so as to facilitate the subsequent storage and reading of the redetermined key information and the redetermined value information.
[0059] In one embodiment of the present application, if the data format type is a composite type format, and the preset type data includes the data type of the composite type member content, the process of converting the type content corresponding to the data format type into the preset type data by the reflection generator includes:
[0060] The composite type member content in the composite type member name array is read, the composite type member content is input into the string stream tool, and the type conversion function is loaded based on the data type. In one embodiment of the present application, the data type and the type conversion function have a one-to-one correspondence, such as if the data type is an integer, the type conversion function is an integer conversion function; for another example, if the data type is a Boolean type, the type conversion function is a Boolean conversion function, etc.
[0061] The data in the string stream tool is converted into composite type member data through a type conversion function, and the composite type member data is integrated to obtain preset type data. In one embodiment of the present application, the operation of integrating the composite type member data includes a combination operation, an initialization operation, a packaging operation or a compression operation, etc., which is not specifically limited here.
[0062] In one embodiment of the present application, after obtaining the preset type data, the simulation data type reflection method further includes:
[0063] Obtain the address offset of the composite type member name in the composite type member name array. In one embodiment of the present application, the address offset is the relative position between the storage location of the composite type member name and the first address in the composite type member name array.
[0064] Based on the composite type name, an object creation function is determined, and a composite type empty object is created according to the object creation function. In one embodiment of the present application, the composite type name and the object creation function have a one-to-one correspondence, and after determining the composite type name, the object creation function can be determined by looking up a table.
[0065] The storage address of the composite type member data in the composite type empty object is determined according to the first address and address offset of the composite type empty object. In one embodiment of the present application, a composite type member corresponds to a composite type member content, and the composite type member content is converted to obtain the corresponding composite type member data. After the storage address is determined, it is convenient to store the composite type member data in the corresponding storage address in the composite type empty object.
[0066] The composite type member data is stored in the storage address, and the preset type data is stored in the composite type empty object at a position after the composite type member data, and the first address of the composite type empty object is output. In one embodiment of the present application, by storing the preset type data in the composite type empty object at a position after the composite type member data, and outputting the first address of the composite type empty object, since the composite type data occupies a large space, directly returning the first address of the composite type empty object is conducive to improving the data reading rate.
[0067] In another embodiment of the present application, the correspondence table between the composite type name and the object creation function, the correspondence table between the data type and the type conversion function, and the preset types of data in different types of formats can all be pre-registered and pre-set through the registrar. When in use, the GPU side obtains the correspondence table between the composite type name and the object creation function, the correspondence table between the data type and the type conversion function, and the preset types of data in different types of formats through the registrar interface.
[0068] In another embodiment of the present application, the composite type object reflection generator uses the non-intrusive dynamic reflection technology of template metaprogramming and combines it with the string stream tool. Since the string stream tool does not limit the size of the type content corresponding to the composite type format, the type content corresponding to the composite type format can be converted into preset type data in a non-intrusive manner, thereby achieving the effect of dynamic expansion of the template and batch conversion of simulation data, and improving the stability and development efficiency of the GPU-side industrial physics simulation software. For the type content corresponding to the single type format, the type content corresponding to the type array format, and the type content corresponding to the composite type format, the preset type to be converted can be set as needed, and the preset type can be an integer, a floating point type, a Boolean type, etc.
[0069] In one embodiment of the present application, the process of converting the type content corresponding to the data format type into preset type data by the reflection generator further includes:
[0070] If the data format type is a single type format, the single type object reflection generator is used as a reflection generator, and the type content corresponding to the single type format is converted into preset type data through the reflection generator to output the preset type data. In one embodiment of the present application, the single type object reflection generator uses generic template technology to insert the type content corresponding to the single type format into a string stream tool, and converts the type content corresponding to the single type format into preset type data through the string stream tool. The string stream tool has the characteristic of not limiting the size of the input content, and can adapt to the dynamic changes in the size of the type content corresponding to the single type format, and realize the dynamic expansion of the generic template, thereby accelerating the conversion efficiency of the type content corresponding to the single type format, and improving the stability and development efficiency of the GPU-side industrial physics simulation software.
[0071] If the data format type is a type array format, the type array object reflection generator is used as a reflection generator, and the type content corresponding to the type array format is converted into preset type data through the reflection generator to output the preset type data. In one embodiment of the present application, the type array object reflection generator uses a technology combining generic templates and dynamic arrays to insert the type content corresponding to the type array format into a string stream tool, and converts the type content corresponding to the type array format into preset type data through the string stream tool. The string stream tool has the characteristic of not limiting the size of the input content, and can adapt to the dynamic changes in the size of the type content corresponding to the type array format, and realize the dynamic expansion of the generic template, thereby accelerating the conversion efficiency of the type content corresponding to the type array format, and improving the stability and development efficiency of the GPU-side industrial physics simulation software.
[0072] In another embodiment of the present application, since the memory space occupied by single type format data or type array format data is relatively small, after obtaining the preset type data, the preset format data is directly returned, and the space occupied by the composite type data is relatively large, after obtaining the preset type data, directly returning the first address of the composite type empty object is beneficial to improving the data reading rate.
[0073] Figure 3 is a flowchart of a simulation data type reflection method shown in another exemplary embodiment of the present application, such as Figure 3 As shown, the simulation data type reflection method includes: (1) on the script side, by independently compiling and dynamically generating single type format data, type array format data or compound type format data, preset format data is obtained, and the preset format data is input into the GPU side for physical simulation calculation; (2) on the GPU side, multi-layer parsing of the preset format data is implemented to obtain data format types such as single type format, type array format and compound type format; (3) on the GPU side, template metaprogramming technology is used to convert the type content corresponding to the data format type into preset type data, thereby realizing the non-intrusive dynamic reflection effect of the type content corresponding to the single type format, the type content corresponding to the type array format or the type content corresponding to the compound type format.
[0074] Figure 4 is a flowchart of determining key information and value information from preset format data shown in an exemplary embodiment of the present application, such as Figure 4 As shown, the process of determining key information and value information from preset format data includes: (1) finding the separator position of the first line, taking the preset format data before the separator position as the key information, and taking the preset format data after the separator position as the value information, removing spaces from the head and tail of the key information, and removing spaces from the head and tail of the value information; (2) determining whether the key information of the first line contains a general type header of the composite type. If the key information of the first line does not contain a general type header of the composite type, the key information and the value information are combined and packaged; if the key information of the first line contains a general type header of the composite type, the preset format data of the next line is traversed continuously, and the preset format data of the line after the separator position is inserted into the end of the value information of the previous line in each traversal, until the general type tail of the composite type is traversed, and the key information and value information of the composite type are obtained. At this time, the general type tail of the composite type is inserted after the value information of the composite type and the loop is exited, and the key information of the composite type and the value information of the composite type are combined and packaged.
[0075] Figure 5 is a flowchart showing an exemplary embodiment of the present application for converting type content corresponding to a composite type format into preset type data through a reflection generator, such as Figure 5 As shown, the process of converting the type content corresponding to the composite type format into preset type data through the reflection generator includes: (1) obtaining the address offset of the composite type member name in the composite type member name array; based on the composite type name, determining the object creation function, and creating a composite type empty object according to the object creation function; (2) judging whether the composite type member name array has been traversed to the end, if the composite type member name array has not been traversed to the end, obtaining the member information to be reflected through the composite type member register, the member information including the address offset of the composite type member in the composite type member name array, and the data type to be converted into by the composite type member content (stored in enumeration); (3) according to the first address of the composite type empty object (4) Based on the data type, load the type conversion function; convert the data in the string stream tool into composite type member data through the type conversion function, and store the composite type member data in the storage address until the composite type member name array traversal is completed; (5) If the composite type member name array traversal is completed, call the composite type initialization function, initialize the composite type member data, obtain the preset type data, store the preset type data in the composite type empty object at the position after the composite type member data, and return a pointer to the address where the preset type data is stored.
[0076] The following describes an apparatus embodiment of the present application, which can be used to execute the simulation data type reflection method in the above embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above embodiment of the simulation data type reflection method of the present application.
[0077] Figure 6 is a block diagram of a simulation data type reflection device shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The implementation environment shown in the figure is specifically configured in the computer device 102. The device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.
[0078] like Figure 6 As shown, the exemplary simulation data type reflection device includes:
[0079] The data acquisition module 601 is used to acquire the production process data of the target scene; the production process data is stored in the pre-allocated memory space.
[0080] The format conversion module 602 is used to use the production process data as simulation data and convert the simulation data into preset format data.
[0081] The type determination module 603 is used to determine the data format type and the type content corresponding to the data format type from the preset format data, and determine the reflection generator according to the data format type.
[0082] The type conversion module 604 is used to convert the type content corresponding to the data format type into preset type data through the reflection generator.
[0083] In one embodiment of the present application, the production process data is stored in a pre-allocated memory space, the size of which can be set according to actual conditions, and the size of which remains unchanged during the type reflection process of the simulation data, thereby realizing non-invasive reading or modification of the production process data, etc., without destroying the memory structure of the GPU end, satisfying the memory byte alignment requirements of the GPU end, and avoiding the disadvantage that the memory alignment rules are destroyed by intrusive modification of the production process data, and cannot be applied to the simulation calculation on the GPU end. The target scenarios include steel metallurgical production scenarios, etc.
[0084] In one embodiment of the present application, in one embodiment of the present application, the preset format data includes at least one of single type format data, type array format data and composite type format data. The process of converting the simulation data into the preset format data includes: if the simulation data only includes single type data, the single type data is integrated according to the single type format to obtain single type format data, and the single type format data is used as the preset format data; the single type format is a combination of a single type object name, a separator and a single type object content; if the simulation data only includes type array data, the type array data is integrated according to the type array format to obtain type array format data, and the type array format data is used as the preset format data; the type array format is a combination of a type array object name, a separator and a type array object content; if the simulation data only includes composite type data, the composite type data is integrated according to the composite type format to obtain composite type format data, and the composite type format data is used as the preset format data; the composite type format is a combination of a general type header, an inner type header, a separator, a composite type object content, an inner type tail and a general type tail. The process of obtaining the production process data of the target scene, using the production process data as simulation data, and converting the simulation data into preset format data is implemented on the script side. The script side usually refers to the environment or platform for writing and executing scripts (usually codes for automated tasks or specific functions). The autonomous compilation and dynamic generation of preset format data are realized through the script side, and the preset format data is input into the GPU side for physical simulation calculations.
[0085] In one embodiment of the present application, the process of determining the data format type and the type content corresponding to the data format type from the preset format data includes: obtaining the delimiter position in the preset format data; using the data information before the delimiter position in the preset format data as the key information, and using the data information after the delimiter position in the preset format data as the value information; if the key information does not contain a general type header, the data format type is determined to be a single type format, and the value information is used as the type content corresponding to the single type format, or the data format type is determined to be a type array format, and the value information is used as the type content corresponding to the type array format; if the key information contains a general type header, the data format type is determined to be a composite type format, and based on the key information and the value information, the type content corresponding to the composite type format is determined. The GPU side can implement parsing of the preset format data, determine the single type format and the type content corresponding to the single type format, the type array format and the type content corresponding to the type array format, the composite type format and the type content corresponding to the composite type format.
[0086] In one embodiment of the present application, a process of converting type content corresponding to a data format type into preset type data is implemented on a GPU through a reflection generator, and the preset type data is applied to a simulation process of a target scene. In the process of type reflection on the simulation data, not only can type reflection be performed on single type format data and type array format data, but also can type reflection be performed on compound type format data, thereby improving the processing capability and flexibility of the GPU side in type reflection on simulation data.
[0087] In one embodiment of the present application, the simulation data type reflection device further includes:
[0088] Data acquisition module, used to collect production process data.
[0089] The data interface module is used to transmit the preset format data to the type determination module.
[0090] In one embodiment of the present application, the production process data includes temperature data, composition data, equipment status data, multiphase flow data, chemical reaction data, phase change data, etc. The data interface module is set at the script end in the form of a link, and the script end uses the production process data as simulation data, and converts the simulation data into data in a preset format. At the same time, the simulation program inside the GPU end is started through the link to batch acquire and type reflect the production process data, thereby improving the type reflection efficiency of the production process data.
[0091] Figure 7 is a block diagram of a simulation data type reflection system shown in an exemplary embodiment of the present application, such as Figure 7As shown, the simulation data type reflection system includes: a complex type text generation module, a complex type parsing module and a complex type non-intrusive reflection module. The complex type text generation module is used for autonomous compilation and dynamic text generation of single type format data, type array format data or compound type format data to obtain preset format data, and input the preset format data to the GPU end for physical simulation calculation; the complex type parsing module is used to implement multi-layer parsing of preset format data on the GPU end to obtain data format types such as single type format, type array format and compound type format; the complex type non-intrusive reflection module is used to use template metaprogramming technology on the GPU end to convert the type content corresponding to the data format type into preset type data. The preset type data has no additional structure and meets the byte alignment requirements of GPU end access, thereby realizing non-intrusive dynamic reflection of simulation data.
[0092] It should be noted that the simulation data type reflection device provided in the above embodiment and the simulation data type reflection method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In practical applications, the simulation data type reflection device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0093] An embodiment of the present application also provides a simulation device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the simulation device implements the simulation data type reflection method provided in the above-mentioned embodiments.
[0094] Figure 8 The schematic diagram of the structure of the computer system suitable for implementing the simulation device of the embodiment of the present application is shown. It should be noted that: Figure 8 The computer system 800 of the simulation device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0095] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.
[0096] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0097] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0098] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0099] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0101] Another aspect of the present application also provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, causes the computer to execute the simulation data type reflection method provided in the above-mentioned embodiments. The computer-readable storage medium may be included in the simulation device described in the above-mentioned embodiments, or may exist independently without being assembled into the simulation device.
[0102] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0103] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0104] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0105] It should be understood that the above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection required by the claims.
Claims
1. A simulation data type reflection method, characterized in that: include: Acquire production process data of target scenarios; The production process data is stored in a pre-allocated memory space, and the target scene includes a steel metallurgical production scene; Using the production process data as simulation data, and converting the simulation data into data in a preset format; The preset format data includes at least one of single type format data, type array format data and composite type format data; Determine a data format type and a type content corresponding to the data format type from the preset format data, and determine a reflection generator according to the data format type; The reflection generator converts the type content corresponding to the data format type into preset type data, and the preset type data is applied to the simulation process of the target scene.
2. The simulation data type reflection method according to claim 1, characterized in that: The process of converting the simulation data into data in a preset format includes: If the simulation data only includes single-type data, the single-type data is integrated according to a single-type format to obtain the single-type format data, and the single-type format data is used as the preset format data; the single-type format is a combination of a single-type object name, a separator and a single-type object content; If the simulation data only includes type array data, the type array data is integrated according to the type array format to obtain the type array format data, and the type array format data is used as the preset format data; the type array format is a combination of a type array object name, a separator and a type array object content; If the simulation data only includes composite type data, the composite type data is integrated according to the composite type format to obtain the composite type format data, and the composite type format data is used as the preset format data; the composite type format is a combination of a general type header, an included type header, a separator, a composite type object content, an included type tail, and a general type tail.
3. The simulation data type reflection method according to claim 2, characterized in that: The process of determining a data format type and a type content corresponding to the data format type from the preset format data includes: Obtaining the separator position in the preset format data; Using the data information before the separator position in the preset format data as key information, and using the data information after the separator position in the preset format data as value information; If the key information does not include the general type header, the data format type is determined to be the single type format, and the value information is used as the type content corresponding to the single type format, or the data format type is determined to be the type array format, and the value information is used as the type content corresponding to the type array format; If the key information includes the general type header, the data format type is determined to be the composite type format, and based on the key information and the value information, the type content corresponding to the composite type format is determined.
4. The simulation data type reflection method according to claim 3, characterized in that: The process of determining the type content corresponding to the composite type format based on the key information and the value information includes: Generate a composite type object string based on the key information and the value information; Get the common type header position in the composite type object string; The character information before the general type header position in the composite type object string is used as the composite type name, and the key information and value information are redetermined from the character information after the general type header position in the composite type object string, the redetermined key information and the redetermined value information are formed into a composite type member name array, and all the redetermined value information is used as the type content corresponding to the composite type format, the redetermined key information is used to characterize the composite type member name, and the redetermined value information is used to characterize the composite type member content.
5. The simulation data type reflection method according to claim 4, characterized in that: If the data format type is the composite type format, and the preset type data includes the data type of the composite type member content, then the process of converting the type content corresponding to the data format type into the preset type data by the reflection generator includes: Reading the composite type member content in the composite type member name array, inputting the composite type member content into a string stream tool, and loading a type conversion function based on the data type; The data in the string stream tool is converted into composite type member data through the type conversion function, and the composite type member data is integrated to obtain the preset type data.
6. The simulation data type reflection method according to claim 5, characterized in that: After obtaining the preset type data, the method further includes: Obtain the address offset of the composite type member name in the composite type member name array; Based on the composite type name, determine an object creation function, and create a composite type empty object according to the object creation function; Determine the storage address of the composite type member data in the composite type empty object according to the first address of the composite type empty object and the address offset; The composite type member data is stored in the storage address, the preset type data is stored in the composite type empty object at a position after the composite type member data, and the first address of the composite type empty object is output.
7. The simulation data type reflection method according to any one of claims 1 to 6, characterized in that: The process of converting the type content corresponding to the data format type into preset type data by the reflection generator also includes: If the data format type is the single type format, a single type object reflection generator is used as the reflection generator, and the type content corresponding to the single type format is converted into the preset type data through the reflection generator to output the preset type data; If the data format type is the type array format, the type array object reflection generator is used as the reflection generator, and the type content corresponding to the type array format is converted into the preset type data through the reflection generator to output the preset type data.
8. A simulation data type reflection device, characterized in that: include: A data acquisition module is used to acquire production process data of the target scene; The production process data is stored in a pre-allocated memory space, and the target scene includes a steel metallurgical production scene; A format conversion module, used to use the production process data as simulation data and convert the simulation data into data in a preset format; The preset format data includes at least one of single type format data, type array format data and composite type format data; A type determination module, used to determine a data format type and a type content corresponding to the data format type from the preset format data, and determine a reflection generator according to the data format type; A type conversion module is used to convert the type content corresponding to the data format type into preset type data through the reflection generator, and the preset type data is applied to the simulation process of the target scene.
9. The simulation data type reflection device according to claim 8, characterized in that: The device also includes: A data acquisition module, used to collect the production process data; the production process data includes temperature data, composition data and equipment status data; A data interface module is used to transmit the preset format data to the type determination module.
10. A simulation device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the simulation device to implement the simulation data type reflection method as described in any one of claims 1 to 7.