My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rectwaveguide.h
Go to the documentation of this file.
1 /*
2  * rectwaveguide.h - rectangular waveguide 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 __RECTWAVEGUIDE_H
25 #define __RECTWAVEGUIDE_H
26 
27 class rectwaveguide : public transline {
28  public:
29  rectwaveguide();
31 
32  private:
33  double er; /* dielectric constant */
34  double tand; /* Dielectric Loss Tangent */
35  double tanm; /* Magnetic Loss Tangent */
36  double a; /* width of waveguide */
37  double b; /* height of waveguide */
38  double l; /* length of waveguide */
39  double Z0; /* characteristic impedance */
40  double ang_l; /* Electrical length in angle */
41  double er_eff; /* Effective dielectric constant */
42  double mur_eff; /* Effective mag. permeability */
43  double atten_dielectric; /* Loss in dielectric (dB) */
44  double atten_cond; /* Loss in conductors (dB) */
45  double fc10; /* Cutoff frequency for TE10 mode */
46 
47  public:
48  void analyze ();
49  void synthesize ();
50 
51  private:
52  double kval ();
53  double kc (int, int);
54  double fc (int, int);
55  double alphac ();
56  double alphac_cutoff ();
57  double alphad ();
58  void get_rectwaveguide_sub ();
59  void get_rectwaveguide_comp ();
60  void get_rectwaveguide_phys ();
61  void get_rectwaveguide_elec ();
62  void show_results ();
63 };
64 
65 #endif /* __RECTWAVEGUIDE_H */