cst_add_waveguide_port
Add a waveguide port for S-parameter excitation by defining a port face on the simulation domain boundary. Specify orientation, aperture coordinates, and mode count to enable guided-wave simulation.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x_max | Yes | X-axis maximum coordinate of the port aperture (mm) | |
| x_min | Yes | X-axis minimum coordinate of the port aperture (mm) | |
| y_max | Yes | Y-axis maximum coordinate of the port aperture (mm) | |
| y_min | Yes | Y-axis minimum coordinate of the port aperture (mm) | |
| z_max | Yes | Z-axis maximum coordinate of the port aperture (mm) | |
| z_min | Yes | Z-axis minimum coordinate of the port aperture (mm) | |
| coordinates | No | 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 picked geometry faces. Default: 'Free'. | Free |
| mode_number | No | Number of modes to consider (default 1) | |
| orientation | Yes | Face of the bounding box where the port is placed | |
| port_number | Yes | Port number (1-999) |