Skip to content

make_incidence.m

Basic Information

  SYNTAX:  [A,nodelist,sorted_netlist,Midx] = make_incidence(netlist)

  PURPOSE:  Construct incidence matrix.  Sort so that branches representing
   voltage sources come first, then capacitors, then resistors.

  INPUT:

  OUTPUT:
    A              = incidence matrix
    nodelist       = set of all nodes specified in the netlist
    sorted_netlist = netlist with elements sorted according to the order in [1]
    Midx           = indices of inductive ('M') conductors in sorted_netlist
            (in same order as original netlist)

  RESTRICTIONS:

  METHOD:  Described in [1] M.L. Walker, "A General Purpose Circuit Modeling
    Code for Tokamak Plasma Magnetic Control, General Atomics Engineering
    Physics Memo EPMmlw070120a, Jan. 20, 2007

Dependencies