Home

Awesome

Introduction

This TCSTInterface class allows for communication with CST Microwave Studio from within MATLAB using Windows' COM technology.

The main goal of this submission is to control an existing CST project, get and post-process the simulation results, export geometry and get various information from the project. If there is a need to build the geometry programmatically, there is another good submission in Matlab File Exchange which suits better for that.

Features

This CST-MATLAB interface features the following:

Model control:

Solving:

Retrieving results:

Exporting:

View control (useful for image exporting):

Getting various information:

In addition, a customized STL-file reader is included in order to plot geometry like they are seen in CST MWS.

One of the class methods (ReadParametricResults) use two custom classes (TResultsStorage and TMyTable). I apologize for not providing source code for them, but they are not yet in the state to go public :)

If other functionality is desired, please post a feature request here.

Demos / Documentation

All functionalities are well documented in the included Live Script demos. MATLAB R2018a or higher is desired in order to not loose code samples in the demos.

Bugs found?

If you encounter any errors or notice some misfunction while using the interface, please open an issue directly in GitHub.

Acknowledgment

I would like to thank Jan Simon for his great function GetFullPath, it is very helpful for this interface.