SIMULIA CST Studio Suite 2021 introduces a range of new enhancements and improvements to increase the versatility and performance in modeling, meshing and solver technologies exactly to solve these issues. I would like to thank Jan Simon for his great function `GetFullPath` ( ), it is very helpful for this interface.Communication system design is getting challenging today since antenna, microwave component and electronics performances have to be proven when they are installed in their working environment. If you encounter any errors or notice some misfunction while using the interface, please open an issue directly in GitHub ( ).
#Cst microwave studio help code
MATLAB R2018a or higher is desired in order to not loose code samples in the demos. If other functionality is desired, please post a feature request here: Īll functionalities are well documented in the included Live Script demos. I apologize for not providing source code for them, but they are not yet in the state to go public :) One of the class methods (`ReadParametricResults`) use two custom classes (`TResultsStorage` and `TMyTable`). In addition, a customized STL-file reader is included in order to plot geometry like they are seen in CST MWS. Project units for different quantities and coefficient to convert them to SI units. About geometrical objects (solids): name, component, material, color and transparency (exactly how it looks in CST), volume, mass. About materials used in the project: name, color, transparency. Rotate 3D view to predefined position or custom view direction (like in MATLAB "view" function). # View control (useful for image exporting): Export the model geometry to an STL file (triangulated objects) with surface approximation control. User can rotate the model view before exporting. Export S-parameters to TOUCHSTONE file by means of CST As an option, each such result can be organized in a matrix, each dimension of which corresponds to one of the swept parameters. Reading results for parametric sweeps done in CST. Read radiation field for both single-frequency and broadband field monitors.
All queries for results can have a Run ID filter. Get model parameters corresponding to each Run ID in the Result Navigator. Read S- or Z-parameters in a convenient matrix form for multi-port structures. 1D results can be queried for a specific X-coordinate (often frequency), optionally with interpolation. Read 1D results from any tree item with several available filters.
Enumerate tree items in the Navigation Tree. It can also be used for running a custom MATLAB function as the CST simulation post-processing step ("Template Based Post-Processing"). Preparing the CST project for evaluating the cost function in MATLAB while optimizing. Find Run ID for the given parameter combination. Copy all model parameters and their values to MATLAB workspace. Store/change/read/enumerate parameters of the model with or without the model rebuild, getting parameters' expressions. Open/close CST project, connect to the active one This CST-MATLAB interface features the following: If there is a need to **build** the geometry programmatically, there is another good submission in Matlab File Exchange ( ) which suits better for that. 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. This `TCSTInterface` class allows for communication with CST Microwave Studio (CST Studio Suite) from within MATLAB using Windows' COM technology.