public static Dictionary <string, object> TwoWayShearStressFromConcentricLoad(double V_u, PunchingShearPerimeter PunchingShearPerimeter) { //Default values double v_u = 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); v_u = sec.GetConcentricShearStress(V_u); return(new Dictionary <string, object> { { "v_u", v_u } }); }
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 } }); }