public static SectionProperty NewTeeSection(MaterialType matType, double totalDepth, double totalwidth, double flangeThickness, double webThickness, double r1 = 0, double r2 = 0) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(totalDepth, totalwidth, webThickness, flangeThickness, r1, r2); } section.SetGeometry(ShapeType.Tee, totalDepth, totalwidth, webThickness, flangeThickness, r1, r2); section.Shape = ShapeType.Tee; return(section); }
/// <summary> /// Create an I Shaped section property /// </summary> /// <param name="mType"></param> /// <param name="widthTopFlange"></param> /// <param name="widthBotFlange"></param> /// <param name="totalDepth"></param> /// <param name="flangeThicknessTop"></param> /// <param name="flangeThicknessBot"></param> /// <param name="webThickness"></param> /// <param name="webRadius"></param> /// <param name="toeRadius"></param> /// <returns></returns> public static SectionProperty NewISection(MaterialType matType, double widthTopFlange, double widthBotFlange, double totalDepth, double flangeThicknessTop, double flangeThicknessBot, double webThickness, double webRadius, double toeRadius) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(totalDepth, System.Math.Max(widthTopFlange, widthBotFlange), webThickness, flangeThicknessTop, webRadius, toeRadius, 0, widthTopFlange, widthBotFlange, flangeThicknessBot); } section.SetGeometry(ShapeType.ISection, totalDepth, System.Math.Max(widthTopFlange, widthBotFlange), webThickness, flangeThicknessTop, webRadius, toeRadius, widthTopFlange, widthBotFlange, flangeThicknessBot); section.Shape = ShapeType.ISection; return(section); }
/// <summary> /// create a circular section /// </summary> /// <param name="mType"></param> /// <param name="diameter"></param> /// <returns></returns> public static SectionProperty NewTubeSection(MaterialType matType, double diameter, double thickness) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(diameter, diameter, thickness, thickness, 0, 0); } section.SetGeometry(ShapeType.Tube, diameter, diameter, thickness, thickness, 0, 0); section.Shape = ShapeType.Tube; return(section); }
/// <summary> /// create a circular section /// </summary> /// <param name="mType"></param> /// <param name="diameter"></param> /// <returns></returns> public static SectionProperty NewCircularSection(MaterialType matType, double diameter) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(diameter, diameter, 0, 0, 0, 0); } section.SetGeometry(ShapeType.Circle, diameter, diameter, 0, 0, 0, 0); section.Shape = ShapeType.Circle; return(section);// new SteelSection(ShapeType.Box, height, width, tw, tf, outerRadius, innerRadius); }
/// <summary> /// Create an angle section /// </summary> /// <param name="mType"></param> /// <param name="height"></param> /// <param name="width"></param> /// <param name="flangeThickness"></param> /// <param name="webThickness"></param> /// <returns></returns> public static SectionProperty NewAngleSection(MaterialType matType, double height, double width, double flangeThickness, double webThickness, double webRadius, double toeRadius) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(height, width, webThickness, flangeThickness, webRadius, toeRadius); } section.SetGeometry(ShapeType.Angle, height, width, webThickness, flangeThickness, webRadius, toeRadius); section.Shape = ShapeType.Angle; return(section); }
/// <summary> /// Create a rectangular shaped section /// </summary> /// <param name="mType"></param> /// <param name="height"></param> /// <param name="width"></param> /// <param name="outerRadius"></param> /// <returns></returns> public static SectionProperty NewBoxSection(MaterialType matType, double height, double width, double tf, double tw, double outerRadius = 0, double innerRadius = 0) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(height, width, tw, tf, outerRadius, innerRadius); } section.SetGeometry(ShapeType.Box, height, width, tw, tf, outerRadius, innerRadius); section.Shape = ShapeType.Box; return(section);// new SteelSection(ShapeType.Box, height, width, tw, tf, outerRadius, innerRadius); }
/// <summary> /// Create a rectangular shaped section /// </summary> /// <param name="mType"></param> /// <param name="height"></param> /// <param name="width"></param> /// <param name="outerRadius"></param> /// <returns></returns> public static SectionProperty NewRectangularSection(MaterialType matType, double height, double width, double outerRadius = 0) { SectionProperty section = CreateSection(matType); if (matType == MaterialType.Steel) { (section as SteelSection).SetSectionData(height, width, 0, 0, outerRadius, 0); } section.SetGeometry(ShapeType.Rectangle, height, width, 0, 0, outerRadius, 0); section.Shape = ShapeType.Rectangle; return(section); }