Exemple #1
0
        public IShearMember GetShearMemberNonCircular(ShearNonCircularCase ShearCase, double h, double t_w, double a, double F_y, double E)
        {
            ISteelMaterial material = new SteelMaterial(F_y, E);
            IShearMember   member   = null;
            bool           IsTeeShape;


            switch (ShearCase)
            {
            case ShearNonCircularCase.MemberWithStiffeners:
                IsTeeShape = false;
                member     = new ShearMemberWithStiffeners(h, t_w, a, material, IsTeeShape);
                break;

            case ShearNonCircularCase.Tee:
                IsTeeShape = true;
                member     = new ShearMemberWithoutStiffeners(h, t_w, material, IsTeeShape);
                break;

            case ShearNonCircularCase.Box:
                member = new ShearMemberBox(h, t_w, material);
                break;

            default:
                IsTeeShape = false;
                member     = new ShearMemberWithoutStiffeners(h, t_w, material, IsTeeShape);
                break;
            }
            return(member);
        }
        public IShearMember GetShearMemberNonCircular(ShearNonCircularCase ShearCase, double h, double t_w, double a, double F_y,double E)
        {
            ISteelMaterial material = new SteelMaterial(F_y,E);
            IShearMember member =null;
            bool IsTeeShape;


            switch (ShearCase)
            {
                case ShearNonCircularCase.MemberWithStiffeners:
                     IsTeeShape =false;
                     member = new ShearMemberWithStiffeners(h, t_w, a, material, IsTeeShape);
                    break;
                case ShearNonCircularCase.Tee:
                    IsTeeShape = true;
                    member = new ShearMemberWithoutStiffeners(h, t_w, material, IsTeeShape);
                    break;
                case ShearNonCircularCase.Box:
                    member = new ShearMemberBox(h, t_w, material);
                    break;
                default:
                    IsTeeShape = false;
                    member = new ShearMemberWithoutStiffeners(h, t_w, material, IsTeeShape);
                    break;
            }
            return member;
        }