static void Main(string[] args)
        {
            ConcreteAASHTO C50      = new ConcreteAASHTO("C50", 50);
            Reinforcement  Grade400 = new Reinforcement("", 400, 20, 6, 50 + 20, 0);
            RectSection    ptm2     = new RectSection("f", 1000, 1000);

            ptm2.thisConcrete = C50;
            ptm2.RebarY0      = Grade400;
            //    RoundRecSection cpm1 = new RoundRecSection(2500, 1100, C35, Grade500, 64, 32, 50 + 32, 25);
            //    RoundRecSection pme2main = new RoundRecSection(2500, 1000, C35, Grade500, 40, 32, 50 + 32, 25);
            //    RoundRecSection pme2ramp = new RoundRecSection(1400,1000, C35, Grade500, 32, 32, 50 + 32, 250);
            //    RoundRecSection pe14 = new RoundRecSection(1600, 900, C35, Grade500, 28, 32, 50 + 32, 225);

            //    RoundRecSection ptl1 = new RoundRecSection(1000, 1400, C35, Grade500, 24, 32, 50 + 32, 225);


            //    Column PM1 = new Column(25000, cpm1, cpm1);
            //    PM1.SetDesignLoad(15295e3, 1281e6, 9963e6, 15295e3, 1281e6, 9963e6);
            //    PM1.PrintReport();

            ptm2.SectionAnalysis();

            Console.WriteLine("分析完成.");
            Console.ReadKey();
        }
Beispiel #2
0
        /// <summary>
        /// 从界面输入参数
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        private RectSection GetInitData(RectSection item)
        {
            //截面尺寸及计算高度
            double height = double.Parse(textBox1.Text); //
            double width  = double.Parse(textBox2.Text); //
            double ly0    = double.Parse(textBox5.Text); //
            double lz0    = double.Parse(textBox6.Text); //
            //顺桥向配筋
            double AreaUp     = double.Parse(textBox11.Text);
            double OffsetUp   = double.Parse(textBox12.Text);
            double AreaDown   = double.Parse(textBox13.Text);
            double OffsetDown = double.Parse(textBox14.Text);
            //横桥向配筋
            double AreaLeft    = double.Parse(textBox15.Text);
            double OffsetLeft  = double.Parse(textBox16.Text);
            double AreaRight   = double.Parse(textBox17.Text);
            double OffsetRight = double.Parse(textBox18.Text);

            //截面尺寸及计算高度
            item.Concgrade    = GetNumber(comboBox1.Text);
            item.Steelgrade   = GetNumber(comboBox2.Text);
            item.SafetyFactor = GetNumber(comboBox4.Text) / 10.0;
            item.m_Width      = width;
            item.m_Height     = height;
            item.m_Ly0        = ly0;
            item.m_Lz0        = lz0;
            //顺桥向配筋
            item.m_AreaUp     = AreaUp;
            item.m_OffsetUp   = OffsetUp;
            item.m_AreaDown   = AreaDown;
            item.m_OffsetDown = OffsetDown;
            //横桥向配筋
            item.m_AreaLeft    = AreaLeft;
            item.m_OffsetLeft  = OffsetLeft;
            item.m_AreaRight   = AreaRight;
            item.m_OffsetRight = OffsetRight;
            //
            return(item);
        }