My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
coax.h
Go to the documentation of this file.
1 /*
2  * microstrip.h - coaxial class definition
3  *
4  * Copyright (C) 2001 Gopal Narayanan <gopal@astro.umass.edu>
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 __COAX_H
25 #define __COAX_H
26 
27 class coax : public transline {
28  public:
29  coax();
30  ~coax();
31 
32  private:
33  double er; /* dielectric constant */
34  double tand; /* Dielectric Loss Tangent */
35  double din; /* Inner diameter of cable */
36  double dout; /* Outer diameter of cable */
37  double l; /* Length of cable */
38  double Z0; /* characteristic impedance */
39  double ang_l; /* Electrical length in angle */
40  double er_eff; /* Effective dielectric constant */
41  double atten_dielectric; /* Loss in dielectric (dB) */
42  double atten_cond; /* Loss in conductors (dB) */
43  double fc; /* Cutoff frequency for higher order modes */
44 
45  public:
46  void analyze ();
47  void synthesize ();
48 
49  private:
50  void get_coax_sub();
51  void get_coax_comp();
52  void get_coax_phys();
53  void get_coax_elec();
54  void fixdin();
55  void fixdout();
56  double alphad_coax();
57  double alphac_coax();
58  void show_results();
59 };
60 
61 #endif /* __COAX_H */