46 #define MODFLAG(val,bit) if (val) flag |= (bit); else flag &= ~(bit);
47 #define RETFLAG(bit) ((flag & (bit)) != 0)
49 #define CREATOR(val) \
51 static qucs::circuit * create (void) { return new val (); } \
52 static struct define_t cirdef; \
53 static struct define_t * definition (void) { return &cirdef; }
134 void setNode (
int,
const char *,
int intern = 0);
219 nr_double_t
getV (
int, nr_double_t);
220 nr_double_t
getV (
int,
int);
221 nr_double_t
getJ (
int, nr_double_t);
254 nr_double_t
getG (
int,
int);
269 void setG (
int,
int, nr_double_t);
279 void addY (
int,
int, nr_double_t);
281 void addI (
int, nr_double_t);
320 static const nr_double_t
z0;
370 extern std::map<std::string, creator_t *, std::less<std::string> >
factorycreate;
371 extern std::map<std::string, defs_t *, std::less<std::string> >
factorydef;
nr_double_t getG(int, int)
std::complex< nr_double_t > nr_complex_t
nr_double_t getOperatingPoint(const char *)
std::map< std::string, defs_t *, std::less< std::string > > factorydef
void addCharacteristic(const char *, nr_double_t)
virtual void calcCharacteristics(nr_double_t)
void setDelta(nr_double_t *d)
void setSubcircuit(char *)
void allocMatrixN(int sources=0)
void setQ(int, nr_complex_t)
struct define_t * defs_t()
void setD(int, int, nr_complex_t)
valuelist< operatingpoint > & getOperatingPoints(void)
int hasOperatingPoint(char *)
substrate * getSubstrate(void)
void setEnabled(bool e)
Set a circuit element to be enabled or diabled.
void appendHistory(int, nr_double_t)
void setInternalVoltageSource(bool i)
bool isInternalVoltageSource(void)
void setVoltageSources(int)
int getVoltageSource(void)
void setB(int, int, nr_complex_t)
Houses the settings for netlist evaluation.
#define MODFLAG(val, bit)
void setVoltageSource(int s)
void transientCapacitanceQ(int, int, int, nr_double_t)
static const nr_double_t z0
nr_complex_t getN(int, int)
void transientCapacitanceC2Q(int, int, int, nr_double_t, nr_double_t)
void setJ(int, nr_complex_t)
virtual void initDC(void)
void applyHistory(history *)
int getSize(void)
Get the number of ports the circuit element has.
void addY(int, int, nr_complex_t)
int getVoltageSources(void)
virtual void initNoiseAC(void)
void addOperatingPoint(const char *, nr_double_t)
virtual void initAC(void)
bool isEnabled(void)
Reports if circuit element is enabled.
nr_complex_t getC(int, int)
void transientCapacitance(int, int, int, nr_double_t, nr_double_t, nr_double_t)
virtual void saveOperatingPoints(void)
virtual void calcHB(nr_double_t)
nr_double_t getHistoryAge(void)
base class for qucs circuit elements.
virtual void restartDC(void)
nr_double_t getJ(int, nr_double_t)
void transientCapacitanceC2V(int, int, int, nr_double_t, nr_double_t)
char * getSubcircuit(void)
virtual void calcNoiseAC(nr_double_t)
void setSize(int)
Set the number of ports the circuit element has.
virtual void initSP(void)
placehoder for S-Parameter initialisation function
void setCV(int, nr_complex_t)
void setE(int, nr_complex_t)
valuelist< characteristic > charac
void addI(int, nr_complex_t)
environment * getEnv(void)
std::map< std::string, creator_t *, std::less< std::string > > factorycreate
int hasCharacteristic(char *)
virtual void calcAC(nr_double_t)
void setI(int, nr_complex_t)
virtual void initTR(void)
static char * createInternal(const char *, const char *)
nr_complex_t getD(int, int)
void truncateHistory(nr_double_t)
void setY(int, int, nr_complex_t)
virtual void calcOperatingPoints(void)
void setInternalNode(int, const char *)
void setEnv(environment *e)
nr_double_t getCharacteristic(char *)
void allocMatrixMNA(void)
void transientCapacitanceC(int, int, int, int, nr_double_t, nr_double_t)
nr_complex_t getB(int, int)
virtual void calcSP(nr_double_t)
bool isVariableSized(void)
virtual void initNoiseSP(void)
void setNonLinear(bool l)
valuelist< operatingpoint > oper
virtual void initHB(void)
void setNode(int, const char *, int intern=0)
nr_double_t getV(int, nr_double_t)
nr_complex_t getQV(int, int)
nr_double_t getHistoryTFromIndex(int)
void setVariableSized(bool v)
void voltageSource(int, int, int, nr_double_t value=0.0)
void setQV(int, int, nr_complex_t)
void setNoiseSources(int)
void setS(int, int, nr_complex_t)
void setN(int, int, nr_complex_t)
void setOperatingPoint(const char *, nr_double_t)
void setC(int, int, nr_complex_t)
nr_complex_t getY(int, int)
qucs::circuit * maker_t()
void setCharacteristic(const char *, nr_double_t)
int getNoiseSources(void)
virtual void calcDC(void)
void initHistory(nr_double_t)
qucs::circuit * creator_t()
valuelist< characteristic > & getCharacteristics(void)
void setHistoryAge(nr_double_t)
void setGV(int, nr_complex_t)
virtual void calcNoiseSP(nr_double_t)
nr_complex_t getS(int, int)
void setG(int, int, nr_double_t)
void setSubstrate(substrate *)
virtual void saveCharacteristics(nr_double_t)
nr_double_t * getDelta(void)
void setV(int, nr_complex_t)
virtual void calcTR(nr_double_t)