public void SectionAngle6X4X1_2Returns_I_w() { SectionAngle angle = new SectionAngle("", 6, 4, 0.5, AngleRotation.FlatLegBottom, AngleOrientation.LongLegVertical); double I_w = angle.I_w; double refValue = 20.02; double actualTolerance = EvaluateActualTolerance(I_w, refValue); Assert.LessOrEqual(actualTolerance, tolerance); }
public void SectionAngle6X4X1_2Returns_alpha() { SectionAngle angle = new SectionAngle("", 6, 4, 0.5, AngleRotation.FlatLegBottom, AngleOrientation.LongLegVertical); double alpha = angle.Angle_alpha; double refValue = 23.76; double actualTolerance = EvaluateActualTolerance(alpha, refValue); Assert.LessOrEqual(actualTolerance, tolerance); }
public void SectionAngle6X4X1_2Returns_x_bar() { SectionAngle angle = new SectionAngle("", 6, 4, 0.5, AngleRotation.FlatLegBottom, AngleOrientation.LongLegVertical); double x_bar = angle.x_Bar; double refValue = 0.9868; double actualTolerance = EvaluateActualTolerance(x_bar, refValue); Assert.LessOrEqual(actualTolerance, tolerance); }
internal SectionAngle(double b, double h, double t, string AngleRotation, string AngleOrientation) { AngleRotation angleRotation; bool IsValidString1 = Enum.TryParse(AngleRotation, true, out angleRotation); if (IsValidString1 != true) { throw new Exception("Angle rotation not recognized. Check string."); } AngleOrientation angleOrientation; bool IsValidString2 = Enum.TryParse(AngleOrientation, true, out angleOrientation); if (IsValidString2 != true) { throw new Exception("Angle orientation not recognized. Check string."); } ISection r = new ds.SectionAngle("", b, h, t, angleRotation, angleOrientation); Section = r; }
public SectionDoubleAngle(string Name, SectionAngle Angle, double Gap) : base(Name) { this.gap = Gap; this.angle = Angle; }
public SectionDoubleAngle(string Name, SectionAngle Angle, double Gap) : base(Name) { this.gap = Gap; this.angle = Angle; }
public ISliceableSection GetSliceableShape() { SectionAngle L = new SectionAngle("", this.d, this.b, this.t, this.AngleRotation, this.AngleOrientation); return L; }