Qucs-core  0.0.19
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>

Inherits qucs::object, and qucs::integrator.

Inherited by 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, and vvnoise.

Collaboration diagram for qucs::circuit:
Collaboration graph
[legend]

Public Member Functions

circuitgetNext (void) const
void setNext (circuit *const o)
circuitgetPrev (void) const
void setPrev (circuit *const o)
 circuit ()
 circuit (int)
 circuit (const circuit &)
virtual ~circuit ()
virtual void initSP (void)
 placehoder for S-Parameter initialisation function
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)
virtual void saveCharacteristics (nr_complex_t)
void setNode (int, const std::string &, int intern=0)
nodegetNode (int)
void setType (int t)
int getType (void)
int getSize (void)
 Get the number of ports the circuit element has.
void setSize (int)
 Set the number of ports the circuit element has.
bool isEnabled (void)
 Reports if circuit element is enabled.
void setEnabled (bool e)
 Set a circuit element to be enabled or diabled.
bool isVariableSized (void)
void setVariableSized (bool v)
bool isProbe (void)
void setProbe (bool p)
void setNet (net *n)
netgetNet (void)
std::string getSubcircuit (void)
void setSubcircuit (const std::string &)
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_tgetDelta (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 std::string &name, nr_double_t)
nr_double_t getOperatingPoint (const std::string &name)
void setOperatingPoint (const std::string &name, nr_double_t)
int hasOperatingPoint (const std::string &name)
valuelist< operatingpoint > & getOperatingPoints (void)
void addCharacteristic (const std::string &name, nr_double_t)
nr_double_t getCharacteristic (const std::string &name)
void setCharacteristic (const std::string &name, nr_double_t)
int hasCharacteristic (const std::string &name)
valuelist< characteristic > & getCharacteristics (void)
void setNonLinear (bool l)
bool isNonLinear (void)
void print (void)
void setInternalNode (int, const std::string &)
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)

Static Public Member Functions

static std::string createInternal (const std::string &, const std::string &)

Static Public Attributes

static const nr_double_t z0 = 50.0

Protected Attributes

int type
int pol

Private Attributes

circuitnext
circuitprev
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
std::string subcircuit
nodenodes
substratesubst
valuelist< operatingpointoper
valuelist< characteristiccharac
netsubnet
environmentenv
nr_double_tdeltas
int nHistories
historyhistories

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 95 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 82 of file circuit.cpp.

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

Definition at line 110 of file circuit.cpp.

qucs::circuit::~circuit ( ) [virtual]

Definition at line 184 of file circuit.cpp.


Member Function Documentation

void qucs::circuit::addCharacteristic ( const std::string &  name,
nr_double_t  val 
)

Definition at line 553 of file circuit.cpp.

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

Definition at line 405 of file circuit.cpp.

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

Definition at line 410 of file circuit.cpp.

void qucs::circuit::addOperatingPoint ( const std::string &  name,
nr_double_t  val 
)

Definition at line 519 of file circuit.cpp.

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

Definition at line 460 of file circuit.cpp.

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

Definition at line 465 of file circuit.cpp.

void qucs::circuit::allocMatrixHB ( void  )

Definition at line 230 of file circuit.cpp.

void qucs::circuit::allocMatrixMNA ( void  )

Definition at line 270 of file circuit.cpp.

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

Definition at line 263 of file circuit.cpp.

void qucs::circuit::allocMatrixS ( void  )

Definition at line 254 of file circuit.cpp.

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

Definition at line 907 of file circuit.cpp.

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

Definition at line 930 of file circuit.cpp.

virtual void qucs::circuit::calcAC ( nr_double_t  ) [inline, virtual]
virtual void qucs::circuit::calcCharacteristics ( nr_double_t  ) [inline, virtual]

Definition at line 142 of file circuit.h.

virtual void qucs::circuit::calcDC ( void  ) [inline, virtual]

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

Definition at line 126 of file circuit.h.

virtual void qucs::circuit::calcHB ( nr_double_t  ) [inline, virtual]

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

Definition at line 137 of file circuit.h.

virtual void qucs::circuit::calcHB ( int  ) [inline, virtual]

Reimplemented in diode, and eqndefined.

Definition at line 139 of file circuit.h.

virtual void qucs::circuit::calcNoiseAC ( nr_double_t  ) [inline, virtual]
virtual void qucs::circuit::calcNoiseSP ( nr_double_t  ) [inline, virtual]
virtual void qucs::circuit::calcOperatingPoints ( void  ) [inline, virtual]

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

Definition at line 140 of file circuit.h.

virtual void qucs::circuit::calcSP ( nr_double_t  ) [inline, virtual]
virtual void qucs::circuit::calcTR ( nr_double_t  ) [inline, virtual]
void qucs::circuit::clearB ( void  )

Definition at line 706 of file circuit.cpp.

void qucs::circuit::clearC ( void  )

Definition at line 711 of file circuit.cpp.

void qucs::circuit::clearD ( void  )

Definition at line 716 of file circuit.cpp.

void qucs::circuit::clearE ( void  )

Definition at line 721 of file circuit.cpp.

void qucs::circuit::clearI ( void  )

Definition at line 731 of file circuit.cpp.

void qucs::circuit::clearJ ( void  )

Definition at line 726 of file circuit.cpp.

void qucs::circuit::clearV ( void  )

Definition at line 736 of file circuit.cpp.

void qucs::circuit::clearY ( void  )

Definition at line 741 of file circuit.cpp.

std::string qucs::circuit::createInternal ( const std::string &  prefix,
const std::string &  obj 
) [static]

Definition at line 630 of file circuit.cpp.

void qucs::circuit::deleteHistory ( void  )

Definition at line 887 of file circuit.cpp.

void qucs::circuit::freeMatrixHB ( void  )

Definition at line 222 of file circuit.cpp.

void qucs::circuit::freeMatrixMNA ( void  )

Definition at line 287 of file circuit.cpp.

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

Definition at line 345 of file circuit.cpp.

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

Definition at line 357 of file circuit.cpp.

nr_double_t qucs::circuit::getCharacteristic ( const std::string &  name)

Definition at line 561 of file circuit.cpp.

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

Definition at line 308 of file circuit.h.

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

Definition at line 507 of file circuit.cpp.

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

Definition at line 369 of file circuit.cpp.

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

Definition at line 222 of file circuit.h.

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

Definition at line 381 of file circuit.cpp.

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

Definition at line 193 of file circuit.h.

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

Definition at line 471 of file circuit.cpp.

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

Definition at line 495 of file circuit.cpp.

nr_double_t qucs::circuit::getHistoryAge ( void  )

Definition at line 912 of file circuit.cpp.

int qucs::circuit::getHistorySize ( void  )

Definition at line 918 of file circuit.cpp.

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

Definition at line 923 of file circuit.cpp.

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

Definition at line 393 of file circuit.cpp.

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

Definition at line 243 of file circuit.h.

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

Definition at line 949 of file circuit.cpp.

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

Definition at line 426 of file circuit.cpp.

matrix qucs::circuit::getMatrixN ( void  )

Definition at line 676 of file circuit.cpp.

matrix qucs::circuit::getMatrixS ( void  )

Definition at line 655 of file circuit.cpp.

matrix qucs::circuit::getMatrixY ( void  )

Definition at line 697 of file circuit.cpp.

Definition at line 596 of file circuit.cpp.

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

Definition at line 186 of file circuit.h.

circuit* qucs::circuit::getNext ( void  ) const [inline]

Definition at line 98 of file circuit.h.

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

Definition at line 310 of file circuit.cpp.

int qucs::circuit::getNoiseSources ( void  )

Definition at line 617 of file circuit.cpp.

nr_double_t qucs::circuit::getOperatingPoint ( const std::string &  name)

Definition at line 527 of file circuit.cpp.

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

Definition at line 301 of file circuit.h.

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

Definition at line 241 of file circuit.h.

circuit* qucs::circuit::getPrev ( void  ) const [inline]

Definition at line 100 of file circuit.h.

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

Definition at line 415 of file circuit.cpp.

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

Definition at line 483 of file circuit.cpp.

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

Definition at line 586 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 156 of file circuit.h.

std::string qucs::circuit::getSubcircuit ( void  ) [inline]

Definition at line 189 of file circuit.h.

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

Definition at line 334 of file circuit.cpp.

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

Definition at line 150 of file circuit.h.

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

Definition at line 939 of file circuit.cpp.

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

Definition at line 944 of file circuit.cpp.

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

Definition at line 437 of file circuit.cpp.

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

Definition at line 200 of file circuit.h.

int qucs::circuit::getVoltageSources ( void  )

Definition at line 606 of file circuit.cpp.

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

Definition at line 448 of file circuit.cpp.

int qucs::circuit::hasCharacteristic ( const std::string &  name)

Definition at line 581 of file circuit.cpp.

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

Definition at line 225 of file circuit.h.

int qucs::circuit::hasOperatingPoint ( const std::string &  name)

Definition at line 547 of file circuit.cpp.

virtual void qucs::circuit::initAC ( void  ) [inline, virtual]
virtual void qucs::circuit::initDC ( void  ) [inline, virtual]
virtual void qucs::circuit::initHB ( void  ) [inline, virtual]

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

Definition at line 136 of file circuit.h.

virtual void qucs::circuit::initHB ( int  ) [inline, virtual]

Reimplemented in diode, and eqndefined.

Definition at line 138 of file circuit.h.

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

Definition at line 870 of file circuit.cpp.

virtual void qucs::circuit::initNoiseAC ( void  ) [inline, virtual]

Reimplemented in mstee.

Definition at line 130 of file circuit.h.

virtual void qucs::circuit::initNoiseSP ( void  ) [inline, virtual]

Reimplemented in mstee.

Definition at line 128 of file circuit.h.

qucs::circuit::initSP ( void  ) [inline, virtual]

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 123 of file circuit.h.

virtual void qucs::circuit::initTR ( void  ) [inline, virtual]
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 173 of file circuit.h.

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

Definition at line 198 of file circuit.h.

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

Definition at line 206 of file circuit.h.

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

Definition at line 312 of file circuit.h.

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

Definition at line 245 of file circuit.h.

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

Definition at line 183 of file circuit.h.

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

Definition at line 181 of file circuit.h.

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

Definition at line 204 of file circuit.h.

void qucs::circuit::print ( void  )
virtual void qucs::circuit::restartDC ( void  ) [inline, virtual]

Reimplemented in diode, bjt, jfet, and mosfet.

Definition at line 127 of file circuit.h.

virtual void qucs::circuit::saveCharacteristics ( nr_double_t  ) [inline, virtual]

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

Definition at line 143 of file circuit.h.

virtual void qucs::circuit::saveCharacteristics ( nr_complex_t  ) [inline, virtual]

Reimplemented in rectline.

Definition at line 144 of file circuit.h.

virtual void qucs::circuit::saveOperatingPoints ( void  ) [inline, virtual]

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

Definition at line 141 of file circuit.h.

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

Definition at line 351 of file circuit.cpp.

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

Definition at line 363 of file circuit.cpp.

void qucs::circuit::setCharacteristic ( const std::string &  name,
nr_double_t  val 
)

Definition at line 570 of file circuit.cpp.

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

Definition at line 513 of file circuit.cpp.

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

Definition at line 375 of file circuit.cpp.

void qucs::circuit::setDelta ( nr_double_t d) [inline]

Definition at line 221 of file circuit.h.

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

Definition at line 387 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 180 of file circuit.h.

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

Definition at line 194 of file circuit.h.

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

Definition at line 477 of file circuit.cpp.

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

Definition at line 501 of file circuit.cpp.

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

Definition at line 226 of file circuit.h.

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

Definition at line 877 of file circuit.cpp.

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

Definition at line 399 of file circuit.cpp.

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

Definition at line 244 of file circuit.h.

void qucs::circuit::setInternalNode ( int  node,
const std::string &  suffix 
)

Definition at line 637 of file circuit.cpp.

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

Definition at line 197 of file circuit.h.

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

Definition at line 207 of file circuit.h.

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

Definition at line 432 of file circuit.cpp.

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

Definition at line 665 of file circuit.cpp.

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

Definition at line 644 of file circuit.cpp.

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

Definition at line 686 of file circuit.cpp.

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

Definition at line 601 of file circuit.cpp.

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

Definition at line 185 of file circuit.h.

void qucs::circuit::setNext ( circuit *const  o) [inline]

Definition at line 99 of file circuit.h.

void qucs::circuit::setNode ( int  i,
const std::string &  n,
int  intern = 0 
)

Definition at line 302 of file circuit.cpp.

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

Definition at line 622 of file circuit.cpp.

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

Definition at line 311 of file circuit.h.

void qucs::circuit::setOperatingPoint ( const std::string &  name,
nr_double_t  val 
)

Definition at line 536 of file circuit.cpp.

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

Definition at line 246 of file circuit.h.

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

Definition at line 242 of file circuit.h.

void qucs::circuit::setPrev ( circuit *const  o) [inline]

Definition at line 101 of file circuit.h.

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

Definition at line 184 of file circuit.h.

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

Definition at line 420 of file circuit.cpp.

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

Definition at line 489 of file circuit.cpp.

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

Definition at line 591 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 198 of file circuit.cpp.

void qucs::circuit::setSubcircuit ( const std::string &  n)

Definition at line 315 of file circuit.cpp.

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

Definition at line 339 of file circuit.cpp.

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

Definition at line 149 of file circuit.h.

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

Definition at line 442 of file circuit.cpp.

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

Definition at line 182 of file circuit.h.

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

Definition at line 199 of file circuit.h.

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

Definition at line 611 of file circuit.cpp.

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

Definition at line 205 of file circuit.h.

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

Definition at line 454 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 760 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 776 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 820 of file circuit.cpp.

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

Definition at line 860 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 847 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 834 of file circuit.cpp.

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

Definition at line 791 of file circuit.cpp.

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

Definition at line 804 of file circuit.cpp.

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

Definition at line 897 of file circuit.cpp.

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

Definition at line 749 of file circuit.cpp.


Field Documentation

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

Definition at line 365 of file circuit.h.

nr_double_t* qucs::circuit::deltas [private]

Definition at line 368 of file circuit.h.

environment* qucs::circuit::env [private]

Definition at line 367 of file circuit.h.

int qucs::circuit::flag [private]

Definition at line 346 of file circuit.h.

history* qucs::circuit::histories [private]

Definition at line 370 of file circuit.h.

int qucs::circuit::inserted [private]

Definition at line 345 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixB [private]

Definition at line 350 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixC [private]

Definition at line 351 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixD [private]

Definition at line 352 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixN [private]

Definition at line 348 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixQV [private]

Definition at line 358 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixS [private]

Definition at line 347 of file circuit.h.

nr_complex_t* qucs::circuit::MatrixY [private]

Definition at line 349 of file circuit.h.

Definition at line 103 of file circuit.h.

int qucs::circuit::nHistories [private]

Definition at line 369 of file circuit.h.

Definition at line 362 of file circuit.h.

int qucs::circuit::nsources [private]

Definition at line 344 of file circuit.h.

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

Definition at line 364 of file circuit.h.

int qucs::circuit::pacport [private]

Definition at line 341 of file circuit.h.

int qucs::circuit::pol [protected]

Definition at line 337 of file circuit.h.

circuit* qucs::circuit::prev [private]

Definition at line 104 of file circuit.h.

Definition at line 340 of file circuit.h.

std::string qucs::circuit::subcircuit [private]

Definition at line 361 of file circuit.h.

net* qucs::circuit::subnet [private]

Definition at line 366 of file circuit.h.

substrate* qucs::circuit::subst [private]

Definition at line 363 of file circuit.h.

int qucs::circuit::type [protected]

Definition at line 336 of file circuit.h.

nr_complex_t* qucs::circuit::VectorCV [private]

Definition at line 360 of file circuit.h.

nr_complex_t* qucs::circuit::VectorE [private]

Definition at line 353 of file circuit.h.

nr_complex_t* qucs::circuit::VectorGV [private]

Definition at line 359 of file circuit.h.

nr_complex_t* qucs::circuit::VectorI [private]

Definition at line 354 of file circuit.h.

nr_complex_t* qucs::circuit::VectorJ [private]

Definition at line 356 of file circuit.h.

nr_complex_t* qucs::circuit::VectorQ [private]

Definition at line 357 of file circuit.h.

nr_complex_t* qucs::circuit::VectorV [private]

Definition at line 355 of file circuit.h.

int qucs::circuit::vsource [private]

Definition at line 342 of file circuit.h.

int qucs::circuit::vsources [private]

Definition at line 343 of file circuit.h.

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

Definition at line 333 of file circuit.h.


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