Optical N Port S-Parameter

Optical N Port S-Parameter

SPAR

Optical N Port S-Parameter (SPAR) is a general N-port optical S-parameter element that can represent a linear optical network with any number of ports. It is used to compress a complex subcircuit into a single black box or to reuse Touchstone data directly. When loaded from a file, ports are generated according to the channels defined in the file.

Ports

Two optical signal ports by default. After enabling load from file, ports are regenerated according to the channels in the file.

Name Type Data
port 1 Optical Signal Bidirectional
port 2 Optical Signal Bidirectional

The table expands the default configuration; after changing configuration, port names or directions may change.

Properties

General

Used to identify and manage the element itself, including name, annotation, enable state, and display options. This property group affects schematic presentation only and does not change device behavior.

Name Description Default value Default unit Range
name Element name SPAR_1 - -
annotate Whether to display the annotation true - [true, false]
enabled Whether to enable this element true - [true, false]
type Unique type identifier of the element Optical N Port S-Parameter - -
description Brief description of the element Optical N port s-parameter element - -
prefix Prefix for the element name SPAR - -
local path Local path or working folder of the element - - -

Standard

Defines the port configuration and data source for this network; when loading from a file, ports are generated according to the channels in the file.

Name Description Default value Default unit Range
configuration Port configuration bidirectional - [bidirectional, s parameters]
load from file Whether to load data from a file false - [true, false]
s parameters filename S-parameter file name - - -

Thermal

Sets the operating temperature for temperature-dependent properties to reference; by default inherits the top-level temperature.

Name Description Default value Default unit Range
temperature Temperature %temperature% K (-∞, +∞)

Numerical

Sets how the network is computed, and data-consistency checks such as passivity and reciprocity.

Name Description Default value Default unit Range
remove disconnected ports Whether to remove disconnected ports false - [true, false]
order Number of cascades of the same S-parameter segment. 1 means no cascading 1 - [1, +∞)
passivity Whether to enforce passivity ignore - [ignore, test, enforce, optimal]
passivity tolerance Passivity tolerance 1e-6 - [0, 1]
reciprocity Whether to enforce reciprocity ignore - [ignore, test, enforce]

Numerical / Digital Filter

Fits the device frequency-domain response to a digital filter required for time-domain simulation.

Name Description Default value Default unit Range
digital filter type Digital filter type FIR - [single tap, FIR, IIR]
number of taps estimation Tap-count estimation method fit tolerance - [disabled, fit tolerance, group delay]
filter fit tolerance Filter fit tolerance 0.05 - (0, 1)
filter fit number of iterations Maximum number of filter fit iterations 50 - [1, +∞)
filter fit rolloff Filter fit rolloff 0.05 - [0, 1)
window function Window function rectangular - [rectangular, hamming, hanning]
number of fir taps Number of FIR taps 256 - [1, +∞)
maximum number of fir taps Upper limit on FIR tap count 4096 - [1, +∞)
number of iir taps Number of IIR taps 4 - [2, +∞)
maximum number of iir taps Upper limit on IIR tap count 20 - [2, +∞)
initialize filter taps Whether to initialize filter taps false - [true, false]
fractional delay Whether to enable fractional delay true - [true, false]
delay compensation Delay compensation amount 0 - [0, +∞)

Diagnostic

Used to check the deviation between the ideal response and the digital filter fit, to confirm frequency-domain accuracy of time-domain simulation. Keep disabled for routine simulations.

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 verifying the response:

Results

diagnostic/response

Name Description
transmission Complex transmittance versus frequency for the ideal and fitted responses.
gain Gain (dB) versus frequency for the ideal and fitted responses.
error Relative mean-square error between ideal and fitted amplitudes.

The response number corresponds to a pair of input port, output port, and mode.