Resistance Class Reference

Resistance. More...

#include <resistance.h>

Inheritance diagram for Resistance:

Inheritance graph
[legend]
Collaboration diagram for Resistance:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Resistance (const double resistance)
virtual ~Resistance ()
virtual Type type () const
void setConductance (const double g)
void setResistance (const double r)
double resistance ()
double conductance ()
virtual void add_map ()

Protected Member Functions

virtual void updateCurrents ()
virtual void add_initial_dc ()

Detailed Description

Resistance.

Author:
David saxton

Definition at line 20 of file resistance.h.


Member Function Documentation

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

Returns the type of element

Implements Element.

Definition at line 26 of file resistance.h.

void Resistance::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 48 of file resistance.cpp.

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

void Resistance::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 76 of file resistance.cpp.

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

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

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

Implements Element.

Definition at line 66 of file resistance.cpp.

References Element::A_g(), and Element::b_status.

Referenced by setConductance().


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