34 coupler::coupler () : circuit (4) {
43 nr_double_t
r = (
z0 - z) / (
z0 + z);
44 nr_double_t k2 = k * k;
45 nr_double_t r2 = r *
r;
53 s =
std::sqrt (1 - k2) * (1.0 - r2) * (1.0 - b) /
d;
78 nr_double_t b = 2 *
std::sqrt (1 - k * k);
83 y = a * (2.0 - a) / d;
89 y = c * (a - 2.0) /
d;
std::complex< nr_double_t > nr_complex_t
nr_double_t getPropertyDouble(const char *)
void setInternalVoltageSource(bool i)
void setVoltageSources(int)
#define M_SQRT1_2
Inverse of Square root of 2 ( )
static const nr_double_t z0
void initSP(void)
placehoder for S-Parameter initialisation function
nr_complex_t sqrt(const nr_complex_t z)
Compute principal value of square root.
#define rad(x)
Convert degree to radian.
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)
nr_complex_t polar(const nr_double_t mag, const nr_double_t ang)
Construct a complex number using polar notation.