public void BlockShearReturnsValue() { AffectedElement element = new AffectedElement(36.0, 58.0); double phiR_n = element.GetBlockShearStrength(39.0, 26.0, 7.0, true); double refValue = 938.0; double actualTolerance = EvaluateActualTolerance(phiR_n, refValue); Assert.True(actualTolerance <= tolerance); }
public static Dictionary <string, object> BlockShearStrength(double A_gv, double A_nv, double A_nt, double F_y, double F_u, string StressDistibutionType, string Code = "AISC360-10") { //Default values bool StressIsUniform = false; if (StressDistibutionType == "Uniform") { StressIsUniform = true; } //Calculation logic: AffectedElement element = new AffectedElement(F_y, F_u); double phiR_n = element.GetBlockShearStrength(A_gv, A_nv, A_nt, StressIsUniform); return(new Dictionary <string, object> { { "phiR_n", phiR_n } }); }