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

void Component::setNodalCurrents (  )  [inherited]

After calculating nodal voltages, each component will be called to tell its nodes what the current flowing *into* the component is.

Definition at line 154 of file component.cpp.

References ElementMap::e, Element::m_cnodeI, Component::m_elementMapList, Pin::mergeCurrent(), and ElementMap::n.

{
      const ElementMapList::iterator end = m_elementMapList.end();
      for ( ElementMapList::iterator it = m_elementMapList.begin(); it != end; ++it )
      {
            ElementMap m = (*it);
            for ( int i=0; i<4; i++ )
            {
                  if ( m.n[i] ) {
                        m.n[i]->mergeCurrent( m.e->m_cnodeI[i] );
                  }
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index