Ejemplo n.º 1
0
        /// <summary>
        /// Calculate points, magnetic circuit, and error show
        /// </summary>
        private void validateMotor()
        {
            // calculate points ( and validate params also)
            Motor.CalcPointsCoordinates();

            // check validation and put error/warning back to status field in each param in ListParamInput
            foreach (Parameter pi in MotorParams)
            {
                foreach (ParamValidationInfo pvi in Motor.ListParamsValidation)
                {
                    if (pvi.ParamName == pi.name)
                    {
                        pi.status = pvi.msgType + ": " + pvi.message;
                        break;
                    }
                }
            }

            // build analytical analyser and calculate
            analyticalAnalyser = Motor.GetAnalyticalAnalyser();
            analyticalAnalyser.RunAnalysis();
        }