KiCad PCB EDA Suite
c_microstrip.h
Go to the documentation of this file.
1 /*
2  * c_microstrip.h - coupled microstrip class definition
3  *
4  * Copyright (C) 2002 Claudio Girardi <in3otd@qsl.net>
5  * Copyright (C) 2005 Stefan Jahn <stefan@lkcc.org>
6  * Modifications for Kicad: 2015 Jean-Pierre Charras
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this package; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 
25 #ifndef _C_MICROSTRIP_H_
26 #define _C_MICROSTRIP_H_
27 
28 #include <microstrip.h>
29 #include <transline.h>
30 
31 class C_MICROSTRIP : public TRANSLINE
32 {
33 public:
34  C_MICROSTRIP();
35  ~C_MICROSTRIP();
36 
37 private:
38  double h; // height of substrate
39  double ht; // height to the top of box
40  double t; // thickness of top metal
41  double rough; // Roughness of top metal
42  double w; // width of lines
43  double w_t_e; // even-mode thickness-corrected line width
44  double w_t_o; // odd-mode thickness-corrected line width
45  double l; // length of lines
46  double s; // spacing of lines
47  double Z0_e_0; // static even-mode impedance
48  double Z0_o_0; // static odd-mode impedance
49  double Z0e; // even-mode impedance
50  double Z0o; // odd-mode impedance
51  double c_e; // even-mode capacitance
52  double c_o; // odd-mode capacitance
53  double ang_l_e; // even-mode electrical length in angle
54  double ang_l_o; // odd-mode electrical length in angle
55  double er_eff_e; // even-mode effective dielectric constant
56  double er_eff_o; // odd-mode effective dielectric constant
57  double er_eff_e_0; // static even-mode effective dielectric constant
58  double er_eff_o_0; // static odd-mode effective dielectric constant
59  double w_eff; // Effective width of line
60  double atten_dielectric_e; // even-mode dielectric losses (dB)
61  double atten_cond_e; // even-mode conductors losses (dB)
62  double atten_dielectric_o; // odd-mode dielectric losses (dB)
63  double atten_cond_o; // odd-mode conductors losses (dB)
64 
65 private:
66  double delta_u_thickness_single( double, double );
67  void delta_u_thickness();
68  void compute_single_line();
69  double filling_factor_even( double, double, double );
70  double filling_factor_odd( double, double, double );
71  double delta_q_cover_even( double );
72  double delta_q_cover_odd( double );
73  void er_eff_static();
74  double delta_Z0_even_cover( double, double, double );
75  double delta_Z0_odd_cover( double, double, double );
76  void Z0_even_odd();
77  void er_eff_freq();
78  void conductor_losses();
79  void dielectric_losses();
80  void attenuation();
81  void line_angle();
82  void syn_err_fun( double*, double*, double, double, double, double, double );
83  void synth_width();
84  void Z0_dispersion();
85  void calcAnalyze() override;
86  void calcSynthesize() override;
87  void showAnalyze() override;
88  void showSynthesize() override;
89  void show_results() override;
90  void syn_fun( double*, double*, double, double, double, double );
91 
92 
93 private:
95 };
96 
97 #endif // _C_MICROSTRIP_H_
void dielectric_losses()
void er_eff_freq()
double er_eff_o
Definition: c_microstrip.h:56
double er_eff_o_0
Definition: c_microstrip.h:58
double w_t_e
Definition: c_microstrip.h:43
void syn_fun(double *, double *, double, double, double, double)
double er_eff_e
Definition: c_microstrip.h:55
double atten_dielectric_e
Definition: c_microstrip.h:60
double ang_l_o
Definition: c_microstrip.h:54
void show_results() override
Shows results.
double ang_l_e
Definition: c_microstrip.h:53
void synth_width()
double delta_q_cover_odd(double)
void compute_single_line()
void showAnalyze() override
Shows synthesis results and checks for errors / warnings.
double w_eff
Definition: c_microstrip.h:59
void Z0_dispersion()
void showSynthesize() override
Shows analysis results and checks for errors / warnings.
double atten_cond_o
Definition: c_microstrip.h:63
void er_eff_static()
er_eff_static() - compute the static effective dielectric constants
double filling_factor_even(double, double, double)
MICROSTRIP * aux_ms
Definition: c_microstrip.h:94
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...
double Z0_e_0
Definition: c_microstrip.h:47
double atten_dielectric_o
Definition: c_microstrip.h:62
void calcAnalyze() override
Computation for analysis.
double er_eff_e_0
Definition: c_microstrip.h:57
double atten_cond_e
Definition: c_microstrip.h:61
void Z0_even_odd()
Z0_even_odd() - compute the static even- and odd-mode static impedances.
double rough
Definition: c_microstrip.h:41
void delta_u_thickness()
double delta_u_thickness_single(double, double)
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.
void conductor_losses()
void attenuation()
double delta_q_cover_even(double)
void syn_err_fun(double *, double *, double, double, double, double, double)
double w_t_o
Definition: c_microstrip.h:44
double Z0_o_0
Definition: c_microstrip.h:48