public static double TorsionalConstant(this FabricatedBoxProfile profile) { if (profile.IsNull()) { return(0); } double tf1 = profile.TopFlangeThickness; //TODO: Allow for varying plate thickness double tw = profile.WebThickness; double width = profile.Width; double height = profile.Height; return(2 * tf1 * tw * Math.Pow(width - tw, 2) * Math.Pow(height - tf1, 2) / (width * tw + height * tf1 - Math.Pow(tw, 2) - Math.Pow(tf1, 2))); }
public static double WarpingConstant(this FabricatedBoxProfile profile) { return(profile.IsNull() ? 0 : 0); }