CN106294606A - A kind of CAE document conversion method based on general read-write framework and device - Google Patents

A kind of CAE document conversion method based on general read-write framework and device Download PDF

Info

Publication number
CN106294606A
CN106294606A CN201610617683.4A CN201610617683A CN106294606A CN 106294606 A CN106294606 A CN 106294606A CN 201610617683 A CN201610617683 A CN 201610617683A CN 106294606 A CN106294606 A CN 106294606A
Authority
CN
China
Prior art keywords
file
model
configuration
row
cae
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610617683.4A
Other languages
Chinese (zh)
Other versions
CN106294606B (en
Inventor
王文
阮进喜
湛意
齐明旭
赵弋飞
阮国辉
陈嘉嘉
王红梅
郑梓鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lanwei Technology Co Ltd
Original Assignee
Beijing Lanwei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lanwei Technology Co Ltd filed Critical Beijing Lanwei Technology Co Ltd
Priority to CN201610617683.4A priority Critical patent/CN106294606B/en
Publication of CN106294606A publication Critical patent/CN106294606A/en
Application granted granted Critical
Publication of CN106294606B publication Critical patent/CN106294606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of CAE document conversion method based on general read-write framework and device, described conversion method includes: S1, the file content pressed in row order reading model file A;Each row file content in described model file A is mapped in unified data model by the reading configuration file that S2, basis are pre-configured with in general read-write framework according to the format analysis of described model file A;S3, it is model file B by unified data model according to the format mapping of model file B according to the configuration file of writing being pre-configured with in general read-write framework.Invention introduces general read-write framework and middle bridge unified data model, by writing reading configuration file in general read-write framework and writing configuration file, and combine unified data model and jointly the model file A produced in CAE data handling procedure is converted to the model file B of different-format, it is achieved that the mutual conversion between the model file of different-format.

Description

A kind of CAE document conversion method based on general read-write framework and device
Technical field
The present invention relates to CAE model file conversion art, be specifically related to a kind of CAE file based on general read-write framework and turn Change method and device.
Background technology
Business CAE software the most all can attach pre-processing software and the poster processing soft of specialty, mostly supports main flow business The input of CAE model.The most also the mutual conversion between indirect implementation model, such as: be to support mutually between ABAQUS and NASTRAN Phase transformation.
HyperWorks to be mentioned, it has special pre-processing software HyperMesh.HyperMesh speciality exists Function in stress and strain model.HyperMesh supports the most different solver input/output formats simultaneously, is so utilizing After Hypermesh has divided the finite element grid of model, directly computation model can be changed into different solver trays Formula, thus utilize corresponding solver to calculate.
HyperMesh can do pre-treatment for all main flow solvers, is not only in that its mesh quality is the best, also resides in Its diversified template, can be output as user-defined form by the proprietary format of HyperMesh by template.But HyperMesh provides only the reader of binary system (.exe or .dll) when reading the model file of specific format (reader).Obviously can be restricted when user wants the read functions extending HyperMesh (because user there is no telling reading Take the implementation rule of device).
For summary, the mode of HyperMesh is worth using for reference.But HyperMesh is expensive, for medium-sized and small enterprises Heavy load.Removing price problem, these business CAE softwares lack the support to CAE model of increasing income substantially.Such as Code_ The model format above-mentioned business CAE software of Aster does not the most provide directly support.If user wants to be supported by self-defining mode The model file of new type reads in the most difficult.
It also is provided with the scheme of some CAE model files conversion in the most various resources increased income, can save and again make The work of wheel, but problem is the most following.The read write line principle increased income is different, and the computer language of use is the most different, has With C++, some Java, have uses Python.If being all integrated into platform, necessarily bring mixing in Software Engineering Management Disorderly.And what the parsing of the input-output file of business solver was not typically all increased income, it is difficult to find ready-made solution the most from network Certainly scheme.
Summary of the invention
In order to overcome shortcomings and deficiencies of the prior art, the invention provides a kind of CAE based on general read-write framework literary composition Part conversion method and device.
The technical scheme is that
On the one hand, the invention provides a kind of CAE document conversion method based on general read-write framework, at CAE number According to the conversion between all kinds of model files in processing procedure, comprise the following steps:
S1, by row order reading model file A file content;
What S2, basis were pre-configured with in general read-write framework reads configuration file by the every a line in described model file A File content is mapped in unified data model according to the format analysis of described model file A;
What S3, basis were pre-configured with in general read-write framework writes configuration file by unified data model according to model file The format mapping of B is model file B.
The invention have the benefit that and introduce general read-write framework and unified data model, by general read-write Framework write reading configuration file and writes configuration file, and combining unified data model and jointly will CAE data handling procedure be produced Raw model file A is converted to the model file B of different-format, it is achieved that the mutual conversion between different-format model file.
On the basis of technique scheme, the present invention can also improve as follows.
Further, described step S1 specifically includes:
S11, by row order reading model file A, it is judged that whether this row is comment line;
S12, if it is not, identify the region keyword of this row, performs S13;If so, give up this row, return S11, re-read The next line of model file A;
If S13 recognizes region keyword, obtain corresponding area attribute configuration, perform S14;If it is unidentified to region Keyword, then obtain the recording configuration of this row, performs S14;
Containing area attribute or the form configuration item of record, this form in the configuration of S14, area attribute or recording configuration Configuration item gets according to the format description book of the model file A write in advance, and the row content obtained can carry out the inspection of form, If format checking is correct, then perform S2;If format checking mistake, give up this row, then return S11, re-read model file A's Next line.
Comment line in model file A is rejected by described further having the beneficial effect that, and to the area attribute obtained Configuration and recording configuration carry out format checking, reject for incorrect being also carried out of form, it is ensured that data in model file A Correctness.
Further, reading configuration file is configured according to the format description book of the described model file A write in advance.
The described format description book further having the beneficial effect that according to model file A writes reading configuration file, more pin To property.
Further, also include between described step S2 and step S3:
From described reading configuration file, obtain at least one region keyword, and each described region keyword is set Priority level;
For the region keyword of each priority level, search whether the recording configuration of correspondence;
If having, obtain corresponding recording configuration;If no, obtaining corresponding area attribute configuration;
From unified data model, concrete model is got according to the described recording configuration obtained and area attribute configuration Data, perform step S3.
Described further having the beneficial effect that carries out joining of priority to from the region keyword reading to obtain in configuration file Put so that between the recording configuration finally obtained according to regional keyword, there is continuity.
Further, described reading configuration file and described configuration file of writing all use YAML form.
Further, the form of described model file A and the form of described model file B can be all X3D form, json lattice Formula, INP form, BDF form, FRD form, F06 form or VTK form.
The described model further having the beneficial effect that the various different-formats that can be suitably used in CAE file handling procedure Conversion between file, the suitability is extensive.
On the other hand, present invention also offers a kind of CAE file conversion device based on general read-write framework, be used for The conversion between all kinds of model files in CAE data handling procedure, including read module, parsing module and Mapping and Converting mould Block;
Described read module, for the file content by row order reading model file A;
Described parsing module, for civilian by described model according to the reading configuration file being pre-configured with in general read-write framework Each row file content in part A is mapped in unified data model according to the format analysis of described model file A;
Described Mapping and Converting module, for writing configuration file by unification number according to be pre-configured with in general read-write framework It is model file B according to model according to the format mapping of model file B.
The invention have the benefit that and introduce general read-write framework and unified data model, by general read-write Framework write reading configuration file and writes configuration file, and combining unified data model and jointly will CAE data handling procedure be produced Raw model file A is converted to the model file B of different-format, it is achieved that the mutual conversion between different-format model file.
On the basis of technique scheme, the present invention can also improve as follows.
Further, described read module is for being specifically included by row order reading model file A:
By row order reading model file A, it is judged that whether this row is comment line;
If it is not, identify the region keyword of this row, perform next step;If so, give up this row, re-read model file A Next line;
If recognizing region keyword, obtain area attribute configuration;If unidentified to region keyword, then obtain this row Recording configuration, wherein, containing area attribute or the form configuration item of record, these lattice in area attribute configuration or recording configuration Formula configuration item gets according to the format description book of the model file A write in advance;
The inspection of form is carried out by the row content of the described form configuration item model file A to obtaining, if format checking Correctly, then this row is mapped in unified data model;If format checking mistake, then give up this row, re-read model file A Next line.
Comment line in model file A is rejected by described further having the beneficial effect that, and to the area attribute obtained Configuration and recording configuration carry out format checking, reject for incorrect being also carried out of form, it is ensured that data in model file A Correctness.
Further, reading configuration file is configured according to the format description book of the described model file A write in advance.
The described format description book further having the beneficial effect that according to model file A writes reading configuration file, more pin To property.
Further, described Mapping and Converting module is additionally operable to:
From described reading configuration file, obtain at least one region keyword, and each described region keyword is set Priority level;
For the region keyword of each priority level, search whether the recording configuration of correspondence;
If having, obtain corresponding recording configuration;If no, obtaining corresponding area attribute configuration;
From unified data model, concrete model is got according to the described recording configuration obtained and area attribute configuration Data, are mapped to concrete model data in model file B.
Described further having the beneficial effect that carries out joining of priority to from the region keyword reading to obtain in configuration file Put so that between the recording configuration finally obtained according to regional keyword, there is continuity.
Accompanying drawing explanation
Fig. 1 is a kind of based on general read-write framework the CAE document conversion method flow chart of the embodiment of the present invention 1;
Fig. 2 is the transformation process figure of the various model files produced in CAE data handling procedure;
Fig. 3 is the schematic diagram that embodiment 1 peripheral file is converted to internal file;
Fig. 4 is that embodiment 1 utilizes general read-write framework to realize the transition diagram between different model file;
Fig. 5 is a kind of based on general read-write framework the CAE file conversion device schematic diagram of the embodiment of the present invention 2.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining the present invention, and Non-for limiting the scope of the present invention.
Embodiment 1, a kind of CAE document conversion method based on general read-write framework.
Seeing Fig. 1, the CAE document conversion method based on general read-write framework that the present embodiment provides includes:
S1, by row order reading model file A file content.
Concrete, during CAE data process, the model file of various different-format can be there is, these literary compositions Part can be largely classified into two classes: external file and internal file, wherein, external file mainly includes cad file, CAE grid literary composition Part and solver input-output file;Internal file mainly includes that X3D file, VTK file and solver parameter arrange literary composition Part, internal file can be divided into the most again two classes: the first kind is models show file, (is cad file and CAE including X3D file The web of grid file shows file) and VTK file (post processing result display file);Equations of The Second Kind is that solver parameter arranges literary composition Part (carries out the json file obtained after solver is arranged) on web page.External file can enter with extraneous CAD/CAE software Row is mutual, and internal file is to use at web platform, it is not possible to directly with extraneous CAD/CAE software interactive.
The whole process core of the application is just by file and changes, mainly external file and the conversion of internal file, Such as, the part of 1,2,3 and 4 marks in Fig. 2, during external file is converted to internal file, the core of the application It is introducing intermediate data model, i.e. unified data model, just external file and is converted to unified data model, then by unification number It is internal file according to model conversion, as it is shown on figure 3, i.e. complete the conversion of external file internally file.In some cases also Relate to the mutual conversion between external file, specifically include that the mutual conversion between different types of cad file, dissimilar CAE grid file between mutual conversion, the mutual conversion between different solver input files, such as, all kinds of CAD literary composition Part/CAE grid file is exactly mainly the geological information of model in the conversion of X3D file, cad file/CAE grid file, bag Include point, unit and unit group.The cad model form supported mainly has: .igs .step and .stl;The CAE grid file supported Form has: Calculix (.inp), Code_Aster (.unv), Openfoam are (by literary compositions such as point, faces and boundary Part collection is combined into), NA.NASTRAN (.bdf).All can phase transformation mutually between the model file of these different-formats.Ratio As, the present embodiment wishes to be converted to model file A the model file B of different-format, first with under general read-write framework Reader, by the file content in row order reading model file A, can be found in Fig. 4, for the convenience of follow-up description, model literary composition The file format content of part A can be found in as follows:
* Node, NSET=N1
1,-2.20970058,9.02866745,-36.723629
2,-2.07132006,9.10467529,-36.4850159
3,-1.9632616,9.25493431,-36.2648697
Wherein, this model file A is INP file sample, represents the set (title is N1) being made up of three points, * Node Represent a region beginning, therefore * Node is region keyword, followed by NSET=N1 be area attribute, with comma Separate;Area attribute is presented herein below record, and also with CSV, first element is the sequence 1 of point, 2,3, second to the 4th unit Element is the three-dimensional coordinate of point.
The concrete reading process by the file content in row order reading model file A is: S11, read by row order Model file A, it is judged that whether this row is comment line;S12, if it is not, identify the region keyword of this row, performs S13;If so, give up Abandon this comment line, return S11, read next line content;If S13 recognizes region keyword, obtain area attribute configuration, hold Row S14;If unidentified to region keyword (showing that this row does not has region keyword, it should be record row), then obtain this row Recording configuration, performs S14;In the configuration of S14, area attribute or recording configuration, the form containing area attribute or record configures , this form configuration item gets according to the format description book of the model file A write in advance, the row content obtained can be carried out lattice The inspection of formula, if format checking is correct, then performs S2;If format checking mistake, give up this row, then return S11, re-read mould The next line of type file A.The area attribute of insignificant comment line and format error is configured and recording configuration by the present embodiment All give up, it is ensured that the correctness of the data of extraction.
What S2, basis were pre-configured with in general read-write framework reads configuration file by the every a line in described model file A File content is mapped in unified data model according to the format analysis of described model file A.
Concrete, in this area, model file A is mapped as unified data model and is referred to as serializing Reader, with above-mentioned Reading configuration file corresponding for model file A can be found in as follows:
Wherein, region keyword KEYWORD is that ' * Node ': K_POINT uses between area attribute and region keyword Decollator be comma, also be comma between each record, the priority level of K_POINT is 0 (highest level), area attribute configuration For " %s " (i.e. character string type).Wherein, the configuration file of reading being pre-configured with is based on the form of the model file A write in advance Description, the format description book of model file A describes the specifying information of model file A, such as, separator, area attribute and The form etc. of record.By reading configuration file by each row file content in described model file A according to described model file A The data that are mapped in unified data model of format analysis as follows:
What S3, basis were pre-configured with in general read-write framework writes configuration file by unified data model according to model file The format mapping of B is model file B.
Concrete, in this area, the file content in unified data model is mapped to model file B and is referred to as unserializing Writer, before the file content in unified data model is model file B according to the format mapping of model file B, profit From described reading configuration file, at least one region keyword, such as, above-mentioned reading is obtained with the Writer under general read-write framework K_POINT in configuration file, region keyword the most now is for representing some set, it is also possible to for unit set, unit by Multiple compositions, and obtain the priority level of each described region keyword, such as, when the most a little with unit keyword Time, owing to unit is made up of each point, then the priority level put, higher than the priority level of unit, so can first export Point, the most again by a component units.For the region keyword of each priority level, search whether that the record of correspondence is joined Put;If having, obtain corresponding recording configuration;If no, obtaining corresponding area attribute configuration.Each priority level usual Region keyword must configure there being area attribute, generally also has the recording configuration of correspondence, the most in particular cases It is empty for can also not having the recording configuration of correspondence, i.e. recording configuration.Therefore, below the keyword of region, there is the recording configuration of correspondence Time, then obtaining the recording configuration of this correspondence, if there is no the recording configuration of correspondence, then obtaining the area attribute configuration of correspondence.Then From unified data model, get concrete model data according to the described recording configuration obtained and area attribute configuration, use Concrete model data according to the format mapping of model file B is by the configuration file of writing being pre-configured with in general read-write framework Model file B.Wherein, the object lesson writing configuration file (i.e. the configuration file of unserializing writer) is as follows:
Such as, after the model file A that above-mentioned form is INP is converted to the model file B of X3D form, the X3D lattice of formation One object lesson of the model file of formula is:
<IndexedFaceSet DEF='N1'coordIndex='0 1 2'>
< Coordinate point='-2.20970058 9.02866745-36.723629 ,-2.07132006
9.10467529-36.4850159,-1.9632616 9.25493431-36.2648697'/>
</IndexedFaceSet>
Wherein it is desired to explanation, the present embodiment, on the basis of contrasting a lot of configuration file forms, uses YAML conduct The form of configuration file, YAML form has the advantage that
(1) interactivity of YAML and script is good;
(2) YAML has a consistent information model;
(3) YAML can process based on stream;
(4) YAML ability to express is strong, favorable expandability.
The form of model file A and the form of model file B can be all X3D form, json form, INP form, BDF lattice Formula, FRD form, F06 form or VTK form, it is possible to realize the conversion between the CAE model file of various different-format, suitable Extensive by property.Such as, the mutual conversion of all kinds of CAE pre-processing file, such as, the pre-treatment model of Calculix is INP form, The pre-treatment model of NS_NASTRAN is BDF form, by the INP_Reader under general read-write framework, is changed by INP file For unified data model, then by the BDF_Writer under general read-write framework, unified data model is converted to BDF file, It is achieved thereby that the conversion of INP to BDF.The most such as, the mutual conversion of all kinds of CAE post processing files, such as, after Calculix Processing model is FRD form, and the post processing model of NS_NASTRAN is F06 form, by the FRD_ under general read-write framework Reader, is converted to unified data model by RFD file, then by the F06_Writer under general read-write framework by unification number It is F06 file according to model conversion, it is achieved thereby that the conversion of FRD to F06.
Embodiment 2, a kind of CAE file conversion device based on general read-write framework.
Seeing Fig. 5, the CAE file conversion device based on general read-write framework that the present embodiment provides, in CAE data The conversion between all kinds of model files in processing procedure, including read module 21, parsing module 22 and Mapping and Converting module 23.
Wherein, described read module 21, it is mainly used in the file content by row order reading model file A;
Described parsing module 22, for reading configuration file by the every a line in described model file A according to be pre-configured with File content is mapped in unified data model 22 according to the format analysis of described model file A.
Described Mapping and Converting module 23, be mainly used according to be pre-configured with write configuration file by unified data model 22 by Format mapping according to model file B is model file B.
Wherein, described read module 21, for specifically including by the file content of row order reading model file A:
By row order reading model file A, it is judged that whether this row is comment line;
If it is not, identify the region keyword of this row, perform next step;If so, give up this row, re-read model file A Next line;
If recognizing region keyword, obtain area attribute configuration;If unidentified to region keyword, then obtain this row Recording configuration, wherein, containing area attribute or the form configuration item of record, these lattice in area attribute configuration or recording configuration Formula configuration item gets according to the format description book of the model file A write in advance;
The inspection of form is carried out by the row content of the described form configuration item model file A to obtaining, if format checking Correctly, then this row is mapped in unified data model;If format checking mistake, then give up this row, re-read model file A Next line.
Reading configuration file therein is that the format description book according to the model file A write in advance configures.Described reflect Penetrate modular converter 23 to be additionally operable to:
From described reading configuration file, obtain at least one region keyword, and each described region keyword is set Priority level;
For the region keyword of each priority level, search whether the recording configuration of correspondence;
If having, obtain corresponding recording configuration;If no, obtaining corresponding area attribute configuration;
From unified data model 22, concrete mould is got according to the described recording configuration obtained and area attribute configuration Type data, are mapped to concrete model data in model file B.
Wherein, the form of described model file A and the form of described model file B can be all X3D form, json form, INP form, BDF form, FRD form, F06 form or VTK form, can be suitably used in CAE file handling procedure various not With the conversion between the model file of form, the suitability is extensive.
A kind of based on general read-write framework the CAE document conversion method of present invention offer and device, introduce general Read-write framework and unified data model, by writing reading configuration file in general read-write framework and writing configuration file, and pass through The model file A produced in CAE data handling procedure is converted to the model file B of different-format by unified data model jointly, Achieve the mutual conversion between different-format model file;During reading model file A, by model file A Comment line is rejected, and the area attribute configuration and recording configuration to obtaining carries out format checking, incorrect also for form Reject, it is ensured that the correctness of data in model file A;To carrying out excellent from the region keyword reading to obtain in configuration file The configuration of first level so that between the recording configuration finally obtained according to regional keyword, there is continuity;Model file A and Model file B can be the model file of multiple different-format, can be suitably used for various different-formats in CAE file handling procedure Conversion between model file, the suitability is extensive.
In the description of this specification, reference term " embodiment one ", " example ", " concrete example " or " some examples " Deng description means to combine this embodiment or example describes concrete grammar, device or feature be contained at least the one of the present invention In individual embodiment or example.In this manual, the schematic representation of above-mentioned term is necessarily directed to identical enforcement Example or example.And, the specific features of description, method, device or feature can be with one or more embodiments in office or examples In combine in an appropriate manner.Additionally, in the case of the most conflicting, those skilled in the art can be by this specification The feature of the different embodiments described or example and different embodiment or example is combined and combines.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. a CAE document conversion method based on general read-write framework, for each class model in CAE data handling procedure Conversion between file, it is characterised in that comprise the following steps:
S1, by row order reading model file A file content;
What S2, basis were pre-configured with in general read-write framework reads configuration file by each style of writing part in described model file A Content is mapped in unified data model according to the format analysis of described model file A;
What S3, basis were pre-configured with in general read-write framework writes configuration file by unified data model according to model file B's Format mapping is model file B.
2. CAE document conversion method based on general read-write framework as claimed in claim 1, it is characterised in that described step S1 specifically includes:
S11, by row order reading model file A, it is judged that whether this row is comment line;
S12, if it is not, identify the region keyword of this row, performs S13;If so, give up this row, return S11, re-read model The next line of file A;
If S13 recognizes region keyword, obtain corresponding area attribute configuration, perform S14;If it is unidentified crucial to region Word, then obtain the recording configuration of this row, performs S14;
Containing area attribute or the form configuration item of record in the configuration of S14, area attribute or recording configuration, this form configures Item gets according to the format description book of the model file A write in advance, and the row content obtained can carry out the inspection of form, if lattice Formula checks correct, then perform S2;If format checking mistake, give up this row, then return S11, re-read model file A next OK.
3. CAE document conversion method based on general read-write framework as claimed in claim 2, it is characterised in that according to described The format description book of the model file A write in advance is to configure reading configuration file.
4. CAE document conversion method based on general read-write framework as claimed in claim 3, it is characterised in that described step Also include between S2 and step S3:
From described reading configuration file, obtain at least one region keyword, and the preferential of each described region keyword is set Rank;
For the region keyword of each priority level, search whether the recording configuration of correspondence;
If having, obtain corresponding recording configuration;If no, obtaining corresponding area attribute configuration;
From unified data model, concrete model data is got according to the described recording configuration obtained and area attribute configuration, Perform step S3.
5. the CAE document conversion method based on general read-write framework as described in any one of claim 1 or 3 or 4, its feature exists In, described reading configuration file and described configuration file of writing all use YAML form.
6. CAE document conversion method based on general read-write framework as claimed in claim 1, it is characterised in that described model The form of file A and the form of described model file B can be all X3D form, json form, INP form, BDF form, FRD lattice Formula, F06 form or VTK form.
7. a CAE file conversion device based on general read-write framework, all kinds of model files in CAE data handling procedure Between conversion, it is characterised in that include read module, parsing module and Mapping and Converting module;
Described read module, for the file content by row order reading model file A;
Described parsing module, is used for described model file A according to the reading configuration file being pre-configured with in general read-write framework In each row file content be mapped in unified data model according to the format analysis of described model file A;
Described Mapping and Converting module, for writing configuration file by uniform data mould according to be pre-configured with in general read-write framework Type is model file B according to the format mapping of model file B.
8. CAE file conversion device based on general read-write framework as claimed in claim 7, it is characterised in that described reading Module is for being specifically included by row order reading model file A:
By row order reading model file A, it is judged that whether this row is comment line;
If it is not, identify the region keyword of this row, perform next step;If so, give up this row, re-read under model file A A line;
If recognizing region keyword, obtain area attribute configuration;If unidentified to region keyword, then obtain the record of this row Configuration, wherein, containing area attribute or the form configuration item of record in area attribute configuration or recording configuration, this form is joined Put item to get according to the format description book of the model file A write in advance;
The inspection of form is carried out by the row content of the described form configuration item model file A to obtaining, if format checking is correct, Then this row is mapped in unified data model;If format checking mistake, then give up this row, re-read under model file A A line.
9. CAE file conversion device based on general read-write framework as claimed in claim 8, it is characterised in that according to described The format description book of the model file A write in advance is to configure reading configuration file.
10. CAE file conversion device based on general read-write framework as claimed in claim 9, it is characterised in that described mapping Modular converter is additionally operable to:
From described reading configuration file, obtain at least one region keyword, and the preferential of each described region keyword is set Rank;
For the region keyword of each priority level, search whether the recording configuration of correspondence;
If having, obtain corresponding recording configuration;If no, obtaining corresponding area attribute configuration;
From unified data model, concrete model data is got according to the described recording configuration obtained and area attribute configuration, Concrete model data is mapped in model file B.
CN201610617683.4A 2016-07-29 2016-07-29 A kind of CAE document conversion method and device based on general read-write frame Active CN106294606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610617683.4A CN106294606B (en) 2016-07-29 2016-07-29 A kind of CAE document conversion method and device based on general read-write frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610617683.4A CN106294606B (en) 2016-07-29 2016-07-29 A kind of CAE document conversion method and device based on general read-write frame

Publications (2)

Publication Number Publication Date
CN106294606A true CN106294606A (en) 2017-01-04
CN106294606B CN106294606B (en) 2019-10-11

Family

ID=57663540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610617683.4A Active CN106294606B (en) 2016-07-29 2016-07-29 A kind of CAE document conversion method and device based on general read-write frame

Country Status (1)

Country Link
CN (1) CN106294606B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609302A (en) * 2017-09-28 2018-01-19 广州明珞汽车装备有限公司 A kind of Product Process structure generation method and system
CN107742042A (en) * 2017-10-30 2018-02-27 江苏银基烯碳能源科技有限公司 A kind of CAE emulation preprocessing systems and method
CN108846059A (en) * 2018-06-01 2018-11-20 北京航空航天大学 OpenFOAM limited bulk analysis result data format and its conversion method towards result post-processing
CN110727703A (en) * 2019-09-23 2020-01-24 苏宁云计算有限公司 Method and device for automatically identifying comments in JSON (Java Server object notation) code
CN111368467A (en) * 2020-02-20 2020-07-03 中国原子能科学研究院 Data exchange method and system based on STEP and GEO formats
CN111510483A (en) * 2020-04-09 2020-08-07 眸芯科技(上海)有限公司 Configuration synchronization system between different network domains in chip test and application
CN112579679A (en) * 2020-12-15 2021-03-30 北京动力机械研究所 Method and device for designing heterogeneous data model mapping strategy and automatically converting
CN113392436A (en) * 2021-06-17 2021-09-14 厦门威迪思汽车设计服务有限公司 CAE analysis software and office software integrated control method and platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19950174A1 (en) * 1999-10-19 2001-04-26 Volta Kraftfahrzeug Elektrozub Procedure for conversion of a spatial object model between two different CXY, e.g. CAD, tool systems by conversion of the command sequence for creation of the model in the first system into a command sequence in the second system
CN101354759A (en) * 2007-07-23 2009-01-28 兰雨晴 Method and system of work process flow defining conversion based on element model
CN101446896A (en) * 2008-12-30 2009-06-03 浙江工业大学 MIB file editor
CN102129718A (en) * 2011-03-16 2011-07-20 西安电子科技大学 Undistorted heterogeneous CAD model conversion method
CN103353866A (en) * 2013-05-13 2013-10-16 河南大学 Three-dimensional model file format conversion method supporting XNA technology
CN104484163A (en) * 2014-11-20 2015-04-01 北京索为高科***技术有限公司 Heterogeneous model transformation method based on unified modeling environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19950174A1 (en) * 1999-10-19 2001-04-26 Volta Kraftfahrzeug Elektrozub Procedure for conversion of a spatial object model between two different CXY, e.g. CAD, tool systems by conversion of the command sequence for creation of the model in the first system into a command sequence in the second system
CN101354759A (en) * 2007-07-23 2009-01-28 兰雨晴 Method and system of work process flow defining conversion based on element model
CN101446896A (en) * 2008-12-30 2009-06-03 浙江工业大学 MIB file editor
CN102129718A (en) * 2011-03-16 2011-07-20 西安电子科技大学 Undistorted heterogeneous CAD model conversion method
CN103353866A (en) * 2013-05-13 2013-10-16 河南大学 Three-dimensional model file format conversion method supporting XNA technology
CN104484163A (en) * 2014-11-20 2015-04-01 北京索为高科***技术有限公司 Heterogeneous model transformation method based on unified modeling environment

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609302B (en) * 2017-09-28 2021-12-28 广州明珞汽车装备有限公司 Method and system for generating product process structure
CN107609302A (en) * 2017-09-28 2018-01-19 广州明珞汽车装备有限公司 A kind of Product Process structure generation method and system
CN107742042A (en) * 2017-10-30 2018-02-27 江苏银基烯碳能源科技有限公司 A kind of CAE emulation preprocessing systems and method
CN108846059A (en) * 2018-06-01 2018-11-20 北京航空航天大学 OpenFOAM limited bulk analysis result data format and its conversion method towards result post-processing
CN108846059B (en) * 2018-06-01 2022-04-05 北京航空航天大学 OpenFOAM finite volume analysis result data format for result post-processing and conversion method thereof
CN110727703A (en) * 2019-09-23 2020-01-24 苏宁云计算有限公司 Method and device for automatically identifying comments in JSON (Java Server object notation) code
CN110727703B (en) * 2019-09-23 2022-10-11 苏宁云计算有限公司 Method and device for automatically identifying comments in JSON codes
CN111368467B (en) * 2020-02-20 2022-03-11 中国原子能科学研究院 Data exchange method and system based on STEP and GEO formats
CN111368467A (en) * 2020-02-20 2020-07-03 中国原子能科学研究院 Data exchange method and system based on STEP and GEO formats
CN111510483A (en) * 2020-04-09 2020-08-07 眸芯科技(上海)有限公司 Configuration synchronization system between different network domains in chip test and application
CN112579679A (en) * 2020-12-15 2021-03-30 北京动力机械研究所 Method and device for designing heterogeneous data model mapping strategy and automatically converting
CN112579679B (en) * 2020-12-15 2024-05-28 北京动力机械研究所 Method and device for designing heterogeneous data model mapping strategy and automatic conversion
CN113392436A (en) * 2021-06-17 2021-09-14 厦门威迪思汽车设计服务有限公司 CAE analysis software and office software integrated control method and platform
CN113392436B (en) * 2021-06-17 2023-12-29 厦门威迪思汽车设计服务有限公司 CAE analysis software and office software integrated control method and platform

Also Published As

Publication number Publication date
CN106294606B (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN106294606A (en) A kind of CAE document conversion method based on general read-write framework and device
CN111753500B (en) Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN100399335C (en) Method for converting source file to target web document
CN101968800B (en) Metadata driving based method for realizing dynamic form
CN111753499B (en) Method for merging and displaying electronic form and OFD format file and generating directory
Wickham et al. Reflecting on the strategic use of CAQDAS to manage and report on the qualitative research process
CN100409169C (en) Document processing apparatus and document processing method
US11792257B2 (en) Form engine
CN103473056B (en) A kind of remote measurement configuration file automatic generation method
CN110427487B (en) Data labeling method and device and storage medium
CN109740122A (en) The conversion method and device of mind map use-case file
CN104808806A (en) Chinese character input method and device in accordance with uncertain information
CN111309313A (en) Method for quickly generating HTML (hypertext markup language) and storing form data
CN107609302A (en) A kind of Product Process structure generation method and system
CN105138683A (en) Method and system for converting JSON data into two-dimensional array
CN111191429A (en) System and method for automatic filling of data table
CN112395418A (en) Method and device for extracting target object in webpage and electronic equipment
CN101770388A (en) Method and device for obtaining chip code information
US20080243470A1 (en) Logical check assist program, recording medium on which the program is recorded, logical check assist apparatus, and logical check assist method
CN116933697B (en) Method and device for converting natural language into hardware description language
CN102073688A (en) Device for converting client form to Web page and method thereof
CN110704635A (en) Conversion method and device for ternary group data in knowledge graph
US20230229838A1 (en) Connection analysis method for multi-port nesting model and storage medium
CN115080444A (en) Test case conversion method and device, electronic equipment and storage medium
CN103902514A (en) Word format extracting and reutilizing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Ruan Guohui

Inventor after: Zhao Gefei

Inventor after: Ruan Jinxi

Inventor after: Wang Wen

Inventor after: Chen Jiajia

Inventor after: Shi Lina

Inventor before: Wang Wen

Inventor before: Ruan Jinxi

Inventor before: Zhan Yi

Inventor before: Qi Mingxu

Inventor before: Zhao Gefei

Inventor before: Ruan Guohui

Inventor before: Chen Jiajia

Inventor before: Wang Hongmei

Inventor before: Zheng Zihong

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: CAE file conversion method and device based on general reading-writing framework

Effective date of registration: 20200521

Granted publication date: 20191011

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: BV TECH Ltd.

Registration number: Y2020990000501

PE01 Entry into force of the registration of the contract for pledge of patent right