public static Dictionary <string, object> TwoWayShearStrengthProvidedByConcrete(PunchingShearPerimeter PunchingShearPerimeter,
                                                                                        ConcreteMaterial ConcreteMaterial, double d, double c_x, double c_y, bool IsSectionAtColumnFace = true)
        {
            //Default values
            double phi_v_c = 0;


            //Calculation logic:

            PunchingPerimeterConfiguration Configuration;
            bool IsValidInputString = Enum.TryParse(PunchingShearPerimeter.Configuration, true, out Configuration);

            if (IsValidInputString == false)
            {
                throw new Exception("Failed to convert string. Examples of acceptable values are Interior, EdgeLeft, CornerLeftTop. Please check input");
            }

            ConcreteSectionTwoWayShear sec = new ConcreteSectionTwoWayShear(ConcreteMaterial.Concrete,
                                                                            PunchingShearPerimeter.PerimeterData, d, c_x, c_y, Configuration);

            phi_v_c = sec.GetTwoWayStrengthForUnreinforcedConcrete() / 1000.0; //convert to ksi

            return(new Dictionary <string, object>
            {
                { "phi_v_c", phi_v_c }
            });
        }
コード例 #2
0
        public static Dictionary <string, object> TwoWayShearStressFromMomentAndShear(double M_ux, double M_uy, double V_u, PunchingShearPerimeter PunchingShearPerimeter, string PunchingPerimeterConfiguration,
                                                                                      double gamma_vx, double gamma_vy, bool AllowShearRedistribution = false)
        {
            //Default values
            double v_u_Max = 0;
            double v_u_Min = 0;



            //Calculation logic:
            PunchingShearPerimeter p = PunchingShearPerimeter;

            PunchingPerimeterConfiguration Configuration;
            bool IsValidInputString = Enum.TryParse(p.Configuration, true, out Configuration);

            if (IsValidInputString == false)
            {
                throw new Exception("Failed to convert string. Examples of acceptable values are Interior, EdgeLeft, CornerLeftTop. Please check input");
            }



            ConcreteSectionTwoWayShear sec = new ConcreteSectionTwoWayShear(p.PerimeterData, p.d, p.c_x, p.c_y, Configuration, false);

            //Check gamma's
            double v_uConcentric = sec.GetConcentricShearStress(V_u);
            double phi_v_c       = sec.GetTwoWayStrengthForUnreinforcedConcrete() / 1000.0; //convert to ksi

            if (gamma_vx == 1.0 && v_uConcentric > 0.75 * phi_v_c)
            {
                throw new Exception("gamma_vx cannot be 1.0 if stress due to concentric shear force exceeds 75% of concrete shear strength");
            }
            if (gamma_vy == 1.0 && v_uConcentric > 0.75 * phi_v_c)
            {
                throw new Exception("gamma_vy cannot be 1.0 if stress due to concentric shear force exceeds 75% of concrete shear strength");
            }

            ResultOfShearStressDueToMoment result = sec.GetCombinedShearStressDueToMomementAndShear(M_ux, M_uy, V_u, gamma_vx, gamma_vy, AllowShearRedistribution);

            v_u_Max  = result.v_max;
            v_u_Min  = result.v_min;
            gamma_vx = result.gamma_vx;
            gamma_vy = result.gamma_vy;

            return(new Dictionary <string, object>
            {
                { "v_u_Max", v_u_Max }
                , { "v_u_Min", v_u_Min }
                , { "gamma_vx", gamma_vx }
                , { "gamma_vy", gamma_vy }
            });
        }
コード例 #3
0
        public void SlabPunchingConcentricReturnsValue()
        {
            IConcreteMaterial           mat      = this.GetConcreteMaterial(3000, false);
            PerimeterFactory            f        = new PerimeterFactory();
            double                      d        = 4.75;
            double                      b_1      = 26.0;
            double                      b_2      = 12.0;
            List <PerimeterLineSegment> segments = f.GetPerimeterSegments(PunchingPerimeterConfiguration.Interior, b_1, b_2, d);
            ConcreteSectionTwoWayShear  sec      = new ConcreteSectionTwoWayShear(mat, segments, d, b_1, b_2, true, PunchingPerimeterConfiguration.Interior);
            double                      phi_v_c  = sec.GetTwoWayStrengthForUnreinforcedConcrete() / 1000.0; //convert to kips

            double refValue        = 71.3 / d / 95.0;                                                       //from example
            double actualTolerance = EvaluateActualTolerance(phi_v_c, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
コード例 #4
0
        public void SlabPunchingStrengthReturnsValue()
        {
            IConcreteMaterial     mat          = this.GetConcreteMaterial(3000, false);
            PerimeterFactory      f            = new PerimeterFactory();
            double                d            = 4.75;
            double                b_1          = 26.0;
            double                b_2          = 12.0;
            Point2D               ColumnCenter = new Point2D(0, 0);
            PunchingPerimeterData perimeter    = f.GetPerimeterData(PunchingPerimeterConfiguration.Interior, b_1, b_2, d, 0, 0, ColumnCenter);
            //ConcreteSectionTwoWayShear sec = new ConcreteSectionTwoWayShear(mat, perimeter, d, b_1, b_2, true, PunchingPerimeterConfiguration.Interior);
            ConcreteSectionTwoWayShear sec = new ConcreteSectionTwoWayShear(mat, perimeter, d, b_1, b_2, PunchingPerimeterConfiguration.Interior);
            double phi_v_c = sec.GetTwoWayStrengthForUnreinforcedConcrete() / 1000.0; //convert to kips

            double refValue        = 71.3 / d / 95.0;                                 //from example
            double actualTolerance = EvaluateActualTolerance(phi_v_c, refValue);

            Assert.True(actualTolerance <= tolerance);
        }