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(); }
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 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); }
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; }