Skip to main content

Package for modeling in CST Microwave studio using python

Project description

It’s a package that allows you to model geometries contain wires and then export it into CST Microwave Studio project using python.

Features

  • One file format for all wire geometries

  • Сreating a CST project directly from a script or notebook.

  • Convenient data structure for creating your own unique complex geometries from wires

Usage

# Path to CST DESIGN ENVIRONMENT.exe
path_to_CST_DE = "Absolute\Path\To\CST DESIGN ENVIRONMENT.exe"


def circular_geometry_equal_wires(length, number_of_wires, radius):
    lengths = [length for i in range(number_of_wires)]

    circular_geometry = simple_geometries.get_circular_geometry(
        radius=radius, lengths_of_wires=lengths
    )
    return circular_geometry


circular_geometry = circular_geometry_equal_wires(2, 4, 4)
circular_geometry.create_cst_project(
    name='circular_geometry',
    path_to_CST_DE=path_to_CST_DE
)

This code creates simple geometry contain 4 wires equally distributed on imaginary cylinder. Then create_cst_project method creates project. To start using scripts firstly need to change path_to_CST_DE variable. CST project create in cst_project folder.

During using scripts or notebooks for creating projects all the CST Microwave studio windows must be closed

Examples

Several examples located in notebooks folder. make_geometries_example.ipynb shows how create sinmple geometries using Wire and Geometry classes. export_to_cst_example.ipynb shows how create a CST project using jupyter notebook. In examples also located a script shows how create a CST project without using jupyter notebook.

`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cst_geometry-0.1.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

cst_geometry-0.1.0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page