public static Dictionary <string, object> BoltGroupShearAndTensionAreas(string ShearAreaCaseId, double N_BoltRowParallel, double N_BoltRowPerpendicular, double p_parallel, double p_perpendicular, double d_hole, double t_p, double l_edgeParallel, double l_edgePerpendicular, string Code = "AISC360-10") { //Default values double A_gv = 0; double A_nv = 0; double A_nt = 0; //Calculation logic: ShearAreaCase shearCase = ShearCaseParse(ShearAreaCaseId); ShearAreaCalculator c = new ShearAreaCalculator(shearCase, N_BoltRowParallel, N_BoltRowPerpendicular, p_parallel, p_perpendicular, d_hole, t_p, l_edgeParallel, l_edgePerpendicular); A_gv = c.GetGrossAreaShear(); A_nv = c.GetNetAreaShear(); A_nt = c.GetNetAreaTension(); return(new Dictionary <string, object> { { "A_gv", A_gv } , { "A_nv", A_nv } , { "A_nt", A_nt } }); }
public ShearAreaCalculator(ShearAreaCase Case, double N_BoltParallel, double N_BoltPerpendicular, double p_parallel, double p_perpendicular, double d_Hole, double t, double l_edgeParallel, double l_edgePerpendicular) { this.Case = Case; this.N_BoltParallel =N_BoltParallel; this.N_BoltPerpendicular=N_BoltPerpendicular; this.d_Hole =d_Hole; this.t = t; this.p_parallel = p_parallel; this.p_perpendicular = p_perpendicular; this.l_edgeParallel = l_edgeParallel; this.l_edgePerpendicular = l_edgePerpendicular; }
public ShearAreaCalculator(ShearAreaCase Case, double N_BoltParallel, double N_BoltPerpendicular, double p_parallel, double p_perpendicular, double d_Hole, double t, double l_edgeParallel, double l_edgePerpendicular) { this.Case = Case; this.N_BoltParallel = N_BoltParallel; this.N_BoltPerpendicular = N_BoltPerpendicular; this.d_Hole = d_Hole; this.t = t; this.p_parallel = p_parallel; this.p_perpendicular = p_perpendicular; this.l_edgeParallel = l_edgeParallel; this.l_edgePerpendicular = l_edgePerpendicular; }