public void SetUpBeam() { var material = new Steel(); var section = new IBeamSection( width: 91, height: 180, flangeWidth: 8, webWidth: 5.3, radius: 9); var node1 = new FixedNode(); var node2 = new FixedNode(); var nodes = new Node[] { node1, node2 }; var span1 = new Span( leftNode: node1, length: 10, rightNode: node2, material: material, section: section, includeSelfWeight: true ); var spans = new Span[] { span1 }; _beam = new Beam(spans, nodes, includeSelfWeight: false); _beam.CalculationEngine.Calculate(); }
public void IBeamSection_ZeroRadiusTest_Success() { var beamSection = new IBeamSection( width: 10, height: 10, flangeWidth: 1, webWidth: 1, radius: 0); Assert.That(beamSection.Circumference, Is.EqualTo(5.8).Within(0.001)); }
public void IBeamSection_CalculatedMomentOfInteriaTest_IPE300_Success() { var iBeamSection = new IBeamSection( width: 150, height: 300, flangeWidth: 10.7, webWidth: 7.1, radius: 15); Assert.That(iBeamSection.MomentOfInteria, Is.EqualTo(8356.109).Within(0.001)); }