34 attenuator::attenuator () : circuit (2) {
42 nr_double_t
r = (z -
z0) / (z +
z0);
43 nr_double_t s11 = r * (1 - a) / (a - r * r);
44 nr_double_t s21 =
std::sqrt (a) * (1 - r *
r) / (a - r * r);
55 nr_double_t
r = (z -
z0) / (z +
z0);
56 nr_double_t f = (l - 1) * (r * r - 1) /
sqr (l - r * r) *
kelvin (T) /
T0;
67 nr_double_t f = 4.0 *
kelvin (T) /
T0 / z / (l - 1);
86 nr_double_t z11 = zref * (a + 1) / (a - 1);
87 nr_double_t z21 = zref * (
std::sqrt (a) * 2) / (a - 1);
102 nr_double_t f = 1 / z / (a - 1);
125 nr_double_t z11 = zref * (a + 1) / (a - 1);
126 nr_double_t z21 = zref * (
std::sqrt (a) * 2) / (a - 1);
139 nr_double_t f = 1 / z / (a - 1);
#define T0
standard temperature
nr_double_t getPropertyDouble(const char *)
void setD(int, int, nr_complex_t)
void setVoltageSources(int)
#define K
Absolute 0 in centigrade.
void setB(int, int, nr_complex_t)
static const nr_double_t z0
void calcNoiseSP(nr_double_t)
nr_complex_t sqr(const nr_complex_t z)
Square of complex number.
nr_complex_t sqrt(const nr_complex_t z)
Compute principal value of square root.
void calcNoiseAC(nr_double_t)
void setE(int, nr_complex_t)
void setY(int, int, nr_complex_t)
void allocMatrixMNA(void)
void voltageSource(int, int, int, nr_double_t value=0.0)
void setS(int, int, nr_complex_t)
void setN(int, int, nr_complex_t)
void setC(int, int, nr_complex_t)
void initSP(void)
placehoder for S-Parameter initialisation function
matrix ztoy(matrix z)
impedance matrix to admittance matrix.