Beispiel #1
0
        protected override void analyze()
        {
            DQCurrentMap map = Results as DQCurrentMap;

            generateListCurrents(map);

            int n = map.results.Count;
            int k = 0;

            foreach (var p in map.results)
            {
                k++;
                log.DebugFormat("Transient Analyzing {0}/{1}: id={2},iq={3}", k, n, p.idq.d, p.idq.q);
                analyzeOne(p);

                FEMM.CloseFemm();
            }
        }
Beispiel #2
0
 private void generateListCurrents(DQCurrentMap dqmap)
 {
     for (int i = 0; i < CurrentSampleCount + 1; i++)
     {
         for (int j = 0; j < CurrentSampleCount + 1; j++)
         {
             dqmap.results.Add(new DQCurrentPointData()
             {
                 index_d = i,
                 index_q = j,
                 idq     = new Fdq()
                 {
                     d = -MaxCurrent * i / CurrentSampleCount,
                     q = MaxCurrent * j / CurrentSampleCount,
                 },
             });
         }
     }
 }