Solution.s_parameters
Description
Retrieves the scattering parameters (S-parameters) computed by the electromagnetic solver over the simulated frequency range.
S-parameters describe the reflection and transmission of signals between the ports of an electromagnetic model. They are represented as complex values, providing both magnitude and phase information at each simulated frequency.
The method returns an
SParameters
object, which provides access to individual S-parameters and methods for
plotting their frequency responses.
Syntax
obj
obj A Solution
object returned by
HighFrequency.solve.
sparams = obj.s_parameters()
sparams = obj.s_parameters() Retrieves the computed S-parameters and
returns an SParameters object containing their complex values and
corresponding frequency data.
Output Arguments
sparams- Type
SParametersSParameters object containing the complex scattering parameters and their corresponding frequency values in Hz.
Examples
sparams = solution.s_parameters()
# Retrieve the reflection coefficient at port 1
s11 = sparams.get(1, 1)
# Access the corresponding frequency values
frequencies = sparams.frequency
# Plot the reflection coefficient
sparams.plot(port_out=1, port_in=1)
Notes
S-parameters are available for models with configured excitation ports. The returned data corresponds to the frequencies used in the simulation.
Port numbering starts at 1 when using SParameters.get() and
SParameters.plot().