Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

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 72 of file voltagesignal.cpp.

References Element::b_status, and Element::m_cnodeI.

      if (!b_status) return;
      m_cnodeI[1] = p_cbranch[0]->i;
      m_cnodeI[0] = -m_cnodeI[1];

Generated by  Doxygen 1.6.0   Back to index