mcp-cst-studio
v0.2.1MCP server for CST Studio Suite: antenna design, RF simulation, and PCB layout
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cst_create_project
Create a new CST Studio Suite project file. In connected mode the project is created directly; in offline mode a VBA script is returned for manual execution.
| Parameter | Type | Description |
|---|---|---|
path * | string | Full file path for the new project, e.g. 'C:/cst_projects/MyAntenna.cst'. |
project_type | string | CST project type. One of: MWS (Microwave Studio), EMS (EM Studio), PS (Particle Studio), MPS (Mphysics Studio), CS (Cable Studio), DS (Design Studio), PCB (PCB Studio). |
cst_open_project
Open an existing CST Studio Suite project. In connected mode the project is opened in the running instance; in offline mode a reference is stored for subsequent operations.
| Parameter | Type | Description |
|---|---|---|
path * | string | Full file path of the existing .cst project to open. |
cst_save_project
Save the currently open CST project. Optionally provide a new path to 'Save As'.
| Parameter | Type | Description |
|---|---|---|
path | string | Optional file path for 'Save As'. If omitted, saves to the current project path. |
cst_close_project
Close the currently open CST project and release its resources.
cst_project_info
Get information about the currently open CST project, including connection mode, project path, and status.
cst_project_tree
List items in the CST project navigation tree. Optionally specify a subtree path such as 'Components', 'Materials', 'Ports', 'Monitors', or 'Results'.
| Parameter | Type | Description |
|---|---|---|
tree_path | string | Navigation tree path to list, e.g. 'Components', 'Results', or '2D/3D Results'. Omit for the root tree. |
cst_export_project
Export the current CST project or its geometry to another format such as STL, STEP, IGES, SAT, OBJ, or NASTRAN.
| Parameter | Type | Description |
|---|---|---|
format * | string | Export format. One of: stl, sat, stp, igs, obj, nas. |
path * | string | Destination file path for the exported file. |
cst_connection_status
Get the current CST Studio connection status, including mode (connected/offline), CST availability, version, and work directory.
cst_create_brick
Create a rectangular brick (box) in CST Studio.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name (e.g. 'Antenna') |
name * | string | Solid name (e.g. 'Substrate') |
x_max * | number | X range maximum |
x_min * | number | X range minimum |
y_max * | number | Y range maximum |
y_min * | number | Y range minimum |
z_max * | number | Z range maximum |
z_min * | number | Z range minimum |
material | string | Material name |
cst_create_cylinder
Create a cylinder in CST Studio. Use inner_radius=0 for a solid cylinder.
| Parameter | Type | Description |
|---|---|---|
axis * | string | Cylinder axis |
component * | string | Component name |
name * | string | Solid name |
outer_radius * | number | Outer radius |
range_max * | number | Axis range maximum |
range_min * | number | Axis range minimum |
center_x | number | Center X coordinate |
center_y | number | Center Y coordinate |
center_z | number | Center Z coordinate |
inner_radius | number | Inner radius (0 for solid) |
material | string | Material name |
cst_create_cone
Create a cone or truncated cone in CST Studio.
| Parameter | Type | Description |
|---|---|---|
axis * | string | Cone axis |
bottom_radius * | number | Bottom radius |
component * | string | Component name |
name * | string | Solid name |
range_max * | number | Axis range maximum |
range_min * | number | Axis range minimum |
top_radius * | number | Top radius (0 for pointed cone) |
center_x | number | Center X coordinate |
center_y | number | Center Y coordinate |
center_z | number | Center Z coordinate |
material | string | Material name |
cst_create_sphere
Create a sphere in CST Studio.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name |
name * | string | Solid name |
radius * | number | Sphere radius |
center_x | number | Center X coordinate |
center_y | number | Center Y coordinate |
center_z | number | Center Z coordinate |
material | string | Material name |
segments | integer | Number of segments (0=auto) |
cst_create_torus
Create a torus in CST Studio.
| Parameter | Type | Description |
|---|---|---|
axis * | string | Torus axis |
component * | string | Component name |
inner_radius * | number | Minor radius (tube radius) |
name * | string | Solid name |
outer_radius * | number | Major radius (center to tube center) |
center_x | number | Center X coordinate |
center_y | number | Center Y coordinate |
center_z | number | Center Z coordinate |
material | string | Material name |
cst_create_extrude
Extrude a 2D polygon profile into a 3D solid in CST Studio.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name |
height * | number | Extrusion height |
name * | string | Solid name |
points * | array | List of [x, y] coordinate pairs forming the profile polygon |
material | string | Material name |
cst_create_loft
Create a lofted solid between two or more 2D profiles in CST Studio.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name |
name * | string | Solid name |
profiles * | array | List of profiles, each a list of [x, y] coordinate pairs |
material | string | Material name |
cst_create_wire
Create a bondwire / wire between two points in CST Studio.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name |
end_x * | number | End point X |
end_y * | number | End point Y |
end_z * | number | End point Z |
name * | string | Solid name |
radius * | number | Wire radius |
start_x * | number | Start point X |
start_y * | number | Start point Y |
start_z * | number | Start point Z |
cst_create_polygon3d
Create a 3D polygon curve in CST Studio.
| Parameter | Type | Description |
|---|---|---|
name * | string | Curve name |
points * | array | List of [x, y, z] coordinate triples |
cst_create_analytical_curve
Create a parametric analytical curve in CST Studio using expressions of parameter t.
| Parameter | Type | Description |
|---|---|---|
name * | string | Curve name |
t_max * | number | Parameter t maximum value |
t_min * | number | Parameter t minimum value |
x_expr * | string | X expression as function of t (e.g. 'cos(t)') |
y_expr * | string | Y expression as function of t (e.g. 'sin(t)') |
z_expr * | string | Z expression as function of t (e.g. 't') |
cst_create_face_from_curves
Create a planar face from one or more closed curves in CST Studio.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name |
curve_names * | array | List of curve names to form the face boundary |
name * | string | Face/solid name |
cst_create_ecylinder
Create an elliptical cylinder in CST Studio.
| Parameter | Type | Description |
|---|---|---|
axis * | string | Cylinder axis |
component * | string | Component name |
name * | string | Solid name |
range_max * | number | Axis range maximum |
range_min * | number | Axis range minimum |
x_radius * | number | Radius in local X direction |
y_radius * | number | Radius in local Y direction |
center_x | number | Center X coordinate |
center_y | number | Center Y coordinate |
center_z | number | Center Z coordinate |
material | string | Material name |
cst_create_polygon_extrude
Create a polygon and extrude it along an axis in CST Studio. Convenience tool combining polygon profile creation and extrusion.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name |
height * | number | Extrusion height |
name * | string | Solid name |
points * | array | List of [x, y] coordinate pairs forming the polygon |
axis | string | Extrusion axis |
material | string | Material name |
cst_boolean_add
Unite/add two solids together. The result replaces solid1 with the combined volume of both shapes.
| Parameter | Type | Description |
|---|---|---|
solid1 * | string | First solid (result kept here) in "Component:Solid" format |
solid2 * | string | Second solid (merged into first) in "Component:Solid" format |
cst_boolean_subtract
Subtract solid2 from solid1. The overlapping volume of solid2 is removed from solid1. Solid2 is deleted.
| Parameter | Type | Description |
|---|---|---|
solid1 * | string | Solid to subtract from in "Component:Solid" format |
solid2 * | string | Solid to subtract (removed) in "Component:Solid" format |
cst_boolean_intersect
Intersect two solids. Only the overlapping volume is kept, replacing solid1. Solid2 is deleted.
| Parameter | Type | Description |
|---|---|---|
solid1 * | string | First solid in "Component:Solid" format |
solid2 * | string | Second solid in "Component:Solid" format |
cst_boolean_insert
Insert solid2 into solid1. Solid2 is embedded within solid1, maintaining both material regions at the overlap.
| Parameter | Type | Description |
|---|---|---|
solid1 * | string | Host solid in "Component:Solid" format |
solid2 * | string | Solid to insert in "Component:Solid" format |
cst_transform_translate
Translate (move) a solid by a displacement vector (dx, dy, dz). Optionally create a translated copy.
| Parameter | Type | Description |
|---|---|---|
dx * | number | Translation distance along X axis |
dy * | number | Translation distance along Y axis |
dz * | number | Translation distance along Z axis |
solid * | string | Solid reference in "Component:Solid" format |
copy | boolean | If true, create a copy instead of moving the original |
cst_transform_rotate
Rotate a solid by a given angle around an axis (x, y, or z). An optional center point can be specified.
| Parameter | Type | Description |
|---|---|---|
angle * | number | Rotation angle in degrees |
axis * | string | Rotation axis |
solid * | string | Solid reference in "Component:Solid" format |
center_x | number | X coordinate of the transform center |
center_y | number | Y coordinate of the transform center |
center_z | number | Z coordinate of the transform center |
copy | boolean | If true, create a copy instead of moving the original |
cst_transform_mirror
Mirror a solid across a plane (xy, xz, or yz). An optional center point can be specified.
| Parameter | Type | Description |
|---|---|---|
plane * | string | Mirror plane |
solid * | string | Solid reference in "Component:Solid" format |
center_x | number | X coordinate of the transform center |
center_y | number | Y coordinate of the transform center |
center_z | number | Z coordinate of the transform center |
copy | boolean | If true, create a copy instead of moving the original |
cst_transform_scale
Scale a solid by independent factors along each axis. An optional center point can be specified.
| Parameter | Type | Description |
|---|---|---|
solid * | string | Solid reference in "Component:Solid" format |
center_x | number | X coordinate of the transform center |
center_y | number | Y coordinate of the transform center |
center_z | number | Z coordinate of the transform center |
copy | boolean | If true, create a copy instead of moving the original |
scale_x | number | Scale factor along X axis |
scale_y | number | Scale factor along Y axis |
scale_z | number | Scale factor along Z axis |
cst_create_material
Create a new material with electromagnetic properties in CST Studio. Specify relative permittivity (epsilon), relative permeability (mu), electric and magnetic loss tangents, and conductivity.
| Parameter | Type | Description |
|---|---|---|
name * | string | Material name (e.g. 'MySubstrate') |
color_b | number | Blue colour component (0-1) |
color_g | number | Green colour component (0-1) |
color_r | number | Red colour component (0-1) |
conductivity | number | Electric conductivity in S/m |
epsilon | number | Relative permittivity (epsilon_r) |
mu | number | Relative permeability (mu_r) |
tan_d_e | number | Electric loss tangent (tan delta_e) |
tan_d_m | number | Magnetic loss tangent (tan delta_m) |
transparency | number | Transparency (0 = opaque, 1 = fully transparent) |
cst_create_lossy_metal
Create a lossy metal material in CST Studio. Lossy metals model finite conductivity skin-effect losses, essential for accurate loss calculations in connectors, waveguides, and PCB traces.
| Parameter | Type | Description |
|---|---|---|
conductivity * | number | Electric conductivity in S/m (e.g. 5.8e7 for copper) |
name * | string | Material name (e.g. 'Lossy Copper') |
mu | number | Relative permeability (mu_r) |
cst_create_anisotropic_material
Create an anisotropic material with per-axis permittivity, permeability, and loss tangent values. Used for crystals, metamaterials, and composite substrates.
| Parameter | Type | Description |
|---|---|---|
epsilon_x * | number | Relative permittivity along X |
epsilon_y * | number | Relative permittivity along Y |
epsilon_z * | number | Relative permittivity along Z |
mu_x * | number | Relative permeability along X |
mu_y * | number | Relative permeability along Y |
mu_z * | number | Relative permeability along Z |
name * | string | Material name |
tan_d_x | number | Electric loss tangent along X |
tan_d_y | number | Electric loss tangent along Y |
tan_d_z | number | Electric loss tangent along Z |
cst_load_material
Load a material from the CST material library by its library name. The material is added to the project under the given name.
| Parameter | Type | Description |
|---|---|---|
library_name * | string | Name in the CST library (e.g. 'Copper (annealed)') |
name * | string | Name for the material in the project |
cst_list_materials
List available materials from the bundled material database. Optionally filter by category: 'metals', 'dielectrics', or 'substrates'. Returns name, key EM properties, and usage notes for each material.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category: 'metals', 'dielectrics', or 'substrates' |
cst_assign_material
Assign a material to an existing solid in CST Studio. The solid is specified as 'Component:SolidName'.
| Parameter | Type | Description |
|---|---|---|
material * | string | Material name to assign |
solid * | string | Solid reference as 'Component:SolidName' (e.g. 'Antenna:Patch') |
cst_get_material_info
Get electromagnetic properties of a material from the bundled database. Returns epsilon_r, mu_r, conductivity, loss tangent, and usage notes.
| Parameter | Type | Description |
|---|---|---|
name * | string | Material name (e.g. 'Copper', 'FR-4', 'Rogers RO4003C') |
cst_delete_material
Delete a material from the current CST project.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the material to delete |
cst_create_debye_material
Create a frequency-dependent dielectric material using the Debye relaxation model. Models polar dielectrics where permittivity decreases with frequency: eps(w) = eps_inf + delta_eps/(1 + jw*tau). Used for biological tissues, water, polymers, and soil.
| Parameter | Type | Description |
|---|---|---|
delta_epsilon * | number | Static permittivity increment (eps_s - eps_inf) |
epsilon_inf * | number | High-frequency (optical) permittivity limit |
name * | string | Material name (e.g. 'Wet Soil') |
relaxation_time_ps * | number | Relaxation time in picoseconds |
order | integer | Debye model order (1 or 2) |
tan_d | number | Optional static loss tangent |
cst_create_lorentz_material
Create a Lorentz oscillator dispersive material. Models resonant dielectric behaviour near absorption bands: eps(w) = eps_inf + delta_eps * w0^2 / (w0^2 - w^2 + j*gamma*w). Used for glass, crystals, and optical materials.
| Parameter | Type | Description |
|---|---|---|
damping_freq_ghz * | number | Damping (collision) frequency in GHz |
delta_epsilon * | number | Oscillator strength (permittivity increment) |
epsilon_inf * | number | High-frequency permittivity limit |
name * | string | Material name (e.g. 'Optical Glass') |
resonant_freq_ghz * | number | Resonant frequency in GHz |
cst_create_drude_material
Create a Drude metal model material for plasmonic and metamaterial simulations. Models free-electron metals: eps(w) = 1 - wp^2 / (w^2 + j*gamma*w). Used for gold, silver, aluminium in optical/THz frequency ranges.
| Parameter | Type | Description |
|---|---|---|
collision_freq_ghz * | number | Collision (damping) frequency in GHz |
name * | string | Material name (e.g. 'Drude Gold') |
plasma_freq_ghz * | number | Plasma frequency in GHz |
cst_create_ferrite_material
Create a ferrite material with gyrotropic permeability tensor (Polder model). Essential for circulators, isolators, and phase shifters. The Polder tensor describes the anisotropic magnetic response of a magnetised ferrite (Pozar Ch. 9.1).
| Parameter | Type | Description |
|---|---|---|
epsilon_r * | number | Relative permittivity of the ferrite |
linewidth_oe * | number | Ferromagnetic resonance linewidth in Oersted |
name * | string | Material name (e.g. 'YIG Ferrite') |
saturation_magnetization_ka_m * | number | Saturation magnetisation in kA/m (4piMs) |
applied_field_ka_m | number | Applied DC bias magnetic field in kA/m |
field_direction | string | Direction of the applied bias field |
cst_create_temperature_dependent_material
Create a material with temperature-dependent electromagnetic properties. Specify base properties and temperature coefficients for thermal-electromagnetic co-simulation.
| Parameter | Type | Description |
|---|---|---|
conductivity * | number | Electric conductivity in S/m at reference temperature |
epsilon_r * | number | Relative permittivity at reference temperature |
name * | string | Material name (e.g. 'Thermal FR-4') |
reference_temp_c | number | Reference temperature in degrees Celsius |
temp_coeff_conductivity | number | Temperature coefficient of conductivity (fractional per K) |
temp_coeff_epsilon_ppm_k | number | Temperature coefficient of permittivity in ppm/K |
cst_create_cole_cole_material
Create a Cole-Cole dispersive material. Generalisation of the Debye model with a distribution parameter alpha (0-1) that broadens the relaxation spectrum. Used for biological tissues, soil, and broadband absorbers.
| Parameter | Type | Description |
|---|---|---|
alpha * | number | Distribution parameter (0 = Debye, 1 = max broadening) |
delta_epsilon * | number | Static permittivity increment (eps_s - eps_inf) |
epsilon_inf * | number | High-frequency (optical) permittivity limit |
name * | string | Material name (e.g. 'Muscle Tissue') |
relaxation_time_ps * | number | Relaxation time in picoseconds |
cst_list_ferrite_materials
List available ferrite materials from the bundled database. Returns name, permittivity, saturation magnetisation, linewidth, loss tangent, maximum frequency, and usage notes for each ferrite.
cst_add_waveguide_port
Add a waveguide port for S-parameter excitation. Defines a port face on the boundary of the simulation domain for guided-wave excitation. IMPORTANT: The port plane should be at or near the edge of the model geometry. Ground planes and substrates must NOT extend past the port plane in the port's orientation direction, or VBA execution may hang. For microstrip feeds: place the port at the end of the feed line where the ground/substrate terminates. Use Coordinates='Free' for ports not aligned to the bounding box. Valid orientations: xmin/xmax/ymin/ymax/zmin/zmax.
| Parameter | Type | Description |
|---|---|---|
orientation * | string | Face of the bounding box where the port is placed |
port_number * | integer | Port number (1-999) |
x_max * | number | X-axis maximum coordinate of the port aperture (mm) |
x_min * | number | X-axis minimum coordinate of the port aperture (mm) |
y_max * | number | Y-axis maximum coordinate of the port aperture (mm) |
y_min * | number | Y-axis minimum coordinate of the port aperture (mm) |
z_max * | number | Z-axis maximum coordinate of the port aperture (mm) |
z_min * | number | Z-axis minimum coordinate of the port aperture (mm) |
coordinates | string | Coordinate mode. 'Free' allows arbitrary placement using the specified ranges (required for microstrip/coplanar ports). 'Full' maps the port to the full bounding-box face. 'Picks' uses previously pick… |
mode_number | integer | Number of modes to consider (default 1) |
cst_add_discrete_port
Add a discrete (lumped) port between two points. Used for circuit-level excitation with a defined impedance.
| Parameter | Type | Description |
|---|---|---|
port_number * | integer | Port number (1-999) |
x1 * | number | X coordinate of the start point (mm) |
x2 * | number | X coordinate of the end point (mm) |
y1 * | number | Y coordinate of the start point (mm) |
y2 * | number | Y coordinate of the end point (mm) |
z1 * | number | Z coordinate of the start point (mm) |
z2 * | number | Z coordinate of the end point (mm) |
impedance | number | Port impedance in ohms (default 50) |
port_type | string | Excitation type (default SParameter) |
cst_add_lumped_element
Add a lumped R, L, C, or RLC element between two points. Value is in ohms for R, henries for L, farads for C.
| Parameter | Type | Description |
|---|---|---|
element_type * | string | Type of lumped element |
name * | string | Unique name for the lumped element |
value * | number | Element value (ohms for R, henries for L, farads for C) |
x1 * | number | X coordinate of the first terminal (mm) |
x2 * | number | X coordinate of the second terminal (mm) |
y1 * | number | Y coordinate of the first terminal (mm) |
y2 * | number | Y coordinate of the second terminal (mm) |
z1 * | number | Z coordinate of the first terminal (mm) |
z2 * | number | Z coordinate of the second terminal (mm) |
cst_add_plane_wave
Add a plane wave excitation source. Defines an incident plane wave with given direction and polarization for scattering / RCS analysis.
| Parameter | Type | Description |
|---|---|---|
phi * | number | Azimuth angle of incidence in degrees (0-360) |
polarization * | string | Polarization type |
theta * | number | Elevation angle of incidence in degrees (0-180) |
e_phi | number | Phi component of the polarization vector (default 0) |
e_theta | number | Theta component of the polarization vector (default 1) |
cst_add_floquet_port
Add a Floquet port for periodic structures such as frequency selective surfaces, metamaterials, and phased arrays.
| Parameter | Type | Description |
|---|---|---|
orientation * | string | Orientation of the Floquet port (zmin or zmax) |
port_number * | integer | Port number (1-999) |
modes | integer | Number of Floquet modes to include (default 2) |
cst_list_ports
List all ports defined in the current CST project. Returns VBA to query port information, or a description in offline mode.
cst_delete_port
Delete a port by its port number.
| Parameter | Type | Description |
|---|---|---|
port_number * | integer | Port number to delete (1-999) |
cst_add_multipin_port
Add a waveguide port with multiple mode monitoring for higher-order mode analysis. Used for multimode waveguides, mode converters, and structures where higher-order propagating modes need to be captured.
| Parameter | Type | Description |
|---|---|---|
orientation * | string | Face of the bounding box where the port is placed |
port_number * | integer | Port number (1-999) |
x_max * | number | X-axis maximum coordinate of the port aperture (mm) |
x_min * | number | X-axis minimum coordinate of the port aperture (mm) |
y_max * | number | Y-axis maximum coordinate of the port aperture (mm) |
y_min * | number | Y-axis minimum coordinate of the port aperture (mm) |
z_max * | number | Z-axis maximum coordinate of the port aperture (mm) |
z_min * | number | Z-axis minimum coordinate of the port aperture (mm) |
num_modes | integer | Number of modes to monitor (1-10, default 1) |
cst_set_boundary
Set boundary conditions for the simulation domain. Each face of the bounding box can be assigned an independent boundary type (open, electric, magnetic, periodic, etc.).
| Parameter | Type | Description |
|---|---|---|
x_max * | string | Boundary condition on the +X face |
x_min * | string | Boundary condition on the -X face |
y_max * | string | Boundary condition on the +Y face |
y_min * | string | Boundary condition on the -Y face |
z_max * | string | Boundary condition on the +Z face |
z_min * | string | Boundary condition on the -Z face |
cst_set_background
Set the background material properties of the simulation domain. The background fills all space not occupied by defined solids.
| Parameter | Type | Description |
|---|---|---|
epsilon | number | Relative permittivity (default 1.0, used when material is Normal) |
material | string | Background material type (default Normal) |
mu | number | Relative permeability (default 1.0, used when material is Normal) |
cst_set_symmetry
Set symmetry planes to reduce computation time. Each axis can be assigned electric or magnetic symmetry, or none. Requires the model geometry and excitation to be compatible with the chosen symmetry.
| Parameter | Type | Description |
|---|---|---|
x_plane | string | Symmetry condition on the YZ plane (default none) |
y_plane | string | Symmetry condition on the XZ plane (default none) |
z_plane | string | Symmetry condition on the XY plane (default none) |
cst_set_frequency_range
Set the simulation frequency range in GHz. This determines the bandwidth over which the solver computes results.
| Parameter | Type | Description |
|---|---|---|
f_max * | number | Maximum frequency in GHz |
f_min * | number | Minimum frequency in GHz |
cst_set_periodic_boundary
Configure periodic boundary conditions with optional phase shift for unit cell simulation. Sets X and Y boundaries to periodic and configures the phase shift for infinite array, FSS, and metasurface analysis.
| Parameter | Type | Description |
|---|---|---|
phase_x_deg | number | Phase shift in X direction in degrees (default 0) |
phase_y_deg | number | Phase shift in Y direction in degrees (default 0) |
cst_set_floquet_port_advanced
Configure advanced Floquet port settings for periodic structures. Controls the number of Floquet modes and scan angle for phased array element simulation and oblique incidence analysis.
| Parameter | Type | Description |
|---|---|---|
num_modes | integer | Number of Floquet modes (2-20, default 2) |
scan_phi_deg | number | Scan azimuth angle in degrees (default 0) |
scan_theta_deg | number | Scan elevation angle in degrees (default 0) |
cst_set_mesh_type
Set the mesh type for the simulation. Hexahedral is used for time-domain, Tetrahedral for frequency-domain, Surface for integral-equation, and Hexahedral TLM for TLM solver.
| Parameter | Type | Description |
|---|---|---|
mesh_type * | string | Type of mesh to use |
cst_set_mesh_density
Set global mesh density parameters controlling automatic mesh generation. Higher cells_per_wavelength gives finer mesh and better accuracy at the cost of longer simulation time.
| Parameter | Type | Description |
|---|---|---|
cells_per_wavelength | integer | Number of mesh cells per wavelength (default 15) |
min_cells | integer | Minimum number of mesh steps across any structure (default 5) |
ratio_limit | number | Maximum ratio between adjacent mesh cells (default 20) |
cst_add_mesh_refinement
Add local mesh refinement to a specific solid. This creates finer mesh around critical geometry features like feed points, gaps, or thin layers.
| Parameter | Type | Description |
|---|---|---|
component * | string | Component name containing the solid |
solid * | string | Solid name to refine mesh around |
refinement_factor | number | Refinement factor: mesh cells are divided by this value (default 2.0) |
cst_set_adaptive_mesh
Configure adaptive mesh refinement. When enabled, the solver runs multiple passes, refining the mesh in regions of high field gradient until the result converges within the specified threshold.
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | Enable or disable adaptive meshing (default true) |
max_passes | integer | Maximum number of adaptive mesh refinement passes (default 3) |
threshold | number | Convergence threshold in dB. Stop when S-parameter change is below this (default 0.02) |
cst_get_mesh_info
Get current mesh statistics and settings. In connected mode this queries the live mesh data; in offline mode it returns the VBA to retrieve mesh info.
cst_get_mesh_quality
Extract mesh quality metrics including total cells, aspect ratios, and cells per wavelength. In connected mode this queries actual mesh statistics; in offline mode it describes what metrics would be returned.
cst_set_pml_properties
Configure PML (Perfectly Matched Layer) absorbing boundary properties. Controls the number of absorbing layers and the target reflection level for fine-tuning radiation boundary accuracy.
| Parameter | Type | Description |
|---|---|---|
num_layers | integer | Number of PML layers (4-12, default 4) |
reflection_level_db | number | Target reflection level in dB (-80 to -20, default -40) |
cst_add_fixpoint_mesh
Add a fixed mesh point at specific coordinates for precise field sampling. Ensures the mesh contains a node exactly at the specified location for accurate field probing.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate in mm |
y * | number | Y coordinate in mm |
z * | number | Z coordinate in mm |
name | string | Optional name for the fixed mesh point |
cst_configure_time_domain_solver
Configure the time domain (transient) solver. This is CST's flagship solver for broadband simulations. It excites the structure with a pulse and computes S-parameters, fields, and farfield across the entire frequency range in a single run.
| Parameter | Type | Description |
|---|---|---|
accuracy | number | Accuracy level in dB: solver stops when energy has decayed to this level (default -40) |
excitation_type | string | Excitation signal shape (default Gaussian) |
fixed_impedance | number | Reference impedance in ohms when normalization is enabled (default 50) |
max_time_steps | integer | Maximum number of time steps; 0 means automatic (default 0) |
normalize_to_fixed_impedance | boolean | Normalize S-parameters to a fixed reference impedance (default true) |
stimulation_port | integer | Port number used for excitation (default 1) |
cst_configure_frequency_domain_solver
Configure the frequency domain solver. Best for narrowband problems, resonant structures, and when field distributions at specific frequencies are needed. Supports interpolated, discrete, and general-purpose sweep types.
| Parameter | Type | Description |
|---|---|---|
f_max * | number | Maximum frequency in GHz |
f_min * | number | Minimum frequency in GHz |
accuracy | number | Solver accuracy / residual target (default 1e-6) |
samples | integer | Number of frequency samples (default 1001) |
sweep_type | string | Frequency sweep type (default Interpolated) |
cst_configure_eigenmode_solver
Configure the eigenmode solver. Computes resonant frequencies and field distributions of cavity structures. Used for filter design, resonator characterization, and Q-factor extraction.
| Parameter | Type | Description |
|---|---|---|
accuracy | number | Solver accuracy target (default 1e-6) |
f_min | number | Lower frequency bound in GHz: modes below this are skipped (default 0) |
number_of_modes | integer | Number of eigenmodes to compute (default 5) |
cst_configure_integral_equation_solver
Configure the integral equation (IE) solver. Best for electrically large, open-boundary problems like antenna placement on vehicles, RCS computation, and EMC/EMI analysis where volume meshing would be impractical.
| Parameter | Type | Description |
|---|---|---|
accuracy | number | Iterative solver residual target (default 1e-3) |
max_iterations | integer | Maximum number of solver iterations (default 1000) |
cst_get_solver_info
Get current solver configuration and status. In connected mode this queries the active solver settings; in offline mode it describes expected parameters.
cst_configure_eigenmode_advanced
Advanced eigenmode solver configuration for higher-order modes. Use this for waveguide mode analysis, cavity resonator design, and filter characterization where fine control over mode count, frequency targeting, and solver order is needed.
| Parameter | Type | Description |
|---|---|---|
accuracy | number | Solver accuracy target (default 1e-6) |
frequency_estimate_ghz | number | Frequency estimate in GHz to target specific modes (optional) |
num_modes | integer | Number of eigenmodes to compute (1-50, default 5) |
solver_order | integer | Solver order 1-3 for higher accuracy (default 1) |
cst_configure_ie_solver_advanced
Advanced Integral Equation solver configuration for electrically large structures. Provides control over preconditioner, MLFMM acceleration, and low-frequency stabilization for installed antenna performance and large-platform RCS analysis.
| Parameter | Type | Description |
|---|---|---|
accuracy | number | Iterative solver residual target (default 1e-3) |
low_frequency_stabilization | boolean | Enable low-frequency stabilization for broadband problems (default false) |
max_iterations | integer | Maximum number of solver iterations (default 1000) |
mlfmm | boolean | Enable Multi-Level Fast Multipole Method for large problems (default true) |
preconditioner | string | Preconditioner type (default ILU) |
cst_configure_multilayer_solver
Configure the solver for planar multilayer structures. Optimised for antenna-on-PCB, frequency selective surfaces (FSS), and radome analysis using the frequency domain solver with multilayer-specific settings.
| Parameter | Type | Description |
|---|---|---|
f_max * | number | Maximum frequency in GHz |
f_min * | number | Minimum frequency in GHz |
num_samples | integer | Number of frequency samples (default 501) |
sweep_type | string | Frequency sweep type (default Interpolated) |
cst_run_simulation
Start a CST simulation with the current solver settings. This is a blocking call that waits for the simulation to complete. Use cst_run_simulation_async for long-running simulations.
| Parameter | Type | Description |
|---|---|---|
solver_type | string | Solver type to use. If omitted, the currently configured solver is used. Options: 'Time Domain', 'Frequency Domain', 'Eigenmode', 'Integral Equation'. |
cst_run_simulation_async
Start a CST simulation asynchronously (non-blocking). In connected mode this calls model3d.run_solver() on a background thread and returns immediately. It does not open a MsgBox and does not add Solver.Start to the history list. The solver type argument is ignored: configure the solver first. Poll cst_get_simulation_status. In offline mode a VBA script is returned.
| Parameter | Type | Description |
|---|---|---|
solver_type | string | Solver type to use. If omitted, the currently configured solver is used. Options: 'Time Domain', 'Frequency Domain', 'Eigenmode', 'Integral Equation'. |
cst_get_simulation_status
Check whether a CST simulation is running. In connected mode this polls model3d.is_solver_running() and the solver log tail. It never opens a MsgBox. Returns idle, running, completed, or error.
cst_pause_simulation
Pause a currently running CST simulation. The simulation can be resumed later with cst_resume_simulation.
cst_resume_simulation
Resume a previously paused CST simulation. Use after cst_pause_simulation to continue from where it stopped.
cst_stop_simulation
Stop and abort a running CST simulation. Unlike pause, a stopped simulation cannot be resumed: it must be restarted from the beginning.
cst_get_s_parameters
Extract S-parameter results from a completed CST simulation. Returns S-parameter data (magnitude, phase, real/imaginary) for the specified port pair. In connected mode reads directly from the result tree; in offline mode returns VBA scripts and explains the CST result tree structure.
| Parameter | Type | Description |
|---|---|---|
format | string | Output format for S-parameter data. 'db' = magnitude in dB, 'mag' = linear magnitude, 'real_imag' = real and imaginary parts, 'phase' = phase in degrees. |
port_in | integer | Input port number (excitation port). |
port_out | integer | Output port number (observation port). |
cst_get_farfield
Get far-field radiation pattern results from a completed CST simulation at a specific frequency. Returns gain, directivity, radiation efficiency, and beam widths. Requires a farfield monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract the far-field pattern. |
monitor_name | string | Name of the far-field monitor. If omitted, defaults to 'farfield (f=<frequency>)' which is the CST auto-generated name. |
cst_add_field_monitor
Add a field monitor at a specific frequency to the CST project. Field monitors must be defined before running a simulation to capture field distributions, far-field patterns, surface currents, or power flow at the desired frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Monitor frequency in GHz. |
monitor_type * | string | Type of field monitor to add. Options: Efield (electric field), Hfield (magnetic field), Powerflow (Poynting vector), Current (volume current), Powerloss (loss density), Farfield (radiation pattern),… |
name | string | Custom name for the monitor. If omitted, a name is auto-generated from the type and frequency, e.g. 'e-field (f=2.45)'. |
cst_get_impedance
Get input impedance (Z-parameters) for a port from a completed CST simulation. Returns real and imaginary impedance vs frequency. Useful for matching network design and feed optimization.
| Parameter | Type | Description |
|---|---|---|
port | integer | Port number to extract impedance for. |
cst_get_vswr
Get Voltage Standing Wave Ratio (VSWR) for a port from a completed CST simulation. VSWR indicates impedance matching quality: 1.0 is perfect match, <2.0 is generally acceptable. Can also be computed from S11: VSWR = (1+|S11|)/(1-|S11|).
| Parameter | Type | Description |
|---|---|---|
port | integer | Port number to extract VSWR for. |
cst_get_gain
Get antenna gain at a specific frequency from a completed CST simulation. Returns peak gain in dBi and the direction (theta, phi) of maximum gain. Requires a farfield monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract gain. |
cst_get_efficiency
Get antenna radiation efficiency from a completed CST simulation at a specific frequency. Returns total efficiency (including mismatch), radiation efficiency (excluding mismatch), and mismatch loss in dB.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract efficiency. |
cst_list_results
List all available results in the CST result tree. Optionally specify a subtree path to narrow the listing. Useful for discovering what simulation results are available before extracting specific data.
| Parameter | Type | Description |
|---|---|---|
tree_path | string | Result tree path to list, e.g. '1D Results', '1D Results\S-Parameters', 'Farfields', '2D/3D Results'. Omit to list top-level result categories. |
cst_export_result
Export a simulation result to a file (CSV, Touchstone, or text). Specify the result tree path and desired output format. Useful for post-processing results in external tools like MATLAB or Python.
| Parameter | Type | Description |
|---|---|---|
output_file * | string | Full file path for the exported file. |
result_path * | string | CST result tree path to export, e.g. '1D Results\S-Parameters\S1,1' or 'Farfields\farfield (f=2.45)'. |
format | string | Export file format. 'csv' for comma-separated values, 'touchstone' for Touchstone/SnP format (S-parameters only), 'txt' for space-separated text. |
cst_get_result_summary
Get a summary of all key simulation results from a completed CST simulation. Returns an overview of S-parameters, gain, efficiency, and impedance. Useful for a quick design evaluation without querying each result type individually.
cst_get_s_parameter_phase
Extract S-parameter phase response from a completed CST simulation. Returns the phase of the specified S-parameter vs frequency. Optionally unwraps the phase to remove 360-degree discontinuities. Useful for group delay analysis and phase-matching designs.
| Parameter | Type | Description |
|---|---|---|
port_in | integer | Input port number (excitation port). |
port_out | integer | Output port number (observation port). |
unwrap | boolean | If true, unwrap the phase to remove 360-degree jumps. Useful for group delay computation. |
cst_get_group_delay
Compute group delay from S-parameter phase for a port pair. Group delay is defined as tau = -d(phase)/d(2*pi*f) and represents the signal propagation delay through the device. Useful for UWB antenna and filter characterization.
| Parameter | Type | Description |
|---|---|---|
port_in | integer | Input port number (excitation port). |
port_out | integer | Output port number (observation port). |
cst_get_pattern_cut
Extract an E-plane, H-plane, or custom radiation pattern cut from a completed CST simulation at a specific frequency. Returns gain vs angle for the selected plane. Requires a farfield monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract the pattern cut. |
phi_cut | number | Phi angle (degrees) for custom plane cut. Only used when plane='custom'. Default 0. |
plane | string | Pattern cut plane. 'E' for E-plane (phi=0), 'H' for H-plane (phi=90), 'custom' for arbitrary cut. |
theta_cut | number | Theta angle (degrees) for custom plane cut. Only used when plane='custom'. Default 90. |
cst_get_cross_polarization
Extract cross-polarization level and cross-polarization discrimination (XPD) from a completed CST simulation. Supports Ludwig-3, Ludwig-2, and circular polarization definitions. Requires a farfield monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract cross-polarization. |
definition | string | Polarization definition to use. 'Ludwig3' is the most common for linear polarization, 'Ludwig2' for aperture antennas, 'circular' for CP antennas. |
cst_get_axial_ratio
Extract axial ratio for circularly polarized antennas from a completed CST simulation. Axial ratio (AR) indicates the quality of circular polarization: AR=0 dB is perfect CP, AR<3 dB is acceptable. Can plot AR vs angle or vs frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract axial ratio. |
mode | string | 'vs_angle' to plot AR vs theta at fixed frequency, 'vs_frequency' to plot AR vs frequency at fixed angle. |
phi_cut | number | Phi angle (degrees) for the observation direction. |
theta_cut | number | Theta angle (degrees) for the observation direction. |
cst_get_surface_current
Extract surface current density distribution from a completed CST simulation at a specific frequency. Useful for understanding current flow on antenna structures and identifying hot spots. Requires a surface current monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract surface current. |
component | string | Optional: specific component to extract current for. If omitted, extracts for all components. |
cst_get_efficiency_breakdown
Get a detailed efficiency breakdown with loss budget from a completed CST simulation. Returns radiation efficiency, total efficiency, and individual loss contributions (mismatch, conductor, dielectric). Useful for identifying dominant loss mechanisms in antenna designs.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract efficiency breakdown. |
cst_get_time_domain_signal
Extract time-domain port signal waveforms from a completed CST time-domain simulation. Returns incident, reflected, or transmitted signal vs time. Useful for UWB pulse analysis, time-domain reflectometry, and transient response evaluation.
| Parameter | Type | Description |
|---|---|---|
port | integer | Port number for the signal. |
port_out | integer | Output port number (only used when signal_type='transmitted'). Specifies which port receives the transmitted signal. |
signal_type | string | 'incident' for the excitation signal at the port, 'reflected' for the reflected signal, 'transmitted' for the signal received at another port. |
cst_get_smith_chart_data
Extract Smith chart formatted impedance data from a completed CST simulation. Computes normalized impedance from S11 reflection coefficient: Z = Z0*(1+S11)/(1-S11). Returns real and imaginary parts of the normalized impedance for Smith chart plotting.
| Parameter | Type | Description |
|---|---|---|
port | integer | Port number to extract Smith chart data for. |
z0 | number | Reference impedance in Ohms for normalization. Typically 50 Ohms for most RF systems. |
cst_get_bandwidth
Calculate impedance bandwidth from S-parameter results. Finds the frequency range where S11 (or VSWR) meets the specified threshold. Returns center frequency, bandwidth in MHz, and fractional bandwidth percentage.
| Parameter | Type | Description |
|---|---|---|
criterion | string | 'S11' to use return loss threshold, 'VSWR' to use VSWR threshold. |
port | integer | Port number to compute bandwidth for. |
threshold_db | number | S11 threshold in dB for bandwidth computation. Common values: -10 dB (VSWR 2:1), -6 dB (VSWR 3:1), -15 dB (VSWR 1.4:1). |
cst_get_radiation_pattern_3d
Export full 3D radiation pattern data from a completed CST simulation at a specific frequency. Returns gain values over the full sphere in spherical or Cartesian coordinates. Useful for antenna pattern visualization and integration with external tools. Requires a farfield monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract the 3D pattern. |
coordinate | string | 'spherical' for (theta, phi, gain) output, 'cartesian' for (x, y, z, gain) output. |
resolution_deg | number | Angular resolution in degrees for the exported pattern. Lower values give finer resolution but larger data. Typical values: 1, 2, 5, 10. |
cst_get_current_distribution
Extract volume current distribution from a completed CST simulation at a specific frequency. Complements surface current extraction by providing current density inside dielectric or lossy volumes. Requires a current density monitor at the specified frequency.
| Parameter | Type | Description |
|---|---|---|
frequency * | number | Frequency in GHz at which to extract current distribution. |
component | string | Optional: specific component to extract current for. If omitted, extracts for all components. |
cst_get_result_curve
Read one 1D result-tree item as numeric samples. Returns a decimated {x, y_re, y_im} curve and, for S-parameters and VSWR, a summary with resonance, minimum return loss, bandwidth, and a short verdict. Pass run_id to select a parametric run. This is the tool to use when the result path is not a built-in S/Z/farfield helper.
| Parameter | Type | Description |
|---|---|---|
tree_path * | string | Result tree path, backslash-separated, copied from CST. |
f0 | number | Optional target frequency in the same unit as the curve x-axis. Used only to phrase the resonance verdict. |
max_points | integer | Maximum samples returned. Default 201. Endpoints are kept. |
run_id | string | integer | Parametric run id. Omit for the latest or only run. |
cst_farfield_sample
Sample realized gain (or another farfield quantity) on a theta cut using the CST Python farfield calculator: reset, add evaluation points, calculate_list, get_list. Radius is meters. Angles are degrees. Requires a calculated farfield source. Does not dump a full 3D sphere through MCP.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Frequency in GHz. Converted to Hz for the calculator. |
component | string | Field component passed to get_list, e.g. 'Abs'. |
phi_deg | number | Fixed azimuth for the cut, degrees. Default 0. |
quantity | string | Farfield quantity, e.g. 'realized gain', 'directivity', 'axial ratio'. |
radius_m | number | Evaluation radius in meters. Required by CST even for gain. Default 1. |
theta_start_deg | number | First polar angle, degrees. Default -180. |
theta_step_deg | number | Polar step, degrees. Default 5. Kept coarse so the payload stays small. |
theta_stop_deg | number | Last polar angle, degrees. Default 180. |
tree_path | string | Optional farfield source path in the result tree. |
cst_import_cad
Import a CAD file into CST Studio. Supports STEP (.stp/.step), IGES (.igs/.iges), STL (.stl), SAT/ACIS (.sat), DXF (.dxf), and OBJ (.obj) formats.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Full path to the CAD file to import. |
format * | string | CAD file format: stp (STEP), igs (IGES), stl, sat (ACIS), dxf, obj. |
component | string | Target component name for the imported geometry. |
cst_export_cad
Export the current CST model (or a specific component) to a CAD format. Supports STL, SAT/ACIS, STEP, IGES, OBJ, and NASTRAN.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Destination file path for the exported CAD file. |
format * | string | Export format: stl, sat, stp (STEP), igs (IGES), obj, nas (NASTRAN). |
component | string | Optional component name to export. If omitted, the entire model is exported. |
cst_import_touchstone
Import a Touchstone S-parameter file (.s1p, .s2p, .snp) into CST Studio for use as a reference or circuit element.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Full path to the Touchstone file (.s1p, .s2p, etc.). |
port_number | integer | Port number to associate the imported data with. |
cst_export_touchstone
Export S-parameter simulation results to a Touchstone file. Requires a completed simulation with S-parameter data.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Destination file path for the Touchstone file. |
format | string | Touchstone format: s1p (1-port), s2p (2-port), snp (n-port). |
cst_export_farfield
Export far-field radiation pattern data to a file. Requires a completed simulation with far-field monitor results.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Destination file path for the far-field data. |
frequency * | number | Frequency in GHz for the far-field data to export. |
format | string | Export format: csv (comma-separated), ffs (CST far-field source), nsf (NSI near-to-far-field). |
cst_set_parameter
Set or create a design parameter in CST Studio. Parameters can hold numeric values or string expressions referencing other parameters.
| Parameter | Type | Description |
|---|---|---|
name * | string | Parameter name (e.g. 'patch_length', 'substrate_h'). |
value * | Parameter value. A number (e.g. 10.5) or a string expression referencing other parameters (e.g. 'patch_length / 2'). | |
description | string | Optional human-readable description of the parameter. |
cst_get_parameter
Get the current value of a design parameter. Returns both the stored expression and the evaluated numeric value.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the parameter to retrieve. |
cst_list_parameters
List all design parameters in the current CST project with their names, expressions, and evaluated numeric values.
cst_delete_parameter
Delete a design parameter from the CST project. The parameter must not be referenced by other parameters or geometry.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the parameter to delete. |
cst_parameter_sweep
Set up a parameter sweep in CST Studio. The sweep runs the simulation multiple times, varying the specified parameter across a range of values.
| Parameter | Type | Description |
|---|---|---|
parameter * | string | Name of the parameter to sweep. |
start * | number | Start value of the sweep range. |
steps * | integer | Number of steps in the sweep (minimum 2). |
stop * | number | Stop value of the sweep range. |
simulation_type | string | Solver type for the sweep. Defaults to Transient. |
cst_optimizer
Set up an optimization in CST Studio. Define a goal (minimize, maximize, or target a specific value for a result), specify which parameters to vary with their bounds, and choose an optimization algorithm.
| Parameter | Type | Description |
|---|---|---|
goal_type * | string | Optimization goal type. |
parameters * | array | List of parameters to optimize with their min/max bounds. |
result_path * | string | Result tree path to optimize, e.g. '1D Results\S-Parameters\S1,1' or '1D Results\S-Parameters\S2,1'. |
goal_value | number | Target value for 'target' goal type. Ignored for minimize/maximize. |
max_evaluations | integer | Maximum number of solver evaluations. |
method | string | Optimization algorithm. |
cst_multi_objective_optimizer
Set up a multi-objective optimization with weighted goals and optional constraints. Supports Pareto-front exploration using Genetic Algorithm or Particle Swarm methods.
| Parameter | Type | Description |
|---|---|---|
goals * | array | List of optimization goals with weights. |
parameters * | array | |
constraints | array | Optional inequality constraints on results. |
max_evaluations | integer | |
method | string | Optimization method (GA or PSO recommended for multi-objective). |
cst_sensitivity_analysis
Set up a one-at-a-time sensitivity analysis to rank parameters by their impact on a result. Varies each parameter individually while keeping others at nominal values.
| Parameter | Type | Description |
|---|---|---|
parameters * | array | |
result_path * | string | Result tree path to monitor. |
cst_yield_analysis
Set up a Monte Carlo yield analysis to estimate manufacturing yield. Randomly varies parameters according to their tolerances and evaluates pass/fail criteria.
| Parameter | Type | Description |
|---|---|---|
parameters * | array | |
pass_criteria * | array | |
num_samples | integer | Number of Monte Carlo samples. |
cst_constrained_optimizer
Single-objective optimization with explicit inequality constraints. Example: minimize S11 subject to gain > 8 dBi and bandwidth > 100 MHz.
| Parameter | Type | Description |
|---|---|---|
constraints * | array | |
objective * | object | |
parameters * | array | |
max_evaluations | integer | |
method | string |
cst_parameter_interpolation
Interpolate results between parameter sweep data points to estimate performance at a specific parameter value without running a new simulation.
| Parameter | Type | Description |
|---|---|---|
parameter * | string | Name of the sweep parameter. |
result_path * | string | Result tree path to interpolate. |
target_value * | number | Parameter value at which to interpolate results. |
cst_evaluate_antenna
Evaluate current antenna simulation results against performance goals. Exports S-parameter data and checks VSWR (or return loss) against per-band targets. Read-only. Does not modify the model. Returns pass/fail per band, worst VSWR, and detected resonances.
| Parameter | Type | Description |
|---|---|---|
bands * | array | Frequency bands to evaluate. |
port | integer | Port number for S-parameter (default: 1). |
cst_analyze_impedance
Analyze antenna impedance match quality across frequency bands using S-parameter data. Exports S11 from a completed simulation, computes VSWR and return loss per frequency point, detects resonances, and provides resonance-based design recommendations (e.g. shift resonance up/down, widen bandwidth). Returns per-band worst/best VSWR, match quality classification, nearest resonance info, and actionable design guidance. Read-only. Does not modify the model.
| Parameter | Type | Description |
|---|---|---|
bands * | array | Frequency bands to analyze impedance for. |
port | integer | Port number (default: 1). |
sample_frequencies_ghz | array | Specific frequencies (GHz) to report detailed impedance. If omitted, band edges and center are used. |
z0 | number | Reference impedance in ohms (default: 50). |
cst_refine_antenna
Run an automated Nelder-Mead optimization loop to tune CST design parameters toward VSWR goals across specified frequency bands. Each iteration sets parameters, runs the solver, exports S11, and evaluates against targets. Uses silent VBA execution to avoid history bloat. Applies the best parameters permanently at the end. Connected mode only: requires a live CST session with a solvable project.
| Parameter | Type | Description |
|---|---|---|
bands * | array | Frequency bands with VSWR targets. |
parameters * | array | Parameters to optimize with initial values and bounds. |
max_iterations | integer | Maximum optimization iterations (default: 20). |
port | integer | Port number (default: 1). |
cst_tune_step
Run one antenna tuning iteration and return a verdict. Connected mode stores parameters, deletes cached results, rebuilds, runs the solver, then reads S-parameters as numbers (resonance, return loss, Zin, and whether to lengthen or shorten). Blocking: the call waits for that single solve. Does not loop. Offline mode returns the sequence without touching CST.
| Parameter | Type | Description |
|---|---|---|
parameters * | object | Parameter name to new numeric value, e.g. {"patch_length": 28.4}. |
f0_ghz | number | Target frequency in the same unit the S-parameter x-axis uses (often GHz). Used only for the lengthen/shorten verdict. |
port | integer | Reflection port. Default 1. |
cst_delete_results
Delete simulation results from the current CST project. This prevents the 'Results May Get Incompatible With Model' dialog that blocks automation when modifying a model with existing results. Call before making parameter or geometry changes on a project that has been solved.
cst_read_project_log
Read solver log files and project status information from the current CST project. Returns solver running state and the contents of the most recent log file. Useful for diagnosing solver errors, checking simulation progress, and understanding what happened during a failed run.
cst_dismiss_dialogs
Find and dismiss any visible CST dialog windows (error popups, 'Results Incompatible' dialogs, solver warnings). Returns the title and text content of each dialog before dismissing it. Use this to unblock CST when a modal dialog is preventing further automation. Uses Win32 API on Windows.
| Parameter | Type | Description |
|---|---|---|
read_only | boolean | If true, only read dialog content without dismissing. Default: false (read and dismiss). |
cst_start_dialog_watcher
Start a background thread that automatically detects and dismisses CST dialog windows as they appear. Essential for long-running operations like optimization loops where dialogs would otherwise block execution. The watcher logs every dialog it dismisses: retrieve the log with cst_stop_dialog_watcher.
cst_stop_dialog_watcher
Stop the background dialog watcher and return its log of all dialogs that were auto-dismissed. Use after completing an operation that required the watcher.
cst_antenna_patch
Create a rectangular microstrip patch antenna with calculated dimensions for a target frequency. Supports inset, microstrip, and probe feed types. Generates substrate, ground plane, patch, feed structure, waveguide port, boundaries, and field monitors.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
epsilon_r | number | Substrate relative permittivity (default 4.4: FR-4) |
feed_type | string | Feed method (default inset) |
ground_size_factor | number | Ground plane size = factor * patch size (default 2.0) |
substrate_height_mm | number | Substrate thickness in mm (default 1.6) |
tan_d | number | Substrate loss tangent (default 0.02) |
cst_antenna_dipole
Create a half-wave dipole antenna at a target frequency. Generates two wire arms with a discrete port at the feed gap.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
wire_radius_mm | number | Wire radius in mm (default 0.5) |
cst_antenna_monopole
Create a quarter-wave monopole antenna over a ground plane. Generates a vertical wire element, ground plane, and feed port.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
ground_radius_mm | number | Ground plane radius in mm (auto-calculated if omitted) |
wire_radius_mm | number | Wire radius in mm (default 0.5) |
cst_antenna_horn
Create a pyramidal horn antenna for a target frequency and gain. Generates the waveguide section, flared horn, and waveguide port.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
a | number | Waveguide broad-wall dimension in mm (auto-calculated if omitted) |
b | number | Waveguide narrow-wall dimension in mm (auto-calculated if omitted) |
gain_dbi | number | Target gain in dBi (default 15) |
cst_antenna_yagi
Create a Yagi-Uda antenna with a reflector, driven element, and configurable number of directors. Generates wire elements and a discrete port feed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
num_directors | integer | Number of director elements (default 3) |
cst_antenna_helix
Create an axial-mode helical antenna for circular polarization. Generates helix coil, ground plane, and feed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
ground_type | string | Ground plane shape (default circular) |
num_turns | integer | Number of helix turns (default 10) |
cst_antenna_vivaldi
Create a Vivaldi (tapered slot) antenna on a dielectric substrate. Generates substrate, exponential taper metallisation, and feed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
epsilon_r | number | Substrate relative permittivity (default 2.2: Rogers) |
substrate_height_mm | number | Substrate thickness in mm (default 1.6) |
taper_length_factor | number | Taper length in wavelengths (default 3) |
cst_antenna_slot
Create a slot antenna in a ground plane. Generates the ground plane with a resonant slot and microstrip feed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
slot_width_mm | number | Slot width in mm (auto-calculated if omitted) |
cst_antenna_ifa
Create an Inverted-F antenna (IFA) suitable for mobile devices. Generates ground plane, radiating arm, shorting pin, and feed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
ground_length_mm | number | Ground plane length in mm (default 100) |
ground_width_mm | number | Ground plane width in mm (default 40) |
cst_antenna_pifa
Create a Planar Inverted-F Antenna (PIFA) for compact wireless devices. Generates ground plane, top patch, shorting wall, and feed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
ground_length_mm | number | Ground plane length in mm (default 100) |
ground_width_mm | number | Ground plane width in mm (default 40) |
patch_width_mm | number | Patch width in mm (auto-calculated if omitted) |
cst_antenna_spiral
Create a wideband Archimedean spiral antenna. Generates two spiral arms with a discrete port feed at the center.
| Parameter | Type | Description |
|---|---|---|
freq_high_ghz * | number | High end of operating band in GHz |
freq_low_ghz * | number | Low end of operating band in GHz |
num_turns | integer | Number of spiral turns (default 5) |
cst_antenna_bowtie
Create a planar bowtie antenna. Generates two triangular arms with a discrete port at the feed gap.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
arm_length_mm | number | Arm length in mm (auto-calculated from frequency if omitted) |
flare_angle | number | Flare half-angle of each arm in degrees (default 60) |
cst_list_antenna_templates
List all available parametric antenna templates with descriptions and typical use cases. No arguments required.
cst_array_linear
Create a linear antenna array by replicating an element along a chosen axis. Uses Transform.Translate to produce copies named Element_1 through Element_N.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz (for wavelength reference) |
num_elements * | integer | Number of elements (2-64) |
spacing_mm * | number | Inter-element spacing in mm |
axis | string | Array axis (default x) |
element_component | string | Component name of the element to replicate (default Antenna) |
cst_array_planar
Create a 2D planar antenna array with rectangular or triangular lattice. Replicates an element in X and Y using Transform.Translate.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz (for wavelength reference) |
num_x * | integer | Number of elements along X |
num_y * | integer | Number of elements along Y |
spacing_x_mm * | number | Inter-element spacing along X in mm |
spacing_y_mm * | number | Inter-element spacing along Y in mm |
element_component | string | Component name of the element to replicate (default Antenna) |
lattice | string | Lattice type (default rectangular) |
cst_array_circular
Create a circular antenna array by placing elements at equal angular intervals around a circle of given radius.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz (for wavelength reference) |
num_elements * | integer | Number of elements (2-64) |
radius_mm * | number | Array circle radius in mm |
element_component | string | Component name of the element to replicate (default Antenna) |
cst_array_compute_factor
Compute the array factor analytically for a linear or planar array. Returns AF(theta) in dB, half-power beamwidth, first null beamwidth, peak sidelobe level, and directivity.
| Parameter | Type | Description |
|---|---|---|
num_elements * | integer | Number of elements |
spacing_wavelengths * | number | Inter-element spacing in wavelengths (d/lambda) |
amplitude_weights | array | Amplitude weights per element (default uniform) |
array_type | string | Array type (default linear) |
scan_angle_deg | number | Scan angle in degrees from broadside (default 0) |
cst_array_beam_steering
Calculate progressive phase weights to steer the main beam to a specified angle. Returns phase weights and VBA to set port phases in CST.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Operating frequency in GHz |
num_elements * | integer | Number of elements |
scan_theta_deg * | number | Desired scan angle theta in degrees from broadside |
spacing_mm * | number | Inter-element spacing in mm |
scan_phi_deg | number | Desired scan angle phi in degrees (default 0) |
cst_array_taper_design
Design amplitude taper weights for sidelobe control. Supports uniform, cosine, Hamming, Hanning, Blackman, Taylor, and Chebyshev window functions.
| Parameter | Type | Description |
|---|---|---|
num_elements * | integer | Number of elements |
taper_type * | string | Window/taper type |
sidelobe_level_db | number | Desired peak sidelobe level in dB (negative, default -25). Used for Taylor and Chebyshev only. |
cst_array_grating_lobe_analysis
Analyse whether grating lobes exist for a given element spacing and maximum scan angle. Returns safe spacing and grating lobe angles.
| Parameter | Type | Description |
|---|---|---|
spacing_wavelengths * | number | Inter-element spacing in wavelengths (d/lambda) |
max_scan_angle_deg | number | Maximum scan angle from broadside in degrees (default 60) |
cst_array_mutual_coupling
Set up a multi-port S-parameter simulation in CST for mutual coupling extraction between array elements.
| Parameter | Type | Description |
|---|---|---|
num_ports * | integer | Total number of ports in the array |
port_numbers | array | Explicit port numbers to include (default 1..num_ports) |
cst_pcb_create_stackup
Create a PCB layer stackup in CST Studio. Generates brick geometry for each layer (signal, ground, power, dielectric) positioned vertically with correct materials. Returns total thickness and layer positions.
| Parameter | Type | Description |
|---|---|---|
board_length_mm * | number | Board length in mm (Y dimension) |
board_width_mm * | number | Board width in mm (X dimension) |
layers * | array | Ordered list of layers from top to bottom. Example 4-layer: signal-dielectric-ground-dielectric(core)-power-dielectric-signal |
cst_pcb_create_trace
Create a PCB trace (microstrip, stripline, coplanar waveguide, or grounded CPW) in CST Studio. Optionally calculates trace width from a target impedance using Hammerstad-Jensen (microstrip) or Cohn (stripline) formulas.
| Parameter | Type | Description |
|---|---|---|
layer * | string | Layer name where the trace is placed (e.g. 'Top') |
length_mm * | number | Trace length in mm |
trace_type * | string | Type of transmission line |
copper_thickness_mm | number | Copper thickness in mm (default 0.035 for 1oz) |
direction | string | Trace direction: 'x' for +X, 'y' for +Y, or angle in degrees from +X axis (e.g. '45') |
epsilon_r | number | Substrate relative permittivity. Required when impedance_target is given. |
impedance_target | number | Target characteristic impedance in ohms. When specified, trace width is auto-calculated. Requires substrate_height_mm and epsilon_r. |
substrate_height_mm | number | Substrate height between trace and reference plane (mm). Required when impedance_target is given. |
width_mm | number | Trace width in mm. If impedance_target is specified, this is ignored and the width is calculated automatically. |
x_start | number | X coordinate of trace start (mm) |
y_start | number | Y coordinate of trace start (mm) |
z_position | number | Z position of the trace bottom surface in mm. If omitted, defaults to 0 (top surface of the board). |
cst_pcb_create_via
Create a PCB via (through, blind, or buried) in CST Studio. Generates the cylindrical via barrel with specified drill and pad dimensions. Pad and antipad diameters are validated and reported but the geometry covers the barrel only; add pads separately if needed.
| Parameter | Type | Description |
|---|---|---|
end_layer * | string | Name of the ending layer (e.g. 'Bottom') |
end_z * | number | Z coordinate of the via end (bottom) in mm |
start_layer * | string | Name of the starting layer (e.g. 'Top') |
start_z * | number | Z coordinate of the via start (top) in mm |
x * | number | Via X position in mm |
y * | number | Via Y position in mm |
antipad_diameter_mm | number | Antipad (clearance) diameter in plane layers in mm |
drill_diameter_mm | number | Drill hole diameter in mm |
name | string | Via name for the CST model (auto-generated if omitted) |
pad_diameter_mm | number | Annular pad diameter in mm |
via_type | string | Via type |
cst_pcb_create_ground_plane
Create a ground or power plane with optional cutouts (split planes, isolation slots) in CST Studio. Generates a solid copper brick and subtracts cutout regions.
| Parameter | Type | Description |
|---|---|---|
layer * | string | Layer name (e.g. 'GND', 'PWR') |
length_mm * | number | Plane length in mm (Y dimension) |
width_mm * | number | Plane width in mm (X dimension) |
cutouts | array | Optional list of rectangular cutout regions |
thickness_mm | number | Copper thickness in mm (default 0.035 for 1oz) |
z_position | number | Z position of the plane bottom surface in mm |
cst_pcb_import_gerber
Import a Gerber/ODB++/DXF file for PCB analysis in CST Studio. Generates VBA for the CST Gerber import wizard. In offline mode, explains the import process and required settings.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the Gerber file (.gbr, .ger, .gtl, .gbl, etc.) |
layer_name * | string | Target layer name in the CST model |
file_type | string | Import file format |
cst_pcb_list_stackup_templates
List predefined PCB stackup templates with complete layer definitions. Includes standard 2/4/6-layer FR-4 and RF-grade Rogers stackups. Use the returned layer data directly with cst_pcb_create_stackup.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter string to match template names (e.g. '4-layer', 'Rogers', 'RF'). Case-insensitive. |
cst_pcb_differential_pair
Create a differential pair of PCB traces in CST Studio. Generates two parallel bricks separated by a gap and calculates the differential impedance using coupled-line theory (Zdiff = 2*Z0*(1-k)).
| Parameter | Type | Description |
|---|---|---|
gap_mm * | number | Gap between the two traces in mm |
layer * | string | Layer name (e.g. 'Top') |
length_mm * | number | Trace length in mm |
name * | string | Base name for the differential pair (e.g. 'USB_DP') |
trace_width_mm * | number | Width of each trace in mm |
component | string | CST component name |
epsilon_r | number | Substrate relative permittivity |
height_mm | number | Substrate height to reference plane in mm |
target_impedance_diff | number | Target differential impedance in ohms |
x_start | number | X coordinate of the pair center start in mm |
y_start | number | Y coordinate of the pair center start in mm |
cst_pcb_via_model
Create a detailed PCB via model in CST Studio with parasitic inductance and capacitance estimates. Uses the Goldfarb model for via inductance and a simplified capacitance formula.
| Parameter | Type | Description |
|---|---|---|
antipad_diameter_mm * | number | Antipad (clearance) diameter in mm |
drill_diameter_mm * | number | Drill hole diameter in mm |
end_layer * | string | Name of the ending (bottom) layer |
name * | string | Via name for the CST model |
pad_diameter_mm * | number | Annular pad diameter in mm |
start_layer * | string | Name of the starting (top) layer |
x * | number | Via X position in mm |
y * | number | Via Y position in mm |
barrel_plating_um | number | Barrel plating thickness in micrometers |
board_thickness_mm | number | Board thickness in mm |
component | string | CST component name |
epsilon_r | number | Substrate relative permittivity |
cst_pcb_via_fence
Create a row (or multiple rows) of vias along a path for isolation or Substrate Integrated Waveguide (SIW) construction. Generates an array of cylinders from start to end point with specified spacing.
| Parameter | Type | Description |
|---|---|---|
name * | string | Base name for the via fence |
pad_diameter_mm * | number | Via pad diameter in mm |
via_diameter_mm * | number | Via drill diameter in mm |
via_spacing_mm * | number | Center-to-center spacing between vias in mm |
x_end * | number | X coordinate of the fence end in mm |
x_start * | number | X coordinate of the fence start in mm |
y_end * | number | Y coordinate of the fence end in mm |
y_start * | number | Y coordinate of the fence start in mm |
component | string | CST component name |
row_offset_mm | number | Lateral offset between rows for staggering in mm |
rows | integer | Number of parallel rows (1-3) |
cst_pcb_cpw_transition
Create a coplanar waveguide (CPW) to microstrip transition in CST Studio. Generates a tapered geometry that linearly tapers the center conductor width and gap over the transition length. Calculates CPW and microstrip impedances.
| Parameter | Type | Description |
|---|---|---|
cpw_gap_mm * | number | CPW gap width in mm |
cpw_width_mm * | number | CPW center conductor width in mm |
height_mm * | number | Substrate height to reference plane in mm |
layer * | string | Layer name (e.g. 'Top') |
microstrip_width_mm * | number | Microstrip trace width at the end of the transition in mm |
name * | string | Name for the transition structure |
transition_length_mm * | number | Length of the tapered transition in mm |
component | string | CST component name |
epsilon_r | number | Substrate relative permittivity |
transition_type | string | Type of transition |
cst_pcb_calculate_coupling
Calculate electromagnetic coupling between parallel PCB traces. Computes even/odd mode impedances, coupling coefficient, and near-end/far-end crosstalk estimates using coupled microstrip formulas. Pure calculation. No VBA or CST geometry is generated.
| Parameter | Type | Description |
|---|---|---|
coupling_length_mm * | number | Parallel coupling length in mm |
epsilon_r * | number | Substrate relative permittivity |
frequency_ghz * | number | Operating frequency in GHz |
height_mm * | number | Substrate height to reference plane in mm |
separation_mm * | number | Edge-to-edge separation between traces in mm |
trace_width_mm * | number | Width of each trace in mm |
cst_pcb_siw_waveguide
Create a Substrate Integrated Waveguide (SIW) in CST Studio. Generates top and bottom copper planes with two rows of via fences forming the waveguide sidewalls. Calculates effective width, cutoff frequency, and guided wavelength using Cassivi et al. formulas.
| Parameter | Type | Description |
|---|---|---|
layer * | string | Layer name (e.g. 'Top') |
length_mm * | number | SIW length in mm |
name * | string | Name for the SIW structure |
via_diameter_mm * | number | Via drill diameter in mm |
via_pitch_mm * | number | Center-to-center via spacing along the length in mm |
width_mm * | number | SIW width (center-to-center of via rows) in mm |
component | string | CST component name |
epsilon_r | number | Substrate relative permittivity |
height_mm | number | Substrate height in mm |
x_start | number | X coordinate of the SIW start in mm |
y_start | number | Y coordinate of the SIW start in mm |
cst_matching_l_network
Design an L-section impedance matching network. Computes inductor and capacitor values for matching a source impedance to a load impedance at a given frequency. Supports lowpass and highpass topologies. Pure Python computation. No CST connection needed.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz |
z_load_real * | number | Load resistance in ohms |
z_source_real * | number | Source resistance in ohms |
topology | string | Network topology (default lowpass) |
z_load_imag | number | Load reactance in ohms (default 0) |
z_source_imag | number | Source reactance in ohms (default 0) |
cst_matching_pi_network
Design a Pi-section impedance matching network (C-L-C or L-C-L). Uses two back-to-back L-sections via a virtual resistance for controllable Q factor. Pure Python computation.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz |
z_load_real * | number | Load resistance in ohms |
z_source_real * | number | Source resistance in ohms |
q_factor | number | Desired loaded Q factor. Must be > sqrt(R_large/R_small - 1). If omitted, a default Q is chosen automatically. |
z_load_imag | number | Load reactance in ohms (default 0) |
z_source_imag | number | Source reactance in ohms (default 0) |
cst_matching_t_network
Design a T-section impedance matching network (L-C-L). Dual of Pi-network, uses two back-to-back L-sections. Pure Python computation.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz |
z_load_real * | number | Load resistance in ohms |
z_source_real * | number | Source resistance in ohms |
q_factor | number | Desired loaded Q factor. Must be > sqrt(R_large/R_small - 1). If omitted, a default Q is chosen automatically. |
z_load_imag | number | Load reactance in ohms (default 0) |
z_source_imag | number | Source reactance in ohms (default 0) |
cst_matching_stub
Design a single-stub impedance matching network. Computes the stub length and distance from the load using Smith chart transmission-line matching. Pure Python computation.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design frequency in GHz |
z_load_real * | number | Load resistance in ohms |
stub_type | string | Stub termination type (default open) |
z0 | number | Characteristic impedance in ohms (default 50) |
z_load_imag | number | Load reactance in ohms (default 0) |
cst_matching_quarter_wave
Design a quarter-wave transformer matching network. Supports single and multi-section designs with maximally flat (binomial) or Chebyshev impedance profiles. Pure Python computation.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Design center frequency in GHz |
z_load * | number | Load impedance in ohms |
z_source * | number | Source impedance in ohms |
design | string | Multi-section design method (default maximally_flat) |
num_sections | integer | Number of quarter-wave sections (1-4, default 1) |
cst_matching_create_lumped
Generate CST VBA code to create a lumped-element matching network. Each component (inductor, capacitor, resistor) is placed as a CST LumpedElement with specified series/shunt connection.
| Parameter | Type | Description |
|---|---|---|
components * | array | List of lumped components in the network (ordered source to load) |
frequency_ghz * | number | Design frequency in GHz |
port_impedance | number | Port reference impedance in ohms (default 50) |
cst_impedance_smith_transform
Apply a reactive element transformation to an impedance on the Smith chart. Supports series L/C, shunt L/C, and transmission line operations. Returns transformed impedance, reflection coefficient, and VSWR. Pure Python computation.
| Parameter | Type | Description |
|---|---|---|
frequency_ghz * | number | Operating frequency in GHz |
operation * | string | Type of transformation to apply |
value * | number | Component value: L in nH, C in pF, or transmission line electrical length in degrees |
z_in_imag * | number | Input reactance in ohms |
z_in_real * | number | Input resistance in ohms |
z0 | number | Reference impedance in ohms (default 50) |
cst_matching_microstrip_impedance
Calculate microstrip transmission line characteristic impedance from physical dimensions using the Hammerstad-Jensen model with optional Kirschning-Jansen frequency dispersion correction. Pure Python computation.
| Parameter | Type | Description |
|---|---|---|
epsilon_r * | number | Substrate relative permittivity |
height_mm * | number | Substrate height (dielectric thickness) in mm |
width_mm * | number | Trace width in mm |
frequency_ghz | number | Frequency in GHz for dispersion correction (optional) |
thickness_mm | number | Conductor thickness in mm (default 0.035 = 1 oz copper) |
cst_execute_vba
Execute raw VBA code in CST Studio Suite. The code is validated for safety (shell access, file I/O, and external process execution are blocked). In connected mode the code runs directly; in offline mode the validated script is returned for manual execution.
| Parameter | Type | Description |
|---|---|---|
code * | string | VBA code to execute in CST Studio. Must not contain shell commands, file I/O, or external process calls. |
cst_vba_help
Get VBA reference documentation for a CST Studio object. Returns the object description and a list of its common methods and properties.
| Parameter | Type | Description |
|---|---|---|
object_name * | string | Name of the CST VBA object to look up, e.g. 'Brick', 'Solver', 'Material', 'Port', 'Mesh', 'FarfieldPlot'. |
cst_list_vba_objects
List available CST Studio VBA objects, optionally filtered by category. Returns object names with brief descriptions.
| Parameter | Type | Description |
|---|---|---|
category | string | Optional category filter. If omitted, all categories are returned. |