コード例 #1
0
        public void SectionChannelRolledReturnsArea()
        {
            SectionChannelRolled shape = new SectionChannelRolled("", 8, 2.53, 0.39, 0.487, 15.0 / 16.0);
            double A = shape.A;

            Assert.AreEqual(5.87, Math.Round(A, 2));
        }
コード例 #2
0
        public void SectionChannelRolledReturnsIx()
        {
            SectionChannelRolled shape = new SectionChannelRolled("", 8, 2.53, 0.39, 0.487, 15.0 / 16.0);
            double A = shape.I_x;

            Assert.AreEqual(48.244, Math.Round(A, 3));
        }
コード例 #3
0
        public void SectionChannelRolledReturnsIy()
        {
            //SectionChannelRolled shape = new SectionChannelRolled("", 8, 2.53, 0.39, 0.487, 15.0 / 16.0);
            SectionChannelRolled shape = new SectionChannelRolled("", 8, 2.53, 0.39, 0.487, 0.0);
            double A = shape.I_y;

            //Assert.AreEqual(2.455, Math.Round(A, 3));
            Assert.AreEqual(2.44, Math.Round(A, 2));
        }
コード例 #4
0
        public ISliceableSection GetSliceableShape()
        {
            SectionChannelRolled secI = new SectionChannelRolled("", this.d, this.b_f, this.t_f, this.t_w, this.k);

            return(secI);
        }