My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
coplanar.h
Go to the documentation of this file.
1 /*
2  * coplanar.h - microstrip class definition
3  *
4  * Copyright (C) 2008 Michael Margraf <michael.margraf@alumni.tu-berlin.de>
5  * Copyright (C) 2005 Stefan Jahn <stefan@lkcc.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this package; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  */
23 
24 #ifndef __COPLANAR_H
25 #define __COPLANAR_H
26 
27 class coplanar : public transline {
28  public:
29  coplanar();
30 
31  private:
32  double er; /* dielectric constant */
33  double h; /* height of substrate */
34  double t; /* thickness of top metal */
35  double tand; /* Dielectric Loss Tangent */
36  double w; /* width of line */
37  double s; /* width of gap between line and ground */
38  double len; /* length of line */
39  double Z0; /* characteristic impedance */
40  double er_eff; /* effective dielectric constant */
41  double ang_l; /* Electrical length in angle */
42  double atten_dielectric; /* Loss in dielectric (dB) */
43  double atten_cond; /* Loss in conductors (dB) */
44 
45  public:
46  void analyze();
47  void synthesize();
48 
49  protected:
50  bool backMetal;
51 
52  private:
53  void calc();
54  void show_results();
55  void getProperties();
56 
57  void ellipke(double, double&, double&);
58  double ellipk(double);
59 };
60 
61 
62 class groundedCoplanar : public coplanar {
63  public:
65 };
66 
67 #endif /* __COPLANAR_H */