CN107357989A - A kind of digital implementation of CAE to the CAD complete structures of microwave tube - Google Patents

A kind of digital implementation of CAE to the CAD complete structures of microwave tube Download PDF

Info

Publication number
CN107357989A
CN107357989A CN201710549988.0A CN201710549988A CN107357989A CN 107357989 A CN107357989 A CN 107357989A CN 201710549988 A CN201710549988 A CN 201710549988A CN 107357989 A CN107357989 A CN 107357989A
Authority
CN
China
Prior art keywords
cad
modeling
code
complete
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.)
Pending
Application number
CN201710549988.0A
Other languages
Chinese (zh)
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201710549988.0A priority Critical patent/CN107357989A/en
Publication of CN107357989A publication Critical patent/CN107357989A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/18Manufacturability analysis or optimisation for manufacturability

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses a kind of digital implementation of CAE to the CAD complete structures of microwave tube, comprise the following steps:S1, basis key structural parameters as derived from CAE software match the modeling code of complete structure from database;S2, compiling modeling code, establish abstract syntax tree by semantic analysis, modeling code are converted into intermediate code;S3, parsing intermediate code, generate CAD structured files;S4, according to project management tree, by root node successively from top to bottom, recurrence repeat step S2, S3 from inside to outside, until all CAD Structure Creatings under this project management tree are come out, be then assembled into complete CAD structures.The modeling code of present invention key structural parameters matching complete structure as derived from CAE related softwares, CAD structures are generated by compiling, resolving again, all CAD structures can be disposably created that and be assembled into complete CAD structures, so as to improve the efficiency in design production.

Description

A kind of digital implementation of CAE to the CAD complete structures of microwave tube
Technical field
The invention belongs to microwave tube Digitized manufacturing field, CAE to the CAD complete structures of more particularly to a kind of microwave tube Digital implementation.
Background technology
Microwave tube is a kind of very important electron tube, has high power, high-gain, high efficiency, broadband etc. excellent Point, it is widely applied in the modern military electronics such as communication, radar, electronic countermeasure.Setting for microwave tube at present Meter emulation mainly uses electromagnetic simulation software (such as CST, HFSS, MTSS), and this kind of electromagnetic simulation software often only needs to count The main part key structure for influenceing Electromagnetic Simulation result is calculated, for example, when designing the high-frequency structure of travelling-wave tubes, only designs it Helix, supporting rod, the structure of shell, and its peripheral structure then there is no need for Electromagnetic Simulation calculating.But in microwave tube number Word manufacturing field must have homogeneous tube be used for process it is just significant, it is hot, power is whole to microwave tube and in Microwave simulation field The influence of body performance is also increasingly taken seriously.
In addition, the complicated integral structure of microwave tube, change in size are big, designers design often through electromagnetic simulation software The key structure part gone out in microwave tube, its performance is met index request, then combine what is designed by the CAD software of specialty Critical feature size draws homogeneous tube structure, this traditional to obtain the mode process linking degree of its complete structure by key structure Not high, the process that the design of total is verified again is cumbersome and poorly efficient.Therefore, before key structure meets Electromagnetic Simulation result Put, studying a kind of method for quickly generating its complete structure is extremely necessary, and this will greatly improve design production In efficiency.
The content of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide one kind, the key as derived from CAE related softwares is tied Structure parameter matches the modeling code of complete structure, then generates CAD structures by compiling, resolving, can disposably be created that All CAD structures are simultaneously assembled into complete CAD structures, so as to improve the efficiency in design production.
The purpose of the present invention is achieved through the following technical solutions:A kind of CAE to the CAD complete structures of microwave tube Digital implementation, comprise the following steps:
S1, basis key structural parameters as derived from CAE software match the modeling code of complete structure from database;
S2, compiling modeling code, establish abstract syntax tree by semantic analysis, modeling code are converted into intermediate code;
S3, parsing intermediate code, generate CAD structured files;
S4, according to project management tree, by root node successively from top to bottom, recurrence repeat step S2, S3 from inside to outside, until All CAD Structure Creatings under this project management tree are come out, are then assembled into complete CAD structures.
Further, the step S1 specifically includes following sub-step:
S11, a table of comparisons is established, the table of comparisons is made up of the title of modeling engineering and the title of key structural parameters, its In a modeling engineering title it is corresponding with the title of multiple key structural parameters;
S12, according to the table of comparisons as corresponding to the name-matches of key structural parameters modeling engineering title, then to project library The modeling engineering of the corresponding complete structure of the inside loading.
Further, the modeling engineering of the complete structure includes all modeling codes of complete structure;The modeling generation Code is managed collectively by project management tree, the modeling code of the corresponding minor structure of each tree node.The modeling code is not only Information including key structural parameters, in addition to the non-key structural parameters information around it.
If the key structural parameters included in the modeling engineering of the complete structure loaded in step S12 export with CAE software Key structural parameters it is inconsistent, then by the key structural parameters in modeling engineering adjust to CAE software derived from crucial tie Structure parameter is identical, while adjusts the non-key structure around the key structure, makes key structure and the non-key structure around it Meet assembly relation.
Further, the specific method of compiling modeling code is in the step S2:Using the front end of modern technique of compiling Process part, the wrong source of modeling code is detected by morphological analysis and syntactic analysis;
Modeling code by establishing abstract syntax tree, is converted into intermediate code by the semantic analysis stage;
The intermediate code is a kind of abstract machine language, for representing the operation of target machine.
Further, the step S3 concrete methods of realizing is:Intermediate code includes the api interface of drawing core, by Between the machine code that can be identified into machine of code translation, generate CAD structures.
The beneficial effects of the invention are as follows:The present invention provides a kind of Digital Realization of CAE to the CAD complete structures of microwave tube Method, the modeling code of key structural parameters matching complete structure as derived from CAE related softwares, then by compiling, parsing Cheng Shengcheng CAD structures.Wherein, morphology, syntactic analysis are supported in compiling, can detect that the wrong source of modeling code, improve code The accuracy of modeling, efficiency;Meanwhile project management tree can disposably be created that all CAD structures with reference to recursive technique And complete CAD structures are assembled into, so as to improve the efficiency in design production.
Brief description of the drawings
Fig. 1 is the realization principle figure of the inventive method;
Fig. 2 is the schematic flow sheet of the inventive method;
Fig. 3 is the schematic flow sheet of the compiling and parsing in the present invention;
Fig. 4 is a kind of high-frequency structure instance graph of travelling-wave tubes.
Embodiment
Technical scheme is further illustrated below in conjunction with the accompanying drawings.
The present embodiment provides a kind of digital implementation of CAE to the CAD complete structures of microwave tube, it is necessary to illustrate in advance Be that MTSS (Microwave Tube Simulator Suite) is microwave tube simulator package software, be mainly used for CAE Design and simulation, and ((software is the rapid modeling instrument of independent development to Fast Model Tools to FMT, is that one kind of the present invention is real Existing mode, is illustrated with regard to FMT realization principle (see Fig. 1) below.
As shown in Fig. 2 a kind of digital implementation of CAE to the CAD complete structures of microwave tube, comprises the following steps:
S1, basis key structural parameters as derived from CAE software match the modeling code of complete structure from database; Specifically include following sub-step:
S11, a table of comparisons is established, the table of comparisons is made up of the title of modeling engineering and the title of key structural parameters, its In a modeling engineering title it is corresponding with the title of multiple key structural parameters;
S12, according to the table of comparisons as corresponding to the name-matches of key structural parameters modeling engineering title, then to project library The modeling engineering (.xml files) of the corresponding complete structure of the inside loading;The modeling engineering of the complete structure includes complete structure All N_Pascal3D modeling codes (N_Pascal3D be pascal simplify subset);The N_Pascal3D modeling codes by Project management tree is managed collectively, the N_Pascal3D modeling codes of the corresponding minor structure of each tree node;The N_ Pascal3D modeling codes not only include the information of key structural parameters, in addition to the non-key structural parameters information around it.
If the key structural parameters included in the modeling engineering of the complete structure loaded in step S12 export with CAE software Key structural parameters it is inconsistent, then by the key structural parameters in modeling engineering adjust to CAE software derived from crucial tie Structure parameter is identical, while adjusts the non-key structure around the key structure, makes key structure and the non-key structure around it Meet assembly relation.
S2, compiling modeling code, establish abstract syntax tree by semantic analysis, modeling code are converted into intermediate code; Specific method as shown in figure 3, using modern technique of compiling front end processing portion, by morphological analysis and syntactic analysis detection build The wrong source of mould code, improve accuracy, the efficiency of code modeling;
Modeling code by establishing abstract syntax tree, is converted into intermediate code by the semantic analysis stage;
The intermediate code is a kind of abstract machine language, for it the operation of target machine can be represented without too many Be related to the related details of machine.
S3, parsing intermediate code, generate CAD structured files;Concrete methods of realizing is:Intermediate code is drawn including ACIS Api interface, intermediate code is translated into the machine code that machine can identify, generation CAD structures (.sat files), here mainly Technology be that intermediate code is translated into the machine code that machine can identify, virtual machine technique can be called (see Fig. 3).
S4, according to project management tree, by root node successively from top to bottom, recurrence repeat step S2, S3 from inside to outside, until All CAD Structure Creatings under this project management tree are come out, are then assembled into complete CAD structures.According to the father node of tree Rely on the characteristic of child node, the assembly relation established between component and part;In conjunction with recursive technique, from root node successively to Interior, downward traversal;If it find that certain node there is no child node then to compile, parse corresponding to N_Pascal3D modeling codes, generation Corresponding CAD structures (.sat files);Successively toward the complete CAD structures of repetitive generation (.sat files).
The present invention is based on database, XML, interface UI, modern Principles & Technology of Compiler Design.Database uses small volume but efficient Local data base SQLite, the table of comparisons (single modeling engineering title corresponds to multiple key parameter titles) is mainly preserved, is used for Complete structure is matched from project library, project library is made up of XML entry mesh file, and N_ is included inside XML entry mesh file Pascal3D modeling codes;Interface is realized based on QT (Cute), includes project management frame, Code Edit text box and mistake Prompting frame by mistake;Modeling code is made up of Pascal subset N_Pascal3D language of simplifying, and modeling code is raw after compiling Into a kind of intermediate code, compilation process supports morphological analysis, syntactic analysis;Drawing core using ACIS API library function, And API interface is embedded in self-defined intermediate code;Parse intermediate code and be similar to the executable text of operating system execution The process of part, can be called virtual machine, and virtual machine is to be based on Microsoft compiler platform (MSVC201364bit) C/C++ language Realize.
The present invention by N_Pascal3D Language Modelings, the language simplifies, flexibly, image, and because drawing core uses (ACIS is the product of spatial technology companies of the U.S. to ACIS function libraries, is that the geometry for being applied to CAD system exploitation is put down Platform.It is provided from simple entity to the modeling function of complicated entity, and the Boolean calculation of entity, curved surface are reduced, surface blending Etc. a variety of editting functions, the data storage function of entity and input, the output function of SAT files are additionally provided), therefore user is very The model of complexity is easily write out according to structural parameters, and the model file of its generation can be read on various simulation softwares Take and use.
Complete high-frequency structure is as shown in Figure 4 used by the present embodiment.The N_Pascal3D of helix in this high-frequency structure Modeling code is respectively with corresponding part helix line intermediate code:
The N_Pascal3D codes of the present invention:
The present invention intermediate code be:
Wherein, high-frequency structure key structural parameters include helix (spiral linear diameter (gHFHelixInDiam):1.6mm、 Helix section is wide (gHFHelixUnitW):0.2mm), helix section length (gHFHelixUnitL):0.5mm, helix spiral shell Away from (gHFHelixUnitD):0.95mm), shank diameter (gHFHolderD) is clamped:0.5mm, shell (shell internal diameter (gHFTubeShellInDiam):2.95mm, shell external diameter (gHFTubeShellMainDiam):3.3mm).
FMT run time is probably 5s or so, if by traditional from CAE to CAD in the way of complete structure, only Even several days time a few houres must be spent by only drawing complete structure according to high-frequency structure key structural parameters, which significantly improves Design the efficiency of production.
The high-frequency structure that FMT is consistent therewith using being matched from project library (before drawn structure), from can From the perspective of row, drawn structure was by experimental verification in the past, therefore its feasibility is guaranteed.In addition, such as Fruit wants to match the structure type being consistent from project library, and this structure type must be included in project library, because FMT codes model Mode support grammer, morphological analysis, this structure type deposit project library can be established with accurate and effective.
The principal character and advantage of the present invention has been shown and described above, those skilled in the art is it should be appreciated that here The described principle for being to aid in reader and understanding the present invention, it should be understood that protection scope of the present invention is not limited to so Special statement and embodiment.These technologies disclosed by the invention, which can enlighten to make, various does not depart from the other of essence of the invention Various specific deformations and combination, these deformations and combination are still within the scope of the present invention.

Claims (7)

1. the digital implementation of CAE to the CAD complete structures of a kind of microwave tube, it is characterised in that comprise the following steps:
S1, basis key structural parameters as derived from CAE software match the modeling code of complete structure from database;
S2, compiling modeling code, establish abstract syntax tree by semantic analysis, modeling code are converted into intermediate code;
S3, parsing intermediate code, generate CAD structured files;
S4, according to project management tree, by root node successively from top to bottom, recurrence repeat step S2, S3 from inside to outside, until by this All CAD Structure Creatings under project management tree come out, and are then assembled into complete CAD structures.
2. a kind of digital implementation of CAE to the CAD complete structures of microwave tube according to claim 1, its feature It is, the step S1's specifically includes following sub-step:
S11, a table of comparisons is established, the table of comparisons is made up of the title of modeling engineering and the title of key structural parameters, wherein one The title of individual modeling engineering is corresponding with the title of multiple key structural parameters;
S12, according to the table of comparisons as corresponding to the name-matches of key structural parameters modeling engineering title, then to inside project library The modeling engineering of the corresponding complete structure of loading.
3. a kind of digital implementation of CAE to the CAD complete structures of microwave tube according to claim 2, its feature It is, the modeling engineering of the complete structure includes all modeling codes of complete structure;The modeling code is by project management Tree unified management, the modeling code of the corresponding minor structure of each tree node.
4. a kind of digital implementation of CAE to the CAD complete structures of microwave tube according to claim 3, its feature It is, the modeling code not only includes the information of key structural parameters, in addition to the non-key structural parameters information around it.
5. a kind of digital implementation of CAE to the CAD complete structures of microwave tube according to claim 2, its feature It is, if the key structural parameters included in the modeling engineering of the complete structure loaded in step S12 and the derived pass of CAE software Bond structure parameter is inconsistent, then by the key structural parameters in modeling engineering adjust to CAE software derived from key structure join Number is identical, while adjusts the non-key structure around the key structure, meets key structure and the non-key structure around it Assembly relation.
6. a kind of digital implementation of CAE to the CAD complete structures of microwave tube according to claim 1, its feature It is, the specific method that modeling code is compiled in the step S2 is:Using the front end processing portion of modern technique of compiling, pass through Morphological analysis and the wrong source of syntactic analysis detection modeling code;
Modeling code by establishing abstract syntax tree, is converted into intermediate code by the semantic analysis stage;
The intermediate code is a kind of abstract machine language, for representing the operation of target machine.
7. a kind of digital implementation of CAE to the CAD complete structures of microwave tube according to claim 1, its feature It is, the step S3 concrete methods of realizing is:Intermediate code includes the api interface of drawing core, and intermediate code is translated into The machine code that machine can identify, generate CAD structures.
CN201710549988.0A 2017-07-07 2017-07-07 A kind of digital implementation of CAE to the CAD complete structures of microwave tube Pending CN107357989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710549988.0A CN107357989A (en) 2017-07-07 2017-07-07 A kind of digital implementation of CAE to the CAD complete structures of microwave tube

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710549988.0A CN107357989A (en) 2017-07-07 2017-07-07 A kind of digital implementation of CAE to the CAD complete structures of microwave tube

Publications (1)

Publication Number Publication Date
CN107357989A true CN107357989A (en) 2017-11-17

Family

ID=60292782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710549988.0A Pending CN107357989A (en) 2017-07-07 2017-07-07 A kind of digital implementation of CAE to the CAD complete structures of microwave tube

Country Status (1)

Country Link
CN (1) CN107357989A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920752A (en) * 2018-05-25 2018-11-30 电子科技大学 A kind of traveling wave tube structure size synchronized update and Iterative Design method
CN109726442A (en) * 2018-12-05 2019-05-07 电子科技大学 A kind of three-dimensional entity model reconstructing method based on ACIS platform
CN115238591A (en) * 2022-08-12 2022-10-25 杭州国辰智企科技有限公司 Dynamic parameter checking and driving CAD automatic modeling engine system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751499A (en) * 2009-12-31 2010-06-23 广州文冲船厂有限责任公司 Automatic assembly method for three-dimensional ship modeling part
CN101819610A (en) * 2010-05-17 2010-09-01 浙江富春江移动通信科技有限公司 WEB-based phone housing CAD (computer aided design) method
CN101971177A (en) * 2007-11-30 2011-02-09 科文托尔公司 System and method for three-dimensional schematic capture and result visualization of multi-physics system models
CN103093025A (en) * 2011-09-29 2013-05-08 诺迈士科技有限公司 Rotating machines
CN104392037A (en) * 2014-11-18 2015-03-04 衢州学院 City scene parameterization modeling system
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
CN101971177A (en) * 2007-11-30 2011-02-09 科文托尔公司 System and method for three-dimensional schematic capture and result visualization of multi-physics system models
CN101751499A (en) * 2009-12-31 2010-06-23 广州文冲船厂有限责任公司 Automatic assembly method for three-dimensional ship modeling part
CN101819610A (en) * 2010-05-17 2010-09-01 浙江富春江移动通信科技有限公司 WEB-based phone housing CAD (computer aided design) method
CN103093025A (en) * 2011-09-29 2013-05-08 诺迈士科技有限公司 Rotating machines
CN104392037A (en) * 2014-11-18 2015-03-04 衢州学院 City scene parameterization modeling system
CN104484163A (en) * 2014-11-20 2015-04-01 北京索为高科系统技术有限公司 Heterogeneous model transformation method based on unified modeling environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李斌等: "微波管CAD技术进展", 《电子科技大学学报》 *
陈聪: "行波管结构设计及加工误差分析", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920752A (en) * 2018-05-25 2018-11-30 电子科技大学 A kind of traveling wave tube structure size synchronized update and Iterative Design method
CN108920752B (en) * 2018-05-25 2022-05-03 电子科技大学 Method for synchronously updating and iteratively designing size of traveling wave tube structure
CN109726442A (en) * 2018-12-05 2019-05-07 电子科技大学 A kind of three-dimensional entity model reconstructing method based on ACIS platform
CN109726442B (en) * 2018-12-05 2022-03-15 电子科技大学 Three-dimensional solid model reconstruction method based on ACIS platform
CN115238591A (en) * 2022-08-12 2022-10-25 杭州国辰智企科技有限公司 Dynamic parameter checking and driving CAD automatic modeling engine system
CN115238591B (en) * 2022-08-12 2022-12-27 杭州国辰智企科技有限公司 Dynamic parameter checking and driving CAD automatic modeling engine system

Similar Documents

Publication Publication Date Title
EP2754032B1 (en) Transformational context-aware data source management
US9817931B1 (en) Systems and methods for generating optimized hardware descriptions for models
CN106844643A (en) A kind of Database Dynamic generation method based on template engine
CN106648662B (en) Report generation device and method based on project cost calculation description language BCL
CN107704382B (en) Python-oriented function call path generation method and system
US7941460B2 (en) Compilation model for processing hierarchical data in stream systems
JP6479184B2 (en) Computer-executable model reverse engineering method and apparatus
CN107357989A (en) A kind of digital implementation of CAE to the CAD complete structures of microwave tube
US20080244541A1 (en) Code translator and method of automatically translating modeling language code to hardware language code
CN109614329B (en) Software test case aided design method based on interface control file
CN111880777A (en) Program information issuing method and device and electronic equipment
CN114780100B (en) Compiling method, electronic device and storage medium
CN114327477A (en) Intelligent contract execution method and device, electronic device and storage medium
KR101985309B1 (en) Method of creating the balanced parse tree having optimized height
CN108008947B (en) Intelligent prompting method and device for programming statement, server and storage medium
Jeong et al. WATT: A novel web-based toolkit to generate WebAssembly-based libraries and applications
US11550556B1 (en) Efficient semantic analysis of program code
CN110110299A (en) Text transform method, apparatus and server
Sisco et al. Loop rerolling for hardware decompilation
JP5600301B2 (en) System representation and handling technology
US11609893B1 (en) Systems and methods for generating and modifying a pattern for pattern matching utilizing a hierarchical structure that stores one or more values
Quesada A model-driven parser generator with reference resolution support
WO2008075087A1 (en) Code translator and method of automatically translating modelling language code to hardware language code
CN104239064A (en) Method for extracting and organizing ARM (advanced RISC machine) program relocation information
US20230045022A1 (en) System and method for describing a component in a computer-aided design (cad) environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171117

RJ01 Rejection of invention patent application after publication