CCVS Class Reference

Current Controlled Voltage Source. More...

#include <ccvs.h>

Inheritance diagram for CCVS:

Inheritance graph
[legend]
Collaboration diagram for CCVS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CCVS (const double gain)
virtual ~CCVS ()
virtual Type type () const
void setGain (const double g)
virtual void add_map ()

Protected Member Functions

virtual void updateCurrents ()
virtual void add_initial_dc ()

Detailed Description

Current Controlled Voltage Source.

CNodes n0 and n1 are used for the current control. CNodes n2 and n3 are used for the voltage output. Branches b0 and b1 are for control and output

Author:
David Saxton

Definition at line 24 of file ccvs.h.


Member Function Documentation

virtual Type CCVS::type (  )  const [inline, virtual]

Returns the type of element

Implements Element.

Definition at line 30 of file ccvs.h.

void CCVS::add_map (  )  [virtual]

Call this function to tell the element to add its map to the matrix in use

Reimplemented from Element.

Definition at line 39 of file ccvs.cpp.

References Element::b_status, Element::p_A, Element::p_cbranch, Element::p_cnode, Matrix::setUse_b(), Matrix::setUse_c(), and Matrix::setUse_d().

void CCVS::updateCurrents (  )  [protected, virtual]

Call this function to tell the element to calculate the current flowing *into* it's cnodes *from* the element. You can get the currents with m_cnodeI. Child class must implement this function.

Implements Element.

Definition at line 82 of file ccvs.cpp.

References Element::b_status, CBranch::i, Element::m_cnodeI, and Element::p_cbranch.

void CCVS::add_initial_dc (  )  [protected, virtual]

Does the required MNA stuff. This should be called from ElementSet when necessary.

Implements Element.

Definition at line 67 of file ccvs.cpp.

References Element::A_b(), Element::A_c(), Element::A_d(), and Element::b_status.

Referenced by setGain().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:35 2007 for KTechLab by  doxygen 1.5.1