Why does a PCB antenna analysis using the Antenna Toolbox take so long to run?

7 views (last 30 days)
I am designing antennas with the Antenna Toolbox in MATLAB R2023a, and my code takes a long time to run. I have a "pcbStack" object with several layers of metal and dielectrics. Running an analysis using functions such as "current", "pattern", "impedance" or "sparameters" eventually completes, but it take a long time. What can I do to improve the analysis runtime?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Jan 2024
The mesh for a "pcbStack" object can include triangles for metal surfaces and tetrahedra for dielectric volumes, which can demand a lot of memory. Note that as a mesh is required to solve the antenna structure and compute any electromagnetic quantities, if there is no explicit call to "mesh", the solver will automatically mesh the structure based on the wavelength associated with the maximum frequency in the frequency vector. 
To speed up the computation, you can take control of the meshing and use the manual meshing options on the structure. You can call the "mesh" function prior to calling the functions "current", "pattern", "impedance", "sparameters", etc. For more information about meshing with the Antenna Toolbox, see the "Meshing" documentation page:
 
If a "pcbStack" object is being used to create the structure and analyze, two more options are available on the "mesh" function to control the mesh of the structure: the "GrowthRate" and "MinEdgeLength" name-value pairs. For more information about the "mesh" function, see its documentation page:

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!