CN106055329A - MATLAB and HFSS interface control method - Google Patents
MATLAB and HFSS interface control method Download PDFInfo
- Publication number
- CN106055329A CN106055329A CN201610368418.7A CN201610368418A CN106055329A CN 106055329 A CN106055329 A CN 106055329A CN 201610368418 A CN201610368418 A CN 201610368418A CN 106055329 A CN106055329 A CN 106055329A
- Authority
- CN
- China
- Prior art keywords
- hfss
- matlab
- variable
- macros
- model
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000005516 engineering process Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention proposes a MATLAB and HFSS interface control method. After the parameterization of a model, we can directly modify the values of a global variable or a local variable, and also can optimize the parameters, thereby greatly improving the modeling efficiency, and enabling the direct interface control of MATLAB and Ansoft HFSS to be more convenient and complete.
Description
Technical field
This technology belongs to the interface connection area of software, applies quickly setting up and ginseng at Ansoft HFSS model
In numberization.
Background technology
HFSS modeling process is the indispensable process that many designers face, for same model and different
Design objective, the modeling process of repetition spends too much of his time.Carried out by hfssapi between Ansoft HFSS and MATLAB
Control.HFSS itself is carried out record macro order by VBS script, the most corresponding grand life of every single stepping of Ansoft HFSS
Order.Generally can carry out edit script by the script that recording script or HFSS software provide so that convenient control HFSS is soft
The operating process of part.
Forefathers have been written that the matlab file of part is to perform the basic operation of HFSS.Such as: add new construction
File, sets up the basic operations such as square, labelling port.
The present invention is to carry out simulating, verifying with the macros of 14.0 versions, for the different editions of HFSS software, and its portion
Point macros is likely to occur change.General when writing script, it is possible to use the recording script of HFSS, determine script format.
Can be modeled after using this Model Establishment engineering and file writes, and passes through grand by operation result S parameter or Q-value
Data, the convenient analyzing and processing using MATLAB to carry out the later stage are derived in order.
Summary of the invention
Solve the technical problem that
Although there being MATLAB correspondence to control the macros of HFSS modeling, but the concrete of modeling can be brought into when writing
Numerical value, causes non-parametrization after modeling completes, it is impossible to the subsequent analysis such as is optimized and calculates.In order to avoid prior art not
In place of foot, the present invention proposes a kind of MATLAB Yu HFSS interface control method.
Technical scheme
A kind of MATLAB Yu HFSS interface control method, it is characterised in that step is as follows:
Step 1: be dimensioned so as to global variable or local variable needed for MATLAB is by model;
Step 2: use MATLAB to write the macros function corresponding to HFSS modeling procedure;
Step 3: to each section of macros, carry out parametrization setting, will be in the concrete data step 1 in macros
Global variable or local variable replace, and generating suffix is .vbs file;
Step 4: run .vbs file, HFSS Auto-generation Model;It is adjusted when needing the moulded dimension in HFSS
With when optimizing, in MATLAB, directly revise global variable or local variable.
Beneficial effect
A kind of MATLAB Yu HFSS interface control method that the present invention proposes, after model is carried out parametrization, we are permissible
Directly every time modify numerical value at global variable or local variable, and parameter can be optimized, be greatly enhanced
Modeling efficiency, makes the direct Interface Controller of MATLAB and Ansoft HFSS more convenient and perfect.
Accompanying drawing explanation
Fig. 1 band filter model
The non-parameterized model of Fig. 2
Fig. 3 parameterized model figure
Detailed description of the invention
In conjunction with embodiment, accompanying drawing, the invention will be further described:
When carrying out parametric modeling, it is divided into three steps:
A) setting up needed for certain model a size of global variable or local variable, this part is in conventional VBS modeling
In do not occur;
B) according to HFSS modeling procedure, MATLAB is used to write out the macros function corresponding to each step;
C) to each section of macros, parametrization setting is carried out, the global variable in the concrete data a) step i.e. set up
Or local variable replaces, just can complete parametric modeling, complete the simulation calculation such as follow-up optimization.
Below as a example by certain model, introduce the contrast before and after Interface Controller improves.
Select is the model of a band filter, model structure as shown in Figure 1:
This model VBS script is generated, in model is set up, although use parameter, but generating by MATLAB
VBS script in, be to replace with occurrence, final modeling result such as Fig. 2: see in property list origin coordinates and
X, Y, Z coordinate are all concrete numerical value.
We carry out parameter setting to it and each step are carried out parametrization setting, first define local variable, its
Secondary after each macros, it is carried out parametrization setting.Final modeling result is as shown in Figure 3.
Changing after an action of the bowels through said procedure, its coordinate can be set by parametrization, facilitates at follow-up optimization
Reason and the size adjusting of model.
It improves the mutual controlling of the interface of MATLAB and Ansoft HFSS, by script
Writing so that modeling process parametrization, facilitate the demand of each designer, the repeatability application for particular model has very well
Integrated effect.
Claims (1)
1. MATLAB Yu a HFSS interface control method, it is characterised in that step is as follows:
Step 1: be dimensioned so as to global variable or local variable by needed for HFSS model in MATLAB;
Step 2: use MATLAB to write the macros function corresponding to HFSS modeling procedure;
Step 3: to each section of macros, carry out parametrization setting, will the overall situation in the concrete data step 1 in macros
Variable or local variable replace, and generating suffix is .vbs file;
Step 4: run .vbs file, HFSS Auto-generation Model;When needing to be adjusted the moulded dimension in HFSS with excellent
During change, in MATLAB, directly revise global variable or local variable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610368418.7A CN106055329A (en) | 2016-05-30 | 2016-05-30 | MATLAB and HFSS interface control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610368418.7A CN106055329A (en) | 2016-05-30 | 2016-05-30 | MATLAB and HFSS interface control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106055329A true CN106055329A (en) | 2016-10-26 |
Family
ID=57175753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610368418.7A Pending CN106055329A (en) | 2016-05-30 | 2016-05-30 | MATLAB and HFSS interface control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106055329A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110717262A (en) * | 2019-09-27 | 2020-01-21 | 深圳市华讯方舟微电子科技有限公司 | Simulation method and simulation device for C-band waveguide filter and terminal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102630127A (en) * | 2012-04-01 | 2012-08-08 | 北京航空航天大学 | Embedded snake-shaped plane electromagnetic bandgap structure and construction method thereof |
CN104992015A (en) * | 2015-06-26 | 2015-10-21 | 安徽四创电子股份有限公司 | Optimization algorithm based HFSS project optimization method |
-
2016
- 2016-05-30 CN CN201610368418.7A patent/CN106055329A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102630127A (en) * | 2012-04-01 | 2012-08-08 | 北京航空航天大学 | Embedded snake-shaped plane electromagnetic bandgap structure and construction method thereof |
CN104992015A (en) * | 2015-06-26 | 2015-10-21 | 安徽四创电子股份有限公司 | Optimization algorithm based HFSS project optimization method |
Non-Patent Citations (1)
Title |
---|
善建者强: "HFSS-MATLAB-Scripting-API", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_537C47930100PCKT.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110717262A (en) * | 2019-09-27 | 2020-01-21 | 深圳市华讯方舟微电子科技有限公司 | Simulation method and simulation device for C-band waveguide filter and terminal |
CN110717262B (en) * | 2019-09-27 | 2023-04-07 | 深圳市华讯方舟微电子科技有限公司 | Simulation method and simulation device for C-band waveguide filter and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111063030B (en) | Dynamo-based BIM parameterized modeling method and device | |
CN104217063B (en) | Emulation design method for steel rail rolling pass | |
CN104965947B (en) | A kind of bridge three-dimensional design method based on BIM technology | |
CN106156383A (en) | A kind of parametrization aerodynamic configuration digital-to-analogue and structured grid automatic generation method | |
CN105718629A (en) | Variant design method of meeting engineering constraint conditions | |
CN107066676A (en) | A kind of finite element automation modeling method based on satellite plate and shell structure | |
CN103869755B (en) | A kind of machining code feed speed that adjusts is to ensure the method that lathe output is smooth | |
CN107480380B (en) | A kind of engineering drawing generation method based on template | |
CN103454972A (en) | Tool five-axis numerical control grinding automatic programming method based on UG NX API | |
CN106227930A (en) | A kind of method of model identification being imported Flac3D by Midas based on Matlab | |
CN108090313B (en) | A Modeling and Recognition Method of Complex Rock Fracture Models | |
CN105095568A (en) | Rapid modeling method for large draft fan | |
CN106874562B (en) | Conversion system and method for converting architecture model into static calculation model | |
CN111881524A (en) | Valve flow characteristic simulation experiment method | |
CN113505424B (en) | Interactive construction method for derived component of linear engineering | |
CN110781550A (en) | Method for converting and optimizing bridge structure calculation information into BIM information flow | |
JP2007299238A (en) | Cad system, and design/analysis method | |
CN113255185A (en) | Automatic simulation method for valve regulation characteristic | |
CN103425844A (en) | CAD/CAE (Computer-Aided Design/Computer-Aided Education) system based on data current communication platform and integration method | |
CN106055329A (en) | MATLAB and HFSS interface control method | |
CN103559350A (en) | Load file processing method and device of vehicle | |
CN114417757A (en) | A method of automatically compiling and generating FPGA projects with different functions | |
CN101976294A (en) | Space mapping algorithm-based automatic computer-aid tuning design method for microwave device | |
CN106709174B (en) | A Deflection Method of Aircraft Moving Surface Based on Finite Element Model | |
CN113283135B (en) | Method for extracting electromagnetic simulation plasma current data of tokamak vacuum chamber |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161026 |
|
WD01 | Invention patent application deemed withdrawn after publication |