File: c_microstrip.h

package info (click to toggle)
kicad 9.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 770,320 kB
  • sloc: cpp: 961,692; ansic: 121,001; xml: 66,428; python: 18,387; sh: 1,010; awk: 301; asm: 292; makefile: 227; javascript: 167; perl: 10
file content (101 lines) | stat: -rw-r--r-- 4,161 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
 * c_microstrip.h - coupled microstrip class definition
 *
 * Copyright (C) 2002 Claudio Girardi <in3otd@qsl.net>
 * Copyright (C) 2005 Stefan Jahn <stefan@lkcc.org>
 * Modifications for Kicad: 2015 Jean-Pierre Charras
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this package; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */


#ifndef _C_MICROSTRIP_H_
#define _C_MICROSTRIP_H_

#include "transline/microstrip.h"
#include "transline/transline.h"

class C_MICROSTRIP : public TRANSLINE
{
public:
    C_MICROSTRIP();
    ~C_MICROSTRIP();

private:
    double h;                  // height of substrate
    double ht;                 // height to the top of box
    double t;                  // thickness of top metal
    double rough;              // Roughness of top metal
    double w;                  // width of lines
    double w_t_e;              // even-mode thickness-corrected line width
    double w_t_o;              // odd-mode thickness-corrected line width
    double l;                  // length of lines
    double s;                  // spacing of lines
    double Z0_e_0;             // static even-mode impedance
    double Z0_o_0;             // static odd-mode impedance
    double Zdiff;              // differential impedance
    double Z0e;                // even-mode impedance
    double Z0o;                // odd-mode impedance
    double c_e;                // even-mode capacitance
    double c_o;                // odd-mode capacitance
    double ang_l_e;            // even-mode electrical length in angle
    double ang_l_o;            // odd-mode electrical length in angle
    double er_eff_e;           // even-mode effective dielectric constant
    double er_eff_o;           // odd-mode effective dielectric constant
    double prop_delay_e;       // even-mode unit propagation delay (ps/cm)
    double prop_delay_o;       // odd-mode unit propagation delay (ps/cm)
    double er_eff_e_0;         // static even-mode effective dielectric constant
    double er_eff_o_0;         // static odd-mode effective dielectric constant
    double w_eff;              // Effective width of line
    double atten_dielectric_e; // even-mode dielectric losses (dB)
    double atten_cond_e;       // even-mode conductors losses (dB)
    double atten_dielectric_o; // odd-mode dielectric losses (dB)
    double atten_cond_o;       // odd-mode conductors losses (dB)

private:
    double delta_u_thickness_single( double, double );
    void   delta_u_thickness();
    void   compute_single_line();
    double filling_factor_even( double, double, double );
    double filling_factor_odd( double, double, double );
    double delta_q_cover_even( double );
    double delta_q_cover_odd( double );
    void   er_eff_static();
    double delta_Z0_even_cover( double, double, double );
    double delta_Z0_odd_cover( double, double, double );
    void   Z0_even_odd();
    void   er_eff_freq();
    void   conductor_losses();
    void   dielectric_losses();
    void   attenuation();
    void   line_angle();
    void   diff_impedance();
    void   syn_err_fun( double*, double*, double, double, double, double, double );
    void   synth_width();
    void   Z0_dispersion();
    void   calcAnalyze() override;
    void   calcSynthesize() override;
    void   showAnalyze() override;
    void   showSynthesize() override;
    void   show_results() override;
    void   syn_fun( double*, double*, double, double, double, double );


private:
    MICROSTRIP* aux_ms;
};

#endif // _C_MICROSTRIP_H_