KiCad PCB EDA Suite
Loading...
Searching...
No Matches
common/transline_calculations/microstrip.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2001 Gopal Narayanan <[email protected]>
3 * Copyright (C) 2002 Claudio Girardi <[email protected]>
4 * Copyright (C) 2005, 2006 Stefan Jahn <[email protected]>
5 * Modified for Kicad: 2018 Jean-Pierre Charras <jp.charras at wanadoo.fr>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
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#ifndef TRANSLINE_CALCULATIONS_MICROSTRIP_H
25#define TRANSLINE_CALCULATIONS_MICROSTRIP_H
26
27
29
30
32{
34
35public:
43
44 friend class COUPLED_MICROSTRIP;
45
47 void Analyse() override;
48
50 bool Synthesize( SYNTHESIZE_OPTS aOpts ) override;
51
52private:
54 void SetAnalysisResults() override;
55
57 void SetSynthesisResults() override;
58
60 double SynthesizeWidth() const;
61
63 static double Z0_dispersion( double, double, double, double, double );
64
66 static double Z0_homogeneous( double );
67
69 static double delta_Z0_cover( double, double );
70
72 static double filling_factor( double, double );
73
75 static double delta_q_cover( double );
76
78 static double delta_q_thickness( double, double );
79
81 static double e_r_effective( double, double );
82
84 static double delta_u_thickness( double, double, double );
85
87 static double e_r_dispersion( double, double, double );
88
90 double conductor_losses() const;
91
93 double dielectric_losses() const;
94
96 void microstrip_Z0();
97
99 void dispersion();
100
102 void attenuation();
103
105 void mur_eff_ms();
106
108 void line_angle();
109
110 double Z0_0{ 0.0 };
111 double er_eff_0{ 0.0 };
112 double mur_eff{ 0.0 };
113 double w_eff{ 0.0 };
114 double Z0_h_1{ 0.0 };
115};
116
117
118#endif //TRANSLINE_CALCULATIONS_MICROSTRIP_H
double w_eff
Effective width of line.
void microstrip_Z0()
Calculates the microstrip static impedance.
static double e_r_effective(double, double)
Calculates effective dielectric constant from material e_r and filling factor.
bool Synthesize(SYNTHESIZE_OPTS aOpts) override
Synthesis track geometry parameters to match given Z0.
double Z0_0
static characteristic impedance
void line_angle()
Calculates microstrip length in radians.
void Analyse() override
Analyse track geometry parameters to output Z0 and Ang_L.
static double Z0_dispersion(double, double, double, double, double)
Calculates the dispersion correction factor for the characteristic impedance static.
void dispersion()
Calculates frequency dependent parameters of the microstrip.
static double filling_factor(double, double)
Calculates the filling factor for a microstrip without cover and zero conductor thickness.
double SynthesizeWidth() const
Calculates the width with the current set of parameters.
static double e_r_dispersion(double, double, double)
Calculates the dispersion correction factor for the effective permeability.
static double delta_u_thickness(double, double, double)
Calculates the thickness effect on normalized width.
static double delta_q_thickness(double, double)
Calculates the thickness effect on filling factor.
static double delta_q_cover(double)
Calculates the cover effect on filling factor.
double mur_eff
Effective mag. permeability.
double er_eff_0
Static effective dielectric constant.
void mur_eff_ms()
Calculates the effective magnetic permeability.
void SetSynthesisResults() override
Sets the output values and status following synthesis.
void SetAnalysisResults() override
Sets the output values and status following analysis.
static double Z0_homogeneous(double)
Calculates the impedance for a stripline in a homogeneous medium, without cover effects.
double dielectric_losses() const
Calculates the microstrip dielectric losses per unit.
double Z0_h_1
homogeneous stripline impedance
void attenuation()
Calculates the attenuation of the microstrip.
static double delta_Z0_cover(double, double)
Calculates the cover effect on impedance for a stripline in a homogeneous medium.
double conductor_losses() const
Calculate the microstrip conductor losses per unit.
TRANSLINE_CALCULATION_BASE(std::initializer_list< TRANSLINE_PARAMETERS > aParameters)
Constructs the transmission line calculation object.
SYNTHESIZE_OPTS
Options for specifying synthesis inputs, targets, or strategies.
TRANSLINE_PARAMETERS
All possible parameters used (as inputs or outputs) by the transmission line calculations.