public static string Description(this TSectionProfile profile) { if (profile == null) { return("null profile"); } return($"T {profile.Height:G3}x{profile.Width:G3}x{profile.WebThickness:G3}x{profile.FlangeThickness:G3}"); }
/***************************************************/ public static double TorsionalConstant(this TSectionProfile profile) { double totalWidth = profile.Width; double totalDepth = profile.Height; double tf = profile.FlangeThickness; double tw = profile.WebThickness; return((totalWidth * Math.Pow(tf, 3) + (totalDepth - tf / 2) * Math.Pow(tw, 3)) / 3); }
/***************************************************/ public static TSectionProfile InterpolateProfile(TSectionProfile startProfile, TSectionProfile endProfile, double parameter, int interpolationOrder, double domainStart = 0, double domainEnd = 1) { return(Create.TSectionProfile( Interpolate(startProfile.Height, endProfile.Height, parameter, interpolationOrder, domainStart, domainEnd), Interpolate(startProfile.Width, endProfile.Width, parameter, interpolationOrder, domainStart, domainEnd), Interpolate(startProfile.WebThickness, endProfile.WebThickness, parameter, interpolationOrder, domainStart, domainEnd), Interpolate(startProfile.FlangeThickness, endProfile.FlangeThickness, parameter, interpolationOrder, domainStart, domainEnd), Interpolate(startProfile.RootRadius, endProfile.RootRadius, parameter, interpolationOrder, domainStart, domainEnd), Interpolate(startProfile.ToeRadius, endProfile.ToeRadius, parameter, interpolationOrder, domainStart, domainEnd), startProfile.MirrorAboutLocalY)); }
public static double TorsionalConstant(this TSectionProfile profile) { double b = profile.Width; double h = profile.Height; double tf = profile.FlangeThickness; double tw = profile.WebThickness; double r = profile.RootRadius; double alpha = AlphaTJunction(tw, tf, r); double D = InscribedDiameterTJunction(tw, tf, r); return((b * Math.Pow(tf, 3) + (h - tf) * Math.Pow(tw, 3)) / 3 + alpha * Math.Pow(D, 4) - 0.21 * Math.Pow(tf, 4) - 0.105 * Math.Pow(tw, 4)); }
/***************************************************/ private bool CreateProfile(string name, TSectionProfile profile) { List <double> dimensionList = new List <double> { profile.Height, profile.Width, profile.FlangeThickness, profile.WebThickness, profile.RootRadius }; double[] dimensionArray = dimensionList.ToArray(); //List<string> valueList = new List<string> { "D", "B", "tf", "tw", "r" }; int lusasType = 8; CreateLibrarySection(name, dimensionArray, lusasType); return(true); }
private static void SetSpecificDimensions(TSectionProfile dimensions, string sectionName, IMaterialFragment material, cSapModel model) { if (material is Steel || material is Aluminium) { model.PropFrame.SetSteelTee(sectionName, material.Name, dimensions.Height, dimensions.Width, dimensions.FlangeThickness, dimensions.WebThickness, dimensions.RootRadius, dimensions.MirrorAboutLocalY); } else if (material is Concrete) { model.PropFrame.SetConcreteTee(sectionName, material.Name, dimensions.Height, dimensions.Width, dimensions.FlangeThickness, dimensions.WebThickness, dimensions.WebThickness, dimensions.MirrorAboutLocalY); } else { model.PropFrame.SetTee(sectionName, material.Name, dimensions.Height, dimensions.Width, dimensions.FlangeThickness, dimensions.WebThickness); if (dimensions.MirrorAboutLocalY) { RecordFlippingError(sectionName); } } }
/***************************************************/ private bool SetProfile(TSectionProfile profile, string sectionName, IMaterialFragment material) { if (material is Steel || material is Aluminium) { return(m_model.PropFrame.SetSteelTee(sectionName, material?.DescriptionOrName() ?? "", profile.Height, profile.Width, profile.FlangeThickness, profile.WebThickness, profile.RootRadius, profile.MirrorAboutLocalY) == 0); } else if (material is Concrete) { return(m_model.PropFrame.SetConcreteTee(sectionName, material?.DescriptionOrName() ?? "", profile.Height, profile.Width, profile.FlangeThickness, profile.WebThickness, profile.WebThickness, profile.MirrorAboutLocalY) == 0); } else { bool success = m_model.PropFrame.SetTee(sectionName, material?.DescriptionOrName() ?? "", profile.Height, profile.Width, profile.FlangeThickness, profile.WebThickness) == 0; if (success && profile.MirrorAboutLocalY) { RecordFlippingError(sectionName); } return(success); } }
/***************************************************/ public static string Description(this TSectionProfile profile) { return("T " + profile.Height + "x" + profile.Width + "x" + profile.WebThickness + "x" + profile.FlangeThickness); }
/***************************************************/ private bool SetProfile(TSectionProfile bhomProfile, string sectionName, string matName) { int ret = m_model.PropFrame.SetTee(sectionName, matName, bhomProfile.Height, bhomProfile.Width, bhomProfile.FlangeThickness, bhomProfile.WebThickness); return(ret == 0); }
private (double[], int, string) GetProfileDimensions(TSectionProfile profile) { return(new double[] { profile.Width, profile.Height, 0, profile.FlangeThickness, profile.WebThickness, 0 }, St7.bsTSection, profile.Name); }