Ejemplo n.º 1
0
        private static PitchControllerParams PitchControllerParamsHandler(ParseTreeNode dict)
        {
            var p = new PitchControllerParams();

            for (int i = 0; i < dict.ChildNodes.Count; i++)
            {
                var node = dict.ChildNodes[i].ChildNodes[0];
                var id   = node.GetEntryIdentifier();
                switch (id)
                {
                case "PitchControlStartPitch":
                    p.PitchControlStartPitch = node.GetBasicValDecimal();
                    break;

                case "PitchControlEndPitch":
                    p.PitchControlEndPitch = node.GetBasicValDecimal();
                    break;

                case "PitchControlStartSpeed":
                    p.PitchControlStartSpeed = node.GetBasicValDecimal();
                    break;

                case "PitchControlEndSpeed":
                    p.PitchControlEndSpeed = node.GetBasicValDecimal();
                    break;

                case "RateLimitPitch":
                    p.RateLimitPitch = node.GetBasicValDecimal();
                    break;
                }
            }
            return(p);
        }
Ejemplo n.º 2
0
        public TurbinePropertiesData()
        {
            NumBl = 2;
            TorqueControllerType = ControllerType.none;
            YawControllerType    = ControllerType.none;
            PitchControllerType  = ControllerType.none;
            airfoilBlade         = new List <AirfoilBlade>();

            torqueControllerParams = new TorqueControllerParams();
            pitchControllerParams  = new PitchControllerParams();
            airfoilBlade           = new List <AirfoilBlade>();
            PreCone = new Vertice();
        }
Ejemplo n.º 3
0
        public TurbinePropertiesData()
        {
            NumBl = 2;
            TorqueControllerType = ControllerType.none;
            YawControllerType = ControllerType.none;
            PitchControllerType = ControllerType.none;
            airfoilBlade = new List<AirfoilBlade>();

            torqueControllerParams = new TorqueControllerParams();
            pitchControllerParams = new PitchControllerParams();
            airfoilBlade = new List<AirfoilBlade>();
            PreCone = new Vertice();
        }
 private static PitchControllerParams PitchControllerParamsHandler(ParseTreeNode dict)
 {
     var p = new PitchControllerParams();
     for (int i = 0; i < dict.ChildNodes.Count; i++)
     {
         var node = dict.ChildNodes[i].ChildNodes[0];
         var id = node.GetEntryIdentifier();
         switch ( id )
         {
             case "PitchControlStartPitch":
                 p.PitchControlStartPitch = node.GetBasicValDecimal();
                 break;
             case "PitchControlEndPitch":
                 p.PitchControlEndPitch = node.GetBasicValDecimal();
                 break;
             case "PitchControlStartSpeed":
                 p.PitchControlStartSpeed = node.GetBasicValDecimal();
                 break;
             case "PitchControlEndSpeed":
                 p.PitchControlEndSpeed = node.GetBasicValDecimal();
                 break;
             case "RateLimitPitch":
                 p.RateLimitPitch = node.GetBasicValDecimal();
                 break;
         }
     }
     return p;
 }