-
-
March 31, 2023 at 10:45 pm
Connor Pope
SubscriberHello,
I have created a MATLAB program that outputs the coordinates of a complex geometry that I want to implement in HFSS via scripting instead of manually. The structure is a microstrip-to-slotline balun transition {~50 ohm to ~110 ohm} with a via'd ground strip that is designed using conformal mapping to achieve a Klopfenstein impedance taper across the transition. I can implement this structure manually and already have to great success, including comparison to measurement which matched super closely to simulation, however it is a very time consuming process to implement the tapered ground structure manually. I would like to automate this to save time for future designs and to learn more about HFSS scripting as well.
I cannot use a function defined surface or line for the Klopfenstein tapered ground geometry because of the complexity of the function defining it. My MATLAB code outputs a 2000-pt array (10-um steps) with the specific X & Y-coordinate dimensions of the polyline that would create this tapered ground structure after being cover-lined and thickened. I have been manually selecting the most important points to recreate this curve, so to script this would make it more accurate as well, although minimally.
Here is what I have done so far:
1. I have imported the X & Y-coordinate dimensions of my polyline into the Design Datasets of my HFSSDesign1 in Project1. The name of the imported Design Dataset is "GNDTopXY". It is in um, both columns.
2. I have written a basic script to create a polyline using the Design Dataset for each point/segment.
My problem --> How do I grab the data from the Design Dataset so I can place them in the segment() and points() arrays in my script for the CreatePolyline function?
I've put placeholders as "xDim = x.GNDTopXY(n) & unit" for where the problem is. I'm definitely not calling the Design Dataset correctly. Perhaps that's not what I'm supposed to be using to fill in this spline. Would appreciate advice from anyone on how to move forward and/or if there is an easier way to do this.Best,
Connor Pope
P.S. Script Code shown below. -
June 6, 2023 at 12:44 am
Faezeh Ladani
Ansys EmployeeHi Connor,
You can record script in HFSS for any operations that you do. Then you can study the code and modify it accordingly to use it for your specific purpose. From menu bar go to Tools>Record Script to File.... Do whatever operations you want to do for example. Then stop recording through Tools. Then open the .py file and see what operations you can code and what are the commands. Then you may modify it for your Matlab script accordingly.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- simulation completed with execution error on server
- Maxwell, HFSS or Q3D?
- How to export Ansys Maxwell simulation results for post-processing in matlab or in .csv file
- Unable to assign correctly the excitations in a coil
- Running ANSYS HFSS on the HPC (it runs on Linux only)
- Running ANSYS HFSS on multiple nodes on SLURM based cluster
- Intersect errors with model with complex structure
- Error
- Process ‘3dtds’ terminated abnormally
- HFSS: reset marker legend dimensions.
-
5386
-
3367
-
2471
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.