File format conversion method and device, terminal equipment and storage medium

By reading, analyzing and mapping relationship configuration of CDB files, the conversion from CDB file format to INP file format is realized, solving the problem of inefficient cross-platform data exchange, improving the accuracy and efficiency of simulation analysis, and promoting the standardization of the field of ship structure simulation.

CN120353757APending Publication Date: 2025-07-22CHINA SHIP SCIENTIFIC RESEARCH CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510356891.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In the prior art, the CDB and INP file formats between ANSYS and finite element analysis software such as Marine Industry Software (SAM), ABAQUS, etc. are incompatible, resulting in inefficient cross-platform data exchange and model conversion, and frequent simulation errors, hindering the standardization process in the field of ship structure simulation.

Method used

Provide a file format conversion method, by reading keyword identification in the CDB file, analyzing the data segment, and converting the CDB file format into INP file format based on the preset mapping relationship configuration table, including mapping conversion of unit type, node information, material information and cross-section information, to generate beam and shell unit information that conforms to the INP file format.

Benefits of technology

It realizes efficient and accurate conversion of CDB files to INP files, improves the work efficiency of cross-platform simulation analysis, reduces simulation errors, and promotes the standardization process in the field of ship structure simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353757A_ABST
    Figure CN120353757A_ABST
Patent Text Reader

Abstract

The invention relates to a file format conversion method and device, terminal equipment and a storage medium. A file format conversion method is used for converting a CDB file format into an INP file format, and during file format conversion, the method comprises the following steps that a CDB file is read, and the CDB file comprises a data segment related to a beam unit or a shell unit and a first keyword identifier corresponding to the data segment; analyzing the CBD file to obtain a data segment and a first keyword identifier; obtaining a mapping relationship between the first keyword identifier and a second keyword identifier in the INP file from a preset mapping relationship configuration table; and based on the mapping relationship, performing INP file format conversion on the data segment to obtain an INP file containing beam unit information or shell unit information. According to the method, the simulation calculation requirement in actual engineering can be met, the calculation precision is high, cross-platform simulation analysis of the finite element model is achieved, the working efficiency can be remarkably improved, and the standardization process of the ship structure simulation field is effectively promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of finite element simulation of ship structures, and in particular to a file format conversion method, device, terminal equipment and storage medium. Background Art

[0002] In the field of modern engineering, simulation and analysis technology has become an indispensable means of various designs and researches; finite element analysis (FEA), as a common numerical analysis method, is widely used in many fields such as structural mechanics, thermodynamics, and electromagnetism.

[0003] In the prior art, commonly used finite element analysis software include ANSYS, Ship Industry Software (SAM), ABAQUS, etc. ANSYS is a widely used finite element analysis software. With its powerful functions and precise computing capabilities, it has been widely used in aerospace, automobile, civil engineering and other industries. It has a rich unit library and can simulate a variety of physical phenomena, such as structural mechanics, thermodynamics, electromagnetism, etc. It has a powerful meshing function and can perform high-quality meshing on complex geometric models. It also supports a variety of solvers and can efficiently solve various engineering problems. Ship Industry Software (SAM) focuses on marine structure analysis, optimizes the characteristics of ship structures, has efficient ship structure modeling functions, and can quickly create complex ship structure models. It has professional algorithms for analyzing ship structure strength, vibration, stability, etc., with high calculation accuracy, and can simulate the mechanical response of ships in complex marine environments. ABAQUS is a large-scale general-purpose finite element analysis software that performs well in nonlinear analysis and can handle complex problems such as material nonlinearity, geometric nonlinearity and contact nonlinearity. It has a rich material model library and can accurately simulate the mechanical behavior of various materials. The solver is robust and efficient and can handle large-scale complex model calculations. However, ANSYS uses the CDB file format for data storage, while Ship Industry Software (SAM) and ABAQUS both use the INP file format for data storage; the CDB file format and the INP file format are incompatible with each other. How to quickly, efficiently and accurately perform cross-platform data exchange and model conversion has become an important challenge that needs to be urgently solved in engineering simulation. Summary of the invention

[0004] In view of the shortcomings in the above-mentioned existing production technology, the applicant provides a reasonably structured file format conversion method, device, terminal equipment and storage medium, which can convert the CDB file format into the INP file format, meet the simulation calculation requirements in actual engineering and have high calculation accuracy, thereby realizing cross-platform simulation analysis of finite element models, significantly improving work efficiency, reducing simulation errors caused by data conversion, and effectively promoting the standardization process in the field of ship structure simulation.

[0005] The technical solution adopted by the present invention is as follows:

[0006] A file format conversion method for converting the CDB file format to the INP file format. When performing file format conversion, it includes the following steps:

[0007] Read the CDB file, where the CDB file contains a data segment related to beam elements or shell elements, and a first keyword identifier corresponding to the data segment;

[0008] Parse the CBD file to obtain the data segment and the first keyword identifier;

[0009] Obtain the mapping relationship between the first keyword identifier and the second keyword identifier in the INP file from a preset mapping relationship configuration table;

[0010] Based on the mapping relationship, convert the data segment into the INP file format, thereby obtaining an INP file containing beam element information or shell element information.

[0011] As a further improvement of the above technical solution:

[0012] The data segment related to beam elements or shell elements in the CDB file includes element type information, real constant information, first node information, first element information, first material information, and first section information.

[0013] The INP file format includes second node information, second element information, second material information, and second section information.

[0014] When mapping and converting the first node information into the second node information, it includes the following steps:

[0015] Read the first node information to obtain the ID and coordinates of each node in the first node information;

[0016] Based on the mapping relationship, convert the first node information into the second node information according to the ID and coordinates of each node.

[0017] When converting the first element information into the second element information, it includes the following steps:

[0018] Read the first element information, element type information, first material information, and first section information to obtain the element type, material property, and section type;

[0019] Based on the mapping relationship, convert the first element information into the second element information according to the element type;

[0020] If the first element information contains special elements, store the special elements in a private data structure;

[0021] Slice the units in the second unit information according to the material properties, unit types, and cross-section types in the second unit information to generate a unit set.

[0022] When converting the first material information to the second material information, the following steps are included:

[0023] Based on the mapping relationship, convert the first material information to the second material information according to the material properties.

[0024] When converting the first cross-section information to the second cross-section information, the following steps are included:

[0025] Convert the first cross-section information to the second cross-section information according to the unit set and the cross-section type;

[0026] Associate the material names in the material properties with the unit set so that the second cross-section information can reference the material properties.

[0027] A file format conversion device includes:

[0028] A first reading module for reading a CDB file;

[0029] A parsing module for parsing the CBD file to obtain the data segment and the first keyword identifier;

[0030] A second reading module for obtaining the mapping relationship between the first keyword identifier and the second keyword identifier in the INP file from a preset mapping relationship configuration table;

[0031] A conversion module, based on the mapping relationship, converts the data segment into the INP file format to obtain an INP file containing beam element information or shell element information.

[0032] A terminal device includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the file format conversion method described above are implemented.

[0033] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the file format conversion method described above are implemented.

[0034] The beneficial effects of the present invention are as follows:

[0035] The structure of the present invention is compact and reasonable, and the operation is convenient. By reading, parsing the CDB file and performing format conversion based on the mapping relationship, the beam and shell type units in the CDB file can be automatically, quickly and accurately converted into the INP file format that can be read by shipbuilding industry software (SAM) and ABAQUS software, which can effectively solve the problem of cross-platform data exchange and enable the data between different software to be smoothly converted and shared. Description of the Drawings

[0036] Figure 1 It is a flow chart of the present invention.

[0037] Figure 2 It is a schematic diagram of the cross-sectional shapes of the beam unit and the shell unit in the present invention. Detailed Embodiments

[0038] The following will describe the detailed embodiments of the present invention with reference to the accompanying drawings.

[0039] As Figure 1 - Figure 2 shown, one embodiment of the present application proposes a file format conversion method for converting the CDB file format into the INP file format. When performing file format conversion, the following steps are included:

[0040] S1. Read the CDB file. The CDB file contains a data segment related to beam elements or shell elements, and a first keyword identifier corresponding to the data segment;

[0041] CDB is a common file format in ANSYS software for storing information such as the geometry, nodes, elements, materials and loads of a finite element model; the CDB file usually starts with a header data for describing the overall information of the file, including the creation date, time, software version number, etc. of the file;

[0042] The data segment related to beam elements or shell elements in the CDB file includes element type information, real constant information, first node information, first element information, first material information and first section information;

[0043] S1.1. The element type information is the element type data starting with the keyword "ET", which records the number of each element type. Each line of ET may have supplementary explanations for this type, starting with "KEYOP";

[0044] S1.2. The real constant information starts with the keyword "RLBLOCK" and records the specific parameters of the element types used in the model. For example, the real constant data of the beam element includes beam section information;

[0045] ANSYS also defines real constants to represent the area, moment of inertia, thickness, etc. values of certain specific elements;

[0046] S1.3. The first node information starts with the keyword "NBLOCK" and records the definitions of all nodes in the model. Each node consists of a unique node number and its corresponding three-dimensional coordinates.

[0047] S1.4. The first element information starts with the keyword "EBLOCK" and records the definitions of all elements in the model. Different types of elements (such as point elements, line elements, surface elements, solid elements, etc.) have their own formats and attributes, and the data formats of the same element type may also vary. It is necessary to parse according to the data definitions of each element in the ANSYS instruction manual. For example, for the SHELL181 element, there are two cases of three-node and four-node, which need to be distinguished according to the different lengths of the read data.

[0048] S1.5. The first material information starts with the keywords "MPTEMP" and "MPDATA". Each material has a set of specific mechanical properties, and the material information that varies with temperature can also be defined, such as elastic modulus, Poisson's ratio, density, etc.

[0049] S1.6. The first section information usually starts with "SECBLOCK", records the section type number and type, and the keyword "SECDATA" starts to define the shape parameters of this section type. The next line keyword "SECOFFSET" starts to define the offset of the beam.

[0050] S1.7. In addition, the data segments related to beam elements or shell elements in the CDB file also include analysis step information, load information, constraint information, and other types of information, such as contact definitions, initial conditions, post-processing options, etc., to support specific analysis requirements.

[0051] The analysis step information starts with the keyword "ANTYPE" and records the information of the analysis step type, usually including information such as static analysis, general calculation, and linear perturbation and frequency analysis steps corresponding to modal analysis. The data in the next two lines are the solver type and analysis method parameters respectively.

[0052] The load information starts with the keyword "SFE" and records the loading conditions applied to the structure in the model, such as displacement, force, pressure, temperature, etc. The load can be applied to specific nodes, elements, or boundaries.

[0053] The constraint information usually starts with the keyword "CE" and records the constraint information in the model, which is used to restrict the degrees of freedom of the structure.

[0054] S2. Parse the CBD file to obtain the data segment and the first keyword identifier.

[0055] The first keyword identifiers related to beam and shell elements in the CBD file include "ET" (corresponding to element type information), "RLBLOCK" (corresponding to real constant information), "NBLOCK" (corresponding to the first node information), "EBLOCK" (corresponding to the first element information), "MP" (corresponding to the first material information), and "SEC" (corresponding to the first section information);

[0056] S2.1. In the CDB format file of ANSYS software, the ET first keyword identifier is used to define a local element type, select an element type from the element library, and set it as the local element type of the current model;

[0057] S2.2. The RLBLOCK first keyword identifier is used to define a set of real constant sets. Real constant sets are usually used to define material properties, section properties, etc., which are necessary in finite element analysis.

[0058] S2.3. The NBLOCK first keyword identifier is used to define a node block, which is the recommended method to input node data into the Mechanical APDL database in the form of a block.

[0059] S2.4. The EBLOCK first keyword identifier is used to define an element block, which is the recommended method to input element data into the Mechanical APDL database in the form of a block.

[0060] S2.5. The MP first keyword identifiers (including MPDATA and MPTEMP) are used to define the relationship between material properties and temperature;

[0061] The MPDATA first keyword identifier is used to define a material property data table, and this command can be reused until all properties are defined;

[0062] The MPTEMP first keyword identifier is used to define a temperature table, and this command can be reused until all temperature values are defined;

[0063] S2.6. The SECTYPE first keyword identifier is used to define the section type and section ID;

[0064] The REFINEKEY first keyword identifier is used to define the mesh refinement degree of the thin-walled beam section, ranging from 0 to 5, which is only meaningful when Type = BEAM;

[0065] The SECDATA first keyword identifier is used to define the geometric dimensions of the section;

[0066] The first keyword identifier of SECNUM is used to assign a section ID number to the subsequently defined elements;

[0067] S3. Obtain the mapping relationship between the first keyword identifier and the second keyword identifier in the INP file from the preset mapping relationship configuration table;

[0068] The mapping relationship configuration table includes an element type mapping table, a material mapping table, a section type mapping table, and a section conversion mapping table;

[0069] Among them, the element type mapping table is shown in Table 1:

[0070] Table 1 Element Type Mapping Table

[0071]

[0072] In Table 1, the number of nodes of the SOLID type element in ANSYS is not fixed, and the element type needs to be determined according to the number of nodes read. For example, if 6 nodes follow the SOLID element, it is converted to the C3D6 element;

[0073] The material mapping table is shown in Table 2:

[0074] Table 2 Material Mapping Table

[0075] Material types in CDB format Material types in INP file DENS MATERIAL, DENSITY NUXY or PRXY MATERIAL, ELASTIC, TYPE = ISO NUXY or PRXY MATERIAL, ELASTIC, TYPE = LAMINA CTEX or ALPX MATERIAL, EXPANSION, TYPE = ISO CTEX or ALPX MATERIAL, EXPANSION, TYPE = ORTHO

[0076] The section type mapping table is shown in Table 3:

[0077] Table 3 Section Type Mapping Table

[0078]

[0079] During the conversion process, attention needs to be paid to the processing of beam element sections, the definition of physical properties, and the integral point setting method. A conversion method that is unified with the solvers of shipbuilding industry software (SAM) and ABAQUS software needs to be used;

[0080] Combined with Figure 2 , the section conversion mapping table is shown in Table 4:

[0081] Table 4 Section Conversion Mapping Table

[0082]

[0083] In Table 4, the cross-sectional shape of the angle steel is as shown in (a) of Figure 2 , the cross-sectional shape of the box girder is as shown in (b) of Figure 2 , the cross-sectional shape of the round bar is as shown in (c) of Figure 2 , the cross-sectional shape of the round tube is as shown in (d) of Figure 2 In (e) ofFigure 2 as shown in (e) in

[0084] In the INP file, the T-shaped section is defined using the same statement as the I-beam section, and its bottom plate length l2 is defined as 0 and the bottom plate thickness t8 is defined as 0;

[0085] S4. Based on the mapping relationship, convert the data segment into the INP file format to obtain an INP file containing beam element information or shell element information;

[0086] The INP file format includes second node information, second element information, second material information, and second section information;

[0087] S4.1. When mapping and converting the first node information into the second node information, the following steps are included:

[0088] Read the first node information to obtain the ID and coordinates of each node in the first node information;

[0089] Based on the mapping relationship, convert the first node information into the second node information according to the ID and coordinates of each node.

[0090] S4.2. When converting the first element information into the second element information, the following steps are included:

[0091] Read the first element information, element type information, first material information, and first section information to obtain the element type, material properties, and section type;

[0092] Based on the mapping relationship, convert the first element information into the second element information according to the element type;

[0093] If the first element information contains special elements, store the special elements in a private data structure;

[0094] Slice the elements in the second element information according to the material properties, element type, and section type in the second element information to generate an element set.

[0095] S4.3. When converting the first material information into the second material information, the following steps are included:

[0096] Based on the mapping relationship, convert the first material information into the second material information according to the material properties.

[0097] S4.4. When converting the first section information into the second section information, the following steps are included:

[0098] Convert the first section information into the second section information according to the element set and section type;

[0099] Associate the material name in the material properties with the unit set, so that the second cross-sectional information can reference the material properties.

[0100] Based on the same inventive concept, an embodiment of the present application also proposes a file format conversion device, including a first reading module, a parsing module, a second reading module, and a conversion module; wherein,

[0101] The first reading module is used to read the CDB file;

[0102] The parsing module is used to parse the CBD file to obtain a data segment and a first keyword identifier;

[0103] The second reading module is used to obtain the mapping relationship between the first keyword identifier and the second keyword identifier in the INP file from a preset mapping relationship configuration table;

[0104] The conversion module, based on the mapping relationship, converts the data segment into the INP file format, so as to obtain an INP file containing beam element information or shell element information;

[0105] The implementation solutions for solving problems provided by the above device are similar to the implementation solutions described in the above method. Therefore, the specific limitations of each module in the embodiment of the file format conversion device can be referred to the limitations of the file format conversion method in the above text, and will not be elaborated here;

[0106] It should be noted that each module in the above device can be implemented in whole or in part by software, hardware, and their combinations. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above each module.

[0107] Based on the same inventive concept, an embodiment of the present application also proposes a terminal device, including a processor, a memory, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the above file format conversion method;

[0108] In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor is generally used to control the overall operation of the computer device, such as performing control and processing related to data interaction or communication with the computer device. In this embodiment, the processor is used to run the program code stored in the memory or process data, such as running the program code for converting the CDB file format into the INP file format;

[0109] The memory at least includes one type of computer-readable storage medium. The readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory may be an internal storage module of the computer device, such as the hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of the computer device, such as the plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. equipped on the computer device. Of course, the memory may also include both the internal storage module and the external storage device of the computer device. In this embodiment, the memory is generally used to store the operating system and various application software installed on the computer device, such as storing the program code for converting the CDB file format to the INP file format, ANSYS software, shipbuilding industry software (SAM), ABAQUS software, etc. In addition, the memory can also be used to temporarily store various data that have been output or will be output.

[0110] Based on the same inventive concept, one embodiment of this application also proposes a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, server, App application mall, etc., on which a computer program is stored. When the program is executed by a processor, corresponding functions are implemented. The computer program stored on the computer-readable storage medium of this embodiment, when executed by the processor, implements the steps of the above file format conversion method.

[0111] The above description is an explanation of the present invention, not a limitation of the invention. The scope defined by the present invention can be seen in the claims. Within the protection scope of the present invention, any form of modification can be made.

Claims

1. A file format conversion method, characterized in that: For converting the CDB file format to the INP file format, when performing the file format conversion, the following steps are included: Read the CDB file, where the CDB file contains a data segment related to beam elements or shell elements, and a first keyword identifier corresponding to the data segment; Parse the CBD file to obtain the data segment and the first keyword identifier; Obtain the mapping relationship between the first keyword identifier and the second keyword identifier in the INP file from a preset mapping relationship configuration table; Based on the mapping relationship, convert the data segment into the INP file format, thereby obtaining an INP file containing beam element information or shell element information.

2. The document format conversion method according to claim 1, wherein: The data segment related to beam elements or shell elements in the CDB file includes element type information, real constant information, first node information, first element information, first material information, and first section information.

3. The file format conversion method according to claim 2, wherein: The INP file format includes second node information, second element information, second material information, and second section information.

4. The document format conversion method according to claim 3, characterized in that: When mapping and converting the first node information into the second node information, the following steps are included: Read the first node information to obtain the ID and coordinates of each node in the first node information; Based on the mapping relationship, convert the first node information into the second node information according to the ID and coordinates of each node.

5. The file format conversion method according to claim 3, characterized in that: When converting the first element information into the second element information, the following steps are included: Read the first element information, element type information, first material information, and first section information to obtain the element type, material property, and section type; Based on the mapping relationship, convert the first element information into the second element information according to the element type; If the first element information contains special elements, store the special elements in a private data structure; According to the material property, element type, and section type in the second element information, slice the elements in the second element information to generate an element set.

6. The file format conversion method according to claim 5, characterized in that: When converting the first material information into the second material information, the following steps are included: Based on the mapping relationship, convert the first material information into the second material information according to the material property.

7. The document format conversion method according to claim 6, wherein: When converting the first section information into the second section information, the following steps are included: Convert the first section information into the second section information according to the element set and section type; Associate the material name in the material property with the element set, so that the second section information can reference the material property.

8. A file format conversion device, characterized in that: Include: A first reading module for reading the CDB file; A parsing module for parsing the CBD file to obtain the data segment and the first keyword identifier; A second reading module for obtaining the mapping relationship between the first keyword identifier and the second keyword identifier in the INP file from a preset mapping relationship configuration table; A conversion module that, based on the mapping relationship, converts the data segment into the INP file format, thereby obtaining an INP file containing beam element information or shell element information.

9. A terminal device, characterized in that: It includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the file format conversion method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the file format conversion method according to any one of claims 1-7 are implemented.