63 atten_dielectric_e( 0.0 ),
65 atten_dielectric_o( 0.0 ),
69 m_Name =
"Coupled_MicroStrip";
100 2.0) / ( 1.0 + exp( -100.0 * ( u - 1.0 / (2.0 * M_PI) ) ) ) ) / t_h ) );
122 double e_r, u, g, t_h;
123 double delta_u, delta_t, delta_u_e, delta_u_o;
134 delta_t = t_h / ( g * e_r );
136 delta_u_e = delta_u * ( 1.0 - 0.5 * exp( -0.69 * delta_u / delta_t ) );
137 delta_u_o = delta_u_e + delta_t;
141 delta_u_e = delta_u_o = 0.0;
178 double v,
v3,
v4, a_e, b_e, q_inf;
180 v = u * ( 20.0 + g * g ) / ( 10.0 + g * g ) + g * exp( -g );
183 a_e = 1.0 + log( (
v4 + v * v / 2704.0 ) / (
v4 + 0.432 ) ) / 49.0
184 + log( 1.0 +
v3 / 5929.741 ) / 18.7;
185 b_e = 0.564 * pow( ( ( e_r - 0.9 ) / ( e_r + 3.0 ) ), 0.053 );
188 q_inf = pow( ( 1.0 + 10.0 / v ), -a_e * b_e );
200 double b_odd = 0.747 * e_r / ( 0.15 + e_r );
201 double c_odd = b_odd - ( b_odd - 0.207 ) * exp( -0.414 * u );
202 double d_odd = 0.593 + 0.694 * exp( -0.562 * u );
205 double q_inf = exp( -c_odd * pow( g, d_odd ) );
220 q_c = tanh( 1.626 + 0.107 * h2h - 1.733 / sqrt( h2h ) );
237 q_c = tanh( 9.575 / ( 7.0 - h2h ) - 2.965 + 1.68 * h2h - 0.311 * h2h * h2h );
255 double u_t_e, u_t_o, g, h2, h2h;
256 double a_o, t_h, q, q_c, q_t, q_inf;
257 double er_eff_single;
280 q = ( q_inf - q_t ) * q_c;
282 er_eff_e_0 = 0.5 * ( er + 1.0 ) + 0.5 * ( er - 1.0 ) * q;
291 q = ( q_inf - q_t ) * q_c;
293 a_o = 0.7287 * ( er_eff_single - 0.5 * ( er + 1.0 ) ) * ( 1.0 - exp( -0.179 * u_t_o ) );
296 er_eff_o_0 = ( 0.5 * ( er + 1.0 ) + a_o - er_eff_single ) * q + er_eff_single;
309 double f_e, g_e, delta_Z0_even;
310 double x, y,
A,
B,
C,
D,
E,
F;
312 A = -4.351 / pow( 1.0 + h2h, 1.842 );
313 B = 6.639 / pow( 1.0 + h2h, 1.861 );
314 C = -2.291 / pow( 1.0 + h2h, 1.90 );
315 f_e = 1.0 -
atanh(
A + (
B +
C * u ) * u );
317 x = pow( 10.0, 0.103 * g - 0.159 );
318 y = pow( 10.0, 0.0492 * g - 0.073 );
319 D = 0.747 / sin( 0.5 * M_PI * x );
320 E = 0.725 * sin( 0.5 * M_PI * y );
321 F = pow( 10.0, 0.11 - 0.0947 * g );
322 g_e = 270.0 * ( 1.0 - tanh(
D +
E * sqrt( 1.0 + h2h ) -
F / ( 1.0 + h2h ) ) );
324 delta_Z0_even = f_e * g_e;
326 return delta_Z0_even;
339 double f_o, g_o, delta_Z0_odd;
342 J = tanh( pow( 1.0 + h2h, 1.585 ) / 6.0 );
345 G = 2.178 - 0.796 * g;
348 K = log10( 20.492 * pow( g, 0.174 ) );
353 L = 2.51 * pow( g, -0.462 );
357 g_o = 270.0 * ( 1.0 - tanh(
G + K * sqrt( 1.0 + h2h ) - L / ( 1.0 + h2h ) ) );
359 delta_Z0_odd = f_o * g_o;
376 double er_eff, h2, u_t_e, u_t_o, g, h2h;
377 double Q_1, Q_2, Q_3, Q_4, Q_5, Q_6, Q_7, Q_8, Q_9, Q_10;
378 double delta_Z0_e_0, delta_Z0_o_0, Z0_single, er_eff_single;
391 Q_1 = 0.8695 * pow( u_t_e, 0.194 );
392 Q_2 = 1.0 + 0.7519 * g + 0.189 * pow( g, 2.31 );
393 Q_3 = 0.1975 + pow( ( 16.6 + pow( ( 8.4 / g ), 6.0 ) ), -0.387 )
394 + log( pow( g, 10.0 ) / ( 1.0 + pow( g / 3.4, 10.0 ) ) ) / 241.0;
396 / ( Q_2 * ( exp( -g ) * pow( u_t_e, Q_3 ) + ( 2.0 - exp( -g ) ) * pow( u_t_e, -Q_3 ) ) );
398 Z0_e_0 = Z0_single * sqrt( er_eff_single / er_eff )
399 / ( 1.0 - sqrt( er_eff_single ) * Q_4 * Z0_single /
ZF0 );
407 Q_5 = 1.794 + 1.14 * log( 1.0 + 0.638 / ( g + 0.517 * pow( g, 2.43 ) ) );
408 Q_6 = 0.2305 + log( pow( g, 10.0 ) / ( 1.0 + pow( g / 5.8, 10.0 ) ) ) / 281.3
409 + log( 1.0 + 0.598 * pow( g, 1.154 ) ) / 5.1;
410 Q_7 = ( 10.0 + 190.0 * g * g ) / ( 1.0 + 82.3 * g * g * g );
411 Q_8 = exp( -6.5 - 0.95 * log( g ) - pow( g / 0.15, 5.0 ) );
412 Q_9 = log( Q_7 ) * ( Q_8 + 1.0 / 16.5 );
413 Q_10 = ( Q_2 * Q_4 - Q_5 * exp( log( u_t_o ) * Q_6 * pow( u_t_o, -Q_9 ) ) ) / Q_2;
416 Z0_o_0 = Z0_single * sqrt( er_eff_single / er_eff )
417 / ( 1.0 - sqrt( er_eff_single ) * Q_10 * Z0_single /
ZF0 );
430 double P_1, P_2, P_3, P_4, P_5, P_6, P_7;
431 double P_8, P_9, P_10, P_11, P_12, P_13, P_14, P_15;
433 double er_eff, u, g, f_n;
442 P_1 = 0.27488 + ( 0.6315 + 0.525 / pow( 1.0 + 0.0157 * f_n, 20.0 ) ) * u
443 - 0.065683 * exp( -8.7513 * u );
445 P_3 = 0.0363 * exp( -4.6 * u ) * ( 1.0 - exp( -pow( f_n / 38.7, 4.97 ) ) );
448 P_6 = P_5 * exp( -pow( f_n / 18.0, 0.368 ) );
450 + 4.069 * P_6 * pow( g, 0.479 ) * exp( -1.347 * pow( g, 0.595 ) - 0.17 * pow( g, 2.5 ) );
452 F_e = P_1 * P_2 * pow( ( P_3 * P_4 + 0.1844 * P_7 ) * f_n, 1.5763 );
459 - 0.7913 * ( 1.0 - exp( -pow( f_n / 20.0, 1.424 ) ) )
462 P_11 = 0.6366 * ( exp( -0.3401 * f_n ) - 1.0 ) * atan( 1.263 * pow( u / 3.0, 1.629 ) );
463 P_12 = P_9 + ( 1.0 - P_9 ) / ( 1.0 + 1.183 * pow( u, 1.376 ) );
464 P_13 = 1.695 * P_10 / ( 0.414 + 1.605 * P_10 );
465 P_14 = 0.8928 + 0.1072 * ( 1.0 - exp( -0.42 * pow( f_n / 20.0, 3.215 ) ) );
466 P_15 = fabs( 1.0 - 0.8928 * ( 1.0 + P_11 ) * P_12 * exp( -P_13 * pow( g, 1.092 ) ) / P_14 );
468 F_o = P_1 * P_2 * pow( ( P_3 * P_4 + 0.1844 ) * f_n * P_15, 1.5763 );
480 double e_r_eff_e_0, e_r_eff_o_0, Z0_h_e, Z0_h_o,
delta;
481 double K, R_s, Q_c_e, Q_c_o, alpha_c_e, alpha_c_o;
485 Z0_h_e =
Z0_e_0 * sqrt( e_r_eff_e_0 );
486 Z0_h_o =
Z0_o_0 * sqrt( e_r_eff_o_0 );
492 K = exp( -1.2 * pow( ( Z0_h_e + Z0_h_o ) / ( 2.0 *
ZF0 ), 0.7 ) );
505 * sqrt( e_r_eff_e_0 ) / (
C0 * Q_c_e );
512 * sqrt( e_r_eff_o_0 ) / (
C0 * Q_c_o );
516 alpha_c_e = alpha_c_o = 0.0;
530 double e_r, e_r_eff_e_0, e_r_eff_o_0;
531 double alpha_d_e, alpha_d_o;
538 * ( e_r / sqrt( e_r_eff_e_0 ) ) * ( ( e_r_eff_e_0 - 1.0 ) / ( e_r - 1.0 ) )
541 * ( e_r / sqrt( e_r_eff_o_0 ) ) * ( ( e_r_eff_o_0 - 1.0 ) / ( e_r - 1.0 ) )
566 double e_r_eff_e, e_r_eff_o;
567 double v_e, v_o, lambda_g_e, lambda_g_o;
573 v_e =
C0 / sqrt( e_r_eff_e );
575 v_o =
C0 / sqrt( e_r_eff_o );
598 double w_h_se,
double w_h_so )
602 g = cosh( 0.5 * M_PI * s_h );
603 he = cosh( M_PI * w_h + 0.5 * M_PI * s_h );
605 *f1 = ( 2.0 / M_PI ) *
acosh( ( 2.0 * he - g + 1.0 ) / ( g + 1.0 ) );
606 *f2 = ( 2.0 / M_PI ) *
acosh( ( 2.0 * he - g - 1.0 ) / ( g - 1.0 ) );
609 *f2 += ( 4.0 / ( M_PI * ( 1.0 + e_r / 2.0 ) ) ) *
acosh( 1.0 + 2.0 * w_h / s_h );
611 *f2 += ( 1.0 / M_PI ) *
acosh( 1.0 + 2.0 * w_h / s_h );
628 double w_h_se, w_h_so, w_h, a, ce, co, s_h;
629 double f1, f2, ft1, ft2, j11, j12, j21, j22, d_s_h, d_w_h, err;
637 a = exp( Z0 * sqrt( e_r + 1.0 ) / 42.4 ) - 1.0;
638 w_h_se = 8.0 * sqrt( a * ( ( 7.0 + 4.0 / e_r ) / 11.0 ) + ( ( 1.0 + 1.0 / e_r ) / 0.81 ) ) / a;
642 a = exp( Z0 * sqrt( e_r + 1.0 ) / 42.4 ) - 1.0;
643 w_h_so = 8.0 * sqrt( a * ( ( 7.0 + 4.0 / e_r ) / 11.0 ) + ( ( 1.0 + 1.0 / e_r ) / 0.81 ) ) / a;
645 ce = cosh( 0.5 * M_PI * w_h_se );
646 co = cosh( 0.5 * M_PI * w_h_so );
648 s_h = ( 2.0 / M_PI ) *
acosh( ( ce + co - 2.0 ) / ( co - ce ) );
650 w_h =
acosh( ( ce * co - 1.0 ) / ( co - ce ) ) / M_PI - s_h / 2.0;
655 syn_err_fun( &f1, &f2, s_h, w_h, e_r, w_h_se, w_h_so );
662 syn_err_fun( &ft1, &ft2, s_h + eps, w_h, e_r, w_h_se, w_h_so );
663 j11 = ( ft1 - f1 ) / eps;
664 j21 = ( ft2 - f2 ) / eps;
665 syn_err_fun( &ft1, &ft2, s_h, w_h + eps, e_r, w_h_se, w_h_so );
666 j12 = ( ft1 - f1 ) / eps;
667 j22 = ( ft2 - f2 ) / eps;
670 d_s_h = ( -f1 * j22 + f2 * j12 ) / ( j11 * j22 - j21 * j12 );
671 d_w_h = ( -f2 * j11 + f1 * j21 ) / ( j11 * j22 - j21 * j12 );
681 syn_err_fun( &f1, &f2, s_h, w_h, e_r, w_h_se, w_h_so );
683 err = sqrt( f1 * f1 + f2 * f2 );
685 }
while( err > 1e-04 );
700 double Q_11, Q_12, Q_13, Q_14, Q_15, Q_16, Q_17, Q_18, Q_19, Q_20, Q_21;
701 double Q_22, Q_23, Q_24, Q_25, Q_26, Q_27, Q_28, Q_29;
702 double r_e, q_e, p_e, d_e, C_e;
703 double e_r_eff_o_f, e_r_eff_o_0;
704 double e_r_eff_single_f, e_r_eff_single_0, Z0_single_f;
705 double f_n, g, u, e_r;
706 double R_1, R_2, R_7, R_10, R_11, R_12, R_15, R_16, tmpf;
723 Q_11 = 0.893 * ( 1.0 - 0.3 / ( 1.0 + 0.7 * ( e_r - 1.0 ) ) );
724 Q_12 = 2.121 * ( pow( f_n / 20.0, 4.91 ) / ( 1.0 + Q_11 * pow( f_n / 20.0, 4.91 ) ) )
725 * exp( -2.87 * g ) * pow( g, 0.902 );
726 Q_13 = 1.0 + 0.038 * pow( e_r / 8.0, 5.1 );
727 Q_14 = 1.0 + 1.203 * pow( e_r / 15.0, 4.0 ) / ( 1.0 + pow( e_r / 15.0, 4.0 ) );
728 Q_15 = 1.887 * exp( -1.5 * pow( g, 0.84 ) ) * pow( g, Q_14 )
730 + 0.41 * pow( f_n / 15.0, 3.0 ) * pow( u, 2.0 / Q_13 )
731 / ( 0.125 + pow( u, 1.626 / Q_13 ) ) );
732 Q_16 = ( 1.0 + 9.0 / ( 1.0 + 0.403 * pow( e_r - 1.0, 2 ) ) ) * Q_15;
733 Q_17 = 0.394 * ( 1.0 - exp( -1.47 * pow( u / 7.0, 0.672 ) ) )
734 * ( 1.0 - exp( -4.25 * pow( f_n / 20.0, 1.87 ) ) );
735 Q_18 = 0.61 * ( 1.0 - exp( -2.13 * pow( u / 8.0, 1.593 ) ) ) / ( 1.0 + 6.544 * pow( g, 4.17 ) );
736 Q_19 = 0.21 * g * g * g * g
737 / ( ( 1.0 + 0.18 * pow( g, 4.9 ) ) * ( 1.0 + 0.1 * u * u )
738 * ( 1.0 + pow( f_n / 24.0, 3.0 ) ) );
739 Q_20 = ( 0.09 + 1.0 / ( 1.0 + 0.1 * pow( e_r - 1, 2.7 ) ) ) * Q_19;
741 - 42.54 * pow( g, 0.133 ) * exp( -0.812 * g ) * pow( u, 2.5 )
742 / ( 1.0 + 0.033 * pow( u, 2.5 ) ) );
744 r_e = pow( f_n / 28.843, 12 );
745 q_e = 0.016 + pow( 0.0514 * e_r * Q_21, 4.524 );
746 p_e = 4.766 * exp( -3.228 * pow( u, 0.641 ) );
747 d_e = 5.086 * q_e * ( r_e / ( 0.3838 + 0.386 * q_e ) )
748 * ( exp( -22.2 * pow( u, 1.92 ) ) / ( 1.0 + 1.2992 * r_e ) )
749 * ( pow( e_r - 1.0, 6.0 ) / ( 1.0 + 10 * pow( e_r - 1.0, 6.0 ) ) );
753 - exp( -0.004625 * p_e * pow( e_r, 1.674 )
754 * pow( f_n / 18.365, 2.745 ) ) )
755 - Q_12 + Q_16 - Q_17 + Q_18 + Q_20;
758 R_1 = 0.03891 * pow( e_r, 1.4 );
759 R_2 = 0.267 * pow( u, 7.0 );
760 R_7 = 1.206 - 0.3144 * exp( -R_1 ) * ( 1.0 - exp( -R_2 ) );
761 R_10 = 0.00044 * pow( e_r, 2.136 ) + 0.0184;
762 tmpf = pow( f_n / 19.47, 6.0 );
763 R_11 = tmpf / ( 1.0 + 0.0962 * tmpf );
764 R_12 = 1.0 / ( 1.0 + 0.00245 * u * u );
765 R_15 = 0.707 * R_10 * pow( f_n / 12.3, 1.097 );
766 R_16 = 1.0 + 0.0503 * e_r * e_r * R_11 * ( 1.0 - exp( -pow( u / 15.0, 6.0 ) ) );
767 Q_0 = R_7 * ( 1.0 - 1.1241 * ( R_12 / R_16 ) * exp( -0.026 * pow( f_n, 1.15656 ) - R_15 ) );
771 / pow( ( 0.9408 - d_e ) * pow( e_r_eff_single_0, C_e ) - 0.9603, Q_0 );
773 Q_29 = 15.16 / ( 1.0 + 0.196 * pow( e_r - 1.0, 2.0 ) );
774 tmpf = pow( e_r - 1.0, 3.0 );
775 Q_28 = 0.149 * tmpf / ( 94.5 + 0.038 * tmpf );
776 tmpf = pow( e_r - 1.0, 1.5 );
777 Q_27 = 0.4 * pow( g, 0.84 ) * ( 1.0 + 2.5 * tmpf / ( 5.0 + tmpf ) );
778 tmpf = pow( ( e_r - 1.0 ) / 13.0, 12.0 );
779 Q_26 = 30.0 - 22.2 * ( tmpf / ( 1.0 + 3.0 * tmpf ) ) - Q_29;
780 tmpf = ( e_r - 1.0 ) * ( e_r - 1.0 );
781 Q_25 = ( 0.3 * f_n * f_n / ( 10.0 + f_n * f_n ) ) * ( 1.0 + 2.333 * tmpf / ( 5.0 + tmpf ) );
782 Q_24 = 2.506 * Q_28 * pow( u, 0.894 ) * pow( ( 1.0 + 1.3 * u ) * f_n / 99.25, 4.29 )
783 / ( 3.575 + pow( u, 0.894 ) );
786 / ( ( 1.0 + 0.812 * pow( f_n / 15.0, 1.9 ) ) * ( 1.0 + 0.025 * u * u ) );
787 Q_22 = 0.925 * pow( f_n / Q_26, 1.536 ) / ( 1.0 + 0.3 * pow( f_n / 30.0, 1.536 ) );
792 + (
Z0_o_0 * pow( e_r_eff_o_f / e_r_eff_o_0, Q_22 ) - Z0_single_f * Q_23 )
793 / ( 1.0 + Q_24 + pow( 0.46 * g, 2.2 ) * Q_25 );
888 double* f1,
double* f2,
double s_h,
double w_h,
double Z0_e,
double Z0_o )
906 double Z0_e, Z0_o, ang_l_dest;
907 double f1, f2, ft1, ft2, j11, j12, j21, j22, d_s_h, d_w_h, err;
909 double w_h, s_h, le, lo;
932 syn_fun( &ft1, &ft2, s_h + eps, w_h, Z0_e, Z0_o );
933 j11 = ( ft1 - f1 ) / eps;
934 j21 = ( ft2 - f2 ) / eps;
935 syn_fun( &ft1, &ft2, s_h, w_h + eps, Z0_e, Z0_o );
936 j12 = ( ft1 - f1 ) / eps;
937 j22 = ( ft2 - f2 ) / eps;
940 d_s_h = ( -f1 * j22 + f2 * j12 ) / ( j11 * j22 - j21 * j12 );
941 d_w_h = ( -f2 * j11 + f1 * j21 ) / ( j11 * j22 - j21 * j12 );
947 syn_fun( &f1, &f2, s_h, w_h, Z0_e, Z0_o );
948 err = sqrt( f1 * f1 + f2 * f2 );
951 }
while( err > 1e-04 );
double delta_Z0_odd_cover(double, double, double)
delta_Z0_odd_cover() - compute the odd-mode impedance correction for a homogeneous microstrip due to ...
double delta_Z0_even_cover(double, double, double)
delta_Z0_even_cover() - compute the even-mode impedance correction for a homogeneous microstrip due t...
void show_results() override
Shows results.
void calcAnalyze() override
Computation for analysis.
void Z0_even_odd()
Z0_even_odd() - compute the static even- and odd-mode static impedances.
double filling_factor_even(double, double, double)
void showAnalyze() override
Shows synthesis results and checks for errors / warnings.
void showSynthesize() override
Shows analysis results and checks for errors / warnings.
void syn_fun(double *, double *, double, double, double, double)
void er_eff_static()
er_eff_static() - compute the static effective dielectric constants
double atten_dielectric_o
double delta_q_cover_odd(double)
void compute_single_line()
void syn_err_fun(double *, double *, double, double, double, double, double)
double atten_dielectric_e
double filling_factor_odd(double, double, double)
filling_factor_odd() - compute the filling factor for the coupled microstrips odd-mode without cover ...
void calcSynthesize() override
Computation for synthesis.
double delta_u_thickness_single(double, double)
void diff_impedance()
Note that differential impedance is exactly twice the odd mode impedance.
double delta_q_cover_even(double)
double delta_q_thickness(double, double)
void setResult(int, double, const char *)
double m_parameters[EXTRA_PRMS_COUNT]
void setProperty(enum PRMS_ID aPrmId, double aValue)
double skin_depth()
@function skin_depth calculate skin depth
void setErrorLevel(PRMS_ID, char)
@function setErrorLevel
#define TRANSLINE_WARNING