FDTD_Solver.get_sparameters
rfnetwork.solver.FDTD_Solver.get_sparameters
- FDTD_Solver.get_sparameters(frequency, source_port=1, downsample=False)
Returns a column of the s-parameter matrix with source_port as the excited port. If other ports have non-zero excitations this returns the active S-matrix.
- Return type:
ldarray
Parameters
- frequencynp.ndarray
frequency vector in Hz
- source_portint, default: 1
port number to use as the reference source.
- downsamplebool, default: True
Downsample the time domain solution before applying the DTFT. The DTFT is used instead of an FFT because the FFT returns only a few points within the frequency band of interest, the rest are far out of band because the time step is typically very small. The time domain data can usually be downsampled to speed up the DTFT without impacting the accuracy.
Returns
- ldarray:
labeled numpy array with dimensions: frequency, b (exiting port), a (entering port).