Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

CurrentSignal Class Reference

#include <currentsignal.h>

Inheritance diagram for CurrentSignal:

Reactive ElementSignal Element

List of all members.


Detailed Description

CurrentSignal.

Author:
David saxton

Definition at line 21 of file currentsignal.h.


Public Types

enum  Type { st_sinusoidal, st_square, st_sawtooth, st_triangular }
enum  Type {
  Element_BJT, Element_Capacitance, Element_CCCS, Element_CCVS,
  Element_CurrentSignal, Element_CurrentSource, Element_Diode, Element_Inductance,
  Element_LogicIn, Element_LogicOut, Element_OpAmp, Element_Resistance,
  Element_VCCS, Element_VCVS, Element_VoltagePoint, Element_VoltageSignal,
  Element_VoltageSource
}

Public Member Functions

virtual void add_map ()
double advance ()
CBranch * cbranch (const uint num)
double cbranchCurrent (const int branch)
CNode * cnode (const uint num)
double cnodeVoltage (const int node)
void componentDeleted ()
double current ()
 CurrentSignal (const double delta, const double current)
ElementSetelementSet ()
void elementSetDeleted ()
virtual bool isNonLinear ()
virtual bool isReactive ()
int numCBranches ()
int numCNodes ()
void setCBranches (const int b0=noBranch, const int b1=noBranch, const int b2=noBranch, const int b3=noBranch)
void setCNodes (const int n0=noCNode, const int n1=noCNode, const int n2=noCNode, const int n3=noCNode)
void setCurrent (const double current)
void setDelta (double delta)
virtual void setElementSet (ElementSet *c)
void setStep (double delta, Type type, double frequency)
virtual void time_step ()
virtual Element::Type type () const

Public Attributes

double m_cnodeI [8]
 Current flowing into the cnodes from the element.

Protected Member Functions

double & A_b (uint i, uint j)
double & A_c (uint i, uint j)
double & A_d (uint i, uint j)
double & A_g (uint i, uint j)
virtual void add_initial_dc ()
double & b_i (uint i)
double & b_v (uint i)
void resetCurrents ()
virtual void updateCurrents ()
virtual bool updateStatus ()

Protected Attributes

bool b_status
double m_delta
double m_delta
double m_frequency
int m_numCBranches
int m_numCNodes
double m_omega
double m_time
Type m_type
Matrixp_A
Vectorp_b
CBranch * p_cbranch [4]
CNode * p_cnode [MAX_CNODES]
ElementSetp_eSet

Private Attributes

double m_current
double m_newCurrent
double m_oldCurrent

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

Generated by  Doxygen 1.6.0   Back to index