#include <inductance.h>
Inheritance diagram for Inductance:


Public Types | |
| enum | Method { m_none, m_euler, m_trap } |
Public Member Functions | |
| Inductance (double capacitance, double delta) | |
| virtual | ~Inductance () |
| virtual Type | type () const |
| void | setMethod (Method m) |
| virtual void | time_step () |
| virtual void | add_initial_dc () |
| void | setInductance (double i) |
| virtual void | add_map () |
Protected Member Functions | |
| virtual void | updateCurrents () |
| virtual bool | updateStatus () |
Definition at line 20 of file inductance.h.
| virtual Type Inductance::type | ( | ) | const [inline, virtual] |
| void Inductance::setMethod | ( | Method | m | ) |
Set the stepping use for numerical integration of inductance, and the interval between successive updates.
Definition at line 106 of file inductance.cpp.
References updateStatus().
Referenced by Inductance().
| void Inductance::time_step | ( | ) | [virtual] |
Called on every time step for the element to update itself
Implements Reactive.
Definition at line 71 of file inductance.cpp.
References Element::A_d(), Element::b_status, Element::b_v(), CBranch::i, Reactive::m_delta, and Element::p_cbranch.
| void Inductance::add_initial_dc | ( | ) | [virtual] |
Does the required MNA stuff. This should be called from ElementSet when necessary.
Implements Element.
Definition at line 33 of file inductance.cpp.
References Element::A_b(), and Element::A_c().
| void Inductance::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 53 of file inductance.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 Inductance::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 45 of file inductance.cpp.
References Element::b_status, CBranch::i, Element::m_cnodeI, and Element::p_cbranch.
| bool Inductance::updateStatus | ( | ) | [protected, virtual] |
Update the status, returning b_status
Reimplemented from Reactive.
Definition at line 98 of file inductance.cpp.
References Element::b_status, and Reactive::updateStatus().
Referenced by setMethod().
1.5.1