public void GussetSingleBraceReturnsEffectiveLength() { AffectedElement el = new AffectedElement(); double KL = el.GetGussetPlateEffectiveCompressionLength(Steel.AISC.GussetPlateConfiguration.SingleBrace, 10, 10); Assert.AreEqual(7, KL); }
public static Dictionary <string, object> GussetPlateEffectiveCompressionLength(string GussetPlateConfigurationId, double l_1, double l_2, bool IsGussetCompactConfiguration = false, string Code = "AISC360-10") { //Default values double KL_gusset = 0; //Calculation logic: AffectedElement el = new AffectedElement(); GussetPlateConfiguration conf = ParseGussetConfiguration(GussetPlateConfigurationId, IsGussetCompactConfiguration); KL_gusset = el.GetGussetPlateEffectiveCompressionLength(conf, l_1, l_2); return(new Dictionary <string, object> { { "KL_gusset", KL_gusset } }); }