29 #include "component.h"
33 msrstub::msrstub () :
circuit (1) {
39 nr_double_t alpha, nr_double_t er,
40 nr_double_t h, nr_double_t frequency) {
42 nr_double_t l0 =
C0 / frequency;
43 nr_double_t W = (r1 + (r2 - r1) / 2) *
rad (alpha);
44 nr_double_t ereff = (er + 1.0) / 2 + (er - 1.0) /
45 (2.0 *
sqrt (1 + 10.0 * h / W));
46 nr_double_t k = 2.0 *
M_PI *
sqrt (ereff) / l0;
47 nr_double_t a = k * r1;
48 nr_double_t
b = k * r2;
51 nr_double_t theta_1 =
atan (y0 (a) / j0 (a));
53 nr_double_t phi_1 =
atan (-j1 (a) / y1 (a));
54 nr_double_t phi_2 =
atan (-j1 (b) / y1 (b));
56 nr_double_t
X1 = h * Z_0 / (2.0 *
M_PI * r1) * 360.0 / alpha *
57 cos (theta_1 - phi_2) /
sin (phi_1 - phi_2);