You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.3 KiB

  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. * Modified for Kicad: 2015 jean-pierre.charras
  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. #ifndef __RECTWAVEGUIDE_H
  24. #define __RECTWAVEGUIDE_H
  25. class RECTWAVEGUIDE : public TRANSLINE
  26. {
  27. public: RECTWAVEGUIDE();
  28. private:
  29. double mur; // magnetic permeability of substrate
  30. double tanm; // Magnetic Loss Tangent
  31. double a; // width of waveguide
  32. double b; // height of waveguide
  33. double l; // length of waveguide
  34. double Z0; // characteristic impedance
  35. double Z0EH; // characteristic impedance of field quantities*/
  36. double ang_l; // Electrical length in angle
  37. double er_eff; // Effective dielectric constant
  38. double mur_eff; // Effective mag. permeability
  39. double atten_dielectric; // Loss in dielectric (dB)
  40. double atten_cond; // Loss in conductors (dB)
  41. double fc10; // Cutoff frequency for TE10 mode
  42. public:
  43. void analyze();
  44. void synthesize();
  45. private:
  46. double kval_square();
  47. double kc_square( int, int );
  48. double fc( int, int );
  49. double alphac();
  50. double alphac_cutoff();
  51. double alphad();
  52. void get_rectwaveguide_sub();
  53. void get_rectwaveguide_comp();
  54. void get_rectwaveguide_phys();
  55. void get_rectwaveguide_elec();
  56. void show_results();
  57. };
  58. #endif // __RECTWAVEGUIDE_H