TOPICA Results

TOPICA Utilities

TopicaResult(filename[, z0, deemb])

TOPICA result.

class west_ic_antenna.topica.TopicaResult(filename: str, z0: float = 50, deemb: float = 0)[source]

TOPICA result.

TOPICA result object, which provides convenience methods.

Parameters:
  • filename (str) – filename of the Impedance ascii file generated by TOPICA

  • z0 (float, optional) – characteristic impedance of the port in Ohm (default: 50)

  • deemb (float, optionnal) – de-embedding length to take into account (in meter)

Rc(I: list = [1, -1, -1, 1]) ndarray[source]

Calculate the coupling resistance of the TOPICA Z-matrix for a given current excitation.

Coupling resistance is defined as in [1]

Parameters:

I (list) – Current excitation at port. Default is [1, -1, -1, 1], ie. dipole phasing of 2x2 straps antenna

Returns:

Rc – Coupling Resistance

Return type:

numpy.ndarray

References

property raw_data: str

raw TOPICA data from txt file

Returns:

data – raw TOPICA data : [index_row, index_col, real_z, z_imag]

Return type:

array

property s: ndarray

Get the scattering parameters as an NxN array, N being the number of ports.

Does NOT take into account possible deembbeding.

Returns:

s – scattering parameters of the TOPICA result

Return type:

numpy.ndarray of shape n x n

to_network(skrf_frequency: Frequency, name: str = 'front-face') Network[source]

Convert into a skrf Network.

Assume the scattering parameters of the network are the same for all the frequencies of the network.

Parameters:
  • skrf_frequency (skrf.frequency.Frequency) – Frequency of the network (for compatibility with skrf)

  • name (string, optional) – name of the network. Default is ‘front-face’

Returns:

network

Return type:

skrf.network.Network

write_touchstone(filename: str, skrf_frequency: Frequency, name: str = 'front-face')[source]

Write the scattering parameters into a Touchstone file format.

(.sNp where N is the number of ports).

Parameters:
  • filename (string) – Touchstone filename

  • skrf_frequency – skrf Frequency object

  • name (string:) – name of the network

property z: ndarray

Get the impedance matrix as an NxN array, N being the number of ports.

Returns:

z – impedance matrix

Return type:

numpy.ndarray

property z0: ndarray

Characteristic Impedance of the TOPICA Model’s ports

Returns:

z0

Return type:

array