mcp-cst-studio

v0.2.1
mcp-cst-studio Checked 11 hours ago Published 28 days ago

MCP 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.

ParameterTypeDescription
path *stringFull file path for the new project, e.g. 'C:/cst_projects/MyAntenna.cst'.
project_typestringCST 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.

ParameterTypeDescription
path *stringFull 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'.

ParameterTypeDescription
pathstringOptional 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'.

ParameterTypeDescription
tree_pathstringNavigation 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.

ParameterTypeDescription
format *stringExport format. One of: stl, sat, stp, igs, obj, nas.
path *stringDestination 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.

ParameterTypeDescription
component *stringComponent name (e.g. 'Antenna')
name *stringSolid name (e.g. 'Substrate')
x_max *numberX range maximum
x_min *numberX range minimum
y_max *numberY range maximum
y_min *numberY range minimum
z_max *numberZ range maximum
z_min *numberZ range minimum
materialstringMaterial name

cst_create_cylinder

Create a cylinder in CST Studio. Use inner_radius=0 for a solid cylinder.

ParameterTypeDescription
axis *stringCylinder axis
component *stringComponent name
name *stringSolid name
outer_radius *numberOuter radius
range_max *numberAxis range maximum
range_min *numberAxis range minimum
center_xnumberCenter X coordinate
center_ynumberCenter Y coordinate
center_znumberCenter Z coordinate
inner_radiusnumberInner radius (0 for solid)
materialstringMaterial name

cst_create_cone

Create a cone or truncated cone in CST Studio.

ParameterTypeDescription
axis *stringCone axis
bottom_radius *numberBottom radius
component *stringComponent name
name *stringSolid name
range_max *numberAxis range maximum
range_min *numberAxis range minimum
top_radius *numberTop radius (0 for pointed cone)
center_xnumberCenter X coordinate
center_ynumberCenter Y coordinate
center_znumberCenter Z coordinate
materialstringMaterial name

cst_create_sphere

Create a sphere in CST Studio.

ParameterTypeDescription
component *stringComponent name
name *stringSolid name
radius *numberSphere radius
center_xnumberCenter X coordinate
center_ynumberCenter Y coordinate
center_znumberCenter Z coordinate
materialstringMaterial name
segmentsintegerNumber of segments (0=auto)

cst_create_torus

Create a torus in CST Studio.

ParameterTypeDescription
axis *stringTorus axis
component *stringComponent name
inner_radius *numberMinor radius (tube radius)
name *stringSolid name
outer_radius *numberMajor radius (center to tube center)
center_xnumberCenter X coordinate
center_ynumberCenter Y coordinate
center_znumberCenter Z coordinate
materialstringMaterial name

cst_create_extrude

Extrude a 2D polygon profile into a 3D solid in CST Studio.

ParameterTypeDescription
component *stringComponent name
height *numberExtrusion height
name *stringSolid name
points *arrayList of [x, y] coordinate pairs forming the profile polygon
materialstringMaterial name

cst_create_loft

Create a lofted solid between two or more 2D profiles in CST Studio.

ParameterTypeDescription
component *stringComponent name
name *stringSolid name
profiles *arrayList of profiles, each a list of [x, y] coordinate pairs
materialstringMaterial name

cst_create_wire

Create a bondwire / wire between two points in CST Studio.

ParameterTypeDescription
component *stringComponent name
end_x *numberEnd point X
end_y *numberEnd point Y
end_z *numberEnd point Z
name *stringSolid name
radius *numberWire radius
start_x *numberStart point X
start_y *numberStart point Y
start_z *numberStart point Z

cst_create_polygon3d

Create a 3D polygon curve in CST Studio.

ParameterTypeDescription
name *stringCurve name
points *arrayList of [x, y, z] coordinate triples

cst_create_analytical_curve

Create a parametric analytical curve in CST Studio using expressions of parameter t.

ParameterTypeDescription
name *stringCurve name
t_max *numberParameter t maximum value
t_min *numberParameter t minimum value
x_expr *stringX expression as function of t (e.g. 'cos(t)')
y_expr *stringY expression as function of t (e.g. 'sin(t)')
z_expr *stringZ 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.

ParameterTypeDescription
component *stringComponent name
curve_names *arrayList of curve names to form the face boundary
name *stringFace/solid name

cst_create_ecylinder

Create an elliptical cylinder in CST Studio.

ParameterTypeDescription
axis *stringCylinder axis
component *stringComponent name
name *stringSolid name
range_max *numberAxis range maximum
range_min *numberAxis range minimum
x_radius *numberRadius in local X direction
y_radius *numberRadius in local Y direction
center_xnumberCenter X coordinate
center_ynumberCenter Y coordinate
center_znumberCenter Z coordinate
materialstringMaterial 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.

ParameterTypeDescription
component *stringComponent name
height *numberExtrusion height
name *stringSolid name
points *arrayList of [x, y] coordinate pairs forming the polygon
axisstringExtrusion axis
materialstringMaterial name

cst_boolean_add

Unite/add two solids together. The result replaces solid1 with the combined volume of both shapes.

ParameterTypeDescription
solid1 *stringFirst solid (result kept here) in "Component:Solid" format
solid2 *stringSecond 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.

ParameterTypeDescription
solid1 *stringSolid to subtract from in "Component:Solid" format
solid2 *stringSolid to subtract (removed) in "Component:Solid" format

cst_boolean_intersect

Intersect two solids. Only the overlapping volume is kept, replacing solid1. Solid2 is deleted.

ParameterTypeDescription
solid1 *stringFirst solid in "Component:Solid" format
solid2 *stringSecond solid in "Component:Solid" format

cst_boolean_insert

Insert solid2 into solid1. Solid2 is embedded within solid1, maintaining both material regions at the overlap.

ParameterTypeDescription
solid1 *stringHost solid in "Component:Solid" format
solid2 *stringSolid 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.

ParameterTypeDescription
dx *numberTranslation distance along X axis
dy *numberTranslation distance along Y axis
dz *numberTranslation distance along Z axis
solid *stringSolid reference in "Component:Solid" format
copybooleanIf 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.

ParameterTypeDescription
angle *numberRotation angle in degrees
axis *stringRotation axis
solid *stringSolid reference in "Component:Solid" format
center_xnumberX coordinate of the transform center
center_ynumberY coordinate of the transform center
center_znumberZ coordinate of the transform center
copybooleanIf 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.

ParameterTypeDescription
plane *stringMirror plane
solid *stringSolid reference in "Component:Solid" format
center_xnumberX coordinate of the transform center
center_ynumberY coordinate of the transform center
center_znumberZ coordinate of the transform center
copybooleanIf 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.

ParameterTypeDescription
solid *stringSolid reference in "Component:Solid" format
center_xnumberX coordinate of the transform center
center_ynumberY coordinate of the transform center
center_znumberZ coordinate of the transform center
copybooleanIf true, create a copy instead of moving the original
scale_xnumberScale factor along X axis
scale_ynumberScale factor along Y axis
scale_znumberScale 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.

ParameterTypeDescription
name *stringMaterial name (e.g. 'MySubstrate')
color_bnumberBlue colour component (0-1)
color_gnumberGreen colour component (0-1)
color_rnumberRed colour component (0-1)
conductivitynumberElectric conductivity in S/m
epsilonnumberRelative permittivity (epsilon_r)
munumberRelative permeability (mu_r)
tan_d_enumberElectric loss tangent (tan delta_e)
tan_d_mnumberMagnetic loss tangent (tan delta_m)
transparencynumberTransparency (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.

ParameterTypeDescription
conductivity *numberElectric conductivity in S/m (e.g. 5.8e7 for copper)
name *stringMaterial name (e.g. 'Lossy Copper')
munumberRelative 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.

ParameterTypeDescription
epsilon_x *numberRelative permittivity along X
epsilon_y *numberRelative permittivity along Y
epsilon_z *numberRelative permittivity along Z
mu_x *numberRelative permeability along X
mu_y *numberRelative permeability along Y
mu_z *numberRelative permeability along Z
name *stringMaterial name
tan_d_xnumberElectric loss tangent along X
tan_d_ynumberElectric loss tangent along Y
tan_d_znumberElectric 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.

ParameterTypeDescription
library_name *stringName in the CST library (e.g. 'Copper (annealed)')
name *stringName 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.

ParameterTypeDescription
categorystringFilter 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'.

ParameterTypeDescription
material *stringMaterial name to assign
solid *stringSolid 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.

ParameterTypeDescription
name *stringMaterial name (e.g. 'Copper', 'FR-4', 'Rogers RO4003C')

cst_delete_material

Delete a material from the current CST project.

ParameterTypeDescription
name *stringName 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.

ParameterTypeDescription
delta_epsilon *numberStatic permittivity increment (eps_s - eps_inf)
epsilon_inf *numberHigh-frequency (optical) permittivity limit
name *stringMaterial name (e.g. 'Wet Soil')
relaxation_time_ps *numberRelaxation time in picoseconds
orderintegerDebye model order (1 or 2)
tan_dnumberOptional 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.

ParameterTypeDescription
damping_freq_ghz *numberDamping (collision) frequency in GHz
delta_epsilon *numberOscillator strength (permittivity increment)
epsilon_inf *numberHigh-frequency permittivity limit
name *stringMaterial name (e.g. 'Optical Glass')
resonant_freq_ghz *numberResonant 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.

ParameterTypeDescription
collision_freq_ghz *numberCollision (damping) frequency in GHz
name *stringMaterial name (e.g. 'Drude Gold')
plasma_freq_ghz *numberPlasma 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).

ParameterTypeDescription
epsilon_r *numberRelative permittivity of the ferrite
linewidth_oe *numberFerromagnetic resonance linewidth in Oersted
name *stringMaterial name (e.g. 'YIG Ferrite')
saturation_magnetization_ka_m *numberSaturation magnetisation in kA/m (4piMs)
applied_field_ka_mnumberApplied DC bias magnetic field in kA/m
field_directionstringDirection 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.

ParameterTypeDescription
conductivity *numberElectric conductivity in S/m at reference temperature
epsilon_r *numberRelative permittivity at reference temperature
name *stringMaterial name (e.g. 'Thermal FR-4')
reference_temp_cnumberReference temperature in degrees Celsius
temp_coeff_conductivitynumberTemperature coefficient of conductivity (fractional per K)
temp_coeff_epsilon_ppm_knumberTemperature 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.

ParameterTypeDescription
alpha *numberDistribution parameter (0 = Debye, 1 = max broadening)
delta_epsilon *numberStatic permittivity increment (eps_s - eps_inf)
epsilon_inf *numberHigh-frequency (optical) permittivity limit
name *stringMaterial name (e.g. 'Muscle Tissue')
relaxation_time_ps *numberRelaxation 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.

ParameterTypeDescription
orientation *stringFace of the bounding box where the port is placed
port_number *integerPort number (1-999)
x_max *numberX-axis maximum coordinate of the port aperture (mm)
x_min *numberX-axis minimum coordinate of the port aperture (mm)
y_max *numberY-axis maximum coordinate of the port aperture (mm)
y_min *numberY-axis minimum coordinate of the port aperture (mm)
z_max *numberZ-axis maximum coordinate of the port aperture (mm)
z_min *numberZ-axis minimum coordinate of the port aperture (mm)
coordinatesstringCoordinate 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_numberintegerNumber 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.

ParameterTypeDescription
port_number *integerPort number (1-999)
x1 *numberX coordinate of the start point (mm)
x2 *numberX coordinate of the end point (mm)
y1 *numberY coordinate of the start point (mm)
y2 *numberY coordinate of the end point (mm)
z1 *numberZ coordinate of the start point (mm)
z2 *numberZ coordinate of the end point (mm)
impedancenumberPort impedance in ohms (default 50)
port_typestringExcitation 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.

ParameterTypeDescription
element_type *stringType of lumped element
name *stringUnique name for the lumped element
value *numberElement value (ohms for R, henries for L, farads for C)
x1 *numberX coordinate of the first terminal (mm)
x2 *numberX coordinate of the second terminal (mm)
y1 *numberY coordinate of the first terminal (mm)
y2 *numberY coordinate of the second terminal (mm)
z1 *numberZ coordinate of the first terminal (mm)
z2 *numberZ 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.

ParameterTypeDescription
phi *numberAzimuth angle of incidence in degrees (0-360)
polarization *stringPolarization type
theta *numberElevation angle of incidence in degrees (0-180)
e_phinumberPhi component of the polarization vector (default 0)
e_thetanumberTheta 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.

ParameterTypeDescription
orientation *stringOrientation of the Floquet port (zmin or zmax)
port_number *integerPort number (1-999)
modesintegerNumber 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.

ParameterTypeDescription
port_number *integerPort 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.

ParameterTypeDescription
orientation *stringFace of the bounding box where the port is placed
port_number *integerPort number (1-999)
x_max *numberX-axis maximum coordinate of the port aperture (mm)
x_min *numberX-axis minimum coordinate of the port aperture (mm)
y_max *numberY-axis maximum coordinate of the port aperture (mm)
y_min *numberY-axis minimum coordinate of the port aperture (mm)
z_max *numberZ-axis maximum coordinate of the port aperture (mm)
z_min *numberZ-axis minimum coordinate of the port aperture (mm)
num_modesintegerNumber 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.).

ParameterTypeDescription
x_max *stringBoundary condition on the +X face
x_min *stringBoundary condition on the -X face
y_max *stringBoundary condition on the +Y face
y_min *stringBoundary condition on the -Y face
z_max *stringBoundary condition on the +Z face
z_min *stringBoundary 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.

ParameterTypeDescription
epsilonnumberRelative permittivity (default 1.0, used when material is Normal)
materialstringBackground material type (default Normal)
munumberRelative 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.

ParameterTypeDescription
x_planestringSymmetry condition on the YZ plane (default none)
y_planestringSymmetry condition on the XZ plane (default none)
z_planestringSymmetry 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.

ParameterTypeDescription
f_max *numberMaximum frequency in GHz
f_min *numberMinimum 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.

ParameterTypeDescription
phase_x_degnumberPhase shift in X direction in degrees (default 0)
phase_y_degnumberPhase 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.

ParameterTypeDescription
num_modesintegerNumber of Floquet modes (2-20, default 2)
scan_phi_degnumberScan azimuth angle in degrees (default 0)
scan_theta_degnumberScan 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.

ParameterTypeDescription
mesh_type *stringType 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.

ParameterTypeDescription
cells_per_wavelengthintegerNumber of mesh cells per wavelength (default 15)
min_cellsintegerMinimum number of mesh steps across any structure (default 5)
ratio_limitnumberMaximum 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.

ParameterTypeDescription
component *stringComponent name containing the solid
solid *stringSolid name to refine mesh around
refinement_factornumberRefinement 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.

ParameterTypeDescription
enabledbooleanEnable or disable adaptive meshing (default true)
max_passesintegerMaximum number of adaptive mesh refinement passes (default 3)
thresholdnumberConvergence 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.

ParameterTypeDescription
num_layersintegerNumber of PML layers (4-12, default 4)
reflection_level_dbnumberTarget 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.

ParameterTypeDescription
x *numberX coordinate in mm
y *numberY coordinate in mm
z *numberZ coordinate in mm
namestringOptional 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.

ParameterTypeDescription
accuracynumberAccuracy level in dB: solver stops when energy has decayed to this level (default -40)
excitation_typestringExcitation signal shape (default Gaussian)
fixed_impedancenumberReference impedance in ohms when normalization is enabled (default 50)
max_time_stepsintegerMaximum number of time steps; 0 means automatic (default 0)
normalize_to_fixed_impedancebooleanNormalize S-parameters to a fixed reference impedance (default true)
stimulation_portintegerPort 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.

ParameterTypeDescription
f_max *numberMaximum frequency in GHz
f_min *numberMinimum frequency in GHz
accuracynumberSolver accuracy / residual target (default 1e-6)
samplesintegerNumber of frequency samples (default 1001)
sweep_typestringFrequency 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.

ParameterTypeDescription
accuracynumberSolver accuracy target (default 1e-6)
f_minnumberLower frequency bound in GHz: modes below this are skipped (default 0)
number_of_modesintegerNumber 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.

ParameterTypeDescription
accuracynumberIterative solver residual target (default 1e-3)
max_iterationsintegerMaximum 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.

ParameterTypeDescription
accuracynumberSolver accuracy target (default 1e-6)
frequency_estimate_ghznumberFrequency estimate in GHz to target specific modes (optional)
num_modesintegerNumber of eigenmodes to compute (1-50, default 5)
solver_orderintegerSolver 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.

ParameterTypeDescription
accuracynumberIterative solver residual target (default 1e-3)
low_frequency_stabilizationbooleanEnable low-frequency stabilization for broadband problems (default false)
max_iterationsintegerMaximum number of solver iterations (default 1000)
mlfmmbooleanEnable Multi-Level Fast Multipole Method for large problems (default true)
preconditionerstringPreconditioner 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.

ParameterTypeDescription
f_max *numberMaximum frequency in GHz
f_min *numberMinimum frequency in GHz
num_samplesintegerNumber of frequency samples (default 501)
sweep_typestringFrequency 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.

ParameterTypeDescription
solver_typestringSolver 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.

ParameterTypeDescription
solver_typestringSolver 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.

ParameterTypeDescription
formatstringOutput format for S-parameter data. 'db' = magnitude in dB, 'mag' = linear magnitude, 'real_imag' = real and imaginary parts, 'phase' = phase in degrees.
port_inintegerInput port number (excitation port).
port_outintegerOutput 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract the far-field pattern.
monitor_namestringName 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.

ParameterTypeDescription
frequency *numberMonitor frequency in GHz.
monitor_type *stringType of field monitor to add. Options: Efield (electric field), Hfield (magnetic field), Powerflow (Poynting vector), Current (volume current), Powerloss (loss density), Farfield (radiation pattern),…
namestringCustom 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.

ParameterTypeDescription
portintegerPort 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|).

ParameterTypeDescription
portintegerPort 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.

ParameterTypeDescription
frequency *numberFrequency 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.

ParameterTypeDescription
frequency *numberFrequency 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.

ParameterTypeDescription
tree_pathstringResult 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.

ParameterTypeDescription
output_file *stringFull file path for the exported file.
result_path *stringCST result tree path to export, e.g. '1D Results\S-Parameters\S1,1' or 'Farfields\farfield (f=2.45)'.
formatstringExport 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.

ParameterTypeDescription
port_inintegerInput port number (excitation port).
port_outintegerOutput port number (observation port).
unwrapbooleanIf 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.

ParameterTypeDescription
port_inintegerInput port number (excitation port).
port_outintegerOutput 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract the pattern cut.
phi_cutnumberPhi angle (degrees) for custom plane cut. Only used when plane='custom'. Default 0.
planestringPattern cut plane. 'E' for E-plane (phi=0), 'H' for H-plane (phi=90), 'custom' for arbitrary cut.
theta_cutnumberTheta 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract cross-polarization.
definitionstringPolarization 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract axial ratio.
modestring'vs_angle' to plot AR vs theta at fixed frequency, 'vs_frequency' to plot AR vs frequency at fixed angle.
phi_cutnumberPhi angle (degrees) for the observation direction.
theta_cutnumberTheta 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract surface current.
componentstringOptional: 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.

ParameterTypeDescription
frequency *numberFrequency 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.

ParameterTypeDescription
portintegerPort number for the signal.
port_outintegerOutput port number (only used when signal_type='transmitted'). Specifies which port receives the transmitted signal.
signal_typestring'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.

ParameterTypeDescription
portintegerPort number to extract Smith chart data for.
z0numberReference 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.

ParameterTypeDescription
criterionstring'S11' to use return loss threshold, 'VSWR' to use VSWR threshold.
portintegerPort number to compute bandwidth for.
threshold_dbnumberS11 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract the 3D pattern.
coordinatestring'spherical' for (theta, phi, gain) output, 'cartesian' for (x, y, z, gain) output.
resolution_degnumberAngular 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.

ParameterTypeDescription
frequency *numberFrequency in GHz at which to extract current distribution.
componentstringOptional: 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.

ParameterTypeDescription
tree_path *stringResult tree path, backslash-separated, copied from CST.
f0numberOptional target frequency in the same unit as the curve x-axis. Used only to phrase the resonance verdict.
max_pointsintegerMaximum samples returned. Default 201. Endpoints are kept.
run_idstring | integerParametric 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.

ParameterTypeDescription
frequency_ghz *numberFrequency in GHz. Converted to Hz for the calculator.
componentstringField component passed to get_list, e.g. 'Abs'.
phi_degnumberFixed azimuth for the cut, degrees. Default 0.
quantitystringFarfield quantity, e.g. 'realized gain', 'directivity', 'axial ratio'.
radius_mnumberEvaluation radius in meters. Required by CST even for gain. Default 1.
theta_start_degnumberFirst polar angle, degrees. Default -180.
theta_step_degnumberPolar step, degrees. Default 5. Kept coarse so the payload stays small.
theta_stop_degnumberLast polar angle, degrees. Default 180.
tree_pathstringOptional 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.

ParameterTypeDescription
file_path *stringFull path to the CAD file to import.
format *stringCAD file format: stp (STEP), igs (IGES), stl, sat (ACIS), dxf, obj.
componentstringTarget 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.

ParameterTypeDescription
file_path *stringDestination file path for the exported CAD file.
format *stringExport format: stl, sat, stp (STEP), igs (IGES), obj, nas (NASTRAN).
componentstringOptional 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.

ParameterTypeDescription
file_path *stringFull path to the Touchstone file (.s1p, .s2p, etc.).
port_numberintegerPort 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.

ParameterTypeDescription
file_path *stringDestination file path for the Touchstone file.
formatstringTouchstone 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.

ParameterTypeDescription
file_path *stringDestination file path for the far-field data.
frequency *numberFrequency in GHz for the far-field data to export.
formatstringExport 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.

ParameterTypeDescription
name *stringParameter 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').
descriptionstringOptional 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.

ParameterTypeDescription
name *stringName 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.

ParameterTypeDescription
name *stringName 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.

ParameterTypeDescription
parameter *stringName of the parameter to sweep.
start *numberStart value of the sweep range.
steps *integerNumber of steps in the sweep (minimum 2).
stop *numberStop value of the sweep range.
simulation_typestringSolver 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.

ParameterTypeDescription
goal_type *stringOptimization goal type.
parameters *arrayList of parameters to optimize with their min/max bounds.
result_path *stringResult tree path to optimize, e.g. '1D Results\S-Parameters\S1,1' or '1D Results\S-Parameters\S2,1'.
goal_valuenumberTarget value for 'target' goal type. Ignored for minimize/maximize.
max_evaluationsintegerMaximum number of solver evaluations.
methodstringOptimization 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.

ParameterTypeDescription
goals *arrayList of optimization goals with weights.
parameters *array
constraintsarrayOptional inequality constraints on results.
max_evaluationsinteger
methodstringOptimization 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.

ParameterTypeDescription
parameters *array
result_path *stringResult 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.

ParameterTypeDescription
parameters *array
pass_criteria *array
num_samplesintegerNumber 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.

ParameterTypeDescription
constraints *array
objective *object
parameters *array
max_evaluationsinteger
methodstring

cst_parameter_interpolation

Interpolate results between parameter sweep data points to estimate performance at a specific parameter value without running a new simulation.

ParameterTypeDescription
parameter *stringName of the sweep parameter.
result_path *stringResult tree path to interpolate.
target_value *numberParameter 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.

ParameterTypeDescription
bands *arrayFrequency bands to evaluate.
portintegerPort 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.

ParameterTypeDescription
bands *arrayFrequency bands to analyze impedance for.
portintegerPort number (default: 1).
sample_frequencies_ghzarraySpecific frequencies (GHz) to report detailed impedance. If omitted, band edges and center are used.
z0numberReference 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.

ParameterTypeDescription
bands *arrayFrequency bands with VSWR targets.
parameters *arrayParameters to optimize with initial values and bounds.
max_iterationsintegerMaximum optimization iterations (default: 20).
portintegerPort 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.

ParameterTypeDescription
parameters *objectParameter name to new numeric value, e.g. {"patch_length": 28.4}.
f0_ghznumberTarget frequency in the same unit the S-parameter x-axis uses (often GHz). Used only for the lengthen/shorten verdict.
portintegerReflection 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.

ParameterTypeDescription
read_onlybooleanIf 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
epsilon_rnumberSubstrate relative permittivity (default 4.4: FR-4)
feed_typestringFeed method (default inset)
ground_size_factornumberGround plane size = factor * patch size (default 2.0)
substrate_height_mmnumberSubstrate thickness in mm (default 1.6)
tan_dnumberSubstrate 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
wire_radius_mmnumberWire 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
ground_radius_mmnumberGround plane radius in mm (auto-calculated if omitted)
wire_radius_mmnumberWire 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
anumberWaveguide broad-wall dimension in mm (auto-calculated if omitted)
bnumberWaveguide narrow-wall dimension in mm (auto-calculated if omitted)
gain_dbinumberTarget 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
num_directorsintegerNumber of director elements (default 3)

cst_antenna_helix

Create an axial-mode helical antenna for circular polarization. Generates helix coil, ground plane, and feed.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
ground_typestringGround plane shape (default circular)
num_turnsintegerNumber 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
epsilon_rnumberSubstrate relative permittivity (default 2.2: Rogers)
substrate_height_mmnumberSubstrate thickness in mm (default 1.6)
taper_length_factornumberTaper 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
slot_width_mmnumberSlot 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
ground_length_mmnumberGround plane length in mm (default 100)
ground_width_mmnumberGround 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
ground_length_mmnumberGround plane length in mm (default 100)
ground_width_mmnumberGround plane width in mm (default 40)
patch_width_mmnumberPatch 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.

ParameterTypeDescription
freq_high_ghz *numberHigh end of operating band in GHz
freq_low_ghz *numberLow end of operating band in GHz
num_turnsintegerNumber 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
arm_length_mmnumberArm length in mm (auto-calculated from frequency if omitted)
flare_anglenumberFlare 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.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz (for wavelength reference)
num_elements *integerNumber of elements (2-64)
spacing_mm *numberInter-element spacing in mm
axisstringArray axis (default x)
element_componentstringComponent 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.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz (for wavelength reference)
num_x *integerNumber of elements along X
num_y *integerNumber of elements along Y
spacing_x_mm *numberInter-element spacing along X in mm
spacing_y_mm *numberInter-element spacing along Y in mm
element_componentstringComponent name of the element to replicate (default Antenna)
latticestringLattice type (default rectangular)

cst_array_circular

Create a circular antenna array by placing elements at equal angular intervals around a circle of given radius.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz (for wavelength reference)
num_elements *integerNumber of elements (2-64)
radius_mm *numberArray circle radius in mm
element_componentstringComponent 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.

ParameterTypeDescription
num_elements *integerNumber of elements
spacing_wavelengths *numberInter-element spacing in wavelengths (d/lambda)
amplitude_weightsarrayAmplitude weights per element (default uniform)
array_typestringArray type (default linear)
scan_angle_degnumberScan 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.

ParameterTypeDescription
frequency_ghz *numberOperating frequency in GHz
num_elements *integerNumber of elements
scan_theta_deg *numberDesired scan angle theta in degrees from broadside
spacing_mm *numberInter-element spacing in mm
scan_phi_degnumberDesired 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.

ParameterTypeDescription
num_elements *integerNumber of elements
taper_type *stringWindow/taper type
sidelobe_level_dbnumberDesired 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.

ParameterTypeDescription
spacing_wavelengths *numberInter-element spacing in wavelengths (d/lambda)
max_scan_angle_degnumberMaximum 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.

ParameterTypeDescription
num_ports *integerTotal number of ports in the array
port_numbersarrayExplicit 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.

ParameterTypeDescription
board_length_mm *numberBoard length in mm (Y dimension)
board_width_mm *numberBoard width in mm (X dimension)
layers *arrayOrdered 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.

ParameterTypeDescription
layer *stringLayer name where the trace is placed (e.g. 'Top')
length_mm *numberTrace length in mm
trace_type *stringType of transmission line
copper_thickness_mmnumberCopper thickness in mm (default 0.035 for 1oz)
directionstringTrace direction: 'x' for +X, 'y' for +Y, or angle in degrees from +X axis (e.g. '45')
epsilon_rnumberSubstrate relative permittivity. Required when impedance_target is given.
impedance_targetnumberTarget characteristic impedance in ohms. When specified, trace width is auto-calculated. Requires substrate_height_mm and epsilon_r.
substrate_height_mmnumberSubstrate height between trace and reference plane (mm). Required when impedance_target is given.
width_mmnumberTrace width in mm. If impedance_target is specified, this is ignored and the width is calculated automatically.
x_startnumberX coordinate of trace start (mm)
y_startnumberY coordinate of trace start (mm)
z_positionnumberZ 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.

ParameterTypeDescription
end_layer *stringName of the ending layer (e.g. 'Bottom')
end_z *numberZ coordinate of the via end (bottom) in mm
start_layer *stringName of the starting layer (e.g. 'Top')
start_z *numberZ coordinate of the via start (top) in mm
x *numberVia X position in mm
y *numberVia Y position in mm
antipad_diameter_mmnumberAntipad (clearance) diameter in plane layers in mm
drill_diameter_mmnumberDrill hole diameter in mm
namestringVia name for the CST model (auto-generated if omitted)
pad_diameter_mmnumberAnnular pad diameter in mm
via_typestringVia 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.

ParameterTypeDescription
layer *stringLayer name (e.g. 'GND', 'PWR')
length_mm *numberPlane length in mm (Y dimension)
width_mm *numberPlane width in mm (X dimension)
cutoutsarrayOptional list of rectangular cutout regions
thickness_mmnumberCopper thickness in mm (default 0.035 for 1oz)
z_positionnumberZ 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.

ParameterTypeDescription
file_path *stringPath to the Gerber file (.gbr, .ger, .gtl, .gbl, etc.)
layer_name *stringTarget layer name in the CST model
file_typestringImport 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.

ParameterTypeDescription
filterstringOptional 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)).

ParameterTypeDescription
gap_mm *numberGap between the two traces in mm
layer *stringLayer name (e.g. 'Top')
length_mm *numberTrace length in mm
name *stringBase name for the differential pair (e.g. 'USB_DP')
trace_width_mm *numberWidth of each trace in mm
componentstringCST component name
epsilon_rnumberSubstrate relative permittivity
height_mmnumberSubstrate height to reference plane in mm
target_impedance_diffnumberTarget differential impedance in ohms
x_startnumberX coordinate of the pair center start in mm
y_startnumberY 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.

ParameterTypeDescription
antipad_diameter_mm *numberAntipad (clearance) diameter in mm
drill_diameter_mm *numberDrill hole diameter in mm
end_layer *stringName of the ending (bottom) layer
name *stringVia name for the CST model
pad_diameter_mm *numberAnnular pad diameter in mm
start_layer *stringName of the starting (top) layer
x *numberVia X position in mm
y *numberVia Y position in mm
barrel_plating_umnumberBarrel plating thickness in micrometers
board_thickness_mmnumberBoard thickness in mm
componentstringCST component name
epsilon_rnumberSubstrate 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.

ParameterTypeDescription
name *stringBase name for the via fence
pad_diameter_mm *numberVia pad diameter in mm
via_diameter_mm *numberVia drill diameter in mm
via_spacing_mm *numberCenter-to-center spacing between vias in mm
x_end *numberX coordinate of the fence end in mm
x_start *numberX coordinate of the fence start in mm
y_end *numberY coordinate of the fence end in mm
y_start *numberY coordinate of the fence start in mm
componentstringCST component name
row_offset_mmnumberLateral offset between rows for staggering in mm
rowsintegerNumber 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.

ParameterTypeDescription
cpw_gap_mm *numberCPW gap width in mm
cpw_width_mm *numberCPW center conductor width in mm
height_mm *numberSubstrate height to reference plane in mm
layer *stringLayer name (e.g. 'Top')
microstrip_width_mm *numberMicrostrip trace width at the end of the transition in mm
name *stringName for the transition structure
transition_length_mm *numberLength of the tapered transition in mm
componentstringCST component name
epsilon_rnumberSubstrate relative permittivity
transition_typestringType 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.

ParameterTypeDescription
coupling_length_mm *numberParallel coupling length in mm
epsilon_r *numberSubstrate relative permittivity
frequency_ghz *numberOperating frequency in GHz
height_mm *numberSubstrate height to reference plane in mm
separation_mm *numberEdge-to-edge separation between traces in mm
trace_width_mm *numberWidth 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.

ParameterTypeDescription
layer *stringLayer name (e.g. 'Top')
length_mm *numberSIW length in mm
name *stringName for the SIW structure
via_diameter_mm *numberVia drill diameter in mm
via_pitch_mm *numberCenter-to-center via spacing along the length in mm
width_mm *numberSIW width (center-to-center of via rows) in mm
componentstringCST component name
epsilon_rnumberSubstrate relative permittivity
height_mmnumberSubstrate height in mm
x_startnumberX coordinate of the SIW start in mm
y_startnumberY 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.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz
z_load_real *numberLoad resistance in ohms
z_source_real *numberSource resistance in ohms
topologystringNetwork topology (default lowpass)
z_load_imagnumberLoad reactance in ohms (default 0)
z_source_imagnumberSource 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.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz
z_load_real *numberLoad resistance in ohms
z_source_real *numberSource resistance in ohms
q_factornumberDesired loaded Q factor. Must be > sqrt(R_large/R_small - 1). If omitted, a default Q is chosen automatically.
z_load_imagnumberLoad reactance in ohms (default 0)
z_source_imagnumberSource 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.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz
z_load_real *numberLoad resistance in ohms
z_source_real *numberSource resistance in ohms
q_factornumberDesired loaded Q factor. Must be > sqrt(R_large/R_small - 1). If omitted, a default Q is chosen automatically.
z_load_imagnumberLoad reactance in ohms (default 0)
z_source_imagnumberSource 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.

ParameterTypeDescription
frequency_ghz *numberDesign frequency in GHz
z_load_real *numberLoad resistance in ohms
stub_typestringStub termination type (default open)
z0numberCharacteristic impedance in ohms (default 50)
z_load_imagnumberLoad 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.

ParameterTypeDescription
frequency_ghz *numberDesign center frequency in GHz
z_load *numberLoad impedance in ohms
z_source *numberSource impedance in ohms
designstringMulti-section design method (default maximally_flat)
num_sectionsintegerNumber 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.

ParameterTypeDescription
components *arrayList of lumped components in the network (ordered source to load)
frequency_ghz *numberDesign frequency in GHz
port_impedancenumberPort 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.

ParameterTypeDescription
frequency_ghz *numberOperating frequency in GHz
operation *stringType of transformation to apply
value *numberComponent value: L in nH, C in pF, or transmission line electrical length in degrees
z_in_imag *numberInput reactance in ohms
z_in_real *numberInput resistance in ohms
z0numberReference 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.

ParameterTypeDescription
epsilon_r *numberSubstrate relative permittivity
height_mm *numberSubstrate height (dielectric thickness) in mm
width_mm *numberTrace width in mm
frequency_ghznumberFrequency in GHz for dispersion correction (optional)
thickness_mmnumberConductor 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.

ParameterTypeDescription
code *stringVBA 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.

ParameterTypeDescription
object_name *stringName 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.

ParameterTypeDescription
categorystringOptional category filter. If omitted, all categories are returned.