Qucs-core  0.0.19
rfedd.h
Go to the documentation of this file.
00001 /*
00002  * rfedd.h - equation defined RF device class definitions
00003  *
00004  * Copyright (C) 2008 Stefan Jahn <stefan@lkcc.org>
00005  *
00006  * This is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2, or (at your option)
00009  * any later version.
00010  *
00011  * This software is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this package; see the file COPYING.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  *
00021  * $Id$
00022  *
00023  */
00024 
00025 #ifndef __RFEDD_H__
00026 #define __RFEDD_H__
00027 
00028 class rfedd : public qucs::circuit
00029 {
00030  public:
00031   CREATOR (rfedd);
00032   ~rfedd ();
00033   void initDC (void);
00034   void calcDC (void);
00035   void initAC (void);
00036   void calcAC (nr_double_t);
00037   void initSP (void);
00038   void calcSP (nr_double_t);
00039   void initTR (void);
00040   void calcTR (nr_double_t);
00041 
00042  private:
00043   void initModel (void);
00044   char * createVariable (const char *, int, int, bool prefix = true);
00045   char * createVariable (const char *, bool prefix = true);
00046   void setResult (void *, nr_double_t);
00047   void setResult (void *, nr_complex_t);
00048   nr_complex_t getResult (void *);
00049   qucs::matrix calcMatrix (nr_double_t);
00050   void updateLocals (nr_double_t);
00051   void prepareModel (void);
00052   void initMNA (void);
00053   void calcMNA (nr_double_t);
00054 
00055  private:
00056   void ** peqn;
00057   void * seqn;
00058   void * feqn;
00059 };
00060 
00061 #endif /* __RFEDD_H__ */