CST Simulation Guidance | Using Macro to Realize Automation


foreword

By using the macro of CST, some commonly used operations can be implemented very efficiently. The so-called technical industry has specialization. For large companies, it is not necessary for all R&D engineers to be proficient in simulation software. Therefore, how to make simulation more convenient for engineers who are not very good at simulation is also the meaning of the existence of Macro, which is the basis for automation.
insert image description here


1. Use the macro command that comes with CST: Home > Macros

By using the macro instruction Macro of CST, some commonly used functions can be realized very conveniently and efficiently. You can set Calculate, Construct, Materials, etc., to quickly help us with modeling, post-processing, etc.
insert image description here
insert image description here
▲Example of macro modeling using Wire Transition

If you want to modify or customize Macro, you can use Edit Macro. The macro instruction uses VBA language or Python language, and the specific usage method and syntax can be viewed in Help Contents.
insert image description here

2. How to write a macro using the history tree

There are many ways to make a macro, here is a simple and less error-prone one. To make some frequently used operations into Macro, we can make them through History, the specific path is: Home > History List > More > Macro. By selecting the required operations in the list, they are combined into a macro instruction. Note: If you want to apply the created Macro to any simulation project, you need to check Make globally available. Otherwise, this macro is only used in the Project Macro of this project.
insert image description here
▲Using History List to make macros for Dipole antenna modeling

insert image description here
▲Self-built macros can be called in the Macros drop-down menu


Pay attention to "Electromagnetic Society" and make electromagnetic simulation no longer complicated!

insert image description here

  • Follow Reply -

[Information] Obtaining learning materials

[Join group] Add technical exchange group

【Consultation】Product Solution

Guess you like

Origin blog.csdn.net/sunrole/article/details/127705199