예제 #1
0
        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}");
        }
예제 #2
0
        /***************************************************/

        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);
        }
예제 #3
0
        /***************************************************/


        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));
        }
예제 #4
0
        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));
        }
예제 #5
0
        /***************************************************/

        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);
        }
예제 #6
0
 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);
         }
     }
 }
예제 #7
0
        /***************************************************/

        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);
            }
        }
예제 #8
0
        /***************************************************/

        public static string Description(this TSectionProfile profile)
        {
            return("T " + profile.Height + "x" + profile.Width + "x" + profile.WebThickness + "x" + profile.FlangeThickness);
        }
예제 #9
0
        /***************************************************/

        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);
        }
예제 #10
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);
 }