According to the structure characteristics of distribution network
the fundamental model of distribution network elements is provided.A modeling method of distribution network elements is proposed
and the model is used to establish tree like distribution network topology which is convenient for computer disposal.The algorithm of traversing distribution network using stack is proposed
the algorithm flow chart is introduced as well as the application of this algorithm in theoretical line loss calculation at last.