VoltageSignal Class Reference

VoltageSignal. More...

#include <voltagesignal.h>

Inheritance diagram for VoltageSignal:

Inheritance graph
[legend]
Collaboration diagram for VoltageSignal:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VoltageSignal (const double delta, const double voltage)
virtual ~VoltageSignal ()
virtual Element::Type type () const
void setVoltage (const double voltage)
double voltage ()
virtual void time_step ()
virtual void add_map ()

Protected Member Functions

virtual void updateCurrents ()
virtual void add_initial_dc ()

Detailed Description

VoltageSignal.

Author:
David saxton

Definition at line 21 of file voltagesignal.h.


Member Function Documentation

virtual Element::Type VoltageSignal::type (  )  const [inline, virtual]

Returns the type of element

Implements Element.

Definition at line 27 of file voltagesignal.h.

void VoltageSignal::time_step (  )  [virtual]

Called on every time step for the element to update itself

Implements Reactive.

Definition at line 64 of file voltagesignal.cpp.

References ElementSignal::advance(), Element::b_status, and Element::b_v().

void VoltageSignal::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 34 of file voltagesignal.cpp.

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

void VoltageSignal::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 71 of file voltagesignal.cpp.

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

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

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

Implements Element.

Definition at line 52 of file voltagesignal.cpp.

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


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