/* * rfedd.h - equation defined RF device class definitions * * Copyright (C) 2008 Stefan Jahn * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this package; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, * Boston, MA 02110-1301, USA. * * $Id$ * */ #ifndef __RFEDD_H__ #define __RFEDD_H__ class rfedd : public qucs::circuit { public: CREATOR (rfedd); ~rfedd (); void initDC (void); void calcDC (void); void initAC (void); void calcAC (nr_double_t); void initSP (void); void calcSP (nr_double_t); void initTR (void); void calcTR (nr_double_t); private: void initModel (void); char * createVariable (const char *, int, int, bool prefix = true); char * createVariable (const char *, bool prefix = true); void setResult (void *, nr_double_t); void setResult (void *, nr_complex_t); nr_complex_t getResult (void *); qucs::matrix calcMatrix (nr_double_t); void updateLocals (nr_double_t); void prepareModel (void); void initMNA (void); void calcMNA (nr_double_t); private: void ** peqn; void * seqn; void * feqn; }; #endif /* __RFEDD_H__ */