Capacitance Class Reference

Capacitance. More...

#include <capacitance.h>

Inheritance diagram for Capacitance:

Inheritance graph
[legend]
Collaboration diagram for Capacitance:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Method { m_none, m_euler, m_trap }

Public Member Functions

 Capacitance (const double capacitance, const double delta)
virtual ~Capacitance ()
virtual Type type () const
void setMethod (Method m)
virtual void time_step ()
virtual void add_initial_dc ()
void setCapacitance (const double c)
virtual void add_map ()

Protected Member Functions

virtual void updateCurrents ()
virtual bool updateStatus ()

Detailed Description

Capacitance.

Author:
David Saxton

Definition at line 20 of file capacitance.h.


Member Function Documentation

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

Returns the type of element

Implements Element.

Definition at line 32 of file capacitance.h.

void Capacitance::setMethod ( Method  m  ) 

Set the stepping use for numerical integration of capacitance, and the interval between successive updates

Definition at line 109 of file capacitance.cpp.

References updateStatus().

Referenced by Capacitance().

void Capacitance::time_step (  )  [virtual]

Called on every time step for the element to update itself

Implements Reactive.

Definition at line 68 of file capacitance.cpp.

References Element::A_g(), Element::b_i(), Element::b_status, Reactive::m_delta, Element::p_cnode, and CNode::v.

void Capacitance::add_initial_dc (  )  [virtual]

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

Implements Element.

Definition at line 31 of file capacitance.cpp.

void Capacitance::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 47 of file capacitance.cpp.

References Element::b_status, Element::p_A, Element::p_cnode, and Matrix::setUse().

void Capacitance::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 38 of file capacitance.cpp.

References Element::b_status, Element::m_cnodeI, Element::p_cnode, and CNode::v.

bool Capacitance::updateStatus (  )  [protected, virtual]

Update the status, returning b_status

Reimplemented from Reactive.

Definition at line 102 of file capacitance.cpp.

References Element::b_status, and Reactive::updateStatus().

Referenced by setMethod().


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