#include <vccs.h>
Inheritance diagram for VCCS:


Public Member Functions | |
| VCCS (const double gain) | |
| virtual | ~VCCS () |
| virtual Type | type () const |
| void | setGain (const double g) |
| virtual void | add_map () |
Protected Member Functions | |
| virtual void | updateCurrents () |
| virtual void | add_initial_dc () |
CNodes n0 and n1 are used for the voltage control. CNodes n2 and n3 are used for the current output.
Definition at line 27 of file vccs.h.
| virtual Type VCCS::type | ( | ) | const [inline, virtual] |
| void VCCS::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 43 of file vccs.cpp.
References Element::b_status, Element::p_A, Element::p_cbranch, Element::p_cnode, Matrix::setUse_b(), and Matrix::setUse_c().
| void VCCS::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 80 of file vccs.cpp.
References Element::b_status, Element::m_cnodeI, Element::p_cnode, and CNode::v.
| void VCCS::add_initial_dc | ( | ) | [protected, virtual] |
Does the required MNA stuff. This should be called from ElementSet when necessary.
Implements Element.
Definition at line 68 of file vccs.cpp.
References Element::A_g(), and Element::b_status.
Referenced by setGain().
1.5.1