Ejemplo n.º 1
0
        public void TestMethod1()
        {
            BPDesign      bpdesign   = new BPDesign(); //create this object on your own
            DesignResults desresults = Designer.Designer.Designerstuff(bpdesign);

            Assert.AreEqual(desresults.AnchorRodTension, 10);
        }
Ejemplo n.º 2
0
        public static DesignResults DesignGravity(BPDesign bpdesign)
        {
            //Column col = bpdesign._column;


            DesignResults desresult = new DesignResults();

            desresult.MaximumBendingCapacity = 10;

            //gravity baseplate design here

            return(desresult);
        }
Ejemplo n.º 3
0
        private void Run_Click(object sender, RoutedEventArgs e)
        {
            //create bpdesign object
            BPDesign bpdes = new BPDesign();

            bpdes._bp    = State.instance.basePlate;
            bpdes._exres = State.instance.exportedresults;
            bpdes._fndn  = State.instance.foundation;

            ISection isection = Collection.GetISectionbyName(State.instance.exportedresults._column._section.ToUpper());

            bpdes._column = isection;
            DesignResults desres = Designer.AISCDG1.DesignGravity(bpdes);
        }
Ejemplo n.º 4
0
        public static DesignResults DesignGravity(BPDesign bpdesign)
        {
            ISection        col   = bpdesign._column;
            Foundation      fndn  = bpdesign._fndn;
            Baseplate       bp    = bpdesign._bp;
            ExportedResults exres = bpdesign._exres;
            //AnchorRod anchors = bpdesign._anchors;

            DesignResults desresult = new DesignResults();



            //gravity baseplate design here
            double Pu;
            double fprimec;
            double bpArea;
            double fndnArea;
            double sqrtA2A1;
            double Pp;
            double phiPn;
            double m;
            double n;
            double d  = col._d;
            double bf = col._bf;
            double X;
            double lambda;
            double lambdaNprime;
            double l;
            double tMin;
            double fy = bp._steel._Fy;
            double B  = bp._width;
            double N  = bp._height;

            //Axial checks
            Pu       = Math.Abs(exres._exportedforces._Fz);
            fprimec  = fndn._concrete._fprimec;
            bpArea   = B * N;
            fndnArea = fndn._width * fndn._height;
            sqrtA2A1 = Math.Min(Math.Sqrt(fndnArea / bpArea), 2);
            Pp       = Math.Min(0.85 * fprimec * bpArea * sqrtA2A1, 1.7 * fprimec * bpArea);
            phiPn    = Math.Round(PHI_C * Pp, 2);
            desresult.BearingCapacity = phiPn;
            desresult.BearingDCR      = Math.Round(Pu / phiPn, 2);

            //Min baseplate thickness

            m            = (bp._height - 0.95 * d) / 2;
            n            = (bp._width - 0.8 * bf) / 2;
            X            = ((4 * d * bf) / Math.Pow((d + bf), 2)) * desresult.BearingDCR;
            lambda       = Math.Min((2 * Math.Sqrt(X)) / (1 + (Math.Sqrt(1 - X))), 1);
            lambdaNprime = lambda * (Math.Sqrt(d * bf) / 4);
            l            = Math.Max(m, Math.Max(n, lambdaNprime));
            tMin         = Math.Round(l * Math.Sqrt((2 * Pu) / (PHI_B * fy * B * N)), 2);
            desresult.MinReqdThickness = tMin;


            // Anchor Rod Checks
            desresult.AnchorRodTension = 10;

            return(desresult);
        }
Ejemplo n.º 5
0
        public static DesignResults DesignGravity(BPDesign bpdesign)
        {
            ISection col = bpdesign._column;
            Foundation fndn = bpdesign._fndn;
            Baseplate bp = bpdesign._bp;
            
            double Pu;
            double fprimec;
            double bpArea;
            double fndnArea;
            double sqrtA2A1;
            double Pp;
            double phiPn;
            double m;
            double n;
            double d = col._d;
            double bf = col._bf;
            double X;
            double lambda;
            double lambdaNprime;
            double l;
            double tMin;
            double fy = bp._steel._Fy;
            double B = bp.Width;
            double N = bp.Height;

            DesignResults desresult = new DesignResults();

            foreach (ForceObject fobj in bpdesign._exres._exportedforces)
            {
                //Axial checks
                Pu = fobj._Fz;
                fprimec = 4;
                bpArea = B * N;
                fndnArea = fndn._width * fndn._height;
                sqrtA2A1 = Math.Min(Math.Sqrt(fndnArea / bpArea), 2);
                Pp = Math.Min(0.85 * fprimec * bpArea * sqrtA2A1, 1.7 * fprimec * bpArea);
                phiPn = Math.Round(PHI_C * Pp, 2);

                if (desresult.BearingCapacity < phiPn)
                {
                    desresult.BearingCapacity = phiPn;
                    desresult.BearingDCR = Math.Round(Pu / phiPn, 2);
                }

                desresult.BearingCapacity = phiPn;
                desresult.BearingDCR = Math.Round(Pu / phiPn, 2);
                //Min baseplate thickness
                m = (bp.Height - 0.95 * d) / 2;
                n = (bp.Width - 0.8 * bf) / 2;

                X = ((4 * d * bf) / Math.Pow((d + bf), 2)) * Math.Round(Pu / phiPn, 2);

                lambda = Math.Min((2 * Math.Sqrt(X)) / (1 + (Math.Sqrt(1 - X))), 1);
                lambdaNprime = lambda * (Math.Sqrt(d * bf) / 4);
                l = Math.Max(m, Math.Max(n, lambdaNprime));
                tMin = Math.Round(l * Math.Sqrt((2 * Pu) / (PHI_B * fy * B * N)), 2);

                if (desresult.MinReqdThickness < tMin)
                {
                    desresult.MinReqdThickness = tMin;
                }
                
            }
            
            // Anchor Rod Checks
            return desresult;
        }
Ejemplo n.º 6
0
 public static DesignResults DesignLateral(BPDesign input)
 {
     return(null);
     //perform shear lug and other stuff here
 }