Package empro :: Module toolkit :: Class CircuitMatrix
[frames] | no frames]

Class CircuitMatrix

source code

Instance Methods
 
__init__(self, path, name='data', samplingType='Linear', targetNbSamples=200)
@param path Can be either the path of a sio-, cti- or touchstone file...
source code
 
nbPorts(self)
number of ports @deprecated, use numberOfPorts
source code
 
numberOfPorts(self)
number of ports
source code
 
portName(self, i)
name of the i-th port (0-based indexing)
source code
 
name2id(self, portName)
returns the index for the port with name portName
source code
 
setSamplingConfiguration(self, samplingType, targetNbSamples)
sets the sampling configuration @param samplingType one of ['Linear', 'Logarithmic'] @param targetNbSamples target number of samples
source code
 
frequencies(self)
returns the frequencies
source code
 
Src(self, port1, port2, complexPart)
returns the dataset for S(port1, port2) @param port1 name of the port for the matrix row @param port2 name of the port for the matrix column @param complexPart must be in ["ComplexMagnitude", "Phase", "RealPart" or "ImaginaryPart"]
source code
 
Zrc(self, port1, port2, complexPart)
returns the dataset for the impedance Z(port1, port2) @param port1 name of the port for the matrix row @param port2 name of the port for the matrix column @param complexPart must be in ["ComplexMagnitude", "Phase", "RealPart" or "ImaginaryPart"]
source code
 
Rrc(self, port1, port2)
returns the dataset for the resistance R(port1, port2)...
source code
 
Lrc(self, port1, port2)
returns the dataset for the inductance L(port1, port2)...
source code
 
Crc(self, port1, port2)
returns the dataset for the capacitance C(port1, port2)...
source code
 
Zref(self, port, complexPart)
returns the dataset for the reference impedance Zref(port) @param port name of the port @param complexPart must be in ["ComplexMagnitude", "Phase", "RealPart" or "ImaginaryPart"]
source code
 
Smatrix(self, freq)
returns the S-matrix for at freq [Hz] @param freq evaluation frequency [Hz]
source code
 
write(self, targetFileName, exportFormat, precision=16)
Writes the circuit result to file @param targetFileName file to be written @param exportFormat one of 'sio_ascii', 'sio_binary', 'cti', 'ads_dataset' or 'touchstone' @param precision number of digits per double (6=single precision, 16=full precision)
source code
 
writeReordered(self, targetFileName, exportFormat, portOrder, precision=16)
Writes the circuit result to file @param targetFileName file to be written @param exportFormat one of 'sio_ascii', 'sio_binary', 'cti', 'ads_dataset' or 'touchstone' @param portOrder port names, in the requested order @param precision number of digits per double (6=single precision, 16=full precision)
source code
Method Details

__init__(self, path, name='data', samplingType='Linear', targetNbSamples=200)
(Constructor)

source code 

@param   path   Can be either the path of a sio-, cti- or touchstone file
                or the path of a directory containing a fem simulation
                (typically <...>/emds_dsn/design)
@param   name   name of the circuit matrix

Rrc(self, port1, port2)

source code 

returns the dataset for the resistance R(port1, port2)
with R(i,i) = real(1/Y(i,i))                   (= all other ports shorted)
     R(i,j) = real(Z(i,i) - 2*Z(i,j) + Z(j,j)) (= all other ports open)
@param  port1         name of the port for the matrix row
@param  port2         name of the port for the matrix column

Lrc(self, port1, port2)

source code 

returns the dataset for the inductance L(port1, port2)
with L(i,i) = imag(1/Y(i,i))/omega                   (= all other ports shorted)
     L(i,j) = imag(Z(i,i) - 2*Z(i,j) + Z(j,j))/omega (= all other ports open)
@param  port1         name of the port for the matrix row
@param  port2         name of the port for the matrix column

Crc(self, port1, port2)

source code 

returns the dataset for the capacitance C(port1, port2)
with C(i,i) = imag(1/Z(i,i))/omega    (= all other ports open)
     C(i,j) = imag(1/Z(i,j))/omega    (= all other ports open)
@param  port1         name of the port for the matrix row
@param  port2         name of the port for the matrix column