Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Attributes
qucs::circuit Class Reference

base class for qucs circuit elements. More...

#include <circuit.h>

Inheritance diagram for qucs::circuit:
qucs::object qucs::integrator qucs::states< state_type_t > amplifier ashort attenuator biastee bjt bondwire capacitor cccs ccvs circulator coaxline coupler cpwgap cpwline cpwopen cpwshort cpwstep cross ctline dcblock dcfeed diac digisource digital diode ecvs eqndefined ground gyrator hybrid iac idc iexp ifile iinoise inductor inoise iprobe ipulse irect isolator itrafo ivnoise jfet mosfet mscorner mscoupled mscross msgap mslange msline msmbend msopen msrstub msstep mstee msvia mutual mutual2 mutualx opamp open pac phaseshifter rectline relais resistor rfedd rlcg spfile strafo tee thyristor tline tline4p trafo triac tswitch tunneldiode twistedpair vac vam vccs vcvs vdc vexp vfile vnoise vpm vprobe vpulse vrect vvnoise

Public Member Functions

 circuit ()
 
 circuit (int)
 
 circuit (const circuit &)
 
 ~circuit ()
 
virtual void initSP (void)
 placehoder for S-Parameter initialisation function More...
 
virtual void calcSP (nr_double_t)
 
virtual void initDC (void)
 
virtual void calcDC (void)
 
virtual void restartDC (void)
 
virtual void initNoiseSP (void)
 
virtual void calcNoiseSP (nr_double_t)
 
virtual void initNoiseAC (void)
 
virtual void calcNoiseAC (nr_double_t)
 
virtual void initAC (void)
 
virtual void calcAC (nr_double_t)
 
virtual void initTR (void)
 
virtual void calcTR (nr_double_t)
 
virtual void initHB (void)
 
virtual void calcHB (nr_double_t)
 
virtual void initHB (int)
 
virtual void calcHB (int)
 
virtual void calcOperatingPoints (void)
 
virtual void saveOperatingPoints (void)
 
virtual void calcCharacteristics (nr_double_t)
 
virtual void saveCharacteristics (nr_double_t)
 
void setNode (int, const char *, int intern=0)
 
nodegetNode (int)
 
void setType (int t)
 
int getType (void)
 
int getSize (void)
 Get the number of ports the circuit element has. More...
 
void setSize (int)
 Set the number of ports the circuit element has. More...
 
bool isEnabled (void)
 Reports if circuit element is enabled. More...
 
void setEnabled (bool e)
 Set a circuit element to be enabled or diabled. More...
 
bool isVariableSized (void)
 
void setVariableSized (bool v)
 
bool isProbe (void)
 
void setProbe (bool p)
 
void setNet (net *n)
 
netgetNet (void)
 
char * getSubcircuit (void)
 
void setSubcircuit (char *)
 
environmentgetEnv (void)
 
void setEnv (environment *e)
 
void setInternalVoltageSource (bool i)
 
bool isInternalVoltageSource (void)
 
void setVoltageSource (int s)
 
int getVoltageSource (void)
 
int getVoltageSources (void)
 
void setVoltageSources (int)
 
void voltageSource (int, int, int, nr_double_t value=0.0)
 
bool isVSource (void)
 
void setVSource (bool v)
 
bool isISource (void)
 
void setISource (bool i)
 
int getNoiseSources (void)
 
void setNoiseSources (int)
 
void transientCapacitance (int, int, int, nr_double_t, nr_double_t, nr_double_t)
 
void transientCapacitance (int, int, nr_double_t, nr_double_t, nr_double_t)
 
void transientCapacitanceQ (int, int, int, nr_double_t)
 
void transientCapacitanceQ (int, int, nr_double_t)
 
void transientCapacitanceC (int, int, int, int, nr_double_t, nr_double_t)
 
void transientCapacitanceC (int, int, nr_double_t, nr_double_t)
 
void transientCapacitanceC2V (int, int, int, nr_double_t, nr_double_t)
 
void transientCapacitanceC2Q (int, int, int, nr_double_t, nr_double_t)
 
void setDelta (nr_double_t *d)
 
nr_double_t * getDelta (void)
 
bool hasHistory (void)
 
void setHistory (bool h)
 
void initHistory (nr_double_t)
 
void deleteHistory (void)
 
void truncateHistory (nr_double_t)
 
void appendHistory (int, nr_double_t)
 
void applyHistory (history *)
 
nr_double_t getV (int, nr_double_t)
 
nr_double_t getV (int, int)
 
nr_double_t getJ (int, nr_double_t)
 
nr_double_t getHistoryAge (void)
 
void setHistoryAge (nr_double_t)
 
int getHistorySize (void)
 
nr_double_t getHistoryTFromIndex (int)
 
int getPort (void)
 
void setPort (int p)
 
int getInserted (void)
 
void setInserted (int i)
 
bool isOriginal (void)
 
void setOriginal (bool o)
 
substrategetSubstrate (void)
 
void setSubstrate (substrate *)
 
nr_complex_t getS (int, int)
 
nr_complex_t getN (int, int)
 
nr_complex_t getY (int, int)
 
nr_complex_t getB (int, int)
 
nr_complex_t getC (int, int)
 
nr_complex_t getD (int, int)
 
nr_complex_t getQV (int, int)
 
nr_complex_t getGV (int)
 
nr_complex_t getCV (int)
 
nr_complex_t getE (int)
 
nr_complex_t getI (int)
 
nr_complex_t getJ (int)
 
nr_complex_t getV (int)
 
nr_complex_t getQ (int)
 
nr_double_t getG (int, int)
 
void setS (int, int, nr_complex_t)
 
void setN (int, int, nr_complex_t)
 
void setY (int, int, nr_complex_t)
 
void setB (int, int, nr_complex_t)
 
void setC (int, int, nr_complex_t)
 
void setD (int, int, nr_complex_t)
 
void setQV (int, int, nr_complex_t)
 
void setGV (int, nr_complex_t)
 
void setCV (int, nr_complex_t)
 
void setE (int, nr_complex_t)
 
void setI (int, nr_complex_t)
 
void setJ (int, nr_complex_t)
 
void setV (int, nr_complex_t)
 
void setQ (int, nr_complex_t)
 
void setG (int, int, nr_double_t)
 
void clearB (void)
 
void clearC (void)
 
void clearD (void)
 
void clearE (void)
 
void clearI (void)
 
void clearJ (void)
 
void clearV (void)
 
void clearY (void)
 
void addY (int, int, nr_complex_t)
 
void addY (int, int, nr_double_t)
 
void addI (int, nr_complex_t)
 
void addI (int, nr_double_t)
 
void addOperatingPoint (const char *, nr_double_t)
 
nr_double_t getOperatingPoint (const char *)
 
void setOperatingPoint (const char *, nr_double_t)
 
int hasOperatingPoint (char *)
 
valuelist< operatingpoint > & getOperatingPoints (void)
 
void addCharacteristic (const char *, nr_double_t)
 
nr_double_t getCharacteristic (char *)
 
void setCharacteristic (const char *, nr_double_t)
 
int hasCharacteristic (char *)
 
valuelist< characteristic > & getCharacteristics (void)
 
void setNonLinear (bool l)
 
bool isNonLinear (void)
 
void print (void)
 
void setInternalNode (int, const char *)
 
void allocMatrixS (void)
 
void allocMatrixN (int sources=0)
 
void allocMatrixMNA (void)
 
void freeMatrixMNA (void)
 
void allocMatrixHB (void)
 
void freeMatrixHB (void)
 
void setMatrixS (matrix)
 
matrix getMatrixS (void)
 
void setMatrixN (matrix)
 
matrix getMatrixN (void)
 
void setMatrixY (matrix)
 
matrix getMatrixY (void)
 
- Public Member Functions inherited from qucs::object
 object ()
 
 object (const char *)
 
 object (const object &)
 
virtual ~object ()
 
objectgetNext (void)
 
void setNext (object *o)
 
objectgetPrev (void)
 
void setPrev (object *o)
 
void setName (const char *)
 
char * getName (void)
 
void addProperty (property *)
 
propertyaddProperty (const char *, const char *)
 
propertyaddProperty (const char *, nr_double_t)
 
propertyaddProperty (const char *, variable *)
 
void setProperty (const char *, char *)
 
void setProperty (const char *, nr_double_t)
 
void setScaledProperty (const char *, nr_double_t)
 
void setProperty (const char *, variable *)
 
vectorgetPropertyVector (const char *)
 
char * getPropertyString (const char *)
 
char * getPropertyReference (const char *)
 
nr_double_t getPropertyDouble (const char *)
 
nr_double_t getScaledProperty (const char *)
 
int getPropertyInteger (const char *)
 
bool hasProperty (const char *)
 
bool isPropertyGiven (const char *)
 
void copyProperties (property *)
 
void deleteProperties (void)
 
int countProperties (void)
 
char * propertyList (void)
 
 object ()
 
 object (const char *)
 
 object (const object &)
 
virtual ~object ()
 
objectgetNext (void)
 
void setNext (object *o)
 
objectgetPrev (void)
 
void setPrev (object *o)
 
void setName (const char *)
 
char * getName (void)
 
void addProperty (property *)
 
propertyaddProperty (const char *, const char *)
 
propertyaddProperty (const char *, nr_double_t)
 
propertyaddProperty (const char *, variable *)
 
void setProperty (const char *, char *)
 
void setProperty (const char *, nr_double_t)
 
void setScaledProperty (const char *, nr_double_t)
 
void setProperty (const char *, variable *)
 
vectorgetPropertyVector (const char *)
 
char * getPropertyString (const char *)
 
char * getPropertyReference (const char *)
 
nr_double_t getPropertyDouble (const char *)
 
nr_double_t getScaledProperty (const char *)
 
int getPropertyInteger (const char *)
 
bool hasProperty (const char *)
 
bool isPropertyGiven (const char *)
 
void copyProperties (property *)
 
void deleteProperties (void)
 
int countProperties (void)
 
char * propertyList (void)
 
- Public Member Functions inherited from qucs::integrator
 integrator ()
 
 integrator (const integrator &)
 
 ~integrator ()
 
void setIntegration (integrate_func_t f)
 
void setConductance (conductor_func_t f)
 
void integrate (int, nr_double_t, nr_double_t &, nr_double_t &)
 
void conductor (nr_double_t, nr_double_t &)
 
void setOrder (int o)
 
int getOrder (void)
 
void setMode (int s)
 
int getMode (void)
 
void setCoefficients (nr_double_t *c)
 
nr_double_t * getCoefficients (void)
 
- Public Member Functions inherited from qucs::states< state_type_t >
 states ()
 
 states (const states &)
 
 ~states ()
 
state_type_t getState (int, int n=0)
 
void setState (int, state_type_t, int n=0)
 
void initStates (void)
 
void clearStates (void)
 
int getStates (void)
 
void setStates (int n)
 
void nextState (void)
 
void prevState (void)
 
void fillState (int, state_type_t)
 
void saveState (int, state_type_t *)
 
void inputState (int, state_type_t *)
 

Static Public Member Functions

static char * createInternal (const char *, const char *)
 

Static Public Attributes

static const nr_double_t z0 = 50.0
 

Protected Attributes

int type
 
int pol
 

Private Attributes

int size
 
int pacport
 
int vsource
 
int vsources
 
int nsources
 
int inserted
 
int flag
 
nr_complex_tMatrixS
 
nr_complex_tMatrixN
 
nr_complex_tMatrixY
 
nr_complex_tMatrixB
 
nr_complex_tMatrixC
 
nr_complex_tMatrixD
 
nr_complex_tVectorE
 
nr_complex_tVectorI
 
nr_complex_tVectorV
 
nr_complex_tVectorJ
 
nr_complex_tVectorQ
 
nr_complex_tMatrixQV
 
nr_complex_tVectorGV
 
nr_complex_tVectorCV
 
char * subcircuit
 
nodenodes
 
substratesubst
 
valuelist< operatingpointoper
 
valuelist< characteristiccharac
 
netsubnet
 
environmentenv
 
nr_double_t * deltas
 
int nHistories
 
historyhistories
 

Additional Inherited Members

- Public Types inherited from qucs::integrator
typedef void(* integrate_func_t )(integrator *, int, nr_double_t, nr_double_t &, nr_double_t &)
 
typedef void(* conductor_func_t )(integrator *, nr_double_t, nr_double_t &)
 

Detailed Description

base class for qucs circuit elements.

This is the base class for all circuit elements and provides the the functionality required for all simulation types. It has a number of virtual functions intended to be overridden by the inheiriting class

Definition at line 92 of file circuit.h.

Constructor & Destructor Documentation

qucs::circuit::circuit ( )

Definition at line 55 of file circuit.cpp.

qucs::circuit::circuit ( int  s)

Definition at line 81 of file circuit.cpp.

qucs::circuit::circuit ( const circuit c)

Definition at line 108 of file circuit.cpp.

qucs::circuit::~circuit ( )

Definition at line 180 of file circuit.cpp.

Member Function Documentation

void qucs::circuit::addCharacteristic ( const char *  n,
nr_double_t  val 
)

Definition at line 550 of file circuit.cpp.

void qucs::circuit::addI ( int  port,
nr_complex_t  i 
)

Definition at line 403 of file circuit.cpp.

void qucs::circuit::addI ( int  port,
nr_double_t  i 
)

Definition at line 408 of file circuit.cpp.

void qucs::circuit::addOperatingPoint ( const char *  n,
nr_double_t  val 
)

Definition at line 517 of file circuit.cpp.

void qucs::circuit::addY ( int  r,
int  c,
nr_complex_t  y 
)

Definition at line 458 of file circuit.cpp.

void qucs::circuit::addY ( int  r,
int  c,
nr_double_t  y 
)

Definition at line 463 of file circuit.cpp.

void qucs::circuit::allocMatrixHB ( void  )

Definition at line 227 of file circuit.cpp.

void qucs::circuit::allocMatrixMNA ( void  )

Definition at line 267 of file circuit.cpp.

void qucs::circuit::allocMatrixN ( int  sources = 0)

Definition at line 260 of file circuit.cpp.

void qucs::circuit::allocMatrixS ( void  )

Definition at line 251 of file circuit.cpp.

void qucs::circuit::appendHistory ( int  n,
nr_double_t  val 
)

Definition at line 906 of file circuit.cpp.

void qucs::circuit::applyHistory ( history h)

Definition at line 929 of file circuit.cpp.

virtual void qucs::circuit::calcAC ( nr_double_t  )
inlinevirtual
virtual void qucs::circuit::calcCharacteristics ( nr_double_t  )
inlinevirtual

Definition at line 130 of file circuit.h.

virtual void qucs::circuit::calcDC ( void  )
inlinevirtual

Reimplemented in diode, diac, thyristor, triac, digital, bjt, resistor, eqndefined, jfet, mosfet, tunneldiode, idc, inductor, opamp, pac, relais, rfedd, and vdc.

Definition at line 114 of file circuit.h.

virtual void qucs::circuit::calcHB ( nr_double_t  )
inlinevirtual

Reimplemented in capacitor, inductor, pac, vac, and vdc.

Definition at line 125 of file circuit.h.

virtual void qucs::circuit::calcHB ( int  )
inlinevirtual

Reimplemented in diode, and eqndefined.

Definition at line 127 of file circuit.h.

virtual void qucs::circuit::calcNoiseAC ( nr_double_t  )
inlinevirtual
virtual void qucs::circuit::calcNoiseSP ( nr_double_t  )
inlinevirtual
virtual void qucs::circuit::calcOperatingPoints ( void  )
inlinevirtual

Reimplemented in diode, digital, bjt, diac, mosfet, thyristor, triac, jfet, opamp, and tunneldiode.

Definition at line 128 of file circuit.h.

virtual void qucs::circuit::calcSP ( nr_double_t  )
inlinevirtual
virtual void qucs::circuit::calcTR ( nr_double_t  )
inlinevirtual
void qucs::circuit::clearB ( void  )

Definition at line 705 of file circuit.cpp.

void qucs::circuit::clearC ( void  )

Definition at line 710 of file circuit.cpp.

void qucs::circuit::clearD ( void  )

Definition at line 715 of file circuit.cpp.

void qucs::circuit::clearE ( void  )

Definition at line 720 of file circuit.cpp.

void qucs::circuit::clearI ( void  )

Definition at line 730 of file circuit.cpp.

void qucs::circuit::clearJ ( void  )

Definition at line 725 of file circuit.cpp.

void qucs::circuit::clearV ( void  )

Definition at line 735 of file circuit.cpp.

void qucs::circuit::clearY ( void  )

Definition at line 740 of file circuit.cpp.

char * qucs::circuit::createInternal ( const char *  prefix,
const char *  obj 
)
static

Definition at line 626 of file circuit.cpp.

void qucs::circuit::deleteHistory ( void  )

Definition at line 886 of file circuit.cpp.

void qucs::circuit::freeMatrixHB ( void  )

Definition at line 219 of file circuit.cpp.

void qucs::circuit::freeMatrixMNA ( void  )

Definition at line 284 of file circuit.cpp.

nr_complex_t qucs::circuit::getB ( int  port,
int  nr 
)

Definition at line 343 of file circuit.cpp.

nr_complex_t qucs::circuit::getC ( int  nr,
int  port 
)

Definition at line 355 of file circuit.cpp.

nr_double_t qucs::circuit::getCharacteristic ( char *  n)

Definition at line 558 of file circuit.cpp.

valuelist<characteristic>& qucs::circuit::getCharacteristics ( void  )
inline

Definition at line 295 of file circuit.h.

nr_complex_t qucs::circuit::getCV ( int  port)

Definition at line 505 of file circuit.cpp.

nr_complex_t qucs::circuit::getD ( int  r,
int  c 
)

Definition at line 367 of file circuit.cpp.

nr_double_t* qucs::circuit::getDelta ( void  )
inline

Definition at line 209 of file circuit.h.

nr_complex_t qucs::circuit::getE ( int  nr)

Definition at line 379 of file circuit.cpp.

environment* qucs::circuit::getEnv ( void  )
inline

Definition at line 180 of file circuit.h.

nr_double_t qucs::circuit::getG ( int  r,
int  c 
)

Definition at line 469 of file circuit.cpp.

nr_complex_t qucs::circuit::getGV ( int  port)

Definition at line 493 of file circuit.cpp.

nr_double_t qucs::circuit::getHistoryAge ( void  )

Definition at line 911 of file circuit.cpp.

int qucs::circuit::getHistorySize ( void  )

Definition at line 917 of file circuit.cpp.

nr_double_t qucs::circuit::getHistoryTFromIndex ( int  idx)

Definition at line 922 of file circuit.cpp.

nr_complex_t qucs::circuit::getI ( int  port)

Definition at line 391 of file circuit.cpp.

int qucs::circuit::getInserted ( void  )
inline

Definition at line 230 of file circuit.h.

nr_double_t qucs::circuit::getJ ( int  nr,
nr_double_t  t 
)

Definition at line 951 of file circuit.cpp.

nr_complex_t qucs::circuit::getJ ( int  nr)

Definition at line 424 of file circuit.cpp.

matrix qucs::circuit::getMatrixN ( void  )

Definition at line 675 of file circuit.cpp.

matrix qucs::circuit::getMatrixS ( void  )

Definition at line 654 of file circuit.cpp.

matrix qucs::circuit::getMatrixY ( void  )

Definition at line 696 of file circuit.cpp.

nr_complex_t qucs::circuit::getN ( int  r,
int  c 
)

Definition at line 592 of file circuit.cpp.

net* qucs::circuit::getNet ( void  )
inline

Definition at line 173 of file circuit.h.

node * qucs::circuit::getNode ( int  i)

Definition at line 307 of file circuit.cpp.

int qucs::circuit::getNoiseSources ( void  )

Definition at line 613 of file circuit.cpp.

nr_double_t qucs::circuit::getOperatingPoint ( const char *  n)

Definition at line 525 of file circuit.cpp.

valuelist<operatingpoint>& qucs::circuit::getOperatingPoints ( void  )
inline

Definition at line 288 of file circuit.h.

int qucs::circuit::getPort ( void  )
inline

Definition at line 228 of file circuit.h.

nr_complex_t qucs::circuit::getQ ( int  port)

Definition at line 413 of file circuit.cpp.

nr_complex_t qucs::circuit::getQV ( int  r,
int  c 
)

Definition at line 481 of file circuit.cpp.

nr_complex_t qucs::circuit::getS ( int  x,
int  y 
)

Definition at line 582 of file circuit.cpp.

qucs::circuit::getSize ( void  )
inline

Get the number of ports the circuit element has.

Gets the number of ports the circuit element has

Definition at line 143 of file circuit.h.

char* qucs::circuit::getSubcircuit ( void  )
inline

Definition at line 176 of file circuit.h.

substrate * qucs::circuit::getSubstrate ( void  )

Definition at line 332 of file circuit.cpp.

int qucs::circuit::getType ( void  )
inline

Definition at line 137 of file circuit.h.

nr_double_t qucs::circuit::getV ( int  port,
nr_double_t  t 
)

Definition at line 941 of file circuit.cpp.

nr_double_t qucs::circuit::getV ( int  port,
int  idx 
)

Definition at line 946 of file circuit.cpp.

nr_complex_t qucs::circuit::getV ( int  port)

Definition at line 435 of file circuit.cpp.

int qucs::circuit::getVoltageSource ( void  )
inline

Definition at line 187 of file circuit.h.

int qucs::circuit::getVoltageSources ( void  )

Definition at line 602 of file circuit.cpp.

nr_complex_t qucs::circuit::getY ( int  r,
int  c 
)

Definition at line 446 of file circuit.cpp.

int qucs::circuit::hasCharacteristic ( char *  n)

Definition at line 577 of file circuit.cpp.

bool qucs::circuit::hasHistory ( void  )
inline

Definition at line 212 of file circuit.h.

int qucs::circuit::hasOperatingPoint ( char *  n)

Definition at line 544 of file circuit.cpp.

virtual void qucs::circuit::initAC ( void  )
inlinevirtual
virtual void qucs::circuit::initDC ( void  )
inlinevirtual
virtual void qucs::circuit::initHB ( void  )
inlinevirtual

Reimplemented in resistor, capacitor, inductor, pac, vac, vdc, and ashort.

Definition at line 124 of file circuit.h.

virtual void qucs::circuit::initHB ( int  )
inlinevirtual

Reimplemented in diode, and eqndefined.

Definition at line 126 of file circuit.h.

void qucs::circuit::initHistory ( nr_double_t  age)

Definition at line 869 of file circuit.cpp.

virtual void qucs::circuit::initNoiseAC ( void  )
inlinevirtual

Reimplemented in mstee.

Definition at line 118 of file circuit.h.

virtual void qucs::circuit::initNoiseSP ( void  )
inlinevirtual

Reimplemented in mstee.

Definition at line 116 of file circuit.h.

qucs::circuit::initSP ( void  )
inlinevirtual

placehoder for S-Parameter initialisation function

Virtual function intended to be overridden by the inheiriting circuit element's S-Parameter initialisation function. initSP is called before commencing the simulation to set up the S-Parameter matrix.

Reimplemented in spfile, ecvs, mstee, amplifier, vfile, eqndefined, ifile, rfedd, mscross, rectline, bjt, bondwire, mscorner, digital, iexp, cpwline, msvia, vexp, attenuator, biastee, coaxline, coupler, cross, dcblock, dcfeed, digisource, ground, gyrator, hybrid, iac, idc, iinoise, inoise, iprobe, ipulse, irect, isolator, itrafo, ivnoise, cpwopen, cpwshort, cpwstep, opamp, open, phaseshifter, relais, resistor, ashort, strafo, tee, trafo, tswitch, twistedpair, vac, vam, vdc, vnoise, vpm, vprobe, vpulse, vrect, and vvnoise.

Definition at line 111 of file circuit.h.

virtual void qucs::circuit::initTR ( void  )
inlinevirtual
qucs::circuit::isEnabled ( void  )
inline

Reports if circuit element is enabled.

Returns true if the circuit element is enabled or false otherwise.

Definition at line 160 of file circuit.h.

bool qucs::circuit::isInternalVoltageSource ( void  )
inline

Definition at line 185 of file circuit.h.

bool qucs::circuit::isISource ( void  )
inline

Definition at line 193 of file circuit.h.

bool qucs::circuit::isNonLinear ( void  )
inline

Definition at line 299 of file circuit.h.

bool qucs::circuit::isOriginal ( void  )
inline

Definition at line 232 of file circuit.h.

bool qucs::circuit::isProbe ( void  )
inline

Definition at line 170 of file circuit.h.

bool qucs::circuit::isVariableSized ( void  )
inline

Definition at line 168 of file circuit.h.

bool qucs::circuit::isVSource ( void  )
inline

Definition at line 191 of file circuit.h.

void qucs::circuit::print ( void  )
virtual void qucs::circuit::restartDC ( void  )
inlinevirtual

Reimplemented in diode, bjt, jfet, and mosfet.

Definition at line 115 of file circuit.h.

virtual void qucs::circuit::saveCharacteristics ( nr_double_t  )
inlinevirtual

Reimplemented in bondwire, cpwline, twistedpair, coaxline, mscoupled, mslange, msline, and rlcg.

Definition at line 131 of file circuit.h.

virtual void qucs::circuit::saveOperatingPoints ( void  )
inlinevirtual

Reimplemented in diode, bjt, mosfet, relais, diac, eqndefined, jfet, thyristor, triac, vprobe, and tunneldiode.

Definition at line 129 of file circuit.h.

void qucs::circuit::setB ( int  port,
int  nr,
nr_complex_t  z 
)

Definition at line 349 of file circuit.cpp.

void qucs::circuit::setC ( int  nr,
int  port,
nr_complex_t  z 
)

Definition at line 361 of file circuit.cpp.

void qucs::circuit::setCharacteristic ( const char *  n,
nr_double_t  val 
)

Definition at line 566 of file circuit.cpp.

void qucs::circuit::setCV ( int  port,
nr_complex_t  cv 
)

Definition at line 511 of file circuit.cpp.

void qucs::circuit::setD ( int  r,
int  c,
nr_complex_t  z 
)

Definition at line 373 of file circuit.cpp.

void qucs::circuit::setDelta ( nr_double_t *  d)
inline

Definition at line 208 of file circuit.h.

void qucs::circuit::setE ( int  nr,
nr_complex_t  z 
)

Definition at line 385 of file circuit.cpp.

qucs::circuit::setEnabled ( bool  e)
inline

Set a circuit element to be enabled or diabled.

Parameters
eboolean indicating whether to enable or disable

Sets the circuit element to be enabled or disabled.

Definition at line 167 of file circuit.h.

void qucs::circuit::setEnv ( environment e)
inline

Definition at line 181 of file circuit.h.

void qucs::circuit::setG ( int  r,
int  c,
nr_double_t  y 
)

Definition at line 475 of file circuit.cpp.

void qucs::circuit::setGV ( int  port,
nr_complex_t  gv 
)

Definition at line 499 of file circuit.cpp.

void qucs::circuit::setHistory ( bool  h)
inline

Definition at line 213 of file circuit.h.

void qucs::circuit::setHistoryAge ( nr_double_t  age)

Definition at line 876 of file circuit.cpp.

void qucs::circuit::setI ( int  port,
nr_complex_t  z 
)

Definition at line 397 of file circuit.cpp.

void qucs::circuit::setInserted ( int  i)
inline

Definition at line 231 of file circuit.h.

void qucs::circuit::setInternalNode ( int  node,
const char *  suffix 
)

Definition at line 635 of file circuit.cpp.

void qucs::circuit::setInternalVoltageSource ( bool  i)
inline

Definition at line 184 of file circuit.h.

void qucs::circuit::setISource ( bool  i)
inline

Definition at line 194 of file circuit.h.

void qucs::circuit::setJ ( int  nr,
nr_complex_t  z 
)

Definition at line 430 of file circuit.cpp.

void qucs::circuit::setMatrixN ( matrix  n)

Definition at line 664 of file circuit.cpp.

void qucs::circuit::setMatrixS ( matrix  s)

Definition at line 643 of file circuit.cpp.

void qucs::circuit::setMatrixY ( matrix  y)

Definition at line 685 of file circuit.cpp.

void qucs::circuit::setN ( int  r,
int  c,
nr_complex_t  z 
)

Definition at line 597 of file circuit.cpp.

void qucs::circuit::setNet ( net n)
inline

Definition at line 172 of file circuit.h.

void qucs::circuit::setNode ( int  i,
const char *  n,
int  intern = 0 
)

Definition at line 299 of file circuit.cpp.

void qucs::circuit::setNoiseSources ( int  s)

Definition at line 618 of file circuit.cpp.

void qucs::circuit::setNonLinear ( bool  l)
inline

Definition at line 298 of file circuit.h.

void qucs::circuit::setOperatingPoint ( const char *  n,
nr_double_t  val 
)

Definition at line 533 of file circuit.cpp.

void qucs::circuit::setOriginal ( bool  o)
inline

Definition at line 233 of file circuit.h.

void qucs::circuit::setPort ( int  p)
inline

Definition at line 229 of file circuit.h.

void qucs::circuit::setProbe ( bool  p)
inline

Definition at line 171 of file circuit.h.

void qucs::circuit::setQ ( int  port,
nr_complex_t  q 
)

Definition at line 418 of file circuit.cpp.

void qucs::circuit::setQV ( int  r,
int  c,
nr_complex_t  qv 
)

Definition at line 487 of file circuit.cpp.

void qucs::circuit::setS ( int  x,
int  y,
nr_complex_t  z 
)

Definition at line 587 of file circuit.cpp.

qucs::circuit::setSize ( int  s)

Set the number of ports the circuit element has.

Parameters
sinteger representing the number of ports

Sets/changes the number of ports the circuit element has. On setting this value, previously stored node and matrix information is completely lost unless the new size equals the original size

Definition at line 195 of file circuit.cpp.

void qucs::circuit::setSubcircuit ( char *  n)

Definition at line 312 of file circuit.cpp.

void qucs::circuit::setSubstrate ( substrate s)

Definition at line 337 of file circuit.cpp.

void qucs::circuit::setType ( int  t)
inline

Definition at line 136 of file circuit.h.

void qucs::circuit::setV ( int  port,
nr_complex_t  z 
)

Definition at line 440 of file circuit.cpp.

void qucs::circuit::setVariableSized ( bool  v)
inline

Definition at line 169 of file circuit.h.

void qucs::circuit::setVoltageSource ( int  s)
inline

Definition at line 186 of file circuit.h.

void qucs::circuit::setVoltageSources ( int  s)

Definition at line 607 of file circuit.cpp.

void qucs::circuit::setVSource ( bool  v)
inline

Definition at line 192 of file circuit.h.

void qucs::circuit::setY ( int  r,
int  c,
nr_complex_t  y 
)

Definition at line 452 of file circuit.cpp.

void qucs::circuit::transientCapacitance ( int  qstate,
int  pos,
int  neg,
nr_double_t  cap,
nr_double_t  voltage,
nr_double_t  charge 
)

Definition at line 759 of file circuit.cpp.

void qucs::circuit::transientCapacitance ( int  qstate,
int  node,
nr_double_t  cap,
nr_double_t  voltage,
nr_double_t  charge 
)

Definition at line 775 of file circuit.cpp.

void qucs::circuit::transientCapacitanceC ( int  qpos,
int  qneg,
int  vpos,
int  vneg,
nr_double_t  cap,
nr_double_t  voltage 
)

Definition at line 819 of file circuit.cpp.

void qucs::circuit::transientCapacitanceC ( int  qpos,
int  vpos,
nr_double_t  cap,
nr_double_t  voltage 
)

Definition at line 859 of file circuit.cpp.

void qucs::circuit::transientCapacitanceC2Q ( int  qpos,
int  qneg,
int  vpos,
nr_double_t  cap,
nr_double_t  voltage 
)

Definition at line 846 of file circuit.cpp.

void qucs::circuit::transientCapacitanceC2V ( int  qpos,
int  vpos,
int  vneg,
nr_double_t  cap,
nr_double_t  voltage 
)

Definition at line 833 of file circuit.cpp.

void qucs::circuit::transientCapacitanceQ ( int  qstate,
int  qpos,
int  qneg,
nr_double_t  charge 
)

Definition at line 790 of file circuit.cpp.

void qucs::circuit::transientCapacitanceQ ( int  qstate,
int  qpos,
nr_double_t  charge 
)

Definition at line 803 of file circuit.cpp.

void qucs::circuit::truncateHistory ( nr_double_t  tcut)

Definition at line 896 of file circuit.cpp.

void qucs::circuit::voltageSource ( int  n,
int  pos,
int  neg,
nr_double_t  value = 0.0 
)

Definition at line 748 of file circuit.cpp.

Field Documentation

valuelist<characteristic> qucs::circuit::charac
private

Definition at line 352 of file circuit.h.

nr_double_t* qucs::circuit::deltas
private

Definition at line 355 of file circuit.h.

environment* qucs::circuit::env
private

Definition at line 354 of file circuit.h.

int qucs::circuit::flag
private

Definition at line 333 of file circuit.h.

history* qucs::circuit::histories
private

Definition at line 357 of file circuit.h.

int qucs::circuit::inserted
private

Definition at line 332 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixB
private

Definition at line 337 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixC
private

Definition at line 338 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixD
private

Definition at line 339 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixN
private

Definition at line 335 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixQV
private

Definition at line 345 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixS
private

Definition at line 334 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixY
private

Definition at line 336 of file circuit.h.

int qucs::circuit::nHistories
private

Definition at line 356 of file circuit.h.

node* qucs::circuit::nodes
private

Definition at line 349 of file circuit.h.

int qucs::circuit::nsources
private

Definition at line 331 of file circuit.h.

valuelist<operatingpoint> qucs::circuit::oper
private

Definition at line 351 of file circuit.h.

int qucs::circuit::pacport
private

Definition at line 328 of file circuit.h.

int qucs::circuit::pol
protected

Definition at line 324 of file circuit.h.

int qucs::circuit::size
private

Definition at line 327 of file circuit.h.

char* qucs::circuit::subcircuit
private

Definition at line 348 of file circuit.h.

net* qucs::circuit::subnet
private

Definition at line 353 of file circuit.h.

substrate* qucs::circuit::subst
private

Definition at line 350 of file circuit.h.

int qucs::circuit::type
protected

Definition at line 323 of file circuit.h.

nr_complex_t* qucs::circuit::VectorCV
private

Definition at line 347 of file circuit.h.

nr_complex_t* qucs::circuit::VectorE
private

Definition at line 340 of file circuit.h.

nr_complex_t* qucs::circuit::VectorGV
private

Definition at line 346 of file circuit.h.

nr_complex_t* qucs::circuit::VectorI
private

Definition at line 341 of file circuit.h.

nr_complex_t* qucs::circuit::VectorJ
private

Definition at line 343 of file circuit.h.

nr_complex_t* qucs::circuit::VectorQ
private

Definition at line 344 of file circuit.h.

nr_complex_t* qucs::circuit::VectorV
private

Definition at line 342 of file circuit.h.

int qucs::circuit::vsource
private

Definition at line 329 of file circuit.h.

int qucs::circuit::vsources
private

Definition at line 330 of file circuit.h.

const nr_double_t qucs::circuit::z0 = 50.0
static

Definition at line 320 of file circuit.h.


The documentation for this class was generated from the following files: