Qucs-core  0.0.19
cpwline.h
Go to the documentation of this file.
00001 /*
00002  * cpwline.h - coplanar waveguide line class definitions
00003  *
00004  * Copyright (C) 2004, 2005 Vincent Habchi, F5RCS <10.50@free.fr>
00005  * Copyright (C) 2004, 2005, 2006, 2008 Stefan Jahn <stefan@lkcc.org>
00006  *
00007  * This is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  *
00012  * This software is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this package; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021  *
00022  * $Id$
00023  *
00024  */
00025 
00026 #ifndef __CPWLINE_H__
00027 #define __CPWLINE_H__
00028 
00029 class cpwline : public qucs::circuit
00030 {
00031  public:
00032   CREATOR (cpwline);
00033   void initSP (void);
00034   void calcSP (nr_double_t);
00035   void calcNoiseSP (nr_double_t);
00036   void initDC (void);
00037   void initTR (void);
00038   void initAC (void);
00039   void calcAC (nr_double_t);
00040   void calcNoiseAC (nr_double_t);
00041   void saveCharacteristics (nr_double_t);
00042 
00043   static void ellipke (nr_double_t, nr_double_t &, nr_double_t &);
00044   static nr_double_t ellipk (nr_double_t);
00045   static nr_double_t ellipa (nr_double_t);
00046   static nr_double_t KoverKp(nr_double_t);
00047 
00048   static void analyseQuasiStatic (nr_double_t, nr_double_t, nr_double_t,
00049                                   nr_double_t, nr_double_t, int,
00050                                   nr_double_t&, nr_double_t&);
00051   static void analyseDispersion (nr_double_t, nr_double_t, nr_double_t,
00052                                  nr_double_t, nr_double_t,
00053                                  nr_double_t, nr_double_t,
00054                                  nr_double_t&, nr_double_t&);
00055 
00056  private:
00057   void calcAB (nr_double_t, nr_double_t&, nr_double_t&, nr_double_t&);
00058   void initPropagation (void);
00059 
00060   nr_double_t sr_er;
00061   nr_double_t sr_er0;
00062   nr_double_t zl_factor;
00063   nr_double_t ac_factor;
00064   nr_double_t ad_factor;
00065   nr_double_t bt_factor;
00066   nr_double_t fte, G;
00067   nr_double_t len, tand, rho;
00068   nr_double_t Zl, Er;
00069 };
00070 
00071 #endif /* __CPWLINE_H__ */