public override bool CheckSection(StructuralBase.Section.SectionBase Section)
        {
            bool temp = true;

            StructuralBase.Section.SectionBase section = Section;

            if (section.I33 < this.Ix)
            {
                temp = false;
            }
            if (section.W33 < this.WMinAtSpan)
            {
                temp = false;
            }
            if (section.W33 < this.WMinAtSupport)
            {
                temp = false;
            }

            if (!base.CheckSection(section))
            {
                temp = false;
            }

            return(temp);
        }
Example #2
0
        public virtual bool CheckSection(StructuralBase.Section.SectionBase Section)
        {
            // Design
            StructuralBase.Material.Steel           mat       = new StructuralBase.Material.Steel(210000, 355, 70000);
            StructuralBase.Design.Steel.SteelDesign newDesign =
                (StructuralBase.Design.Steel.SteelDesign)Section.DesignSection(mat);
            StructuralBase.Design.InternalForces newForce = new StructuralBase.Design.InternalForces();
            double moment = MaxMoment;

            newForce.M3    = moment;
            newForce.V2    = moment / (l / 2.0);
            newDesign.Lx   = l;
            newDesign.Ly   = l;
            newDesign.MA   = moment / 2.0;
            newDesign.MB   = moment;
            newDesign.MC   = moment / 2.0;
            newDesign.MMax = moment;
            newDesign.K    = 1;

            newDesign.CheckASD(newForce);

            //if (newDesign.Result == false)
            //    return false;
            //

            return(true);
        }
Example #3
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            StructuralBase.Section.SectionBase section = value as StructuralBase.Section.SectionBase;

            if (section == null)
            {
                return(null);
            }

            return((System.Convert.ToDouble(parameter) / section.I33).ToString("0.00"));
        }