128 for (
int i = 0;
i <
size;
i++) {
197 if (
size == s)
return;
209 if ((
size = s) > 0) {
321 for (
int j = 0; j <
getSize (); j++) {
527 if (p != NULL)
return p->
getValue ();
545 return (
oper.get (n)) ? 1 : 0;
560 if (p != NULL)
return p->
getValue ();
578 return (
charac.get (n)) ? 1 : 0;
627 char *
n = (
char *) malloc (strlen (prefix) + strlen (obj) + 3);
628 sprintf (n,
"_%s#%s", prefix, obj);
647 if (r > 0 && c > 0 && r * c ==
size *
size) {
656 for(
unsigned int i=0;
i <
size; ++
i)
657 for(
unsigned int j=0;
i <
size; ++j)
668 if (r > 0 && c > 0 && r * c ==
size *
size) {
677 for(
unsigned int i=0;
i <
size; ++
i)
678 for(
unsigned int j=0;
i <
size; ++j)
689 if (r > 0 && c > 0 && r * c ==
size *
size) {
698 for(
unsigned int i=0;
i <
size; ++
i)
699 for(
unsigned int j=0;
i <
size; ++j)
749 setC (n, pos, +1.0);
setC (n, neg, -1.0);
750 setB (pos, n, +1.0);
setB (neg, n, -1.0);
760 nr_double_t cap, nr_double_t voltage,
761 nr_double_t charge) {
763 int cstate = qstate + 1;
766 addY (pos, pos, +g);
addY (neg, neg, +g);
767 addY (pos, neg, -g);
addY (neg, pos, -g);
776 nr_double_t voltage, nr_double_t charge) {
778 int cstate = qstate + 1;
781 addY (node, node, +g);
791 nr_double_t charge) {
792 nr_double_t unused,
i;
793 int cstate = qstate + 1;
804 nr_double_t charge) {
805 nr_double_t unused,
i;
806 int cstate = qstate + 1;
820 nr_double_t cap, nr_double_t voltage) {
823 addY (qpos, vpos, +g);
addY (qneg, vneg, +g);
824 addY (qpos, vneg, -g);
addY (qneg, vpos, -g);
825 i =
pol * (g * voltage);
834 nr_double_t cap, nr_double_t voltage) {
837 addY (qpos, vpos, +g);
838 addY (qpos, vneg, -g);
839 i =
pol * (g * voltage);
847 nr_double_t cap, nr_double_t voltage) {
850 addY (qpos, vpos, +g);
addY (qneg, vpos, -g);
851 i =
pol * (g * voltage);
860 nr_double_t cap, nr_double_t voltage) {
863 addY (qpos, vpos, +g);
864 i =
pol * (g * voltage);
nr_double_t getG(int, int)
std::complex< nr_double_t > nr_complex_t
nr_double_t getOperatingPoint(const char *)
void addCharacteristic(const char *, nr_double_t)
matrix real(matrix a)
Real part matrix.
void setSubcircuit(char *)
void integrate(int, nr_double_t, nr_double_t &, nr_double_t &)
void allocMatrixN(int sources=0)
void setQ(int, nr_complex_t)
void conductor(nr_double_t, nr_double_t &)
void setD(int, int, nr_complex_t)
int hasOperatingPoint(char *)
substrate * getSubstrate(void)
void appendHistory(int, nr_double_t)
nr_double_t getTfromidx(int)
tvector< nr_double_t > * getTvector(void)
void setVoltageSources(int)
void setB(int, int, nr_complex_t)
nr_complex_t * getData(void)
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)
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)
matrix imag(matrix a)
Imaginary part matrix.
void addOperatingPoint(const char *, nr_double_t)
nr_complex_t getC(int, int)
void setValue(nr_double_t val)
void transientCapacitance(int, int, int, nr_double_t, nr_double_t, nr_double_t)
nr_double_t getHistoryAge(void)
void setName(const char *)
base class for qucs circuit elements.
nr_double_t getJ(int, nr_double_t)
void transientCapacitanceC2V(int, int, int, nr_double_t, nr_double_t)
void setSize(int)
Set the number of ports the circuit element has.
void setCV(int, nr_complex_t)
void setE(int, nr_complex_t)
valuelist< characteristic > charac
void addI(int, nr_complex_t)
int hasCharacteristic(char *)
Declaration sizeof(struct vcd_scope))
void setAge(nr_double_t a)
state_type_t getState(int, int n=0)
Dense matrix class header file.
The circuit class header file.
void setI(int, nr_complex_t)
static char * createInternal(const char *, const char *)
nr_complex_t getD(int, int)
void truncateHistory(nr_double_t)
Dense complex matrix class This class defines a matrix object with its methods, operators and operati...
void setY(int, int, nr_complex_t)
void setInternalNode(int, const char *)
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)
void setTvector(tvector< nr_double_t > *v)
void setCircuit(circuit *)
valuelist< operatingpoint > oper
void setNode(int, const char *, int intern=0)
nr_double_t getV(int, nr_double_t)
nr_double_t getValue(void)
nr_complex_t getQV(int, int)
nr_double_t getHistoryTFromIndex(int)
nr_double_t nearest(nr_double_t, bool interpolate=true)
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)
nr_double_t getValfromidx(int)
void setCharacteristic(const char *, nr_double_t)
int getNoiseSources(void)
void setState(int, state_type_t, int n=0)
void initHistory(nr_double_t)
void logprint(int level, const char *format,...)
void setHistoryAge(nr_double_t)
void setGV(int, nr_complex_t)
nr_complex_t getS(int, int)
void setG(int, int, nr_double_t)
void setSubstrate(substrate *)
void setV(int, nr_complex_t)