コード例 #1
0
 /// <summary>
 /// 配置计算数据,并刷新导线相关参数等
 /// </summary>
 /// <param name="WeathSor"></param>
 /// <param name="IndWireSor"></param>
 /// <param name="GrdWireSor"></param>
 /// <param name="OPGWWrieSor"></param>
 /// <param name="JumWireSor"></param>
 /// <param name="SideParaSor"></param>
 /// <param name="ComParaSor"></param>
 public void UpdataSor(ElecCalsWeaRes WeathSor, ElecCalsWire IndWireSor, ElecCalsWire GrdWireSor, ElecCalsWire OPGWWrieSor,
                       ElecCalsWire JumWireSor, ElecCalsSideRes SideParaSor, ElecCalsCommRes ComParaSor)
 {
     Weather   = XmlUtils.Clone(WeathSor);
     IndWire   = XmlUtils.Clone(IndWireSor);
     GrdWire   = XmlUtils.Clone(GrdWireSor);
     OPGWWire  = XmlUtils.Clone(OPGWWrieSor);
     JumWire   = XmlUtils.Clone(JumWireSor);
     SideParas = SideParaSor;
     CommParas = ComParaSor;
 }
コード例 #2
0
        protected List <string> PrintSpecLoadAndStress(ElecCalsWire wire, string towerType)
        {
            List <string> rslt = new List <string>();

            string str1 = FileUtils.PadRightEx("最大使用应力:" + wire.CtrlStress.ToString("0.###"), 24) + FileUtils.PadRightEx("最大年均应力:" + wire.AvaStress.ToString("0.###"), 24)
                          + FileUtils.PadRightEx("控制工况温度:" + wire.CtrlGk.Temperature.ToString("0.###"), 20);

            rslt.Add(str1);

            string str11 = FileUtils.PadRightEx("最大使用应力py: " + wire.MaxPerFor.ToString("0.###"), 24) + FileUtils.PadRightEx("最大年均应力py: " + wire.AvePerFor.ToString("0.###"), 24)
                           + FileUtils.PadRightEx("控制工况py: " + wire.CtrNaSave, 24);

            rslt.Add(str11);

            string str2 = FileUtils.PadRightEx("控制工况:" + wire.CtrlGkName, 24) + FileUtils.PadRightEx("控制工况比载:" + wire.BzDic[wire.CtrlGkName].BiZai.ToString("e3"), 24)
                          + FileUtils.PadRightEx("控制工况应力:" + wire.CtrlGkStress.ToString("0.###"), 20);

            rslt.Add(str2);

            string str22 = FileUtils.PadRightEx("控制工况py:" + wire.CtrNaSave, 24) + FileUtils.PadRightEx("控制工况应力py:" + wire.CtrYLSave.ToString("0.###"), 20);

            rslt.Add(str22);

            string strTitle = FileUtils.PadRightEx("气象条件", 26) + FileUtils.PadRightEx("温度:", 8) + FileUtils.PadRightEx("风速:", 8) + FileUtils.PadRightEx("覆冰:", 8)
                              + FileUtils.PadRightEx("基本风速:", 12) + FileUtils.PadRightEx("比载:", 12) + FileUtils.PadRightEx("比载g7:", 12)
                              + FileUtils.PadRightEx("垂直比载:", 12) + FileUtils.PadRightEx("垂直比载g3:", 12) + FileUtils.PadRightEx("横向比载:", 12) + FileUtils.PadRightEx("横向比载g5:", 12)
                              + FileUtils.PadRightEx("垂直荷载:", 12) + FileUtils.PadRightEx("风荷载:", 12) + FileUtils.PadRightEx("应力:", 12) + FileUtils.PadRightEx("应力g:", 12);

            rslt.Add(strTitle);

            List <string> wkCdtList = towerType == "悬垂塔" ? wire.WorkCdtNamesHang : wire.WorkCdtNamesStrain;

            foreach (var name in wkCdtList)
            {
                if (wire.WeatherParas.WeathComm.Where(item => item.Name == name).Count() <= 0)
                {
                    continue;
                }

                var wea = wire.WeatherParas.WeathComm.Where(item => item.Name == name).First();

                string str = FileUtils.PadRightEx(name, 26) + FileUtils.PadRightEx(wea.Temperature.ToString(), 8) + FileUtils.PadRightEx(wea.WindSpeed.ToString(), 8) + FileUtils.PadRightEx(wea.IceThickness.ToString(), 8)
                             + FileUtils.PadRightEx(wea.BaseWindSpeed.ToString(), 12) + FileUtils.PadRightEx(wire.BzDic[name].BiZai.ToString("e3"), 12) + FileUtils.PadRightEx((wire.BzDic[name].g7 / CommParas.GraAcc).ToString("e3"), 12)
                             + FileUtils.PadRightEx(wire.BzDic[name].VerBizai.ToString("e3"), 12) + FileUtils.PadRightEx((wire.BzDic[name].g3 / CommParas.GraAcc).ToString("e3"), 12) + FileUtils.PadRightEx(wire.BzDic[name].HorBizai.ToString("e3"), 12) + FileUtils.PadRightEx((wire.BzDic[name].g5 / CommParas.GraAcc).ToString("e3"), 12)
                             + FileUtils.PadRightEx(wire.BzDic[name].VerHezai.ToString("0.000"), 12) + FileUtils.PadRightEx(wire.BzDic[name].WindHezai.ToString("0.000"), 12) + FileUtils.PadRightEx(wire.YLTableXls[name].ToString("0.000"), 12) + FileUtils.PadRightEx((wire.YLTable[name] / CommParas.GraAcc).ToString("0.000"), 12);
                rslt.Add(str);
            }

            return(rslt);
        }
コード例 #3
0
        //更新塔库配置参数
        protected void UpdateTowerPara(out string waring)
        {
            waring = "";

            StrData upIndStr, midIndStr, dnIndStr, grdStr, upJumpStr, midJumpStr, dnJumpStr;

            if (TowerParas.UpIndStrDataName != null && TowerParas.UpIndStrDataName != "")
            {
                upIndStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.UpIndStrDataName);
            }
            else
            {
                upIndStr = new StrData();
                waring  += "上相导线串 ";
            }

            if (TowerParas.MidIndStrDataName != null && TowerParas.MidIndStrDataName != "")
            {
                midIndStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.MidIndStrDataName);
            }
            else
            {
                midIndStr = new StrData();
                waring   += "中相导线串 ";
            }

            if (TowerParas.DnIndStrDataName != null && TowerParas.DnIndStrDataName != "")
            {
                dnIndStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.DnIndStrDataName);
            }
            else
            {
                dnIndStr = new StrData();
                waring  += "下相导线串 ";
            }

            if (TowerParas.GrdStrDataName != null && TowerParas.GrdStrDataName != "")
            {
                grdStr = globalInst.GetLocalStrDataByName("一般子串", TowerParas.GrdStrDataName);
            }
            else
            {
                grdStr  = new StrData();
                waring += "地线线串 ";
            }

            if (TowerParas.UpJumpStrDataName != null && TowerParas.UpJumpStrDataName != "")
            {
                upJumpStr = globalInst.GetLocalStrDataByName("硬跳线", TowerParas.UpJumpStrDataName);
            }
            else
            {
                upJumpStr = new StrData();
                waring   += "上相跳线串 ";
            }

            if (TowerParas.MidJumpStrDataName != null && TowerParas.MidJumpStrDataName != "")
            {
                midJumpStr = globalInst.GetLocalStrDataByName("硬跳线", TowerParas.MidJumpStrDataName);
            }
            else
            {
                midJumpStr = new StrData();
                waring    += "中相跳线串 ";
            }

            if (TowerParas.DnJumpStrDataName != null && TowerParas.DnJumpStrDataName != "")
            {
                dnJumpStr = globalInst.GetLocalStrDataByName("硬跳线", TowerParas.DnJumpStrDataName);
            }
            else
            {
                dnJumpStr = new StrData();
                waring   += "下相跳线串 ";
            }

            StrDatas = new ElecCalsStrDatas();
            StrDatas.UpIndStr.SetIGPara(upIndStr.Weight, upIndStr.LNum, upIndStr.PieceNum, upIndStr.PieceLength, upIndStr.GoldPieceNum,
                                        upIndStr.FitLength, upIndStr.DampLength);
            StrDatas.MidIndStr.SetIGPara(midIndStr.Weight, midIndStr.LNum, midIndStr.PieceNum, midIndStr.PieceLength, midIndStr.GoldPieceNum,
                                         midIndStr.FitLength, midIndStr.DampLength);
            StrDatas.DnIndStr.SetIGPara(dnIndStr.Weight, dnIndStr.LNum, dnIndStr.PieceNum, dnIndStr.PieceLength, dnIndStr.GoldPieceNum,
                                        dnIndStr.FitLength, dnIndStr.DampLength);
            StrDatas.GrdStr.SetIGPara(grdStr.Weight, grdStr.LNum, grdStr.PieceNum, grdStr.PieceLength, grdStr.GoldPieceNum,
                                      grdStr.FitLength, grdStr.DampLength);

            StrDatas.UpJumpStr.SetJumPara(upJumpStr.Weight, upJumpStr.LNum, upJumpStr.PieceNum, upJumpStr.GoldPieceNum, upJumpStr.SoftLineLen,
                                          upJumpStr.JGBNum, upJumpStr.SuTubleLen, TowerParas.SuTubleDia, TowerParas.SuTubleWei);
            StrDatas.MidJumpStr.SetJumPara(midJumpStr.Weight, midJumpStr.LNum, midJumpStr.PieceNum, midJumpStr.GoldPieceNum, midJumpStr.SoftLineLen,
                                           midJumpStr.JGBNum, midJumpStr.SuTubleLen, TowerParas.SuTubleDia, TowerParas.SuTubleWei);
            StrDatas.DnJumpStr.SetJumPara(dnJumpStr.Weight, dnJumpStr.LNum, dnJumpStr.PieceNum, dnJumpStr.GoldPieceNum, dnJumpStr.SoftLineLen,
                                          dnJumpStr.JGBNum, dnJumpStr.SuTubleLen, TowerParas.SuTubleDia, TowerParas.SuTubleWei);

            Wire jump;

            if (TowerParas.JumpName != null && TowerParas.JumpName != "")
            {
                jump = globalInst.GetLocalWireByName(true, TowerParas.JumpName);
            }
            else
            {
                jump    = new Wire();
                waring += "跳线 ";
            }

            JumpWirePara = new ElecCalsWire(jump.ModelSpecification, 1, jump.SectionArea, jump.ExternalDiameter, jump.UnitLengthMass, jump.ModulusElasticity,
                                            jump.LineCoefficient, jump.RatedBreakingForce, 0, 0, TowerParas.JumpDevideNum);
        }