public void SetUpBeam()
        {
            var material = new Concrete(youngModulus: 30, withReinforcement: false);
            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,
                includeSelfWeight: false
                );

            var spans = new Span[] { span1 };

            span1.ContinousLoads.Add(ContinousBendingMomentLoad.Create(span1, value: 50));

            _beam = new Beam(spans, nodes, includeSelfWeight: false);

            _beam.CalculationEngine.Calculate();
        }
Ejemplo n.º 2
0
        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.MomentOfInteria).Returns(4);
            _span = span.Object;

            _continousBendingMomentLoad = ContinousBendingMomentLoad.Create(_span, value: 2);
        }