Dimension Reduction Calculation Method of Toroidal Magnet