CN106055329A - MATLAB and HFSS interface control method - Google Patents

MATLAB and HFSS interface control method Download PDF

Info

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
Application number
CN201610368418.7A
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.)
Xian Electronic Engineering Research Institute
Original Assignee
Xian Electronic Engineering Research Institute
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 Xian Electronic Engineering Research Institute filed Critical Xian Electronic Engineering Research Institute
Priority to CN201610368418.7A priority Critical patent/CN106055329A/en
Publication of CN106055329A publication Critical patent/CN106055329A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation 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

A kind of MATLAB Yu HFSS interface control method
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.
CN201610368418.7A 2016-05-30 2016-05-30 MATLAB and HFSS interface control method Pending CN106055329A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
善建者强: "HFSS-MATLAB-Scripting-API", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_537C47930100PCKT.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN104965947B (en) A kind of bridge three-dimensional design method based on BIM technology
CN111063030A (en) Dynamo-based BIM (building information modeling) parameterized modeling method and device
CN107145686B (en) Method for creating support ANSYS finite element analysis model by using AutoCAD
CN103440357A (en) Virtual reality roaming scene generation method and system
CN104573162A (en) Automobile suspension DMU (diesel multiple unit) model parameterization design method
CN103454972A (en) Tool five-axis numerical control grinding automatic programming method based on UG NX API
CN104217063A (en) Simulation design method for rolling hole patterns of steel rail
CN103324541A (en) Method for automatically transmitting data between software
Benaouali et al. An automated CAD/CAE integration system for the parametric design of aircraft wing structures
CN105677970A (en) Copper-deficiency automatic supplementing method with no need of repeatedly avoiding copper
CN106874562B (en) Conversion system and method for converting architecture model into static calculation model
JP2007299238A (en) Cad system, and design/analysis method
CN102759862B (en) Optical proximity correction method
CN110414142B (en) Parametric modeling method of thickener
CN114417757A (en) Method for automatically compiling and generating FPGA (field programmable Gate array) engineering with different functions
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
CN101986314A (en) Computer aid engineering based technical model property automatic applying method
CN110134082A (en) The Virtual Debugging method of auto production line based on digital factory
CN116204962A (en) BIM-based structural design method
CN101976294A (en) Space mapping algorithm-based automatic computer-aid tuning design method for microwave device
CN114580328A (en) Building block type electronic design automation system
CN115587480A (en) Digital simulation method and digital simulation device
CN113255185A (en) Automatic simulation method for valve regulation characteristic

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