コード例 #1
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();
        }
コード例 #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();
        }
コード例 #3
0
        private static TorqueControllerParams TorqueControllerParamsHandler(ParseTreeNode dict)
        {
            var p = new TorqueControllerParams();

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

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

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

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

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

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

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

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

                case "TorqueControllerRelax":
                    p.TorqueControllerRelax = node.GetBasicValDecimal();
                    break;
                }
            }
            return(p);
        }
コード例 #4
0
 private static TorqueControllerParams TorqueControllerParamsHandler(ParseTreeNode dict)
 {
     var p = new TorqueControllerParams();
     for (int i = 0; i < dict.ChildNodes.Count; i++)
     {
         var node = dict.ChildNodes[i].ChildNodes[0];
         var id = node.GetEntryIdentifier();
         switch ( id )
         {
             case "CutInGenSpeed":
                 p.CutInGenSpeed = node.GetBasicValDecimal();
                 break;
             case "RatedGenSpeed":
                 p.RatedGenSpeed = node.GetBasicValDecimal();
                 break;
             case "Region2StartGenSpeed":
                 p.Region2StartGenSpeed = node.GetBasicValDecimal();
                 break;
             case "Region2EndGenSpeed":
                 p.Region2EndGenSpeed = node.GetBasicValDecimal();
                 break;
             case "CutInGenTorque":
                 p.CutInGenTorque = node.GetBasicValDecimal();
                 break;
             case "RatedGenTorque":
                 p.RatedGenTorque = node.GetBasicValDecimal();
                 break;
             case "RateLimitGenTorque":
                 p.RateLimitGenTorque = node.GetBasicValDecimal();
                 break;
             case "KGen":
                 p.KGen = node.GetBasicValDecimal();
                 break;
             case "TorqueControllerRelax":
                 p.TorqueControllerRelax = node.GetBasicValDecimal();
                 break;
         }
         
     }
     return p;
 }