Method, system and equipment for multi-structured conversion of list type grid data and readable storage medium

By reading the OpenFOAM data source and converting it into formats such as CGNS, Inp and HDF5, it solves the problem of insufficient research on OpenFOAM data format conversion, realizes automated conversion and multi-format support, and improves the efficiency and accuracy of data conversion.

CN118569128APending Publication Date: 2024-08-30NORTHWEST UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410655553.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing technologies have little research on post-processing conversion of OpenFOAM data format, and are highly specific and cannot convert multiple formats, resulting in limited data conversion efficiency and accuracy.

Method used

Provide a method for multi-structured conversion of tabular grid data. By reading the OpenFOAM data source, classifying, encapsulating and storing grid data, boundary data and flow field data, and designing a template format to convert the grid data format into CGNS. , Inp and HDF5 and other common CFD data formats.

Benefits of technology

It realizes automatic conversion of OpenFOAM data format, has a short running cycle, and the generated data files can be read normally on other software, expanding the operable space of OpenFOAM and supporting data exchange with multiple CFD software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569128A
    Figure CN118569128A
Patent Text Reader

Abstract

The invention provides a multi-structured list type grid data conversion method, system and device and a readable storage medium, and the method comprises the steps: reading an OpenFOAM data source, obtaining grid data, boundary data and flow field data of the OpenFOAM data source, and carrying out the classification, summarization, packaging and storage of the grid data, the boundary data and the flow field data; classifying, packaging and storing the grid data according to grid unit types; classifying, packaging and storing the boundary data according to different boundaries; classifying, packaging and storing the flow field data of different time steps; designing a file basic template format; and outputting the packaged and stored grid data, boundary data and flow field data to corresponding file positions according to a design template format to complete data conversion. According to an OpenFOAM data file, grid data and flow field data are converted based on different file format differences, and a file in a corresponding format is generated, so that the file can serve as a module to be nested in software and can also be directly imported into CFD software supported by the format.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data conversion, and in particular to a method, system, device and readable storage medium for converting multi-structured tabular grid data. Background Art

[0002] OpenFOAM is an open source computational fluid dynamics (CFD) software package that uses a specific data format to represent the mesh and field data required for simulations. The data format plays a crucial role in OpenFOAM because it determines how simulation data is stored, read, and processed.

[0003] In OpenFOAM, the main data formats include: mesh data format and field data format. Data format conversion technology is of great significance in OpenFOAM because it allows users to exchange and post-process data between different software or between different stages. These technologies include: Mesh format conversion: converting the mesh data format used by OpenFOAM to the format used by other CFD software, or converting the mesh format of other CFD software to the format used by OpenFOAM. This conversion usually needs to consider differences in data structure, connection relationship and boundary conditions. Field data format conversion: converting the field data format in OpenFOAM to the format used by other software, or converting the field data format in other software to the format used by OpenFOAM. This conversion may involve processing of numerical accuracy, data layout and metadata.

[0004] Data format conversion technology usually needs to consider the accuracy, precision and performance of the data to ensure that the converted data can be accurately read and processed. In addition, automated data format conversion tools are also gradually developing to help users perform data conversion and post-processing operations more easily.

[0005] In summary, data conversion technology requires not only high accuracy but also high efficiency. However, the existing technology has little research on the post-processing conversion of OpenFOAM data format files, and is highly specific and complex in structure, and cannot achieve conversion between multiple formats. Summary of the invention

[0006] In order to solve the problems existing in the prior art, the present invention provides a method, system, device and readable storage medium for multi-structured conversion of tabular grid data. According to the OpenFOAM data file, grid data and flow field data are converted based on the differences in different file formats to generate files in corresponding formats, so that it can be nested in the software as a module and can also be directly imported into CFD software supported by the format.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] A method for multi-structured conversion of tabular grid data, comprising the following process,

[0009] Step 1, read the OpenFOAM data source, obtain the grid data, boundary data and flow field data of the OpenFOAM data source, and classify, summarize, encapsulate and store the grid data, boundary data and flow field data;

[0010] Step 2: Classify, package and store the grid data according to the grid unit type;

[0011] Step 3: Classify and encapsulate the boundary data according to different boundaries and store them;

[0012] Step 4, classify and encapsulate the flow field data of different time steps and store them;

[0013] Step 5, design the basic template format of the document;

[0014] Step 6: Output the encapsulated and stored grid data, boundary data and flow field data to the corresponding file location according to the design template format to complete the data conversion.

[0015] Preferably, step 1 specifically includes obtaining the file path by calling the local address of the OpenFOAM data source, writing a function GetFile to obtain all sub-files of the OpenFOAM data source folder, traversing all files and encapsulating and storing grid data, boundary data and flow field data.

[0016] Preferably, in step 2, when the grid data is classified, packaged and stored according to the grid unit type, it includes:

[0017] Based on the grid data, all the faces that make up the grid unit are obtained. Taking a unit as the basis, a unit face is selected as the reference face, the unit face corresponding to the reference face is found, and the correspondence between the points on the face is determined. The point numbers of the two faces are stored in sequence to indicate the connection relationship of this unit.

[0018] Preferably, in step 2, the grid unit types include hexahedron, tetrahedron, prism and polyhedron.

[0019] Preferably, in step 3, boundary condition information in the boundary data is obtained, and the boundary condition information includes boundary surface name, type and unit id, and is classified and stored according to different boundaries.

[0020] Preferably, in step 4, the flow field data is stored in units of field at each time step.

[0021] Preferably, in step 5, designing the basic template format of the file specifically includes: taking the standard CFD file format as a template, designing the CGNS file format through the CGNS standard library; taking the standard Abaqus file format as a template, designing the Inp file format; and designing the HDF5 file format through the HDF5 standard library.

[0022] A system for multi-structured conversion of tabular grid data, comprising a reading module, a classification module, a template format module and an output module;

[0023] The reading module is used to read the OpenFOAM data source and obtain the grid data, boundary data and flow field data of the OpenFOAM data source;

[0024] The classification module is used to classify, package and store grid data according to grid unit types; classify, package and store boundary data according to different boundaries; and classify, package and store flow field data of different time steps;

[0025] The template format module is used to design the basic template format of the file;

[0026] The output module is used to output the encapsulated and stored grid data, boundary data and flow field data to a corresponding file location according to the design template format.

[0027] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for converting multi-structured tabular grid data as described in any one of the above are implemented.

[0028] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of a method for converting multi-structured tabular grid data as described in any one of the above.

[0029] Compared with the prior art, the present invention has the following beneficial technical effects:

[0030] The present invention provides a method for multi-structured conversion of tabular grid data, by adopting a modular process for the grid data format conversion system based on OpenFOAM, the internal conversion is completed automatically, no manual intervention is required, and the operation cycle is short. Compared with the more mature OpenFOAM pre-processing, there are not many methods for OpenFOAM data format conversion, and CGNS, Inp and HDF5 are all CFD general data formats with a wide range of uses, which can be used in conjunction with many software. As an open source fluid calculation software, OpenFOAM has a larger operating space compared to commercial software such as Fluent, and can be nested with this module to complete the integrated realization of fluid calculation to data conversion. The method is clear and definite, and has high feasibility, and the generated data files can be read and displayed normally on other software. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 The overall flow chart of the mesh data format conversion method based on OpenFOAM of the present invention;

[0032] Figure 2 A schematic diagram is provided to explain the method of dealing with point-body connection relationship on a hexahedron;

[0033] Figure 3 A schematic diagram is provided to explain the method of dealing with point-body connection relationship with respect to tetrahedron;

[0034] Figure 4 A schematic diagram is provided to explain the method of dealing with point-body connection relationships with respect to prisms;

[0035] Figure 5 This is a schematic diagram of the packaged CGNS format template;

[0036] Figure 6 This is a schematic diagram of the packaged Inp format template;

[0037] Figure 7 This is a schematic diagram of the packaged HDF5 format template. DETAILED DESCRIPTION

[0038] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0039] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0040] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0041] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0042] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0043] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0044] The invention discloses a method for converting multi-structured tabular grid data, which obtains all data of an OpenFOAM file, summarizes and processes the data, encapsulates the processed data, designs a basic template format of the file, and imports the encapsulated data to complete the conversion of the entire data.

[0045] like Figure 1 As shown, a method for converting multi-structured tabular grid data of the present invention comprises the following steps:

[0046] Step 1: Open the OpenFOAM format file data source and extract the grid information, boundary information and field calculation result information by reading the file content.

[0047] Step 2: Get all the faces of the grid unit from the face information of each unit, take a unit as the reference, and select a unit face as the reference face. Find the unit face (or corresponding point) corresponding to the reference face, and determine the corresponding relationship between the points on the face, so as to represent the connection relationship of this unit.

[0048] Step 3: traverse all grid cells to ensure that the connection relationship and other information are accurate.

[0049] Step 4: The information of boundary conditions in the grid is packaged and stored as a whole by the number of boundaries, and is classified according to the number of boundaries contained in the model created by the user. Each boundary includes the boundary surface name, type, and unit ID of the boundary surface.

[0050] Step 5: The calculation result data of the same field is stored in units of field at each time step.

[0051] Step 6, calculate the CGNS, Inp, and HDF5 file formats.

[0052] Step 7, complete the data conversion for the corresponding file data. CGNS files have very good advantages as a widely used CFD data type. Inp files also have good performance as a standard Abaqus software data type, and HDF5 is excellent in storing large amounts of data files.

[0053] A method for multi-structured conversion of tabular grid data of the present invention adopts a modular process for the grid data format conversion system based on OpenFOAM, and the internal conversion is completed automatically, without manual intervention, and the operation cycle is short. As an open source fluid calculation software, OpenFOAM has a larger operating space compared to commercial software such as Fluent, and can be nested with this module to complete the integrated realization of fluid calculation to data conversion. The method is clear and definite, with high feasibility, and the generated data file can be read and displayed normally on other software. Compared with the more mature OpenFOAM pre-processing, there are not many methods for OpenFOAM data format conversion, and CGNS, Inp and HDF5 are all CFD general data formats with a wide range of uses, which can be used in conjunction with many software.

[0054] Example 1

[0055] A method for multi-structured conversion of tabular grid data, the specific operation steps of the method are as follows:

[0056] Step 1: Read the OpenFOAM data source, identify the model and research domain composition by identifying keywords, extract node coordinates, unit connection relationships, feature boundaries, field data, and classify and summarize them.

[0057] Step 2: Based on the OpenFOAM mesh generation logic, convert the common CFD data format and store the data in containers. Using CGNS, Inp and HDF5 as reference, find out the common basic data formats of these file formats, such as basic points, boundaries and unit topology information.

[0058] Step 3, create a class, first encapsulate by block, then encapsulate by mesh unit type, and finally encapsulate the data of the same mesh type unit. The mesh types include but are not limited to hexahedron, tetrahedron, prism, polyhedron, etc. Figures 2 to 4 The data is stored in the OpenFOAM format, including grid data, boundary information, and field calculation result data, and is stored according to the grid type.

[0059] Step 4: traverse all grid cells to ensure that the data within the same grid is accurate.

[0060] Step 5, process the grid boundary condition data obtained in step 3, create boundary classes according to boundary names, and store them according to different boundary categories.

[0061] Step 6, process the OpenFOAM field calculation result data, classify and store the data of different time steps, and classify and store the calculation results of different fields in the same time step.

[0062] Step 7: Design the structure of the data conversion file, taking the HDF5 file and CGNS structure as examples.

[0063] Step 8, output the template-based HDF5 and CGNS files, and output the encapsulated grid data, boundary data and field data to the corresponding locations.

[0064] Example 2

[0065] A method for multi-structured conversion of tabular grid data, the specific operation steps of the method are as follows:

[0066] Step 1, firstly, call and open the OpenFOAM format file data source by obtaining the file address, and extract the grid information and field calculation result information, including but not limited to the pressure field, velocity field, temperature field and component field.

[0067] Step 2, obtain the OpenFOAM class mesh information, boundary information, and calculation result information. By judging, classify and store the units of different mesh types, such as hexahedron, tetrahedron, prism, etc. The logic of surface mesh generation in OpenFOAM is that the nodes are arranged clockwise in the direction of the surface normal, while the INP files of Abaqus, the CGNS files of CFD, and the HDF5 files are the opposite, that is, counterclockwise.

[0068] The specific conversion method of the grid in this embodiment is:

[0069] Get all the faces that make up the mesh unit, take a unit as the reference, and select a unit face as the reference face. Find the unit face corresponding to the reference face (tetrahedron finds the corresponding point of the reference face, such as Figure 3As shown in the figure, the corresponding relationship between each point on the surface is determined. The point numbers of the two surfaces are stored in order to indicate the connection relationship of this unit.

[0070] Step 3: traverse the container storing all unit connection relationships to ensure that the connection relationships therein are accurate.

[0071] Step 4: Classify and store the boundary condition information obtained in step 2, mainly including the boundary surface name, type, unit IDs of the processed boundary surface, and the number of boundaries, and package and store them as a whole.

[0072] Step 5, process the calculation result data of different fields, such as the pressure value of each grid unit in the pressure field, the speed of each grid unit in the velocity field in the three directions of X, Y, and Z, etc., and store the data of each time step in units of field.

[0073] Step 6: Using the standard CFD file format as a template, design the CGNS file format through the CGNS standard library; using the standard Abaqus file format as a template, design the Inp file format; and using the HDF5 standard library, design the HDF5 file format.

[0074] Step 7: Output the classified, packaged and stored grid data and field calculation result data to the corresponding file location according to the designed template.

[0075] Example 3

[0076] In the embodiment of the present invention, based on Visual Studio 2017 software, C++ coding implements a series of data conversion operations, including the following steps:

[0077] Step 1: First, build the environment library required for file generation, such as the CGNS standard library, HDF5 standard library, etc., and use the standard library functions to write file data. At the same time, it is also necessary to call the header file to realize the intercommunication of data between codes.

[0078] Step 2, obtain the file path by calling the local address of the OpenFOAM data source, write the GetFile function to obtain all sub-files of the OpenFOAM data source folder, traverse all files and encapsulate and store grid data, boundary data and flow field data.

[0079] Step 3: Convert the point-surface relationship to a point-body relationship. Take a hexahedron as an example. Figure 2As shown, taking the hexahedral unit grid as an example, it is divided into the XY plane (upper and lower), XZ plane (front and back) and YZ plane (left and right). Taking the XY plane (lower) as the reference plane, the XY plane (upper) opposite to it is called the opposite plane. By determining the common points of the planes, the YZ (left), XZ plane (back), and YZ (right) are determined. Then, by determining the common points of the YZ (left) and XZ plane (back), the order of the first two points of the opposite plane is determined. By determining the common points of the YZ (right) and XZ plane (back), the order of the last two points of the opposite plane is determined. In this way, all the node orders of the hexahedral unit are exited, and the processed order is stored in Vector.

[0080] Step 4, traverse the point-body relationship Vector, find the unit with incorrect connection relationship, exit and return the error unit id.

[0081] Step 5: Find the boundary condition information of the grid using the format of the keyword Key Value, including the name, type, and face id range index. Obtain the boundary cell id range index one by one through the Owner file.

[0082] Step 6: traverse all result folders and store the flow field data in formats with different time steps.

[0083] Step 7, design CGNS, Inp and HDF5 format files as follows Figure 5 , 6 As shown in ,7, the grid data and process data are output to complete the data format conversion.

[0084] The following are device embodiments of the present invention, which can be used to perform method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.

[0085] In another embodiment of the present invention, a computer device is provided, the computer device including a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding functions; the processor described in the embodiment of the present invention can be used for the operation of the Internet advertising false traffic identification method.

[0086] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the method for identifying false traffic of Internet advertisements in the above embodiment.

[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

[0092] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.

[0093] In addition, it should be understood that although this specification is described in accordance with the implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation modes that can be understood by those skilled in the art. The above content is only to illustrate the technical idea of ​​the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution according to the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A method for multi-structured conversion of tabular grid data, characterized in that: Including the following process, Step 1, read the OpenFOAM data source, obtain the grid data, boundary data and flow field data of the OpenFOAM data source, and classify, summarize, encapsulate and store the grid data, boundary data and flow field data; Step 2: Classify, package and store the grid data according to the grid unit type; Step 3: Classify and encapsulate the boundary data according to different boundaries and store them; Step 4, classify and encapsulate the flow field data of different time steps and store them; Step 5, design the basic template format of the document; Step 6: Output the encapsulated and stored grid data, boundary data and flow field data to the corresponding file location according to the design template format to complete the data conversion.

2. A method for converting multi-structured tabular grid data according to claim 1, characterized in that: In step 1, specifically, the file path is obtained by calling the local address of the OpenFOAM data source, the function GetFile is written to obtain all sub-files of the OpenFOAM data source folder, all files are traversed and the grid data, boundary data and flow field data are encapsulated and stored.

3. The method for converting multi-structured tabular grid data according to claim 1, characterized in that: In step 2, the grid data is classified and packaged according to the grid unit type, including: Based on the grid data, all the faces that make up the grid unit are obtained. Taking a unit as the basis, a unit face is selected as the reference face, the unit face corresponding to the reference face is found, and the correspondence between the points on the face is determined. The point numbers of the two faces are stored in sequence to indicate the connection relationship of this unit.

4. The method for converting multi-structured tabular grid data according to claim 1, characterized in that: In step 2, the mesh unit types include hexahedron, tetrahedron, prism, and polyhedron.

5. The method for converting multi-structured tabular grid data according to claim 1, characterized in that: In step 3, the boundary condition information in the boundary data is obtained, and the boundary condition information includes the boundary surface name, type and unit id, and is classified and stored according to different boundaries.

6. The method for converting multi-structured tabular grid data according to claim 1, characterized in that: In step 4, the flow field data is stored in units of field at each time step.

7. The method for converting multi-structured tabular grid data according to claim 1, characterized in that: In step 5, the basic template format of the design file specifically includes taking the standard CFD file format as a template and designing the CGNS file format through the CGNS standard library; The Inp file format is designed using the standard Abaqus file format as a template; the HDF5 file format is designed using the HDF5 standard library.

8. A system for multi-structured conversion of tabular grid data, characterized in that: It includes a reading module, a classification module, a template format module and an output module; The reading module is used to read the OpenFOAM data source and obtain the grid data, boundary data and flow field data of the OpenFOAM data source; The classification module is used to classify, encapsulate and store the grid data according to the grid unit type; Classify and encapsulate boundary data according to different boundaries and store them; Classify and package the flow field data of different time steps for storage; The template format module is used to design the basic template format of the file; The output module is used to output the encapsulated and stored grid data, boundary data and flow field data to a corresponding file location according to the design template format.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps of a method for converting multi-structured tabular grid data as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a method for converting multi-structured tabular grid data as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Fluid simulation-oriented arbitrary polyhedral grid data structure and traversing method

    CN121033325A

  • Boundary physical quantity calculation method for OpenFOAM unsteady state simulation result

    CN121145734A

  • A method for calculating boundary surface physical quantities based on OpenFOAM unsteady-state simulation results

    CN121145734B

  • Method for fusing OpenFOAM unsteady state simulation result boundary surface Euler field domain data

    CN122021429A