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

void CCCS::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 54 of file cccs.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];
      m_cnodeI[3] = p_cbranch[1]->i;
      m_cnodeI[2] = -m_cnodeI[3];

Generated by  Doxygen 1.6.0   Back to index