public TransientResults(TransientAnalysis ta)
        {
            TransAnalysis = ta;

            Times       = new double[TransAnalysis.StepCount + 1];//0..stepCount
            ListResults = new TransientStepResult[TransAnalysis.StepCount + 1];
            for (int i = 0; i <= TransAnalysis.StepCount; i++)
            {
                Times[i] = TransAnalysis.EndTime / TransAnalysis.StepCount * i;
            }
        }
        public static TransientAnalysis GetSampleMe(PMMotor motor)
        {
            TransientAnalysis ta = new TransientAnalysis();

            ta.AnalysisName = "Transient\\sample";
            ta.Motor        = motor;
            ta.RotorSpeed   = -3000;//rpm
            ta.EndTime      = Math.Abs(120 / ta.RotorSpeedDegreeSecond);
            ta.StepCount    = 120;
            ta.StartAngle   = 40;

            return(ta);
        }