public void RectangularBeamReturnsInteractionValue()
        {
            double h             = 24.0;
            double d             = 21.5;
            double b             = 14.0;
            double N_u           = 0.0;
            double V_u           = 57100.0;
            double T_u           = 28.0 * 12000.0;
            double fc            = 3000.0;
            double c_center      = 1.75;
            bool   IsLightWeight = false;
            //double phiV_c = beam.GetConcreteShearStrength(N_u, rho_w, M_u, V_u);

            IConcreteMaterial                        mat     = GetConcreteMaterial(fc, IsLightWeight);
            CrossSectionRectangularShape             section = new CrossSectionRectangularShape(mat, null, b, h);
            ConcreteSectionOneWayShearNonPrestressed beam    = new ConcreteSectionOneWayShearNonPrestressed(d, section);
            double phiV_c = beam.GetConcreteShearStrength(0, 0, 0, 0);

            ConcreteSectionTorsion tb = GetConcreteTorsionBeam(b, h, fc, d, false, c_center);

            double IR = tb.GetMaximumForceInteractionRatio(V_u, T_u, phiV_c, b, d);

            double refValue        = 326.0 / 411.0; //Example 7-2
            double actualTolerance = EvaluateActualTolerance(IR, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
        public static Dictionary <string, object> ThresholdTorsion(ConcreteFlexureAndAxiaSection ConcreteSection, double N_u, double c_transv_ctr,
                                                                   bool IsPrestressed = false, string Code = "ACI318-14")
        {
            //Default values
            double phiT_th = 0;


            //Calculation logic:
            TorsionShapeFactory    tss           = new TorsionShapeFactory();
            ConcreteSectionFlexure cross_Section = ConcreteSection.FlexuralSection as ConcreteSectionFlexure;

            if (cross_Section != null)
            {
                if (cross_Section.Section.SliceableShape is ISectionRectangular)
                {
                    IConcreteTorsionalShape shape = tss.GetShape(cross_Section.Section.SliceableShape, ConcreteSection.ConcreteMaterial.Concrete, c_transv_ctr);
                    ConcreteSectionTorsion  s     = new ConcreteSectionTorsion(shape);
                    phiT_th = s.GetThreshholdTorsion(N_u) / 1000.0; //Conversion from ACI psi units to ksi units
                }
                else
                {
                    throw new Exception("Only rectangular cross-sections are currently supported for torsional calculations");
                }
            }
            else
            {
                throw new Exception("Unrecognized shape type");
            }

            return(new Dictionary <string, object>
            {
                { "T_th", phiT_th }
            });
        }
Esempio n. 3
0
        public ConcreteSectionTorsion GetConcreteTorsionBeam(double Width, double Height, double fc, double d, bool IsLightWeight, double c_cent)
        {
            IConcreteSection        Section = GetRectangularSection(Width, Height, fc, IsLightWeight);
            TorsionShapeFactory     tss     = new TorsionShapeFactory();
            IConcreteTorsionalShape shape   = tss.GetShape(Section.SliceableShape, Section.Material,
                                                           c_cent);
            ConcreteSectionTorsion s = new ConcreteSectionTorsion(shape);

            return(s);
        }
        public void RectangularBeamReturnsThresholdTorsionValue()
        {
            double h        = 24.0;
            double d        = 21.5;
            double b        = 14.0;
            double N_u      = 0.0;
            double fc       = 3000.0;
            double c_center = 0.0;

            ConcreteSectionTorsion tb = GetConcreteTorsionBeam(b, h, fc, d, false, c_center);

            double T_th = tb.GetThreshholdTorsion(N_u) / 1000.0; //Conversion from ACI psi units to ksi units

            double refValue        = 61;                         //Example 7-2
            double actualTolerance = EvaluateActualTolerance(T_th, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
        public static Dictionary <string, object> RequiredLongitudinalTorsionRebar(ConcreteFlexureAndAxiaSection ConcreteSection, double T_u, RebarMaterial RebarMaterial,
                                                                                   double c_transv_ctr, double theta = 45, string Code = "ACI318-14")
        {
            //Default values
            double A_l = 0;


            //Calculation logic:
            TorsionShapeFactory     tss   = new TorsionShapeFactory();
            ConcreteSectionFlexure  sec   = (ConcreteSectionFlexure)ConcreteSection.FlexuralSection;
            IConcreteTorsionalShape shape = tss.GetShape(sec.Section.SliceableShape, ConcreteSection.ConcreteMaterial.Concrete, c_transv_ctr);
            ConcreteSectionTorsion  secT  = new ConcreteSectionTorsion(shape);
            double T_u_lb_in = T_u * 1000.0; //internally Kodestruct uses lb - in units for concrete

            A_l = secT.GetRequiredTorsionLongitudinalReinforcementArea(T_u_lb_in, RebarMaterial.Material.YieldStress);

            return(new Dictionary <string, object>
            {
                { "A_l", A_l }
            });
        }
        public void RectangularBeamReturnsRequiredTransverseRebarValue()
        {
            double h             = 24.0;
            double d             = 21.5;
            double b             = 14.0;
            double N_u           = 0.0;
            double V_u           = 57100.0;
            double T_u           = 28.0 * 12000.0;
            double fc            = 3000.0;
            double s             = 1.0;
            double c_center      = 1.75;
            bool   IsLightWeight = false;


            ConcreteSectionTorsion tb = GetConcreteTorsionBeam(b, h, fc, d, false, c_center);

            double A_s = tb.GetRequiredTorsionTransverseReinforcementArea(T_u, s, 60000.00); //Conversion from ACI psi units to ksi units

            double refValue        = 0.0204;                                                 //Example 7-2
            double actualTolerance = EvaluateActualTolerance(A_s, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
        public static Dictionary <string, object> MaximumTorsionalAndShearStrengthInteraction(ConcreteFlexureAndAxiaSection ConcreteSection, double c_transv_ctr,
                                                                                              double V_u, double T_u, double V_c, double b, double d, bool IsPrestressed = false, string Code = "ACI318-14")
        {
            //Default values
            double InteractionRatio = 0;


            //Calculation logic:

            TorsionShapeFactory     tss   = new TorsionShapeFactory();
            ConcreteSectionFlexure  sec   = (ConcreteSectionFlexure)ConcreteSection.FlexuralSection;
            IConcreteTorsionalShape shape = tss.GetShape(sec.Section.SliceableShape, ConcreteSection.ConcreteMaterial.Concrete, c_transv_ctr);
            ConcreteSectionTorsion  s     = new ConcreteSectionTorsion(shape);
            double V_u_lb    = V_u * 1000.0; //internally Kodestruct uses lb - in units for concrete
            double T_u_lb_in = T_u * 1000.0; //internally Kodestruct uses lb - in units for concrete

            InteractionRatio = s.GetMaximumForceInteractionRatio(V_u_lb, T_u_lb_in, V_c, b, d);


            return(new Dictionary <string, object>
            {
                { "InteractionRatio", InteractionRatio }
            });
        }