예제 #1
0
        internal double GetVerticalComponentOfCompressionBranchChordPlastificationForce(string LoadCaseName, double D, double Qf, double Qg)
        {
            double PnSinTheta = 0;

            //var thisLoadCaseData = loadCases.Where(c => c.LoadCaseName == LoadCaseName).ToList()[0];
            HssKConnectionLoadCaseData thisLoadCaseData;

            loadCases.TryGetValue(LoadCaseName, out thisLoadCaseData);

            if (thisLoadCaseData != null)
            {
                HssTrussConnectionBranch branch  = thisLoadCaseData.CompressionBranch;
                ISectionPipe             section = GetBranchSection(branch);
                double Fy = branch.Section.Material.YieldStress;
                double t  = section.t_des;
                double Db = section.D;

                //(K2-4)
                PnSinTheta = Fy * Math.Pow(t, 2) * (2.0 + 11.33 * Db / D) * Qg * Qf;
            }
            else
            {
                throw new Exception("Could not find branch data for the given load case name");
            }
            return(PnSinTheta);
        }
        internal virtual double GetBranchShearYielding(HssTrussConnectionBranch branch)
        {
            double       P = 0;
            double       Pn;
            double       theta    = branch.Angle;
            double       sinTheta = Math.Sin(theta.ToRadians());
            double       pi       = Math.PI;
            ISectionPipe section  = GetBranchSection(branch);
            double       Fy       = branch.Section.Material.YieldStress;
            double       t        = section.t_des;
            double       Db       = section.D;

            if (Db < (Db - 2.0 * t))
            {
                //(K2-1)
                Pn = 0.6 * Fy * t * pi * Db * (1.0 + sinTheta / (2.0 * Math.Pow(sinTheta, 2)));

                P = Pn * 0.95;
            }
            else
            {
                P = double.PositiveInfinity;
            }

            return(P);
        }
예제 #3
0
        public WallOfChs(ISteelMaterial Material, ISectionPipe SectionPipe)
            : base(Material)
        {
            this.SectionPipe = SectionPipe;
            ISectionPipe s  = SectionPipe;
            double       td = s.t_des;

            this.diameter  = s.D;
            this.Thickness = s.t_des;
        }
예제 #4
0
        internal ISectionPipe GetChordSection()
        {
            ISectionPipe chord = Chord.Section as ISectionPipe;

            if (chord == null)
            {
                throw new SectionWrongTypeException(typeof(ISectionPipe));
            }
            return(chord);
        }
예제 #5
0
        internal ISectionPipe GetBranchSection(HssTrussConnectionBranch branch)
        {
            ISectionPipe chord = branch.Section as ISectionPipe;

            if (chord == null)
            {
                throw new SectionWrongTypeException(typeof(ISectionPipe));
            }
            return(chord);
        }
예제 #6
0
        public WallOfChs(ISteelMaterial Material, ISectionPipe SectionPipe)
            :base(Material)
        {
            this.SectionPipe = SectionPipe;
            ISectionPipe s = SectionPipe;
            double td = s.t_des;

            this.diameter = s.D;
            this.Thickness = s.t_des;
        }
예제 #7
0
            //ICompactnessElement FlangeCompactness;
            //ICompactnessElement WebCompactness;

            public HollowMember(ISteelSection section,
                                FlexuralCompressionFiberPosition compressionFiberPosition, MomentAxis MomentAxis)
            {
                ISection Section = section.Shape;

                if (Section is ISectionTube || Section is ISectionPipe || Section is ISectionBox)
                {
                    if (Section is ISectionTube)
                    {
                        ISectionTube tube = Section as ISectionTube;
                        if (MomentAxis == MomentAxis.XAxis)
                        {
                            FlangeCompactness = new FlangeOfRhs(section.Material, tube, MomentAxis);
                            WebCompactness    = new WebOfRhs(section.Material, tube, MomentAxis);
                        }
                        else
                        {
                            WebCompactness    = new FlangeOfRhs(section.Material, tube, MomentAxis);
                            FlangeCompactness = new WebOfRhs(section.Material, tube, MomentAxis);
                        }
                    }

                    if (Section is ISectionPipe)
                    {
                        ISectionPipe pipe = Section as ISectionPipe;
                        FlangeCompactness = new WallOfChs(section.Material, pipe);
                        WebCompactness    = new WallOfChs(section.Material, pipe);
                    }

                    if (Section is ISectionBox)
                    {
                        ISectionBox box = Section as ISectionBox;
                        if (MomentAxis == MomentAxis.XAxis)
                        {
                            FlangeCompactness = new FlangeOfBox(section.Material, box);
                            WebCompactness    = new WebOfBox(section.Material, box);
                        }
                        else
                        {
                            WebCompactness    = new FlangeOfBox(section.Material, box);
                            FlangeCompactness = new WebOfBox(section.Material, box);
                        }
                    }
                }
                else
                {
                    throw new SectionWrongTypeException("ISectionTube, ISectionPipe or ISectionBox");
                }
            }
예제 #8
0
        protected void GetTypicalParameters(ref double Fy, ref double t, ref double Bp, ref double D, ref double tp)
        {
            Fy = Hss.Material.YieldStress;
            t  = Hss.Section.t_des;
            Bp = Plate.Section.H;
            tp = Plate.Section.B;

            ISectionPipe pipe = Hss.Section as ISectionPipe;

            if (pipe != null)
            {
                throw new SectionWrongTypeException(typeof(ISectionPipe));
            }
            D = pipe.D;
        }
예제 #9
0
        public FlexuralMemberChsBase(ISteelSection section, ICalcLog CalcLog)
            : base(section, CalcLog)
        {
            sectionPipe = null;
            ISectionPipe s = Section as ISectionPipe;

            if (s == null)
            {
                throw new SectionWrongTypeException(typeof(ISectionPipe));
            }
            else
            {
                sectionPipe = s;
                //compactness = new ShapeCompactness.HollowMember(Section, CompressionLocation.Top);
            }
        }
예제 #10
0
        internal double CheckChordPlastification(HssTrussConnectionBranch branch, double D, double gamma, double Qf)
        {
            double       P = 0;
            double       Pn;
            double       theta    = branch.Angle;
            double       sinTheta = Math.Sin(theta.ToRadians());
            ISectionPipe section  = GetBranchSection(branch);
            double       Fy       = Chord.Section.Material.YieldStress;
            double       t        = section.t_des;
            double       Db       = section.D;
            double       beta     = Db / D;

            //(K2-2)
            Pn = (Fy * Math.Pow(t, 2) * (3.1 + 15.6 * Math.Pow(beta, 2)) * Math.Pow(gamma, 0.2) * Qf) / sinTheta;

            P = 0.9 * Pn;

            return(P);
        }
예제 #11
0
        internal double CheckChordPlastification(HssTrussConnectionBranch branch, double D, double Qf)
        {
            double       P = 0;
            double       Pn;
            double       theta    = branch.Angle;
            double       sinTheta = Math.Sin(theta.ToRadians());
            ISectionPipe section  = GetBranchSection(branch);
            double       Fy       = branch.Section.Material.YieldStress;
            double       t        = section.t_des;
            double       Db       = section.D;
            double       beta     = Db / D;

            //(K2-3)
            Pn = Fy * Math.Pow(t, 2) * (5.7 / (1.0 - 0.81 * beta) * Qf) / sinTheta;

            P = 0.9 * Pn;

            return(P);
        }
예제 #12
0
        public double GetPureTorsionStressForClosedSection(ISection section, double T_u)
        {
            double tau;
            double b, h, t, J, R;

            if (section is ISolidShape)
            {
                if (section is ISectionRectangular)
                {
                    ISectionRectangular sr = section as ISectionRectangular;
                    J = sr.J;
                    R = Math.Min(sr.B, sr.H);
                }
                else if (section is ISectionRound)
                {
                    ISectionRound srou = section as ISectionRound;
                    J = srou.J;
                    R = srou.D / 2.0;
                }
                else
                {
                    throw new Exception("Section type is not applicable for closed section analysis");
                }
                tau = T_u * R / J;
            }
            else if (section is ISectionHollow)
            {
                if (section is ISectionTube || section is ISectionBox)
                {
                    if (section is ISectionBox)
                    {
                        ISectionBox sb = section as ISectionBox;
                        b = sb.B;
                        h = sb.H;
                        t = Math.Min(sb.t_f, sb.t_w);
                    }
                    else if (section is ISectionTube)
                    {
                        ISectionTube sT = section as ISectionTube;
                        b = sT.B;
                        h = sT.H;
                        t = sT.t_des;
                    }

                    else
                    {
                        throw new Exception("Section type is not applicable for closed section analysis");
                    }
                    tau = GetBoxShearStress(T_u, b, h, t);
                }
                else if (section is ISectionPipe)
                {
                    ISectionPipe pipe = section as ISectionPipe;
                    R   = pipe.D / 2.0;
                    J   = pipe.J;
                    tau = GetPipeStress(T_u, R, J);
                }
                else
                {
                    throw new Exception("Section type is not applicable for closed section analysis");
                }
            }
            else
            {
                throw new Exception("Section type is not applicable for closed section analysis");
            }
            return(tau);
        }
예제 #13
0
 public SteelChsSection(ISectionPipe Section, ISteelMaterial Material)
     :base(Section, Material)
 {
     this.section = Section;
 }
예제 #14
0
        internal double GetChordWallThickness()
        {
            ISectionPipe chordSec = GetChordSection();

            return(chordSec.t_des);
        }
예제 #15
0
        internal double GetChordDiameter()
        {
            ISectionPipe chordSec = GetChordSection();

            return(chordSec.D);
        }
        public ISteelCompressionMember GetCompressionMember(ISection Shape, double L_ex, double L_ey, double L_ez, double F_y, double E, bool IsRolledShape = true)
        {
            string DEFAULT_EXCEPTION_STRING = "Selected shape is not supported. Select a different shape.";
            ISteelCompressionMember col     = null;
            CalcLog       log      = new CalcLog();
            SteelMaterial Material = new SteelMaterial(F_y, E);

            if (Shape == null)
            {
                return(new ColumnGeneral(null, L_ex, L_ey, L_ez));
            }

            if (Shape is ISectionI)
            {
                ISectionI     IShape        = Shape as ISectionI;
                SteelSectionI SectionI      = new SteelSectionI(IShape, Material);
                IShapeFactory IShapeFactory = new IShapeFactory();
                return(IShapeFactory.GetIshape(SectionI, IsRolledShape, L_ex, L_ey, L_ez));
            }


            else if (Shape is ISectionChannel)
            {
                ISectionChannel     ChannelShape   = Shape as ISectionChannel;
                SteelChannelSection ChannelSection = new SteelChannelSection(ChannelShape, Material);
                throw new Exception(DEFAULT_EXCEPTION_STRING);
            }


            else if (Shape is ISectionPipe)
            {
                ISectionPipe     SectionPipe = Shape as ISectionPipe;
                SteelPipeSection PipeSection = new SteelPipeSection(SectionPipe, Material);
                ChsShapeFactory  ChsFactory  = new ChsShapeFactory();
                return(ChsFactory.GetChsShape(PipeSection, L_ex, L_ey, L_ez, log));
            }

            else if (Shape is ISectionTube)
            {
                ISectionTube    TubeShape       = Shape as ISectionTube;
                SteelRhsSection RectHSS_Section = new SteelRhsSection(TubeShape, Material);
                RhsShapeFactory RhsFactory      = new RhsShapeFactory();
                return(RhsFactory.GetRhsShape(RectHSS_Section, L_ex, L_ey, L_ez));
            }


            else if (Shape is ISectionBox)
            {
                ISectionBox     BoxShape   = Shape as ISectionBox;
                SteelBoxSection BoxSection = new SteelBoxSection(BoxShape, Material);

                RhsShapeFactory RhsFactory = new RhsShapeFactory();
                return(RhsFactory.GetRhsShape(BoxSection, L_ex, L_ey, L_ez));
            }

            else if (Shape is ISectionRectangular || Shape is ISectionRound)
            {
                ISteelSection solidSec;
                if (Shape is ISectionRectangular)
                {
                    ISectionRectangular RectangleShape = Shape as ISectionRectangular;
                    solidSec = new SteelRectangleSection(RectangleShape, Material);
                }
                else
                {
                    ISectionRound rnd = Shape as ISectionRound;
                    solidSec = new SteelRoundSection(rnd, Material);
                }


                CompressionMemberRectangle SolidShapeSection = new CompressionMemberRectangle(solidSec, L_ex, L_ey, L_ez);
                return(SolidShapeSection);
            }

            else if (Shape is ISectionTee)
            {
                ISectionTee     TeeShape   = Shape as ISectionTee;
                SteelTeeSection TeeSection = new SteelTeeSection(TeeShape, Material);


                IShapeCompactness compactnessTee = new ShapeCompactness.TeeMember(TeeSection);
                CompactnessClassAxialCompression flangeCompactness = compactnessTee.GetFlangeCompactnessCompression();
                CompactnessClassAxialCompression stemCompactness   = compactnessTee.GetWebCompactnessCompression();

                if (flangeCompactness == CompactnessClassAxialCompression.NonSlender && stemCompactness == CompactnessClassAxialCompression.NonSlender)
                {
                    return(new ColumnTee(TeeSection, IsRolledShape, L_ex, L_ey, L_ez));
                }
                else
                {
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                }
            }

            else
            {
                throw new Exception(DEFAULT_EXCEPTION_STRING);
            }
        }
예제 #17
0
 public SteelPipeSection(ISectionPipe Section, ISteelMaterial Material)
     : base(Material)
 {
     this.section = Section;
 }
예제 #18
0
        public ISteelBeamFlexure GetBeam(ISection Shape, ISteelMaterial Material, ICalcLog Log, MomentAxis MomentAxis,
                                         FlexuralCompressionFiberPosition compressionFiberPosition, bool IsRolledMember = true)
        {
            ISteelBeamFlexure beam = null;

            if (MomentAxis == Common.Entities.MomentAxis.XAxis)
            {
                if (Shape is ISectionI)
                {
                    ISectionI     IShape   = Shape as ISectionI;
                    SteelSectionI SectionI = new SteelSectionI(IShape, Material);
                    if (IShape.b_fBot == IShape.b_fTop && IShape.t_fBot == IShape.t_fTop)     // doubly symmetric
                    {
                        DoublySymmetricIBeam dsBeam = new DoublySymmetricIBeam(SectionI, Log, compressionFiberPosition, IsRolledMember);
                        beam = dsBeam.GetBeamCase();
                    }
                    else
                    {
                        SinglySymmetricIBeam ssBeam = new SinglySymmetricIBeam(SectionI, IsRolledMember, compressionFiberPosition, Log);
                        beam = ssBeam.GetBeamCase();
                    }
                }
                else if (Shape is ISolidShape)
                {
                    ISolidShape       solidShape   = Shape as ISolidShape;
                    SteelSolidSection SectionSolid = new SteelSolidSection(solidShape, Material);
                    beam = new BeamSolid(SectionSolid, Log, MomentAxis);
                }

                else if (Shape is ISectionChannel)
                {
                    ISectionChannel     ChannelShape   = Shape as ISectionChannel;
                    SteelChannelSection ChannelSection = new SteelChannelSection(ChannelShape, Material);
                    beam = new BeamChannel(ChannelSection, IsRolledMember, Log);


                    IShapeCompactness compactness = new ShapeCompactness.ChannelMember(ChannelSection, IsRolledMember, compressionFiberPosition);

                    CompactnessClassFlexure flangeCompactness = compactness.GetFlangeCompactnessFlexure();
                    CompactnessClassFlexure webCompactness    = compactness.GetWebCompactnessFlexure();

                    if (flangeCompactness != CompactnessClassFlexure.Compact || webCompactness != CompactnessClassFlexure.Compact)
                    {
                        throw new Exception("Channels with non-compact and slender flanges or webs are not supported. Revise input.");
                    }
                }


                else if (Shape is ISectionPipe)
                {
                    ISectionPipe     SectionPipe = Shape as ISectionPipe;
                    SteelPipeSection PipeSection = new SteelPipeSection(SectionPipe, Material);
                    beam = new BeamCircularHss(PipeSection, Log);
                }

                else if (Shape is ISectionTube)
                {
                    ISectionTube    TubeShape       = Shape as ISectionTube;
                    SteelRhsSection RectHSS_Section = new SteelRhsSection(TubeShape, Material);
                    beam = new BeamRectangularHss(RectHSS_Section, compressionFiberPosition, MomentAxis, Log);
                }


                else if (Shape is ISectionBox)
                {
                    ISectionBox     BoxShape   = Shape as ISectionBox;
                    SteelBoxSection BoxSection = new SteelBoxSection(BoxShape, Material);
                    beam = new BeamRectangularHss(BoxSection, compressionFiberPosition, MomentAxis, Log);
                }

                else if (Shape is ISectionTee)
                {
                    ISectionTee     TeeShape   = Shape as ISectionTee;
                    SteelTeeSection TeeSection = new SteelTeeSection(TeeShape, Material);
                    beam = new BeamTee(TeeSection, Log);
                }
                else if (Shape is ISectionAngle)
                {
                    ISectionAngle     Angle        = Shape as ISectionAngle;
                    SteelAngleSection AngleSection = new SteelAngleSection(Angle, Material);
                    beam = new BeamAngle(AngleSection, Log, Angle.AngleRotation, MomentAxis, Angle.AngleOrientation);
                }
                else if (Shape is ISolidShape)
                {
                    ISolidShape       SolidShape   = Shape as ISolidShape;
                    SteelSolidSection SolidSection = new SteelSolidSection(SolidShape, Material);
                    beam = new BeamSolid(SolidSection, Log, MomentAxis);
                }
                else
                {
                    throw new Exception("Specified section type is not supported for this node.");
                }
            }
            else  // weak axis
            {
                if (Shape is ISectionI)
                {
                    ISectionI     IShape   = Shape as ISectionI;
                    SteelSectionI SectionI = new SteelSectionI(IShape, Material);

                    beam = new BeamIWeakAxis(SectionI, IsRolledMember, Log);
                }
                else
                {
                    throw new NotImplementedException();
                }
            }

            return(beam);
        }
예제 #19
0
        public ISteelCompressionMember GetCompressionMember(ISection Shape, double L_ex, double L_ey, double L_ez, double F_y, double E, bool IsRolledShape = true)
        {
            string DEFAULT_EXCEPTION_STRING = "Selected shape is not supported. Select a different shape.";
            ISteelCompressionMember col     = null;
            CalcLog       log      = new CalcLog();
            SteelMaterial Material = new SteelMaterial(F_y, E);

            if (Shape is ISectionI)
            {
                ISectionI     IShape        = Shape as ISectionI;
                SteelSectionI SectionI      = new SteelSectionI(IShape, Material);
                IShapeFactory IShapeFactory = new IShapeFactory();
                return(IShapeFactory.GetIshape(SectionI, IsRolledShape, L_ex, L_ey, L_ez, log));
            }


            else if (Shape is ISectionChannel)
            {
                ISectionChannel     ChannelShape   = Shape as ISectionChannel;
                SteelChannelSection ChannelSection = new SteelChannelSection(ChannelShape, Material);
                throw new Exception(DEFAULT_EXCEPTION_STRING);
            }


            else if (Shape is ISectionPipe)
            {
                ISectionPipe     SectionPipe = Shape as ISectionPipe;
                SteelPipeSection PipeSection = new SteelPipeSection(SectionPipe, Material);
                ChsShapeFactory  ChsFactory  = new ChsShapeFactory();
                return(ChsFactory.GetChsShape(PipeSection, L_ex, L_ey, L_ez, log));
            }

            else if (Shape is ISectionTube)
            {
                ISectionTube    TubeShape       = Shape as ISectionTube;
                SteelRhsSection RectHSS_Section = new SteelRhsSection(TubeShape, Material);
                RhsShapeFactory RhsFactory      = new RhsShapeFactory();
                return(RhsFactory.GetRhsShape(RectHSS_Section, L_ex, L_ey, L_ez, log));
            }


            else if (Shape is ISectionBox)
            {
                ISectionBox     BoxShape   = Shape as ISectionBox;
                SteelBoxSection BoxSection = new SteelBoxSection(BoxShape, Material);

                RhsShapeFactory RhsFactory = new RhsShapeFactory();
                return(RhsFactory.GetRhsShape(BoxSection, L_ex, L_ey, L_ez, log));
            }

            else if (Shape is ISectionTee)
            {
                ISectionTee     TeeShape   = Shape as ISectionTee;
                SteelTeeSection TeeSection = new SteelTeeSection(TeeShape, Material);
                throw new Exception(DEFAULT_EXCEPTION_STRING);
            }
            else
            {
                throw new Exception(DEFAULT_EXCEPTION_STRING);
            }
        }