示例#1
0
        public double GetIceWeightPlate(double td, IcePlateOrientation plateOrientation, double gammai)
        {
            double qi;

            if (gammai == 0.0)
            {
                gammai = GetIceDensity();
            }

            #region qi
            ICalcLogEntry qiEntry = new CalcLogEntry();
            qiEntry.ValueName = "qi";
            qiEntry.AddDependencyValue("td", Math.Round(td, 3));
            qiEntry.AddDependencyValue("gammai", Math.Round(gammai, 3));
            qiEntry.Reference = "";

            qiEntry.FormulaID = null; //reference to formula from code

            #endregion
            switch (plateOrientation)
            {
            case IcePlateOrientation.Vertical:
                qi = 0.8 * Math.PI * td / 12.0 * gammai;
                qiEntry.DescriptionReference = "/Templates/Loads/ASCE7_10/Ice/IceWeightPlateVertical.docx";
                break;

            case IcePlateOrientation.Horizontal:
                qi = 0.6 * Math.PI * td / 12.0 * gammai;
                qiEntry.DescriptionReference = "/Templates/Loads/ASCE7_10/Ice/IceWeightPlateHorizontal.docx";
                break;

            default:
                qi = Math.PI * td / 12.0 * gammai;
                qiEntry.DescriptionReference = "/Templates/Loads/ASCE7_10/Ice/IceWeightPlate.docx";
                break;
            }

            qiEntry.VariableValue = Math.Round(qi, 3).ToString();
            this.AddToLog(qiEntry);
            return(qi);
        }
示例#2
0
        public double GetIceWeightPlate(double td, IcePlateOrientation plateOrientation, double gammai)
        {
            double qi;
            if (gammai == 0.0)
            {
                gammai = GetIceDensity();
            }

            #region qi
            ICalcLogEntry qiEntry = new CalcLogEntry();
            qiEntry.ValueName = "qi";
            qiEntry.AddDependencyValue("td", Math.Round(td, 3));
            qiEntry.AddDependencyValue("gammai", Math.Round(gammai, 3));
            qiEntry.Reference = "";
            
            qiEntry.FormulaID = null; //reference to formula from code

            #endregion
            switch (plateOrientation)
            {
                case IcePlateOrientation.Vertical:
                    qi = 0.8* Math.PI * td/12.0 * gammai;
                    qiEntry.DescriptionReference = "/Templates/Loads/ASCE7_10/Ice/IceWeightPlateVertical.docx";
                    break;
                case IcePlateOrientation.Horizontal:
                    qi = 0.6* Math.PI * td/12.0 * gammai;
                    qiEntry.DescriptionReference = "/Templates/Loads/ASCE7_10/Ice/IceWeightPlateHorizontal.docx";
                    break;
                default:
                    qi = Math.PI * td/12.0 * gammai;
                    qiEntry.DescriptionReference = "/Templates/Loads/ASCE7_10/Ice/IceWeightPlate.docx";
                    break;
            }

            qiEntry.VariableValue = Math.Round(qi, 3).ToString();
            this.AddToLog(qiEntry);
            return qi;
        }