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

void OpAmp::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 43 of file opamp.cpp.

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

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

Generated by  Doxygen 1.6.0   Back to index