Optical Switch
Optical Switch #
![]()
Optical Switch (X) is a 2×2 optical switch that changes connectivity between two pairs of optical ports, supporting bar (1→3, 2→4) or cross (1→4, 2→3) connections. The connectivity is controlled by the control property. This element is used for optical path switching, protection switching, and reconfigurable optical networks, and can be cascaded into multi-stage switch matrices.
Ports #
Four bidirectional optical ports connected as a 2×2 switch. The table shows the default configuration.
| Name | Type | Data |
|---|---|---|
| port 1 | Optical Signal | Bidirectional |
| port 2 | Optical Signal | Bidirectional |
| port 3 | Optical Signal | Bidirectional |
| port 4 | Optical Signal | Bidirectional |
After changing configuration, the port directions may change.
Properties #
General #
Used to identify and manage the element itself, including name, annotation, enabled state, and display. This group of properties only affects schematic presentation and does not change device behavior.
| Name | Description | Default value | Default unit | Range |
|---|---|---|---|---|
| name | Element name | X_1 | - | - |
| annotate | Whether to show annotation | true | - | [true, false] |
| enabled | Whether the element is enabled | true | - | [true, false] |
| type | Unique type identifier of the element | Optical Switch | - | - |
| description | Brief description of the element | Optical 2x2 switch | - | - |
| prefix | Prefix for the element name | X | - | - |
| local path | Local path or working folder of the element | - | - | - |
Standard #
Sets the switch on/off state and performance metrics that determine the current routing and signal attenuation.
| Name | Description | Default value | Default unit | Range |
|---|---|---|---|---|
| configuration | Port configuration | bidirectional | - | [bidirectional, unidirectional] |
| control | Control state or control value | 0 | - | - |
| insertion loss | Insertion loss | 0 | dB | [0, +∞) |
| isolation | Isolation | 100 | dB | (-∞, +∞) |
| return loss | Return loss | 100 | dB | (-∞, +∞) |
Waveguide #
Lists the optical modes supported by this element for interfacing with connected waveguides and devices.
| Name | Description | Default value | Default unit | Range |
|---|---|---|---|---|
| modes | Optical mode labels, separated by English commas, e.g. TE,TM | TE,TM | - | - |
Diagnostic #
Used to check the deviation between the ideal response and the digital-filter fit to confirm frequency-domain accuracy in time-domain simulation. Keep disabled for routine simulation.
| Name | Description | Default value | Default unit | Range |
|---|---|---|---|---|
| run diagnostic | Whether to run diagnostics | false | - | [true, false] |
| diagnostic size | Number of diagnostic data points or buffer size | 1024 | - | [2, +∞) |
Results #
When run diagnostic is enabled, time-domain sampled simulation produces the following results for response verification:
![]()
diagnostic/response
| Name | Description |
|---|---|
| transmission | Complex transmittance of the ideal and fitted responses versus frequency. |
| gain | Gain (dB) of the ideal and fitted responses versus frequency. |
| error | Relative mean-square error between the ideal and fitted amplitudes. |
The response number corresponds to a pair of input port, output port, and mode.

