35 msrstub::msrstub () : circuit (1) {
41 nr_double_t alpha, nr_double_t er,
42 nr_double_t
h, nr_double_t frequency) {
44 nr_double_t l0 =
C0 / frequency;
45 nr_double_t W = (r1 + (r2 - r1) / 2) *
rad (alpha);
46 nr_double_t ereff = (er + 1.0) / 2 + (er - 1.0) /
49 nr_double_t a = k * r1;
50 nr_double_t b = k * r2;
53 nr_double_t theta_1 =
qucs::atan (y0 (a) / j0 (a));
55 nr_double_t phi_1 =
qucs::atan (-j1 (a) / y1 (a));
56 nr_double_t phi_2 =
qucs::atan (-j1 (b) / y1 (b));
58 nr_double_t X1 = h * Z_0 / (2.0 *
M_PI * r1) * 360.0 / alpha *
77 nr_double_t er = subst->getPropertyDouble (
"er");
78 nr_double_t
h = subst->getPropertyDouble (
"h");
std::complex< nr_double_t > nr_complex_t
static nr_double_t calcReactance(nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t)
nr_double_t getPropertyDouble(const char *)
nr_complex_t calcZ(nr_double_t)
nr_complex_t cos(const nr_complex_t z)
Compute complex cosine.
substrate * getSubstrate(void)
nr_complex_t atan(const nr_complex_t z)
Compute complex arc tangent.
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.
nr_complex_t sin(const nr_complex_t z)
Compute complex sine.
nr_complex_t ztor(const nr_complex_t z, nr_complex_t zref)
Converts impedance to reflexion coefficient.
#define M_PI
Archimedes' constant ( )
#define rad(x)
Convert degree to radian.
void setY(int, int, nr_complex_t)
void allocMatrixMNA(void)
#define C0
speed of light in vacuum ( )
void setS(int, int, nr_complex_t)
#define Z0
Wave impedance in vacuum ( )