KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 <[email protected]>
5 * Copyright (C) 2005 Stefan Jahn <[email protected]>
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
29#include "transline/transline.h"
30
31class C_MICROSTRIP : public TRANSLINE
32{
33public:
36
37private:
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 Zdiff; // differential impedance
50 double Z0e; // even-mode impedance
51 double Z0o; // odd-mode impedance
52 double c_e; // even-mode capacitance
53 double c_o; // odd-mode capacitance
54 double ang_l_e; // even-mode electrical length in angle
55 double ang_l_o; // odd-mode electrical length in angle
56 double er_eff_e; // even-mode effective dielectric constant
57 double er_eff_o; // odd-mode effective dielectric constant
58 double er_eff_e_0; // static even-mode effective dielectric constant
59 double er_eff_o_0; // static odd-mode effective dielectric constant
60 double w_eff; // Effective width of line
61 double atten_dielectric_e; // even-mode dielectric losses (dB)
62 double atten_cond_e; // even-mode conductors losses (dB)
63 double atten_dielectric_o; // odd-mode dielectric losses (dB)
64 double atten_cond_o; // odd-mode conductors losses (dB)
65
66private:
67 double delta_u_thickness_single( double, double );
68 void delta_u_thickness();
70 double filling_factor_even( double, double, double );
71 double filling_factor_odd( double, double, double );
72 double delta_q_cover_even( double );
73 double delta_q_cover_odd( double );
74 void er_eff_static();
75 double delta_Z0_even_cover( double, double, double );
76 double delta_Z0_odd_cover( double, double, double );
77 void Z0_even_odd();
78 void er_eff_freq();
79 void conductor_losses();
80 void dielectric_losses();
81 void attenuation();
82 void line_angle();
83 void diff_impedance();
84 void syn_err_fun( double*, double*, double, double, double, double, double );
85 void synth_width();
86 void Z0_dispersion();
87 void calcAnalyze() override;
88 void calcSynthesize() override;
89 void showAnalyze() override;
90 void showSynthesize() override;
91 void show_results() override;
92 void syn_fun( double*, double*, double, double, double, double );
93
94
95private:
97};
98
99#endif // _C_MICROSTRIP_H_
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.
double w_t_e
Definition: c_microstrip.h:43
double er_eff_o_0
Definition: c_microstrip.h:59
void er_eff_freq()
double ang_l_e
Definition: c_microstrip.h:54
double er_eff_e
Definition: c_microstrip.h:56
void conductor_losses()
void calcAnalyze() override
Computation for analysis.
double ang_l_o
Definition: c_microstrip.h:55
void synth_width()
double rough
Definition: c_microstrip.h:41
void Z0_even_odd()
Z0_even_odd() - compute the static even- and odd-mode static impedances.
void dielectric_losses()
void Z0_dispersion()
double w_eff
Definition: c_microstrip.h:60
MICROSTRIP * aux_ms
Definition: c_microstrip.h:96
void delta_u_thickness()
double er_eff_o
Definition: c_microstrip.h:57
double atten_cond_o
Definition: c_microstrip.h:64
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 attenuation()
void er_eff_static()
er_eff_static() - compute the static effective dielectric constants
double atten_dielectric_o
Definition: c_microstrip.h:63
double Zdiff
Definition: c_microstrip.h:49
double atten_cond_e
Definition: c_microstrip.h:62
double delta_q_cover_odd(double)
double Z0_e_0
Definition: c_microstrip.h:47
void compute_single_line()
void syn_err_fun(double *, double *, double, double, double, double, double)
double w_t_o
Definition: c_microstrip.h:44
double atten_dielectric_e
Definition: c_microstrip.h:61
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 Z0_o_0
Definition: c_microstrip.h:48
double delta_u_thickness_single(double, double)
void diff_impedance()
Note that differential impedance is exactly twice the odd mode impedance.
double er_eff_e_0
Definition: c_microstrip.h:58
double delta_q_cover_even(double)