Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cpwline.h
Go to the documentation of this file.
1 /*
2  * cpwline.h - coplanar waveguide line class definitions
3  *
4  * Copyright (C) 2004, 2005 Vincent Habchi, F5RCS <10.50@free.fr>
5  * Copyright (C) 2004, 2005, 2006, 2008 Stefan Jahn <stefan@lkcc.org>
6  *
7  * This is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * This software 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  * $Id$
23  *
24  */
25 
26 #ifndef __CPWLINE_H__
27 #define __CPWLINE_H__
28 
29 class cpwline : public qucs::circuit
30 {
31  public:
32  CREATOR (cpwline);
33  void initSP (void);
34  void calcSP (nr_double_t);
35  void calcNoiseSP (nr_double_t);
36  void initDC (void);
37  void initTR (void);
38  void initAC (void);
39  void calcAC (nr_double_t);
40  void calcNoiseAC (nr_double_t);
41  void saveCharacteristics (nr_double_t);
42 
43  static void ellipke (nr_double_t, nr_double_t &, nr_double_t &);
44  static nr_double_t ellipk (nr_double_t);
45  static nr_double_t ellipa (nr_double_t);
46 
47  static void analyseQuasiStatic (nr_double_t, nr_double_t, nr_double_t,
48  nr_double_t, nr_double_t, int,
49  nr_double_t&, nr_double_t&);
50  static void analyseDispersion (nr_double_t, nr_double_t, nr_double_t,
51  nr_double_t, nr_double_t,
52  nr_double_t, nr_double_t,
53  nr_double_t&, nr_double_t&);
54 
55  private:
56  void calcAB (nr_double_t, nr_double_t&, nr_double_t&, nr_double_t&);
57  void initPropagation (void);
58 
59  nr_double_t sr_er;
60  nr_double_t sr_er0;
61  nr_double_t zl_factor;
62  nr_double_t ac_factor;
63  nr_double_t ad_factor;
64  nr_double_t bt_factor;
65  nr_double_t fte, G;
66  nr_double_t len, tand, rho;
67  nr_double_t Zl, Er;
68 };
69 
70 #endif /* __CPWLINE_H__ */
static nr_double_t ellipk(nr_double_t)
Definition: cpwline.cpp:95
void calcAC(nr_double_t)
Definition: cpwline.cpp:403
nr_double_t ac_factor
Definition: cpwline.h:62
void initPropagation(void)
Definition: cpwline.cpp:122
void calcSP(nr_double_t)
Definition: cpwline.cpp:264
void calcAB(nr_double_t, nr_double_t &, nr_double_t &, nr_double_t &)
Definition: cpwline.cpp:232
void saveCharacteristics(nr_double_t)
Definition: cpwline.cpp:259
nr_double_t len
Definition: cpwline.h:66
void initTR(void)
Definition: cpwline.cpp:393
nr_double_t tand
Definition: cpwline.h:66
static void analyseDispersion(nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t &, nr_double_t &)
Definition: cpwline.cpp:349
base class for qucs circuit elements.
Definition: circuit.h:92
nr_double_t bt_factor
Definition: cpwline.h:64
nr_double_t fte
Definition: cpwline.h:65
void calcNoiseSP(nr_double_t)
Definition: cpwline.cpp:376
static void ellipke(nr_double_t, nr_double_t &, nr_double_t &)
Definition: cpwline.cpp:48
nr_double_t sr_er0
Definition: cpwline.h:60
void calcNoiseAC(nr_double_t)
Definition: cpwline.cpp:420
void initDC(void)
Definition: cpwline.cpp:384
nr_double_t rho
Definition: cpwline.h:66
void initAC(void)
Definition: cpwline.cpp:397
nr_double_t Zl
Definition: cpwline.h:67
static void analyseQuasiStatic(nr_double_t, nr_double_t, nr_double_t, nr_double_t, nr_double_t, int, nr_double_t &, nr_double_t &)
Definition: cpwline.cpp:287
nr_double_t G
Definition: cpwline.h:65
CREATOR(cpwline)
nr_double_t sr_er
Definition: cpwline.h:59
void initSP(void)
placehoder for S-Parameter initialisation function
Definition: cpwline.cpp:115
nr_double_t ad_factor
Definition: cpwline.h:63
nr_double_t zl_factor
Definition: cpwline.h:61
nr_double_t Er
Definition: cpwline.h:67
static nr_double_t ellipa(nr_double_t)
Definition: cpwline.cpp:103