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: 50, position: 1);
            var endLoad   = new LoadData(value: 150, position: 7);

            span1.ContinousLoads.Add(ContinousNormalLoad.Create(startLoad, endLoad));

            _beam = new Beam(spans, nodes);

            _beam.Calculate();
        }
Beispiel #2
0
        public void SetUpData()
        {
            var span = new Mock <ISpan>();

            span.Setup(s => s.Length).Returns(10);
            span.Setup(s => s.Section.Area).Returns(2);
            span.Setup(s => s.Material.YoungModulus).Returns(3);
            _span = span.Object;

            _continousNormalLoad = ContinousNormalLoad.Create(
                startPosition: 1, startValue: 2, endPosition: 5, endValue: 10);
        }