public void SetUpBeam() { var material = new Material(youngModulus: 200, density: 1, thermalExpansionCoefficient: 0); var section = new SectionProperties(area: 60, momentOfInteria: 20000); var node1 = new PinNode(angle: 90); 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: false ); var spans = new Span[] { span1 }; var shearLoad = ContinousAngledLoad.Create( startPosition: 1, startValue: -20, endPosition: 6, endValue: -100, angle: 35); span1.ContinousLoads.Add(shearLoad); var pointLoad = new ShearLoad(value: 200, position: 9); span1.PointLoads.Add(pointLoad); _beam = new Beam(spans, nodes, includeSelfWeight: false); _beam.CalculationEngine.Calculate(); }
public void SetUpBeam() { var material = new Concrete(youngModulus: 30); var section = new RectangleSection(width: 300, height: 500); 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 ); var spans = new Span[] { span1 }; var startLoad = new LoadData(value: -150, position: 3); var endLoad = new LoadData(value: -50, position: 8); span1.ContinousLoads.Add(ContinousAngledLoad.Create(startLoad, endLoad, 30)); _beam = new Beam(spans, nodes); _beam.Calculate(); }
public void SetUpData() { var span = new Mock <ISpan>(); span.Setup(s => s.Length).Returns(10); span.Setup(s => s.Material.YoungModulus).Returns(2); span.Setup(s => s.Section.Area).Returns(1); span.Setup(s => s.Section.MomentOfInteria).Returns(4); _span = span.Object; _continousAngledLoad = ContinousAngledLoad.Create( startPosition: 1, startValue: 2, endPosition: 5, endValue: 10, angle: 30); }